Description
stringlengths
21
168
IaC
stringlengths
158
8.06k
This template will create N number of VM's with managed disks, public IPs and network interfaces.
{"type": "microsoft.compute/availabilitysets", "apiversion": "2020-06-01", "name": "[parameters('availabilitysetname')]", "location": "[parameters('location')]", "properties": {"platformfaultdomaincount": "[variables('availabilitysetplatformfaultdomaincount')]", "platformupdatedomaincount": "[variables('availabilityset...
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
{"comments": "hub virtual network (vnet)", "type": "microsoft.network/virtualnetworks", "name": "[variables('hubvnetname')]", "apiversion": "2019-11-01", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('hubvnetprefix')]"]}, "enableddosprotection": false, "enablevm...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2020-12-01", "type": "microsoft.compute/virtualmachines", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", parameters('nicnam...
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/privateendpoints", "apiversion": "2020-07-01", "name": "[parameters('filestorageaccountprivateendpointname')]", "location": "[parameters('location')]", "dependson": ["[variables('filestorageaccountid')]", "[variables('fileshareid')]"], "properties": {"privatelinkserviceconnections": [{"name"...
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"name": "updatevm", "type": "microsoft.resources/deployments", "apiversion": "2015-01-01", "dependson": ["[resourceid('microsoft.compute/virtualmachines/extensions", parameters('vmname'), variables('extensionname'))]"], "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('updatevmurl')]", "conte...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-05-01", "type": "microsoft.network/virtualnetworks", "name": "[parameters('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('addressprefix')]"]}, "subnets": [{"name": "[parameters('subnetname')]", "properties": {"addres...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmsettings')[copyindex()].name]", "location": "[variables('vmsettings')[copyindex()].location]", "copy": {"name": "vmcopy", "count": 2}, "dependson": ["niccopy"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vms...
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2020-08-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic"}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipaddresses", "apiversion": "2021-02-01", "name": "[parameters('hostpublicipaddressname')]", "location": "[parameters('location')]", "sku": {"name": "basic"}, "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[tolower(format('{0}-{1}", parameters...
This template creates a VNet with multiple subnets and deploys a Ubuntu VM with multiple NICs
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", variables('nic1name'))]", "[resourceid('microsoft.network/networkinterfaces/", variables('ni...
This sample shows how to add custom resources to Resource Manager Templates using custom providers and logic apps.
{"type": "microsoft.customproviders/resourceproviders", "apiversion": "2018-09-01-preview", "name": "[parameters('customresourceprovidername')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.logic/workflows", parameters('logicappname'))]"], "properties": {"resourcetypes": [{"name": "cus...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-02-01", "name": "[variables('bootstorageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[variables('storageaccounttype')]"}, "kind": "storage", "tags": {"quickstartname": "jboss eap on rhel (clustered, multi-vm)"}}
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
{"apiversion": "2020-05-01", "type": "microsoft.network/publicipaddresses", "name": "[concat(variables('publicipname'), copyindex())]", "copy": {"name": "publiciploop", "count": "[variables('numberofinstances')]"}, "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic"}}{"apiversio...
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2019-07-01", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces/", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts/", variables('storag...
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": "[parameters('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
{"condition": "[parameters('protectwithlocks')]", "type": "microsoft.authorization/locks", "apiversion": "2017-04-01", "scope": "[format('microsoft.keyvault/vaults/{0}", parameters('keyvaultname'))]", "name": "keyvaultdonotdelete", "properties": {"level": "cannotdelete"}, "dependson": ["[resourceid('microsoft.keyvault/...
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2019-06-01", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs", "tier": "standard"}, "kind": "storagev2", "properties": {"accesstier": "hot"}}
Create a SQL Server Virtual Machine with performance optimized storage settings, using UltraSSD for SQL Log files
{"type": "microsoft.sqlvirtualmachine/sqlvirtualmachines", "apiversion": "2017-03-01-preview", "name": "[parameters('virtualmachinename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines", parameters('virtualmachinename'))]"], "properties": {"virtualmachineresourc...
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"apiversion": "2021-02-01", "type": "microsoft.storage/storageaccounts", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storageaccountskuname')]"}, "kind": "[parameters('storageaccountkind')]", "resources": [{"name": "[concat('default/", variables('b...
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "name": "[concat(variables('clustername'), "-dev')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", concat(variables('clustername'), "-dev", "-vmnic'))]"], "properties": {"hardwareprofil...
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...
Establish connection to a VNET via an ExpressRoute circuit
{"name": "[variables('networkinterfacename')]", "type": "microsoft.network/networkinterfaces", "apiversion": "2020-07-01", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups/", variables('networksecuritygroupname'))]", "[resourceid('microsoft.network/virtualnetwor...
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('dnsnameprefix')]"}}}
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": "standard_lrs"}, "kind": "storagev2", "properties": {}}
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "apiversion": "2021-01-01", "location": "[parameters('location')]", "sku": {"name": "[variables('internalstoragetype')]"}}