Skill 3.1.4
Deploy resources by using an Azure Resource Manager template or a Bicep file
Key Concepts
The command depends on the scope: az deployment group create (resource group), az deployment sub create (subscription, for example to create resource groups or assign policies), az deployment mg create and az deployment tenant create. The PowerShell equivalents are New-AzResourceGroupDeployment, New-AzSubscriptionDeployment and so on. The Azure CLI and PowerShell compile Bicep automatically. In the portal, Deploy a custom template accepts a quickstart, a template typed into the editor or an uploaded file.
Resource group deployments use Incremental mode by default, which adds and updates the resources in the template and leaves other resources alone. Complete mode also deletes resources in the resource group that are not in the template. The what-if operation (az deployment group what-if) previews creations, modifications and deletions. Each deployment is listed on the resource group's Deployments page with its template, parameters, operations and errors; a resource group keeps up to 800 deployments in history.