Description
stringlengths
21
168
IaC
stringlengths
158
8.06k
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 module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "apiversion": "2020-08-01-preview", "location": "[parameters('location')]", "sku": {"name": "[variables('storageaccounttype')]"}, "kind": "storagev2", "properties": {}}
Create a web app on Azure with Java 13 and Tomcat 9 enabled.
{"apiversion": "2020-06-01", "name": "[parameters('hostingplanname')]", "type": "microsoft.web/serverfarms", "location": "[parameters('location')]", "tags": {"displayname": "hostingplan"}, "sku": {"name": "[parameters('skuname')]", "capacity": "[parameters('skucapacity')]"}, "properties": {"name": "[parameters('hosting...
Establish connection to a VNET via an ExpressRoute circuit
{"name": "master-publicip", "type": "microsoft.network/publicipaddresses", "apiversion": "2019-11-01", "location": "[parameters('location')]", "tags": {"displayname": "publicipaddress"}, "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('jenkins-dns')]"}}}{"name": "ma...
Network Security Group with diagnostic logs
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[parameters('nsgname')]", "location": "[parameters('location')]", "properties": {"copy": [{"name": "securityrules", "count": "[length(parameters('securityrules'))]", "input": {"name": "[parameters('securityrules')[copyindex('securi...
This template creates a metric alert rule that monitors the CPU Percentage metric of a virtual machine using a dynamic threshold condition type.
{"name": "[parameters('alertname')]", "type": "microsoft.insights/metricalerts", "location": "global", "apiversion": "2018-03-01", "properties": {"description": "[parameters('alertdescription')]", "severity": "[parameters('alertseverity')]", "enabled": "[parameters('isenabled')]", "scopes": ["[parameters('resourceid')]...
Create an Azure Automation account and create a new Azure Monitor Log Analytics workspace if it doesn't exist, and then link them together.
{"type": "microsoft.automation/automationaccounts", "apiversion": "2021-04-01", "location": "[parameters('location')]", "name": "[parameters('automationaccountname')]", "tags": {"arotoolkitversion": "[variables('arotoolkitversion')]"}, "comments": "automation account", "properties": {"sku": {"name": "basic"}}}{"type": ...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2019-07-01", "name": "[variables('vmnames')[copyindex()]]", "location": "[parameters('location')]", "copy": {"name": "vmloop", "count": 3}, "dependson": ["nicloop"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"comput...
This template creates a disk, backup vault, backup policy, grants necessary permission and enables protection
{"type": "microsoft.dataprotection/backupvaults", "apiversion": "2021-01-01", "name": "[parameters('vaultname')]", "location": "[parameters('location')]", "identity": {"type": "systemassigned"}, "properties": {"storagesettings": [{"datastoretype": "vaultstore", "type": "[parameters('vaultstorageredundancy')]"}]}}{"type...
This template deploys a linux VM with an MSI that has access to a storage account in a different resource group.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2019-03-01", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces/", variables('networkinterfacename'))]"], "identity": {"type": "systemassigned"}, "properties": {"hardwarepr...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-06-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[parameters('dnsnameforpublicip')]"}}}{"c...
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2019-07-01", "type": "microsoft.compute/virtualmachinescalesets", "location": "[variables('location')]", "name": "[concat(variables('agentvmnameprefix'), "-vmss')]", "sku": {"capacity": "[variables('agentcount')]", "name": "[variables('agentvmsize')]", "tier": "standard"}, "tags": {"creationsource": "[c...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-11-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('dnsnameforpublicip')]"}}}{"apiversion": "2018-08-01", "...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[concat('mastervm", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloopmaster", "count": "[variables('numberofmasterinstances')]"}, "dependson": ["[resourceid('microsoft.resources/deployments/", "...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-07-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[parameters('dnslabelprefix')]"}}}{"apive...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2017-03-30", "type": "microsoft.compute/availabilitysets", "location": "[parameters('location')]", "name": "[parameters('gw-availabilityset')]", "properties": {"platformupdatedomaincount": 20, "platformfaultdomaincount": 2}, "sku": {"name": "aligned"}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/availabilitysets", "name": "[variables('avsetnameascs')]", "apiversion": "2016-04-30-preview", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 3, "platformupdatedomaincount": 20}}{"type": "microsoft.compute/availabilitysets", "na...
This template provides an example of how to create API Management service and configure all sub-entities
{"type": "microsoft.apimanagement/service/loggers", "apiversion": "2020-12-01", "name": "[format('{0}/{1}", variables('apimanagementservicename'), "appinsightslogger')]", "properties": {"loggertype": "applicationinsights", "credentials": {"instrumentationkey": "[reference(resourceid('microsoft.insights/components", for...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2019-07-01", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[variables('nicname')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[parameters('vmname')]", "ad...
Route table with routes
{"type": "microsoft.network/routetables", "apiversion": "2021-02-01", "name": "[parameters('routetablename')]", "location": "[parameters('location')]", "properties": {"copy": [{"name": "routes", "count": "[length(parameters('routes'))]", "input": {"name": "[parameters('routes')[copyindex('routes')].name]", "properties"...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "apiversion": "2019-10-01", "name": "[format('create-{0}", parameters('subscriptionalias'))]", "location": "[deployment().location]", "properties": {"expressionevaluationoptions": {"scope": "inner"}, "mode": "incremental", "parameters": {"billingaccount": {"value": "[paramete...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "idletimeoutinminutes": 4, "dnssettings": {"domainnamelabel": "[concat(parameters('dnsnameprefix...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"apiversion": "2021-04-01", "name": "[variables('nesteddeploymentnamevnet')]", "type": "microsoft.resources/deployments", "properties": {"hardwareprofile": {"vmsize": "[variables('vmsize')]"}, "mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'), concat('shared/", parameters('neworexis...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-11-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('vmnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"description": "allows ssh traffic", "protocol": "tcp", "sourceportrange": "22", "destinationportran...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "apiversion": "2016-01-01", "location": "[parameters('location')]", "sku": {"name": "[variables('storageaccounttype')]"}, "kind": "storage", "properties": {}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2020-12-01", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", variables('nicna...
A template for creating a new Azure Container Registry. Use this template as the framework for your custom deployment.
{"name": "[parameters('acrname')]", "type": "microsoft.containerregistry/registries", "apiversion": "2019-12-01-preview", "location": "[parameters('location')]", "comments": "container registry for storing docker images", "dependson": ["[variables('acrprivatednszoneid')]"], "tags": {"displayname": "container registry",...
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"}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networksecuritygroups", "name": "[concat(variables('nsgname'))]", "apiversion": "2020-05-01", "location": "[parameters('location')]", "condition": "[equals(length(parameters('subnetid')), 0)]", "properties": {"securityrules": "[variables('selectedsecurityrules')]"}}{"type": "microsoft.networ...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"apiversion": "2020-06-01", "name": "deploy-virus-attack-oms-resource", "type": "microsoft.resources/deployments", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('omstemplateuri')]"}, "parameters": {"omsworkspacename": {"value": "[variables('omsworkspacename')]"}, "omssolutionsname": {"value...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2017-06-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[variables('storageaccounttype')]"}, "kind": "storage", "properties": {}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2017-10-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(parameters('tigdnsprefix'),uniquestring(resourcegroup().id))...
This template takes a minimum amount of parameters and deploys a trusted launch capable Windows virtual machine, using the latest patched version.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "identity": {"type": "systemassigned"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", parameters('nicname'))]"], "properties": {"hardwareprofile": {"vms...
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 storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "name": "[variables('toolstorageaccountname')]", "apiversion": "2021-02-01", "location": "[parameters('location')]", "sku": {"name": "[variables('storageaccounttype')]"}, "kind": "storage", "properties": {}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat('zookprvm", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualzookeepermachineloop", "count": "[variables('numberofzookeeperinstances')]"}, "dependson": ["[resourceid('microsoft.resources/deployment...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipprefixes", "apiversion": "2021-03-01", "name": "[parameters('publicipprefixname')]", "location": "[parameters('location')]", "sku": {"name": "standard", "tier": "regional"}, "properties": {"prefixlength": "[parameters('publicipprefixlength')]", "publicipaddressversion": "ipv4"}}
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-04-01", "name": "[variables('supportlogstorageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storage", "tags": {"resourcetype": "service fabric", "clustername": "[parameters('clustername')]"}, "properti...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-04-01", "name": "[parameters('virtualnetwork_name')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('virtualnetwork_cidr')]"]}}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion"...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "name": "[parameters('newstorageaccountname')]", "apiversion": "2021-04-01", "location": "[parameters('location')]", "sku": {"name": "[variables('storageaccounttype')]"}, "kind": "storagev2"}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/availabilitysets", "name": "[variables('webavailsetname')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "comments": "this is the availability set for all web vms", "tags": {"displayname": "web avail set", "quickstartname": "[variables('quickstarttags').name]", "provi...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-07-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('apppublicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('dnslabelprefix')]"}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[parameters('virtualmachinename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces/", variables('networkinterfacename'))]"], "properties": {"hardwareprofile": {"vmsize": "[paramet...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-05-01", "type": "microsoft.network/networkinterfaces", "name": "[concat('nic", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "nicloop", "count": "[variables('numberofmasterinstances')]"}, "dependson": ["[resourceid('microsoft.resources/deployments/", "shared-resources')]"...
This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.
{"type": "microsoft.keyvault/vaults", "apiversion": "2019-09-01", "name": "[parameters('stackname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.web/sites",parameters('stackname'))]"], "properties": {"enablerbacauthorization": false, "enablesoftdelete": false, "enabledfordeployment": ...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "name": "network", "properties": {"expressionevaluationoptions": {"scope": "inner"}, "mode": "incremental", "parameters": {"location": {"value": "[parameters('location')]"}, "vnetipprefix": {"value": "[parameters('vnetipprefix')]"}, "containerinsta...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2019-12-01", "type": "microsoft.compute/proximityplacementgroups", "name": "[variables('ppg_name')]", "location": "[parameters('location')]"}
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')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-05-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[parameters('dnsnameforpublicip')]"}}}{"c...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networksecuritygroups", "name": "[variables('bwafnsgname')]", "apiversion": "2016-03-30", "location": "[parameters('location')]", "comments": " nsg for bwaf subnet", "tags": {"displayname": "bwaf nsg", "quickstartname": "[variables('quickstarttags').name]", "provider": "[variables('barracuda...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"name": "[parameters('vmname')]", "type": "microsoft.compute/virtualmachines", "apiversion": "2019-12-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces/", variables('networkinterfacename'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize'...
Creates a Key Vault with a list of secrets
{"type": "microsoft.keyvault/vaults", "apiversion": "2021-04-01-preview", "name": "[parameters('keyvaultname')]", "location": "[parameters('location')]", "properties": {"enabledfordeployment": "[parameters('enabledfordeployment')]", "enabledfortemplatedeployment": "[parameters('enabledfortemplatedeployment')]", "enable...
Deploy a Web App with diagnostics logging to Storage Account Blob Container enabled.
{"apiversion": "2020-12-01", "type": "microsoft.web/serverfarms", "name": "[parameters('appserviceplanname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('appserviceplanskuname')]"}}{"apiversion": "2020-12-01", "type": "microsoft.web/sites", "name": "[parameters('webappname')]", "location": "...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-06-01", "name": "[variables('diagnosticstorageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "tags": {"displayname": "[format('key vault {0} diagnostics storage account", parameters('keyvaul...
This template takes deploys a VM by retrieving the password securely from a Key Vault
{"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[variables('storageaccountname')]", "[variables('nicname')]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computer...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "name": "[variables('defaultstorageaccount').name]", "location": "[parameters('location')]", "apiversion": "2021-08-01", "sku": {"name": "[variables('defaultstorageaccount').type]"}, "kind": "storage", "properties": {}}
Creates an HDInsight cluster in an existing virtual network with a new SQL DB for Ambari+Hive Metastore. You must have an existing SQL Sever, storage account, and VNET.
{"name": "[parameters('clustername')]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["sqldbdeployment"], "properties": {"clusterversion": "[parameters('clusterversion')]", "ostype": "linux", "clusterdefinition": {"kind": "hadoop", "con...
This template configures WAF client IP restriction for Azure Front Door endpoint
{"apiversion": "2019-03-01", "type": "microsoft.network/frontdoorwebapplicationfirewallpolicies", "name": "[parameters('wafpolicyname')]", "location": "[variables('waflocation')]", "properties": {"policysettings": {"mode": "[parameters('wafmode')]", "enabledstate": "enabled"}, "customrules": {"rules": [{"name": "rule1"...
Establish connection to a VNET via an ExpressRoute circuit
{"condition": "[equals(parameters('vnetneworexisting'), "new')]", "apiversion": "2020-06-01", "type": "microsoft.network/virtualnetworks", "name": "[parameters('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["10.0.0.0/16"]}, "subnets": [{"name": "[par...
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmnamers')]", "location": "[parameters('location')]", "tags": {"displayname": "rsmachine"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('vhdstoragenamers'))]", "[resourceid('microsoft.storage/st...
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 unbounded Logic Apps timer jobs
{"name": "[parameters('createtimerjoblogicappname')]", "type": "microsoft.logic/workflows", "location": "[parameters('location')]", "tags": {"displayname": "logicapp"}, "apiversion": "2019-05-01", "dependson": ["[resourceid('microsoft.logic/workflows", parameters('timerjoblogicappname'))]"], "properties": {"state": "en...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetname')]", "apiversion": "2019-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"apiversion": "2019-12-01", "type": "microsoft.compu...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "name": "[concat(variables('storageaccountname'), copyindex())]", "apiversion": "2021-02-01", "location": "[parameters('location')]", "copy": {"name": "storageloop", "count": "[parameters('agentvmcount')]"}, "sku": {"name": "standard_lrs"}, "kind": "storage", "properties": ...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["10.0.0.0/16"]}, "subnets": [{"name": "[variables('subnetname')]", "properties": {"addressprefix": "10.0.2.0/...
This template adds and secures a custom domain to your Front Door with a customer-managed certificate.
{"type": "microsoft.network/frontdoors", "apiversion": "2020-01-01", "name": "[parameters('frontdoorname')]", "location": "global", "properties": {"enabledstate": "enabled", "frontendendpoints": [{"name": "[variables('frontendendpointdefaultname')]", "properties": {"hostname": "[variables('frontendendpointdefaulthostna...
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2019-12-01", "type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetname')]", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": "[variables('platformfaultdomaincount')]", "platformupdatedomaincount": "[variables('pla...
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": "default-allow-3389", "properties": {"priority": 1000, "access": "allow", "direction": "inbound", "destinat...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-05-01-preview", "type": "microsoft.network/networkinterfaces", "name": "[concat('niczoo", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "nicloop", "count": "[variables('numberofzookeeperinstances')]"}, "dependson": ["[resourceid('microsoft.resources/deployments/", "shared...
This template disables encryption on a running Windows VM Scale Set
{"type": "microsoft.compute/virtualmachinescalesets/extensions", "name": "[concat(parameters('vmssname'),"/", "azurediskencryption')]", "location": "[parameters('location')]", "apiversion": "2020-12-01", "properties": {"publisher": "microsoft.azure.security", "type": "azurediskencryption", "typehandlerversion": "2.2", ...
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2015-06-15", "type": "microsoft.compute/availabilitysets", "name": "[variables('ossavailabilitysetsettings').name]", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": "[variables('ossavailabilitysetsettings').faultdomaincount]", "platformupdat...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[variables('diagstorageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storageaccounttype')]"}, "kind": "storagev2"}
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"name": "mysql", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[uri(parameters('_artifactslocation'), concat('nested/mysql-replication.json", parameters('_artifactslocationsastoken')))]", "contentversion": "1.0.0.0"}, "parameters":...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces/", variables('networkinterfacename'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize'...
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2020-12-01", "type": "microsoft.compute/virtualmachines", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces", variables('nicna...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-11-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('vmnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"description": "allows ssh traffic", "protocol": "tcp", "sourceportrange": "22", "destinationportran...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-02-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefix')]"]}, "subnets": [{"name": "[variables('subnetname')]", "properties": {"addresspr...
Enable Azure Sentinel
{"name": "[variables('omssolutions').customsolution.solutionname]", "type": "microsoft.operationsmanagement/solutions", "apiversion": "2015-11-01-preview", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.operationalinsights/workspaces/", parameters('omsworkspacename'))]", "[resourceid('mic...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "[variables('publicipaddresstype')]", "dnssettings": {"domainnamelabel": "[parameters('dnsnameforpublicip')]"}}}{"c...
This template creates an Azure storage account and multiple file shares.
{"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 template deploys a Service Bus namespace, a topic, and a subscription.
{"apiversion": "2018-01-01-preview", "name": "[parameters('service_busnamespace_name')]", "type": "microsoft.servicebus/namespaces", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {}, "resources": [{"apiversion": "2017-04-01", "name": "[parameters('servicebustopicname')]", "type": "t...
Provision a Mobile App with a SQL Database
{"type": "microsoft.web/serverfarms", "apiversion": "2019-08-01", "name": "[variables('hostingplanname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('hostingplansettings').skuname]", "tier": "[parameters('hostingplansettings').tier]", "capacity": "[parameters('hostingplansettings').capacity]...
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')]"]}, "subnets": [{"name": "[variables('subnetname')]", "properties": {"addressprefix":...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-05-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('networksettings').virtualnetworkaddressprefix]"]}, "subnets": [{"name": "default", "properties":...
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": "2014-06-01", "name": "[variables('appserviceplanname')]", "type": "microsoft.web/serverfarms", "location": "[parameters('location')]", "properties": {"name": "[variables('appserviceplanname')]", "appservicetier": "[parameters('appservicetier')]", "workersize": "[parameters('appserviceworkersize')]", "nu...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"sku": {"name": "standard_lrs"}, "type": "microsoft.storage/storageaccounts", "location": "[parameters('location')]", "apiversion": "2021-04-01", "name": "[variables('storageaccountname')]"}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networksecuritygroups", "apiversion": "2019-07-01", "name": "[parameters('networksecuritygroup_name')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "rdp", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "3389", "sourcea...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachinescalesets", "apiversion": "2020-06-01", "name": "[parameters('vmssname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('diagnosticsstorageaccountname'))]", "[resourceid('microsoft.network/loadbalancers", var...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetaddressprefix')]"]}, "subnets": [{"name": "[variables('subnet1name')]", "properties": {"addressprefix"...
Establish connection to a VNET via an ExpressRoute circuit
{"name": "[variables('clustervnetname')]", "type": "microsoft.network/virtualnetworks", "location": "[parameters('location')]", "apiversion": "2020-07-01", "properties": {"addressspace": {"addressprefixes": ["[parameters('clustervnetaddressspace')]"]}, "subnets": [{"name": "[parameters('clustervnetsubnetname')]", "prop...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"name": "shared-resources", "type": "microsoft.resources/deployments", "apiversion": "2016-09-01", "comments": "azure resources that are shared within the infrastructure environment", "properties": {"mode": "incremental", "templatelink": {"uri": "[concat(parameters('_artifactslocation'),"/nested/", variables('sharedre...
Deploy Azure Sql Database Managed Instance (SQL MI) and JumpBox with SSMS inside new Virtual Network
{"type": "microsoft.sql/managedinstances", "apiversion": "2019-06-01-preview", "dependson": ["[parameters('virtualnetworkname')]"], "identity": {"type": "systemassigned"}, "location": "[parameters('location')]", "name": "[parameters('managedinstancename')]", "sku": {"name": "[parameters('skuname')]"}, "properties": {"a...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"name": "shared", "type": "microsoft.resources/deployments", "apiversion": "2019-05-10", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('sharedtemplateurl')]", "contentversion": "1.0.0.0"}, "parameters": {"networksettings": {"value": "[variables('networksettings')]"}, "location": {"value": "...
This template creates an Application Insights availability test along with a metric alert rule that monitors it.
{"name": "[variables('pingtestname')]", "type": "microsoft.insights/webtests", "apiversion": "2015-05-01", "location": "[parameters('location')]", "tags": {"[concat('hidden-link:", parameters('appinsightsresource'))]": "resource"}, "properties": {"name": "[variables('pingtestname')]", "description": "basic ping test", ...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"apiversion": "2019-06-01", "type": "microsoft.storage/storageaccounts", "name": "[variables('newstorageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[variables('storageaccounttype')]"}, "kind": "storagev2"}
This template creates a new Azure App Configuration store with one feature flag.
{"type": "microsoft.appconfiguration/configurationstores", "apiversion": "2020-07-01-preview", "name": "[parameters('configstorename')]", "location": "[parameters('location')]", "sku": {"name": "standard"}, "resources": [{"type": "keyvalues", "apiversion": "2020-07-01-preview", "name": "[concat('.appconfig.featureflag~...
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", parameters('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", variables('nicn...
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...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/availabilitysets", "comments": "availability set for creating a ha cluster, run the template multiple times to get multiple dns servers", "name": "[variables('asetname')]", "apiversion": "2019-12-01", "location": "[variables('location')]", "sku": {"name": "aligned"}, "properties": {"platform...
Establish connection to a VNET via an ExpressRoute circuit
{"name": "sqvnet", "type": "microsoft.network/virtualnetworks", "location": "[parameters('location')]", "apiversion": "2020-05-01", "dependson": ["[resourceid('microsoft.network/networksecuritygroups", "sqnsgapp')]"], "tags": {"displayname": "sqvnet"}, "properties": {"addressspace": {"addressprefixes": ["[variables('sq...