What are deployment stacks?
AdvancedConceptAzure DevOps, Bicep and Terraform
Answer
A deployment stack is an Azure resource that tracks the set of resources a Bicep/ARM deployment manages:
az stack group create -n shop-stack -g rg-shop -f main.bicep \
--action-on-unmanage deleteResources --deny-settings-mode denyWriteAndDelete
--action-on-unmanage: what happens to resources removed from the template (detachAll,deleteResources,deleteAll).--deny-settings-mode: applies deny assignments so nobody changes or deletes stack resources outside the stack (with excluded principals for break-glass).
It gives Bicep lifecycle management similar to Terraform state, plus drift prevention.
More on Azure DevOps, Bicep and Terraform
What services make up Azure DevOps?BeginnerWhat are branch policies in Azure Repos?BeginnerExplain the YAML pipeline structure in Azure Pipelines.BeginnerWhat are service connections and how should they authenticate?IntermediateWhat are environments in Azure Pipelines?IntermediateWhat deployment strategies do deployment jobs support?Intermediate