GitHub Actions
Automate Azure deployments with Bicep and GitHub Actions. Latest best practices, real-world DevOps/SRE examples, and security tips for 2025.
Why Use GitHub Actions with Bicep?
Prerequisites
Initial Setup
1. Create a Resource Group
2. Configure Authentication
Option A: Service Principal (legacy, less secure)
Option B: OIDC (recommended)
Example: Basic Bicep Deployment Workflow
Example: Multi-Environment Deployment
Example: Preview Changes with What-If
Security Best Practices
Monitoring & Troubleshooting
Bicep & Azure Jokes
References
Last updated