Description
stringlengths
19
200
IaC
stringlengths
128
8.16k
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storageaccounttype')]"}, "kind": "storagev2", "properties": {}}
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "apiversion": "2020-06-01", "name": "deployflowlogs", "resourcegroup": "networkwatcherrg", "dependson": ["[variables('storageaccountname')]"], "properties": {"mode": "incremental", "expressionevaluationoptions": {"scope": "inner"}, "template": {"$schema": "https://schema.mana...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2017-03-30", "type": "microsoft.compute/availabilitysets", "name": "as1", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 2}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2017-03-30", "type": "microsoft.compute/availabilitysets", "name": "as1", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 2}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "apiversion": "2017-06-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks/", parameters('vnetname'))]"], "sku": {"name": "[parameters('storageaccounttype')]"}, "kind": "stor...
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2017-03-30", "type": "microsoft.compute/availabilitysets", "name": "as1", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 2}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2017-03-30", "type": "microsoft.compute/availabilitysets", "name": "as1", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 2}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "apiversion": "2017-06-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks/", parameters('vnetname'))]"], "sku": {"name": "[parameters('storageaccounttype')]"}, "kind": "stor...
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('appserviceplanname')]", "location": "[parameters('location')]", "sku": {"name": "s1", "tier": "standard"}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storage", "properties": {}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storage", "properties": {}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "properties": {}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "properties": {}}
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"apiversion": "2020-06-01", "type": "microsoft.resources/deployments", "name": "associatensg", "resourcegroup": "[parameters('existingvirtualnetworkresourcegroupname')]", "dependson": ["[parameters('newnsgname')]"], "properties": {"mode": "incremental", "template": {"$schema": "https://schema.management.azure.com/sche...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", parameters('networkinterfacename'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize'...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", parameters('networkinterfacename'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize'...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"apiversion": "2020-06-01", "name": "deploy", "type": "microsoft.resources/deployments", "resourcegroup": "[parameters('virtualnetworkresourcegroupname')]", "dependson": ["new-nsg"], "properties": {"mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'), concat('nested/updatesubnet.json",...
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/publicipaddresses/{0}", parameters('publicipaddressname'))]", "name": "[variables('publicipdiagnosticsname')]", "properties": {"workspaceid": "[if(...
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/publicipaddresses/{0}", parameters('publicipaddressname'))]", "name": "[variables('publicipdiagnosticsname')]", "properties": {"workspaceid": "[if(...
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/publicipaddresses/{0}", parameters('publicipaddressname'))]", "name": "[variables('publiciplockname')]", "properties": {"level": "cannotdelete"}, "dependson": ["[re...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"comments": "linux web server", "name": "[parameters('vmname')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", concat(parameters('vmname'),"-nic'))]"], "properties": {"hardwareprofile":...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"comments": "linux web server", "name": "[parameters('vmname')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", concat(parameters('vmname'),"-nic'))]"], "properties": {"hardwareprofile":...
Create a VM from a Windows Image with 4 Empty Data Disks
{"comments": "linux web server", "name": "[parameters('vmname')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", concat(parameters('vmname'),"-nic'))]"], "properties": {"hardwareprofile":...
Create a VM from a Windows Image with 4 Empty Data Disks
{"comments": "linux web server", "name": "[parameters('vmname')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", concat(parameters('vmname'),"-nic'))]"], "properties": {"hardwareprofile":...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jump-srv", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", "netinterface-jump-srv')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "storageprofile": {...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jump-srv", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", "netinterface-jump-srv')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "storageprofile": {...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jump-srv", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", "netinterface-jump-srv')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "storageprofile": {...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "jump-srv", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", "netinterface-jump-srv')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "storageprofile": {...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2019-12-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
Create a VM from a Windows Image with 4 Empty Data Disks
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2019-12-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
Create a VM from a Windows Image with 4 Empty Data Disks
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2019-12-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat(parameters('projectname'),"-vm", copyindex(1), "/", "installwebserver')]", "location": "[parameters('location')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "mi...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat(parameters('projectname'),"-vm", copyindex(1), "/", "installwebserver')]", "location": "[parameters('location')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "mi...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat(parameters('projectname'),"-vm", copyindex(1), "/", "installwebserver')]", "location": "[parameters('location')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "mi...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat(parameters('projectname'),"-vm", copyindex(1), "/", "installwebserver')]", "location": "[parameters('location')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "mi...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat(parameters('projectname'),"-vm", copyindex(1), "/", "installwebserver')]", "location": "[parameters('location')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "mi...
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.
{"apiversion": "2019-08-01", "name": "[variables('hostingplanname')]", "type": "microsoft.web/serverfarms", "location": "[parameters('location')]", "tags": {"displayname": "hostingplan"}, "sku": {"name": "s1", "capacity": "1"}, "properties": {"name": "[variables('hostingplanname')]"}}
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.
{"apiversion": "2019-08-01", "name": "[variables('hostingplanname')]", "type": "microsoft.web/serverfarms", "location": "[parameters('location')]", "tags": {"displayname": "hostingplan"}, "sku": {"name": "s1", "capacity": "1"}, "properties": {"name": "[variables('hostingplanname')]"}}{"apiversion": "2019-08-01", "name"...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"apiversion": "2020-06-01", "name": "fetchipaddress", "type": "microsoft.resources/deployments", "dependson": ["[variables('applicationgatewayname')]"], "properties": {"mode": "incremental", "templatelink": {"contentversion": "1.0.0.0", "uri": "[uri(parameters('_artifactslocation'), concat('fetchipaddress.json", param...
This template provides a way to deploy an Azure database for MySQL with VNet integration.
{"apiversion": "2017-12-01", "location": "[parameters('location')]", "name": "[variables('servername')]", "properties": {"createmode": "default", "version": "[parameters('mysqlversion')]", "administratorlogin": "[parameters('administratorlogin')]", "administratorloginpassword": "[parameters('administratorloginpassword'...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetname')]", "apiversion": "2020-12-01", "location": "[parameters('location')]", "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 2}, "sku": {"name": "aligned"}}{"apiversion": "2020-12-01", "type": "microsoft.compu...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2016-04-30-preview", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloop", "count": "[variables('scalenumber')]"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", "nic...
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2016-04-30-preview", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloop", "count": "[variables('scalenumber')]"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", "nic...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-02-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storage", "properties": {}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "jumpbox", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-02-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storage", "properties": {}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"copy": {"name": "vm", "count": "[length(range(0, variables('numvms')))]"}, "type": "microsoft.compute/virtualmachines", "apiversion": "2021-07-01", "name": "[format('{0}{1}", variables('vmname'), range(0, variables('numvms'))[copyindex()])]", "location": "[parameters('location')]", "properties": {"hardwareprofile": {...
Create a VM from a Windows Image with 4 Empty Data Disks
{"copy": {"name": "vm", "count": "[length(range(0, variables('numvms')))]"}, "type": "microsoft.compute/virtualmachines", "apiversion": "2021-07-01", "name": "[format('{0}{1}", variables('vmname'), range(0, variables('numvms'))[copyindex()])]", "location": "[parameters('location')]", "properties": {"hardwareprofile": {...
Create a VM from a Windows Image with 4 Empty Data Disks
{"copy": {"name": "vm", "count": "[length(range(0, variables('numvms')))]"}, "type": "microsoft.compute/virtualmachines", "apiversion": "2021-07-01", "name": "[format('{0}{1}", variables('vmname'), range(0, variables('numvms'))[copyindex()])]", "location": "[parameters('location')]", "properties": {"hardwareprofile": {...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat('vm-r1","-",copyindex(1),"/","installwebserver')]", "location": "[parameters('location-r1')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "microsoft.compute", "t...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat('vm-r1","-",copyindex(1),"/","installwebserver')]", "location": "[parameters('location-r1')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "microsoft.compute", "t...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat('vm-r1","-",copyindex(1),"/","installwebserver')]", "location": "[parameters('location-r1')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "microsoft.compute", "t...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat('vm-r1","-",copyindex(1),"/","installwebserver')]", "location": "[parameters('location-r1')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "microsoft.compute", "t...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat('vm-r1","-",copyindex(1),"/","installwebserver')]", "location": "[parameters('location-r1')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "microsoft.compute", "t...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat('vm-r1","-",copyindex(1),"/","installwebserver')]", "location": "[parameters('location-r1')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "microsoft.compute", "t...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-06-01", "name": "[concat('vm-r1","-",copyindex(1),"/","installwebserver')]", "location": "[parameters('location-r1')]", "copy": {"name": "extensioncopy", "count": 3}, "dependson": ["vmcopy"], "properties": {"publisher": "microsoft.compute", "t...
This template creates a data collection rule defining the data source (Syslog) and the destination workspace.
{"name": "[parameters('appinsightsname')]", "type": "microsoft.insights/components", "apiversion": "2018-05-01-preview", "location": "[parameters('location')]", "kind": "web", "tags": {"name": "[parameters('appinsightsname')]", "resource": "[parameters('apimservicename')]", "service": "application insights"}, "properti...
This template provides an example of how to create API Management service and configure all sub-entities
{"type": "microsoft.apimanagement/service/loggers", "name": "[concat(parameters('apimservicename'), "/", parameters('appinsightsname'))]", "apiversion": "2019-12-01", "dependson": ["[variables('apimid')]"], "properties": {"loggertype": "applicationinsights", "description": "logger resources to apim", "credentials": {"i...
This template provides an example of how to create API Management service and configure all sub-entities
{"type": "microsoft.apimanagement/service/loggers", "name": "[concat(parameters('apimservicename'), "/", parameters('appinsightsname'))]", "apiversion": "2019-12-01", "dependson": ["[variables('apimid')]"], "properties": {"loggertype": "applicationinsights", "description": "logger resources to apim", "credentials": {"i...
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": "2016-09-01", "scope": "[format('microsoft.network/networkwatchers/{0}", parameters('networkwatchername'))]", "name": "[variables('lockname')]", "properties": {"level": "cannotdelete"}, "dependson": ["[resourceid('m...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2019-03-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2019-03-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
Create a VM from a Windows Image with 4 Empty Data Disks
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2019-03-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "apiversion": "2021-02-01", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storage", "properties": {}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
Create a VM from a Windows Image with 4 Empty Data Disks
{"name": "jumpbox", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('jumpboxnicname'))]"], "p...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "apiversion": "2021-02-01", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storage", "properties": {}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('nicname'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofi...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "apiversion": "2020-06-01", "name": "deployflowlogs", "resourcegroup": "[parameters('networkwatcherresourcegroup')]", "properties": {"expressionevaluationoptions": {"scope": "inner"}, "mode": "incremental", "parameters": {"flowlogname": {"value": "[parameters('flowlogname')]"...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"comments": "vm1", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vm1name')]", "location": "[variables('location1')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('nic1name'))]"], "properties": {"hardwareprofile": {"vmsize": "[variables('vm...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"comments": "vm1", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vm1name')]", "location": "[variables('location1')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('nic1name'))]"], "properties": {"hardwareprofile": {"vmsize": "[variables('vm...
Create a VM from a Windows Image with 4 Empty Data Disks
{"comments": "vm1", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vm1name')]", "location": "[variables('location1')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('nic1name'))]"], "properties": {"hardwareprofile": {"vmsize": "[variables('vm...
Create a VM from a Windows Image with 4 Empty Data Disks
{"comments": "vm1", "type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vm1name')]", "location": "[variables('location1')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('nic1name'))]"], "properties": {"hardwareprofile": {"vmsize": "[variables('vm...
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/networksecuritygroups/{0}", parameters('nsgname'))]", "name": "[variables('diagnosticsname')]", "properties": {"workspaceid": "[if(empty(parameters...
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/networksecuritygroups/{0}", parameters('nsgname'))]", "name": "[variables('lockname')]", "properties": {"level": "cannotdelete"}, "dependson": ["[resourceid('micros...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"apiversion": "2021-01-01", "type": "microsoft.storage/storageaccounts", "name": "[parameters('adlsstorageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_ragrs"}, "kind": "storagev2", "properties": {"networkacls": {"defaultaction": "[parameters('adlsstorageaccountnetworkaclsdefaultac...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"apiversion": "2021-01-01", "type": "microsoft.storage/storageaccounts", "name": "[parameters('adlsstorageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_ragrs"}, "kind": "storagev2", "properties": {"networkacls": {"defaultaction": "[parameters('adlsstorageaccountnetworkaclsdefaultac...
Create a VM from a Windows Image with 4 Empty Data Disks
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
Create a VM from a Windows Image with 4 Empty Data Disks
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
Create a VM from a Windows Image with 4 Empty Data Disks
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...
Create a VM from a Windows Image with 4 Empty Data Disks
{"condition": "[parameters('deploycustomdnsforwarder')]", "type": "microsoft.compute/availabilitysets", "comments": "thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[parameters('dnsavailabilitysetname')]", "apiversion": "2019-12-01", "locatio...