Bicep parameter files

Last updated:

AZUREBICEP
  • created in json
  • specify all [[202407191859 Bicep parameters|Bicep parameters]] values in one go
  • good idea to include the name of the environment in the name of the [[202407191915 Bicep parameter files|parameter file]]

How to use

New-AzResourceGroupDeployment -TemplateFile main.bicep -TemplateParameterFile main.parameters.json

Example

{
  "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentParameters.json#",
  "contentVersion": "1.0.0.0",
  "parameters": {
    "appServicePlanInstanceCount": {
      "value": 3
    },
    "appServicePlanSku": {
      "value": {
        "name": "P1v3",
        "tier": "PremiumV3"
      }
    },
    "cosmosDBAccountLocations": {
      "value": [
        {
          "locationName": "australiaeast"
        },
        {
          "locationName": "southcentralus"
        },
        {
          "locationName": "westeurope"
        }
      ]
    }
  }
}

references:

MS Learn