Azure Resource Manager
Azure Resource Manager (ARM) is the control plane that every Azure tool uses to create, update, and delete resources. It applies RBAC, policy, and locks, and records each change in the Activity Log.
Azure Resource Manager
The Azure portal, CLI, PowerShell, SDKs, Terraform, and Bicep all call the same ARM API. Each request is authenticated, authorised against RBAC, checked by Azure Policy and resource locks, then handed to the resource provider. Because everything flows through one layer, results are consistent and auditable regardless of the tool used.
What Is Declarative Deployment in ARM?
You describe the desired end state in an ARM template or a Bicep file, and ARM works out the order and creates or updates resources to match. Re-running the same deployment is idempotent, so it updates existing resources instead of duplicating them. Bicep compiles to ARM JSON and is the recommended authoring language.
What Are Incremental and Complete Deployment Modes?
Incremental mode, the default, leaves resources not in the template untouched. Complete mode deletes resources in the resource group that the template does not mention. Use Complete only when you fully intend to remove drift.
# Preview what would change before deployingaz deployment group what-if --resource-group mumbai-prod-rg \ --template-file main.bicep --parameters params.bicepparam az deployment group create --resource-group mumbai-prod-rg \ --template-file main.bicep --parameters params.bicepparam \ --mode IncrementalWhy It Matters in Production
A brokerage platform like Zerodha can ship every production change as a reviewed template through CI/CD. Every change is version controlled, previewed with what-if, and traceable in the Activity Log.
Common MistakeUsing Complete mode on a shared resource group. Anything not in the template is deleted, including resources other teams created.
TipARM infers dependencies from resource references. Add
dependsOnonly when no property reference expresses the ordering, otherwise parallel creation can cause intermittent failures.
Frequently Asked Questions
Is Bicep a replacement for ARM?
No. Bicep is a friendlier language that compiles to ARM templates, and ARM still performs the deployment. Anything ARM can deploy, Bicep can describe.
How do I see who changed a resource?
Open the Activity Log for the resource or resource group. Every control-plane write passes through ARM and is recorded with the caller identity and time.
Why does Terraform or the CLI behave the same as the portal?
They all call the same ARM REST API, so the same RBAC, policy, and locks apply no matter which tool you use.