Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Compare

ARM JSON Templates vs Bicep Files

30-second answer

Bicep and ARM JSON deploy exactly the same resources: the CLI compiles Bicep to ARM JSON before Resource Manager runs it. Bicep is shorter and easier to read and modify. ARM JSON is what the portal exports and what older automation uses. Convert JSON to Bicep with az bicep decompile and Bicep to JSON with az bicep build.

Simulate it »

Side by side

↔ Swipe the table to see every column.

ARM JSON templateBicep file
SyntaxJSON with [expressions] in stringsIts own concise language
Parameters"parameters": { "x": { "type": "string" } }param x string
Allowed values"allowedValues": [...]@allowed([...]) decorator
References[reference(...)], dependsOn often neededsymbolic names, dependencies inferred
Deployaz deployment group create --template-file azuredeploy.jsonSame command with main.bicep
Convertaz bicep decompile → .bicepaz bicep build → .json

Prices are illustrative pay-as-you-go list prices converted at approximate rates, for "price feel" only. Check the Azure pricing calculator for real quotes.

Which one should I pick?

  • ARM JSON

    Pick it when you were handed an exported or legacy template and only need a small change

  • Bicep

    Pick it when you write or maintain templates yourself and want readable, reviewable files

Simulate it

3D AZ-104 compute: templates, VMs, disks, moves and availability Deploy a Bicep file, then edit an ARM template in the portal.

🖱️ Drag to rotate · scroll or pinch to zoom

Loading the 3D scene…
</> Embed

Embed this simulation

Free for trainers, teachers and bloggers. Paste this into your page:

A Bicep file becomes resources

A template has four parts: parameters (inputs such as storageName and skuName), variables (values worked out once), resources (what gets built) and outputs (values handed back). The CLI compiles Bicep to ARM JSON and Azure Resource Manager validates it, then builds it.

Read this tour as text
  1. A Bicep file becomes resources. A template has four parts: parameters (inputs such as storageName and skuName), variables (values worked out once), resources (what gets built) and outputs (values handed back). The CLI compiles Bicep to ARM JSON and Azure Resource Manager validates it, then builds it.
  2. what-if, Incremental and Complete. what-if previews the changes (+ create, ~ modify, - delete) without touching anything. Incremental mode, the default, adds and updates. Complete mode also deletes whatever in the resource group isn't in the template.
  3. Export and decompile. Export template (portal, or az group export) writes what exists now as ARM JSON. az bicep decompile turns JSON into Bicep. Both are starting points: names and values are hard-coded and some properties are missing.
  4. A VM, its host and its size. A VM runs on a physical host in a hardware cluster. Its size (Standard_D2s_v5: D family, 2 vCPUs, premium storage, v5) sets CPU, memory, disk count and price. A resize restarts the VM; a size that isn't on the current cluster needs the VM deallocated first.
  5. Disks and encryption at host. OS and data disks are managed disks in Azure Storage, encrypted at rest by default. The temp disk and the disk caches live on the host. Encryption at host encrypts those too, end to end; it needs the feature registered and the VM deallocated.
  6. Move to another resource group or subscription. A move keeps the region and the VM keeps running, but every resource ID changes. The VM must travel with its disks and network interface; across subscriptions the virtual network goes too.
  7. Move to another region. Azure Resource Mover copies resources to another region: add them, validate dependencies, prepare, initiate move, then commit (or discard) and delete the source.
  8. Availability sets vs zones. An availability set spreads VMs over fault domains (racks with their own power and network) and update domains in one datacenter: 99.95%. Availability zones spread VMs over separate datacenters: 99.99%. A VM uses one or the other, chosen at creation.
  9. Scale sets grow on a rule. A Virtual Machine Scale Set (Flexible orchestration recommended) runs identical VMs across zones. Autoscale rules add instances when average CPU is high and remove them when it's low, always between the minimum and maximum.

Questions people ask

Does Bicep need anything installed?

Azure CLI installs the Bicep CLI for you the first time you deploy a .bicep file. Azure PowerShell needs the Bicep CLI installed separately.

Can the portal deploy a Bicep file directly?

The custom deployment editor takes ARM JSON. Build the Bicep file to JSON first, or deploy it with the CLI or PowerShell.

Learn each one properly

More comparisons

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.