Description
stringlengths
19
200
IaC
stringlengths
128
8.16k
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[variables('adlsstorageaccountprivateendpointid')]", "[variables('blobstorageaccountprivateendpointid')]", "[variables('nicid')]"], "properties": {"hardwarep...
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[variables('adlsstorageaccountprivateendpointid')]", "[variables('blobstorageaccountprivateendpointid')]", "[variables('nicid')]"], "properties": {"hardwarep...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-04-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[concat(tolower(parameters('vmname')), un...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-04-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[concat(tolower(parameters('vmname')), un...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-04-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[concat(tolower(parameters('vmname')), un...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-04-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[concat(tolower(parameters('vmname')), un...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-04-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[concat(tolower(parameters('vmname')), un...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-04-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[concat(tolower(parameters('vmname')), un...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-04-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[concat(tolower(parameters('vmname')), un...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-04-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}, "properties": {"accesstier": "hot"}}{"copy": {"name": "fileshares", "count": "[length(range(0, parameters(...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-04-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}, "properties": {"accesstier": "hot"}}{"type": "microsoft.storage/storageaccounts/fileservices/shares", "api...
This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.
{"type": "microsoft.keyvault/vaults", "apiversion": "2021-06-01-preview", "name": "[parameters('keyvaultname')]", "location": "[parameters('location')]", "properties": {"sku": {"name": "standard", "family": "a"}, "enablesoftdelete": true, "enablepurgeprotection": true, "enabledfordeployment": true, "enabledfordiskencry...
This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.
{"type": "microsoft.keyvault/vaults", "apiversion": "2021-06-01-preview", "name": "[parameters('keyvaultname')]", "location": "[parameters('location')]", "properties": {"sku": {"name": "standard", "family": "a"}, "enablesoftdelete": true, "enablepurgeprotection": true, "enabledfordeployment": true, "enabledfordiskencry...
This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.
{"type": "microsoft.managedidentity/userassignedidentities", "apiversion": "2018-11-30", "name": "[parameters('userassignedidentityname')]", "location": "[parameters('location')]"}
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-04-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "identity": {"type": "userassigned", "userassignedidentities": {"[format('{0}", resourceid('microsoft.mana...
Creates and optionally secures a Key Vault with logging linked to a storage account.
{"type": "microsoft.keyvault/vaults", "apiversion": "2021-06-01-preview", "name": "[parameters('keyvaultname')]", "location": "[parameters('location')]", "properties": {"sku": {"name": "standard", "family": "a"}, "enablesoftdelete": true, "enablepurgeprotection": true, "enabledfordeployment": true, "enabledfordiskencry...
Creates and optionally secures a Key Vault with logging linked to a storage account.
{"type": "microsoft.keyvault/vaults", "apiversion": "2021-06-01-preview", "name": "[parameters('keyvaultname')]", "location": "[parameters('location')]", "properties": {"sku": {"name": "standard", "family": "a"}, "enablesoftdelete": true, "enablepurgeprotection": true, "enabledfordeployment": true, "enabledfordiskencry...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-04-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storagesku')]"}, "kind": "[parameters('storagekind')]", "properties": {"accesstier": "[parameters('storagetier')]", "encryption": ...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-04-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storagesku')]"}, "kind": "[parameters('storagekind')]", "properties": {"accesstier": "[parameters('storagetier')]", "encryption": ...
which shows how we can correlate messages over Logic Apps using Azure Service Bus
{"type": "microsoft.logic/workflows", "apiversion": "2019-05-01", "name": "[parameters('logicappname')]", "location": "[parameters('location')]", "properties": {"state": "enabled", "definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "act...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"condition": "[parameters('deployfunction')]", "type": "microsoft.storage/storageaccounts", "apiversion": "2021-01-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}}
Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.
{"condition": "[parameters('deployfunction')]", "type": "microsoft.web/sites", "apiversion": "2018-11-01", "name": "[parameters('funcname')]", "location": "[parameters('location')]", "kind": "functionapp", "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname'))]"], "properties"...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"condition": "[parameters('deployfunction')]", "type": "microsoft.storage/storageaccounts", "apiversion": "2021-01-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}}
This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.
{"type": "microsoft.managedidentity/userassignedidentities", "name": "[variables('identityname')]", "apiversion": "2018-11-30", "location": "[parameters('location')]"}
This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth
{"type": "microsoft.authorization/roleassignments", "apiversion": "2020-04-01-preview", "name": "[variables('roledefinitionname')]", "dependson": ["[variables('identityname')]"], "properties": {"roledefinitionid": "[variables('roledefinitionid')]", "principalid": "[reference(variables('identityname')).principalid]", "s...
Create a PowerBI Workspace Collection in Azure.
{"type": "microsoft.powerbidedicated/capacities", "apiversion": "2018-09-01-preview", "name": "[parameters('name')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('sku')]"}, "properties": {"administration": {"members": ["[parameters('admin')]"]}}}
This template creates an IoT hub and an IoT Hub Device Provisioning Service, and link the two services together.
{"type": "microsoft.devices/iothubs", "apiversion": "2021-03-31", "name": "[parameters('iothubname')]", "location": "[parameters('location')]", "sku": {"name": "s1", "capacity": 1}, "properties": {"authorizationpolicies": [{"keyname": "iothubowner", "rights": "registrywrite, serviceconnect, deviceconnect"}, {"keyname":...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"comments": "this storage account is used to associate to a batch account", "type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storageaccountsku')]"}, "kind": "storagev2", "tags": {"...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"comments": "this storage account is used to associate to a batch account", "type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storageaccountsku')]"}, "kind": "storagev2", "tags": {"...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "apiversion": "2019-09-01", "name": "addaccesspolicy", "resourcegroup": "[parameters('keyvaultresourcegroupname')]", "dependson": ["[resourceid('microsoft.datalakestore/accounts", parameters('datalakestorename'))]"], "properties": {"mode": "incremental", "template": {"$schema...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "apiversion": "2019-09-01", "name": "addaccesspolicy", "resourcegroup": "[parameters('keyvaultresourcegroupname')]", "dependson": ["[resourceid('microsoft.datalakestore/accounts", parameters('datalakestorename'))]"], "properties": {"mode": "incremental", "template": {"$schema...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "name": "storageaccount", "apiversion": "2021-01-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'),concat('nested/storageaccount.json", parameters('_artifactslocationsastoken')))]", "contentversion": "1.0.0.0"}, "paramet...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "name": "storageaccount", "apiversion": "2021-01-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'),concat('nested/storageaccount.json", parameters('_artifactslocationsastoken')))]", "contentversion": "1.0.0.0"}, "paramet...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "name": "storageaccount", "apiversion": "2021-01-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'),concat('nested/storageaccount.json", parameters('_artifactslocationsastoken')))]", "contentversion": "1.0.0.0"}, "paramet...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "name": "storageaccount", "apiversion": "2021-01-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'),concat('nested/storageaccount.json", parameters('_artifactslocationsastoken')))]", "contentversion": "1.0.0.0"}, "paramet...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "name": "storageaccount", "apiversion": "2021-01-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'),concat('nested/storageaccount.json", parameters('_artifactslocationsastoken')))]", "contentversion": "1.0.0.0"}, "paramet...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "name": "storageaccount", "apiversion": "2021-01-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'),concat('nested/storageaccount.json", parameters('_artifactslocationsastoken')))]", "contentversion": "1.0.0.0"}, "paramet...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2019-04-01", "type": "microsoft.network/virtualnetworks", "name": "[parameters('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups", parameters('nsgformanagedinstancesubnet'))]", "[resourceid('microsoft.network/routetables"...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2019-04-01", "type": "microsoft.network/virtualnetworks", "name": "[parameters('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups", parameters('nsgformanagedinstancesubnet'))]", "[resourceid('microsoft.network/routetables"...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2019-04-01", "type": "microsoft.network/virtualnetworks", "name": "[parameters('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups", parameters('nsgformanagedinstancesubnet'))]", "[resourceid('microsoft.network/routetables"...
This template creates a EventHubs namespace, an Event Hub, a consumer group and authorizationRules
{"apiversion": "2018-01-01-preview", "name": "[parameters('eventhubnamespacename')]", "type": "microsoft.eventhub/namespaces", "location": "[parameters('location')]", "sku": {"name": "standard", "tier": "standard"}, "properties": {}, "resources": [{"apiversion": "2017-04-01", "name": "[parameters('eventhubname')]", "ty...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-04-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "properties": {}}
This template creates a data collection rule defining the data source (Syslog) and the destination workspace.
{"scope": "[concat('microsoft.sql/managedinstances/", parameters('managedinstancename'))]", "type": "microsoft.insights/diagnosticsettings", "apiversion": "2017-05-01-preview", "name": "[parameters('diagnosticsettingname')]", "dependson": ["[parameters('managedinstancename')]", "[parameters('storageaccountname')]", "[p...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-04-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "properties": {}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-06-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-06-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-06-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-06-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"condition": "[parameters('enableads')]", "type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[variables('storagename')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "properties": {"minimumtlsversion": "tls1_2", "supportshttpstrafficonly"...
This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth
{"condition": "[parameters('enableads')]", "scope": "[concat('microsoft.storage/storageaccounts/", variables('storagename'))]", "type": "microsoft.authorization/roleassignments", "apiversion": "2020-04-01-preview", "name": "[variables('uniqueroleguid')]", "dependson": ["[resourceid('microsoft.sql/servers", parameters('...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-08-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-08-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-08-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-08-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-08-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"name": "[variables('virtualmachinename')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2019-12-01", "location": "[parameters('location')]", "dependson": ["[variables('networkinterfacename')]"], "properties": {"osprofile": {"computername": "[variables('virtualmachinename')]", "adminusername": "[parame...
Create a VM from a Windows Image with 4 Empty Data Disks
{"name": "[variables('virtualmachinename')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2019-12-01", "location": "[parameters('location')]", "dependson": ["[variables('networkinterfacename')]"], "properties": {"osprofile": {"computername": "[variables('virtualmachinename')]", "adminusername": "[parame...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2019-06-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2019-06-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2019-06-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2019-06-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2019-06-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allow_tds_inbound", "properties": {"description": "allow access to data", "protocol": "tcp", "sourceportra...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"], "tags": {"displayname": "[variables('vmname')]"}, "properties": {"ha...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"], "tags": {"displayname": "[variables('vmname')]"}, "properties": {"ha...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetaddressprefix')]"]}}, "resources": [{"type": "subnets", "apiversion": "2020-06-01", "name": "[variable...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetaddressprefix')]"]}}, "resources": [{"type": "subnets", "apiversion": "2020-06-01", "name": "[variable...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetaddressprefix')]"]}}, "resources": [{"type": "subnets", "apiversion": "2020-06-01", "name": "[variable...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetaddressprefix')]"]}}, "resources": [{"type": "subnets", "apiversion": "2020-06-01", "name": "[variable...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetaddressprefix')]"]}}, "resources": [{"type": "subnets", "apiversion": "2020-06-01", "name": "[variable...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetaddressprefix')]"]}}, "resources": [{"type": "subnets", "apiversion": "2020-06-01", "name": "[variable...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "name": "[parameters('storageaccountname')]", "apiversion": "2019-06-01", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "properties": {"networkacls": {"bypass": "azureservices", "defaultaction": "[if(parameters('isstoragebehin...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "name": "[parameters('storageaccountname')]", "apiversion": "2019-06-01", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "properties": {"networkacls": {"bypass": "azureservices", "defaultaction": "[if(parameters('isstoragebehin...
Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.
{"type": "microsoft.web/serverfarms", "apiversion": "2020-12-01", "name": "[parameters('appsvcplanname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('svcplansize')]", "tier": "[parameters('svcplansku')]", "capacity": 1}}
Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.
{"type": "microsoft.web/serverfarms", "apiversion": "2020-12-01", "name": "[parameters('appsvcplanname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('svcplansize')]", "tier": "[parameters('svcplansku')]", "capacity": 1}}{"type": "microsoft.web/sites", "apiversion": "2020-12-01", "name": "[pa...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "workervm", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", "workernic')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "storageprofile": {"imagerefere...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "workervm", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", "workernic')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "storageprofile": {"imagerefere...
This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.
{"type": "microsoft.keyvault/vaults", "apiversion": "2019-09-01", "name": "[variables('keyvaultname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.managedidentity/userassignedidentities", "demoidentity')]"], "properties": {"enabledfordeployment": false, "enabledfordiskencryption": fa...
This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.
{"type": "microsoft.managedidentity/userassignedidentities", "apiversion": "2018-11-30", "name": "demoidentity", "location": "[parameters('location')]"}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "workervm", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", "workernic')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "storageprofile": {"imagerefere...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "workervm", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", "workernic')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "storageprofile": {"imagerefere...
Creates and optionally secures a Key Vault with logging linked to a storage account.
{"type": "microsoft.keyvault/vaults", "apiversion": "2019-09-01", "name": "[variables('keyvaultname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.managedidentity/userassignedidentities", "demoidentity')]"], "properties": {"enabledfordeployment": false, "enabledfordiskencryption": fa...
Creates and optionally secures a Key Vault with logging linked to a storage account.
{"type": "microsoft.keyvault/vaults", "apiversion": "2019-09-01", "name": "[variables('keyvaultname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.managedidentity/userassignedidentities", "demoidentity')]"], "properties": {"enabledfordeployment": false, "enabledfordiskencryption": fa...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deploymentscripts", "apiversion": "2020-10-01", "name": "createanddeploycertificates", "location": "[parameters('location')]", "kind": "azurepowershell", "properties": {"forceupdatetag": "2", "azpowershellversion": "3.0", "scriptcontent": "# write the config to file\n$opensslconfig=@"\n[ r...
This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.
{"comments": "user-defined managed identity defined for the aks cluster. used to access the virtual network and other resources.", "type": "microsoft.managedidentity/userassignedidentities", "name": "[variables('aksclusteruserdefinedmanagedidentityname')]", "apiversion": "2018-11-30", "location": "[parameters('location...
This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.
{"comments": "user-defined managed identity defined for the aks cluster. used to access the virtual network and other resources.", "type": "microsoft.managedidentity/userassignedidentities", "name": "[variables('aksclusteruserdefinedmanagedidentityname')]", "apiversion": "2018-11-30", "location": "[parameters('location...
This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.
{"comments": "user-defined managed identity defined for the aks cluster. used to access the virtual network and other resources.", "type": "microsoft.managedidentity/userassignedidentities", "name": "[variables('aksclusteruserdefinedmanagedidentityname')]", "apiversion": "2018-11-30", "location": "[parameters('location...
Creates and optionally secures a Key Vault with logging linked to a storage account.
{"type": "microsoft.keyvault/vaults", "apiversion": "2019-09-01", "name": "[parameters('keyvaultname')]", "location": "[parameters('location')]", "dependson": ["[variables('applicationgatewayuserdefinedmanagedidentityid')]", "[variables('aadpodidentityuserdefinedmanagedidentityid')]"], "properties": {"accesspolicies": ...
A template for creating a new Azure Container Registry. Use this template as the framework for your custom deployment.
{"comments": "container registry for storing docker images", "name": "[parameters('acrname')]", "type": "microsoft.containerregistry/registries", "apiversion": "2019-12-01-preview", "location": "[parameters('location')]", "dependson": ["[variables('acrprivatednszoneid')]"], "tags": {"displayname": "container registry",...
This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth
{"condition": "[parameters('enabledeletelock')]", "type": "microsoft.authorization/locks", "apiversion": "2017-04-01", "scope": "[format('microsoft.network/routetables/{0}", parameters('routetablename'))]", "name": "[variables('lockname')]", "properties": {"level": "cannotdelete"}, "dependson": ["[resourceid('microsoft...
This template creates a data collection rule defining the data source (Syslog) and the destination workspace.
{"condition": "[parameters('enablediagnostics')]", "type": "microsoft.insights/diagnosticsettings", "apiversion": "2021-05-01-preview", "scope": "[format('microsoft.network/virtualnetworks/{0}", parameters('vnetname'))]", "name": "[variables('diagnosticsname')]", "properties": {"workspaceid": "[if(empty(parameters('log...
This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth
{"condition": "[parameters('enabledeletelock')]", "type": "microsoft.authorization/locks", "apiversion": "2017-04-01", "scope": "[format('microsoft.network/virtualnetworks/{0}", parameters('vnetname'))]", "name": "[variables('lockname')]", "properties": {"level": "cannotdelete"}, "dependson": ["[resourceid('microsoft.n...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"], "tags": {"displayname": "[variables('vmname')]"}, "properties": {"ha...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"], "tags": {"displayname": "[variables('vmname')]"}, "properties": {"ha...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"], "tags": {"displayname": "[variables('vmname')]"}, "properties": {"ha...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"comments": "availability set for the web servers", "type": "microsoft.compute/availabilitysets", "sku": {"name": "aligned"}, "name": "[variables('webavailabilitysetname')]", "apiversion": "2020-12-01", "location": "[parameters('location')]", "properties": {"platformupdatedomaincount": 5, "platformfaultdomaincount": 2...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"comments": "availability set for the web servers", "type": "microsoft.compute/availabilitysets", "sku": {"name": "aligned"}, "name": "[variables('webavailabilitysetname')]", "apiversion": "2020-12-01", "location": "[parameters('location')]", "properties": {"platformupdatedomaincount": 5, "platformfaultdomaincount": 2...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"comments": "availability set for the web servers", "type": "microsoft.compute/availabilitysets", "sku": {"name": "aligned"}, "name": "[variables('webavailabilitysetname')]", "apiversion": "2020-12-01", "location": "[parameters('location')]", "properties": {"platformupdatedomaincount": 5, "platformfaultdomaincount": 2...
Create a VM from a Windows Image with 4 Empty Data Disks
{"comments": "availability set for the web servers", "type": "microsoft.compute/availabilitysets", "sku": {"name": "aligned"}, "name": "[variables('webavailabilitysetname')]", "apiversion": "2020-12-01", "location": "[parameters('location')]", "properties": {"platformupdatedomaincount": 5, "platformfaultdomaincount": 2...
Create a VM from a Windows Image with 4 Empty Data Disks
{"comments": "availability set for the web servers", "type": "microsoft.compute/availabilitysets", "sku": {"name": "aligned"}, "name": "[variables('webavailabilitysetname')]", "apiversion": "2020-12-01", "location": "[parameters('location')]", "properties": {"platformupdatedomaincount": 5, "platformfaultdomaincount": 2...
Create a VM from a Windows Image with 4 Empty Data Disks
{"comments": "availability set for the web servers", "type": "microsoft.compute/availabilitysets", "sku": {"name": "aligned"}, "name": "[variables('webavailabilitysetname')]", "apiversion": "2020-12-01", "location": "[parameters('location')]", "properties": {"platformupdatedomaincount": 5, "platformfaultdomaincount": 2...