Your team wants to move from ARM JSON templates to Bicep. How do you migrate?
BeginnerScenarioCI/CD and IaC
Answer
Situation read → Bicep compiles to ARM, so migration is mechanical and low risk.
What I'd do →
az bicep decompile -f azuredeploy.jsonfor each template- Clean up: modules, parameter types, remove generated noise, use symbolic references
- Run
az deployment group what-ifagainst existing environments; expect no changes - Switch pipelines to Bicep, keep the same deployment names and scopes
Why → What-if confirms the Bicep version describes the same resources before any deployment.
Interview tip → Mention decompile is "best effort"; review the output.
More on CI/CD and IaC
Design a GitHub Actions pipeline that builds an image, pushes to ACR and deploys to AKS with no secrets.IntermediateYour organisation uses Azure DevOps. Set up a secure deployment pipeline to AKS.IntermediateYou need to promote the same image from dev to staging to prod. How do you design it?IntermediateTerraform state for prod is in a storage account accessible with account keys. Harden it.IntermediateA pipeline needs to deploy to dev, test and prod in different subscriptions. How do you handle identities?AdvancedThe Terraform plan for a small change shows the AKS cluster will be replaced. What do you do?Advanced