Modular infrastructure deployment for Azure using Bicep and GitHub Actions. Easily spin up environments with Virtual Network, Azure Web App, and Key Vault components.
- ⚙️ Modular Bicep templates
- 📦 GitHub Actions CI/CD
- 🌐 Virtual Network
- 🕸️ Web App (App Service)
- 🔐 Azure Key Vault
- 📁 Environment-specific parameter files (dev/test/prod)
-
Fork or clone this repo
-
Create a resource group:
az group create --name rg-autodeploy --location westeurope
-
Create a service principal and set GitHub Secrets:
az ad sp create-for-rbac --sdk-auth > creds.json
Add to GitHub Secrets:
AZURE_CREDENTIALS
: contents ofcreds.json
AZURE_SUBSCRIPTION_ID
: your subscription ID
-
Push to
main
branch → GitHub Actions auto-deploys infra to Azure -
OR deploy locally:
./scripts/validate-deploy.ps1 -Environment dev
bicep/parameters/dev.json
bicep/parameters/test.json
bicep/parameters/prod.json
Modify these files to suit your environment needs.
- Application Insights integration
- Multi-environment GitHub Actions matrix
- Cost estimation + linting with
bicep lint
andwhat-if
Contributions welcome! Fork the repo, create a branch, and submit a PR.
MIT