Description
stringlengths
19
200
IaC
stringlengths
128
8.16k
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", variables('nicname'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('virtualmachinesize')]"}, "osprofile": {"computername": "[variables('vmname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "[parameters('windowsosversion')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmname'),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",variables('nicname'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))).primaryendpoints.blob]"}}}, "resources": [{"type": "extensions", "apiversion": "2016-03-30", "name": "qliksensebootstrap", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines", variables('vmname'))]"], "tags": {"displayname": "qliksensebootstrap"}, "properties": {"publisher": "microsoft.compute", "type": "customscriptextension", "typehandlerversion": "1.9", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat('scripts/qs-bootstrap.ps1", parameters('_artifactslocationsastoken')))]", "[uri(parameters('_artifactslocation'), concat('scripts/qs-install.ps1", parameters('_artifactslocationsastoken')))]"]}, "protectedsettings": {"commandtoexecute": "[concat(\"powershell -noninteractive -executionpolicy bypass\", \" -file .\\scripts\\\", variables(\"scriptbootstrapfilename\'),\" "\", parameters(\"adminusername\'), \""\",\" "\", parameters(\"adminpassword\'), \""\",\" "\", parameters(\"qliksenseserviceaccount\'), \""\",\" "\", parameters(\"qliksenseserviceaccountpassword\'), \""\",\" "\", parameters(\"qliksenserepositorypassword\'), \""\",\" "\", parameters(\"qliksenseversion\'), \""\",\" "\", parameters(\"qliksenseserial\'), \""\",\" "\", parameters(\"qliksensecontrol\'), \""\",\" "\", parameters(\"qliksenseorganization\'), \""\",\" "\", parameters(\"qliksensename\'), \""\",\" "\", parameters(\"_artifactslocation\'), \""\')]"}}}]}
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "apiversion": "2016-01-01", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}, "kind": "storage", "properties": {}}
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/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", variables('nicname'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('virtualmachinesize')]"}, "osprofile": {"computername": "[variables('vmname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "[parameters('windowsosversion')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmname'),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",variables('nicname'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))).primaryendpoints.blob]"}}}, "resources": [{"type": "extensions", "apiversion": "2016-03-30", "name": "qliksensebootstrap", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines", variables('vmname'))]"], "tags": {"displayname": "qliksensebootstrap"}, "properties": {"publisher": "microsoft.compute", "type": "customscriptextension", "typehandlerversion": "1.9", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat('scripts/qs-bootstrap.ps1", parameters('_artifactslocationsastoken')))]", "[uri(parameters('_artifactslocation'), concat('scripts/qs-install.ps1", parameters('_artifactslocationsastoken')))]"]}, "protectedsettings": {"commandtoexecute": "[concat(\"powershell -noninteractive -executionpolicy bypass\", \" -file .\\scripts\\\", variables(\"scriptbootstrapfilename\'),\" "\", parameters(\"adminusername\'), \""\",\" "\", parameters(\"adminpassword\'), \""\",\" "\", parameters(\"qliksenseserviceaccount\'), \""\",\" "\", parameters(\"qliksenseserviceaccountpassword\'), \""\",\" "\", parameters(\"qliksenserepositorypassword\'), \""\",\" "\", parameters(\"qliksenseversion\'), \""\",\" "\", parameters(\"qliksenseserial\'), \""\",\" "\", parameters(\"qliksensecontrol\'), \""\",\" "\", parameters(\"qliksenseorganization\'), \""\",\" "\", parameters(\"qliksensename\'), \""\",\" "\", parameters(\"_artifactslocation\'), \""\')]"}}}]}
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": "standard_lrs"}, "kind": "storage", "properties": {}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2021-02-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"displayname": "[variables('networksecuritygroupname')]"}, "properties": {"securityrules": [{"name": "http", "properties": {"description": "http endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "80", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "httpauth", "properties": {"description": "http windows auth endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "4248", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1100, "direction": "inbound"}}, {"name": "https", "properties": {"description": "https endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "443", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1200, "direction": "inbound"}}, {"name": "httpsauth", "properties": {"description": "https windows auth endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "4244", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1300, "direction": "inbound"}}, {"name": "rdp", "properties": {"description": "rdp endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "3389", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 200, "direction": "inbound"}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2021-02-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"displayname": "[variables('networksecuritygroupname')]"}, "properties": {"securityrules": [{"name": "http", "properties": {"description": "http endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "80", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "httpauth", "properties": {"description": "http windows auth endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "4248", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1100, "direction": "inbound"}}, {"name": "https", "properties": {"description": "https endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "443", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1200, "direction": "inbound"}}, {"name": "httpsauth", "properties": {"description": "https windows auth endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "4244", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1300, "direction": "inbound"}}, {"name": "rdp", "properties": {"description": "rdp endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "3389", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 200, "direction": "inbound"}}]}}{"apiversion": "2016-03-30", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('dnslabelprefix')]"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2021-02-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"displayname": "[variables('networksecuritygroupname')]"}, "properties": {"securityrules": [{"name": "http", "properties": {"description": "http endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "80", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "httpauth", "properties": {"description": "http windows auth endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "4248", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1100, "direction": "inbound"}}, {"name": "https", "properties": {"description": "https endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "443", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1200, "direction": "inbound"}}, {"name": "httpsauth", "properties": {"description": "https windows auth endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "4244", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1300, "direction": "inbound"}}, {"name": "rdp", "properties": {"description": "rdp endpoint", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "3389", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 200, "direction": "inbound"}}]}}{"apiversion": "2016-03-30", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('dnslabelprefix')]"}}}{"apiversion": "2017-06-01", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups/", variables('networksecuritygroupname'))]"], "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefix')]"]}, "subnets": [{"name": "[variables('subnetname')]", "properties": {"addressprefix": "[variables('subnetprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups/", variables('networksecuritygroupname'))]"}}}]}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": "[variables('plantype')[variables('vnsplantype')].plan]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "storageprofile": {"osdisk": {"name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}, "imagereference": "[variables('vnsversion')[variables('vns3licensetype')].imagereference]"}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": "[variables('plantype')[variables('vnsplantype')].plan]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "storageprofile": {"osdisk": {"name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}, "imagereference": "[variables('vnsversion')[variables('vns3licensetype')].imagereference]"}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[concat(variables('vmname'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["nicloop"], "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "osprofile": {"computername": "[concat(variables('vmname'), copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": "[variables('os')[parameters('virtualmachineos')].image]", "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnic'), copyindex()))]"}]}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": "[variables('plantype')[variables('vnsplantype')].plan]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "storageprofile": {"osdisk": {"name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}, "imagereference": "[variables('vnsversion')[variables('vns3licensetype')].imagereference]"}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[concat(variables('vmname'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["nicloop"], "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "osprofile": {"computername": "[concat(variables('vmname'), copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": "[variables('os')[parameters('virtualmachineos')].image]", "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnic'), copyindex()))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-12-01", "name": "[concat(variables('vmname'), copyindex(), "/", variables('osscript'))]", "location": "[parameters('location')]", "copy": {"name": "customscriptloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines", variables('vns3controllername'))]", "virtualmachineloop"], "properties": "[variables('osscripttorun')[variables('osscript')].properties]"}
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-01-01", "name": "[variables('storageaccount')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs", "tier": "standard"}, "kind": "storage", "properties": {"networkacls": {"bypass": "azureservices", "defaultaction": "allow"}, "supportshttpstrafficonly": false, "encryption": {"services": {"file": {"enabled": true}, "blob": {"enabled": true}}, "keysource": "microsoft.storage"}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": "[variables('plantype')[variables('vnsplantype')].plan]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "storageprofile": {"osdisk": {"name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}, "imagereference": "[variables('vnsversion')[variables('vns3licensetype')].imagereference]"}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": "[variables('plantype')[variables('vnsplantype')].plan]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "storageprofile": {"osdisk": {"name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}, "imagereference": "[variables('vnsversion')[variables('vns3licensetype')].imagereference]"}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[concat(variables('vmname'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["nicloop"], "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "osprofile": {"computername": "[concat(variables('vmname'), copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": "[variables('os')[parameters('virtualmachineos')].image]", "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnic'), copyindex()))]"}]}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": "[variables('plantype')[variables('vnsplantype')].plan]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "storageprofile": {"osdisk": {"name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}, "imagereference": "[variables('vnsversion')[variables('vns3licensetype')].imagereference]"}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[concat(variables('vmname'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["nicloop"], "properties": {"hardwareprofile": {"vmsize": "[variables('vm')[parameters('instancesize')].vmsize]"}, "osprofile": {"computername": "[concat(variables('vmname'), copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": "[variables('os')[parameters('virtualmachineos')].image]", "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnic'), copyindex()))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-12-01", "name": "[concat(variables('vmname'), copyindex(), "/", variables('osscript'))]", "location": "[parameters('location')]", "copy": {"name": "customscriptloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines", variables('vns3controllername'))]", "virtualmachineloop"], "properties": "[variables('osscripttorun')[variables('osscript')].properties]"}
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "apiversion": "2021-01-01", "name": "[variables('storageaccount')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs", "tier": "standard"}, "kind": "storage", "properties": {"networkacls": {"bypass": "azureservices", "defaultaction": "allow"}, "supportshttpstrafficonly": false, "encryption": {"services": {"file": {"enabled": true}, "blob": {"enabled": true}}, "keysource": "microsoft.storage"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "[variables('publicsubnet')]", "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}, {"name": "[variables('privatesubnet')]", "properties": {"addressprefix": "[variables('vnetprivatesubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "[variables('publicsubnet')]", "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}, {"name": "[variables('privatesubnet')]", "properties": {"addressprefix": "[variables('vnetprivatesubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('publicsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "[variables('publicsubnet')]", "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}, {"name": "[variables('privatesubnet')]", "properties": {"addressprefix": "[variables('vnetprivatesubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('publicsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('privatesubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetprivatesubnet')]", "routetable": {"id": "[resourceid('microsoft.network/routetables", variables('routetablename'))]"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "[variables('publicsubnet')]", "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}, {"name": "[variables('privatesubnet')]", "properties": {"addressprefix": "[variables('vnetprivatesubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('publicsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('privatesubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetprivatesubnet')]", "routetable": {"id": "[resourceid('microsoft.network/routetables", variables('routetablename'))]"}}}{"type": "microsoft.network/routetables", "apiversion": "2020-11-01", "name": "[variables('routetablename')]", "location": "[parameters('location')]", "properties": {"disablebgproutepropagation": false, "routes": [{"name": "natgateway", "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "virtualappliance", "nexthopipaddress": "10.10.10.10", "hasbgpoverride": false}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "[variables('publicsubnet')]", "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}, {"name": "[variables('privatesubnet')]", "properties": {"addressprefix": "[variables('vnetprivatesubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('publicsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('privatesubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetprivatesubnet')]", "routetable": {"id": "[resourceid('microsoft.network/routetables", variables('routetablename'))]"}}}{"type": "microsoft.network/routetables", "apiversion": "2020-11-01", "name": "[variables('routetablename')]", "location": "[parameters('location')]", "properties": {"disablebgproutepropagation": false, "routes": [{"name": "natgateway", "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "virtualappliance", "nexthopipaddress": "10.10.10.10", "hasbgpoverride": false}}]}}{"type": "microsoft.network/routetables/routes", "apiversion": "2020-06-01", "name": "[concat(variables('routetablename'),"/","natgateway')]", "dependson": ["[resourceid('microsoft.network/routetables", variables('routetablename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "internet", "hasbgpoverride": false}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "[variables('publicsubnet')]", "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}, {"name": "[variables('privatesubnet')]", "properties": {"addressprefix": "[variables('vnetprivatesubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('publicsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('privatesubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetprivatesubnet')]", "routetable": {"id": "[resourceid('microsoft.network/routetables", variables('routetablename'))]"}}}{"type": "microsoft.network/routetables", "apiversion": "2020-11-01", "name": "[variables('routetablename')]", "location": "[parameters('location')]", "properties": {"disablebgproutepropagation": false, "routes": [{"name": "natgateway", "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "virtualappliance", "nexthopipaddress": "10.10.10.10", "hasbgpoverride": false}}]}}{"type": "microsoft.network/routetables/routes", "apiversion": "2020-06-01", "name": "[concat(variables('routetablename'),"/","natgateway')]", "dependson": ["[resourceid('microsoft.network/routetables", variables('routetablename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "internet", "hasbgpoverride": false}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[concat(variables('vmpip'), copyindex())]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "copy": {"name": "publiciploop", "count": "[parameters('numberofinstances')]"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "[variables('publicsubnet')]", "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}, {"name": "[variables('privatesubnet')]", "properties": {"addressprefix": "[variables('vnetprivatesubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('publicsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('privatesubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetprivatesubnet')]", "routetable": {"id": "[resourceid('microsoft.network/routetables", variables('routetablename'))]"}}}{"type": "microsoft.network/routetables", "apiversion": "2020-11-01", "name": "[variables('routetablename')]", "location": "[parameters('location')]", "properties": {"disablebgproutepropagation": false, "routes": [{"name": "natgateway", "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "virtualappliance", "nexthopipaddress": "10.10.10.10", "hasbgpoverride": false}}]}}{"type": "microsoft.network/routetables/routes", "apiversion": "2020-06-01", "name": "[concat(variables('routetablename'),"/","natgateway')]", "dependson": ["[resourceid('microsoft.network/routetables", variables('routetablename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "internet", "hasbgpoverride": false}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[concat(variables('vmpip'), copyindex())]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "copy": {"name": "publiciploop", "count": "[parameters('numberofinstances')]"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[concat(variables('vmnic'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "nicloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "securityloop", "publiciploop"], "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",concat(variables('vmpip'), copyindex()))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]"}}}], "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", concat(variables('vmnsg'), copyindex()))]"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('publicsubnet'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "[variables('publicsubnet')]", "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}, {"name": "[variables('privatesubnet')]", "properties": {"addressprefix": "[variables('vnetprivatesubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('publicsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetpublicsubnet')]"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('privatesubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "[variables('vnetprivatesubnet')]", "routetable": {"id": "[resourceid('microsoft.network/routetables", variables('routetablename'))]"}}}{"type": "microsoft.network/routetables", "apiversion": "2020-11-01", "name": "[variables('routetablename')]", "location": "[parameters('location')]", "properties": {"disablebgproutepropagation": false, "routes": [{"name": "natgateway", "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "virtualappliance", "nexthopipaddress": "10.10.10.10", "hasbgpoverride": false}}]}}{"type": "microsoft.network/routetables/routes", "apiversion": "2020-06-01", "name": "[concat(variables('routetablename'),"/","natgateway')]", "dependson": ["[resourceid('microsoft.network/routetables", variables('routetablename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"], "properties": {"addressprefix": "0.0.0.0/0", "nexthoptype": "internet", "hasbgpoverride": false}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[concat(variables('vmpip'), copyindex())]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "copy": {"name": "publiciploop", "count": "[parameters('numberofinstances')]"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[concat(variables('vmnic'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "nicloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]", "securityloop", "publiciploop"], "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",concat(variables('vmpip'), copyindex()))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('privatesubnet'))]"}}}], "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", concat(variables('vmnsg'), copyindex()))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[concat(variables('vmnsg'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "securityloop", "count": "[parameters('numberofinstances')]"}, "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "rdp", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "3389", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": {"name": "cohesive-vns3-4_11_x-free", "product": "vns3_4x_network_security", "publisher": "cohesive"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('instancesize')]"}, "storageprofile": {"imagereference": {"publisher": "cohesive", "offer": "vns3_4x_network_security", "sku": "cohesive-vns3-4_11_x-free", "version": "latest"}, "osdisk": {"ostype": "linux", "name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "caching": "readwrite", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[concat('ubuntuvm", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["nicloop"], "properties": {"hardwareprofile": {"vmsize": "[parameters('instancesize')]"}, "osprofile": {"computername": "[concat('ubuntuvm", copyindex())]", "adminusername": "[parameters('adminusernameubuntu')]", "adminpassword": "[parameters('adminpasswordubuntu')]"}, "storageprofile": {"imagereference": "[variables('ubuntu')]", "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat('nic-ubuntuvm", copyindex()))]"}]}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": {"name": "cohesive-vns3-4_11_x-free", "product": "vns3_4x_network_security", "publisher": "cohesive"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('instancesize')]"}, "storageprofile": {"imagereference": {"publisher": "cohesive", "offer": "vns3_4x_network_security", "sku": "cohesive-vns3-4_11_x-free", "version": "latest"}, "osdisk": {"ostype": "linux", "name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "caching": "readwrite", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[concat('ubuntuvm", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["nicloop"], "properties": {"hardwareprofile": {"vmsize": "[parameters('instancesize')]"}, "osprofile": {"computername": "[concat('ubuntuvm", copyindex())]", "adminusername": "[parameters('adminusernameubuntu')]", "adminpassword": "[parameters('adminpasswordubuntu')]"}, "storageprofile": {"imagereference": "[variables('ubuntu')]", "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat('nic-ubuntuvm", copyindex()))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-12-01", "name": "[concat('ubuntuvm", copyindex(), "/", variables('customscriptforlinux'))]", "location": "[parameters('location')]", "copy": {"name": "customscriploop", "count": "[parameters('numberofinstances')]"}, "dependson": ["virtualmachineloop"], "properties": {"publisher": "microsoft.azure.extensions", "type": "[variables('customscriptforlinux')]", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scriptfileuri')]"], "commandtoexecute": "[variables('customscriptcommandtoexecute')]"}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": {"name": "cohesive-vns3-4_11_x-free", "product": "vns3_4x_network_security", "publisher": "cohesive"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('instancesize')]"}, "storageprofile": {"imagereference": {"publisher": "cohesive", "offer": "vns3_4x_network_security", "sku": "cohesive-vns3-4_11_x-free", "version": "latest"}, "osdisk": {"ostype": "linux", "name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "caching": "readwrite", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": {"name": "cohesive-vns3-4_11_x-free", "product": "vns3_4x_network_security", "publisher": "cohesive"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('instancesize')]"}, "storageprofile": {"imagereference": {"publisher": "cohesive", "offer": "vns3_4x_network_security", "sku": "cohesive-vns3-4_11_x-free", "version": "latest"}, "osdisk": {"ostype": "linux", "name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "caching": "readwrite", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[concat('ubuntuvm", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["nicloop"], "properties": {"hardwareprofile": {"vmsize": "[parameters('instancesize')]"}, "osprofile": {"computername": "[concat('ubuntuvm", copyindex())]", "adminusername": "[parameters('adminusernameubuntu')]", "adminpassword": "[parameters('adminpasswordubuntu')]"}, "storageprofile": {"imagereference": "[variables('ubuntu')]", "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat('nic-ubuntuvm", copyindex()))]"}]}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[variables('vns3controllername')]", "location": "[parameters('location')]", "plan": {"name": "cohesive-vns3-4_11_x-free", "product": "vns3_4x_network_security", "publisher": "cohesive"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccount'))]"], "tags": {"name": "vns3 controller"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('instancesize')]"}, "storageprofile": {"imagereference": {"publisher": "cohesive", "offer": "vns3_4x_network_security", "sku": "cohesive-vns3-4_11_x-free", "version": "latest"}, "osdisk": {"ostype": "linux", "name": "[concat(variables('vns3controllername'), "-disc')]", "createoption": "fromimage", "caching": "readwrite", "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "disksizegb": 30}}, "osprofile": {"computername": "[variables('vns3controllername')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": {"disablepasswordauthentication": false, "provisionvmagent": true}, "allowextensionoperations": true}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccount'),"2021-01-01').primaryendpoints["blob"]]"}}}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[concat('ubuntuvm", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["nicloop"], "properties": {"hardwareprofile": {"vmsize": "[parameters('instancesize')]"}, "osprofile": {"computername": "[concat('ubuntuvm", copyindex())]", "adminusername": "[parameters('adminusernameubuntu')]", "adminpassword": "[parameters('adminpasswordubuntu')]"}, "storageprofile": {"imagereference": "[variables('ubuntu')]", "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat('nic-ubuntuvm", copyindex()))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2020-12-01", "name": "[concat('ubuntuvm", copyindex(), "/", variables('customscriptforlinux'))]", "location": "[parameters('location')]", "copy": {"name": "customscriploop", "count": "[parameters('numberofinstances')]"}, "dependson": ["virtualmachineloop"], "properties": {"publisher": "microsoft.azure.extensions", "type": "[variables('customscriptforlinux')]", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scriptfileuri')]"], "commandtoexecute": "[variables('customscriptcommandtoexecute')]"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "vns3_virtualsubnet", "properties": {"addressprefix": "[variables('vnetsubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "vns3_virtualsubnet", "properties": {"addressprefix": "[variables('vnetsubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-08-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('virtualsubnetname'))]", "properties": {"addressprefix": "[variables('vnetsubnet')]"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"]}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "vns3_virtualsubnet", "properties": {"addressprefix": "[variables('vnetsubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-08-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('virtualsubnetname'))]", "properties": {"addressprefix": "[variables('vnetsubnet')]"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"]}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[concat('pip-ubuntuvm", copyindex())]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "copy": {"name": "publiciploop", "count": "[parameters('numberofinstances')]"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "vns3_virtualsubnet", "properties": {"addressprefix": "[variables('vnetsubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-08-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('virtualsubnetname'))]", "properties": {"addressprefix": "[variables('vnetsubnet')]"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"]}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[concat('pip-ubuntuvm", copyindex())]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "copy": {"name": "publiciploop", "count": "[parameters('numberofinstances')]"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[concat('nic-ubuntuvm", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "nicloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]", "securityloop", "publiciploop"], "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",concat('pip-ubuntuvm", copyindex()))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]"}}}], "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", concat('nsg-ubuntuvm", copyindex()))]"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[variables('networkinterfacename')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"name": "vns3 controller"}, "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[variables('vnsstaticip')]", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses", variables('publicipaddressename'))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]"}, "privateipaddressversion": "ipv4"}}], "enableacceleratednetworking": false, "enableipforwarding": true, "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[parameters('location')]", "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "vns3_web_api_port", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "8000", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}, {"name": "vns3_udp_1194", "properties": {"protocol": "udp", "sourceportrange": "1194", "destinationportrange": "1194", "sourceaddressprefix": "virtualnetwork", "destinationaddressprefix": "virtualnetwork", "access": "allow", "priority": 200, "direction": "inbound"}}, {"name": "vns3_udp_500", "properties": {"protocol": "udp", "sourceportrange": "500", "destinationportrange": "500", "sourceaddressprefix": "internet", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}, {"name": "vns3_nat_t", "properties": {"protocol": "udp", "sourceportrange": "4500", "destinationportrange": "4500", "sourceaddressprefix": "1.2.3.4/32", "destinationaddressprefix": "*", "access": "allow", "priority": 400, "direction": "inbound"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[variables('publicipaddressename')]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-08-01", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[variables('vnetsubnet')]"]}, "subnets": [{"name": "vns3_virtualsubnet", "properties": {"addressprefix": "[variables('vnetsubnet')]"}}], "enableddosprotection": false, "enablevmprotection": false}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-08-01", "name": "[concat(variables('virtualnetworkname'), "/", variables('virtualsubnetname'))]", "properties": {"addressprefix": "[variables('vnetsubnet')]"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('virtualnetworkname'))]"]}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-08-01", "name": "[concat('pip-ubuntuvm", copyindex())]", "location": "[parameters('location')]", "sku": {"name": "basic", "tier": "regional"}, "copy": {"name": "publiciploop", "count": "[parameters('numberofinstances')]"}, "tags": {"name": "vns3 controller"}, "properties": {"publicipaddressversion": "ipv4", "publicipallocationmethod": "static", "idletimeoutinminutes": 4}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-08-01", "name": "[concat('nic-ubuntuvm", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "nicloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]", "securityloop", "publiciploop"], "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",concat('pip-ubuntuvm", copyindex()))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('virtualsubnetname'))]"}}}], "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", concat('nsg-ubuntuvm", copyindex()))]"}}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2020-08-01", "name": "[concat('nsg-ubuntuvm", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "securityloop", "count": "[parameters('numberofinstances')]"}, "tags": {"name": "vns3 controller"}, "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 300, "direction": "inbound"}}]}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[concat('nagiossrv", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[variables('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces/", concat('nic", copyindex()))]"], "properties": {"hardwareprofile": {"vmsize": "[variables('vmsize')]"}, "osprofile": {"computername": "[concat(variables('computernameprefix'), copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagepublisher')]", "offer": "[variables('imageoffer')]", "sku": "[variables('imagesku')]", "version": "latest"}, "osdisk": {"name": "[concat('nagiossrv", copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", concat('nic", copyindex()))]"}]}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[concat('nagiossrv", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[variables('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces/", concat('nic", copyindex()))]"], "properties": {"hardwareprofile": {"vmsize": "[variables('vmsize')]"}, "osprofile": {"computername": "[concat(variables('computernameprefix'), copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagepublisher')]", "offer": "[variables('imageoffer')]", "sku": "[variables('imagesku')]", "version": "latest"}, "osdisk": {"name": "[concat('nagiossrv", copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", concat('nic", copyindex()))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat('nagiossrv", copyindex(), "/installnagios')]", "apiversion": "2019-12-01", "location": "[parameters('location')]", "copy": {"name": "virtualmachineextensionsloop", "count": "[variables('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines/", concat('nagiossrv", copyindex()))]", "[resourceid('microsoft.network/networkinterfaces/", concat('nic", copyindex()))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat('nagios-core-install.sh", parameters('_artifactslocationsastoken')))]"]}, "protectedsettings": {"commandtoexecute": "[concat('bash nagios-core-install.sh -u ", parameters('adminusername'), " -p ", parameters('adminpassword'))]"}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[concat('nagiossrv", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[variables('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces/", concat('nic", copyindex()))]"], "properties": {"hardwareprofile": {"vmsize": "[variables('vmsize')]"}, "osprofile": {"computername": "[concat(variables('computernameprefix'), copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagepublisher')]", "offer": "[variables('imageoffer')]", "sku": "[variables('imagesku')]", "version": "latest"}, "osdisk": {"name": "[concat('nagiossrv", copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", concat('nic", copyindex()))]"}]}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[concat('nagiossrv", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[variables('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces/", concat('nic", copyindex()))]"], "properties": {"hardwareprofile": {"vmsize": "[variables('vmsize')]"}, "osprofile": {"computername": "[concat(variables('computernameprefix'), copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagepublisher')]", "offer": "[variables('imageoffer')]", "sku": "[variables('imagesku')]", "version": "latest"}, "osdisk": {"name": "[concat('nagiossrv", copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", concat('nic", copyindex()))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat('nagiossrv", copyindex(), "/installnagios')]", "apiversion": "2019-12-01", "location": "[parameters('location')]", "copy": {"name": "virtualmachineextensionsloop", "count": "[variables('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines/", concat('nagiossrv", copyindex()))]", "[resourceid('microsoft.network/networkinterfaces/", concat('nic", copyindex()))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[uri(parameters('_artifactslocation'), concat('nagios-core-install.sh", parameters('_artifactslocationsastoken')))]"]}, "protectedsettings": {"commandtoexecute": "[concat('bash nagios-core-install.sh -u ", parameters('adminusername'), " -p ", parameters('adminpassword'))]"}}}
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": {"addressprefix": "[parameters('subnetprefix')]"}}]}}{"apiversion": "2020-05-01", "type": "microsoft.network/publicipaddresses", "name": "[concat('publicip", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "publiciploop", "count": "[variables('numberofinstances')]"}, "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('domainname')]"}}}
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": {"addressprefix": "[parameters('subnetprefix')]"}}]}}{"apiversion": "2020-05-01", "type": "microsoft.network/publicipaddresses", "name": "[concat('publicip", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "publiciploop", "count": "[variables('numberofinstances')]"}, "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('domainname')]"}}}{"apiversion": "2020-05-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('securitygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"description": "allows ssh traffic", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}]}}
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": {"addressprefix": "[parameters('subnetprefix')]"}}]}}{"apiversion": "2020-05-01", "type": "microsoft.network/publicipaddresses", "name": "[concat('publicip", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "publiciploop", "count": "[variables('numberofinstances')]"}, "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('domainname')]"}}}{"apiversion": "2020-05-01", "type": "microsoft.network/networksecuritygroups", "name": "[variables('securitygroupname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"description": "allows ssh traffic", "protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 100, "direction": "inbound"}}]}}{"apiversion": "2020-05-01", "type": "microsoft.network/networkinterfaces", "name": "[concat('nic", copyindex())]", "location": "[parameters('location')]", "copy": {"name": "nicloop", "count": "[variables('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks/", parameters('virtualnetworkname'))]", "[resourceid('microsoft.network/publicipaddresses/", concat('publicip", copyindex()))]", "[resourceid('microsoft.network/networksecuritygroups/", variables('securitygroupname'))]"], "properties": {"networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('securitygroupname'))]"}, "ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",concat('publicip", copyindex()))]"}, "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('virtualnetworkname'), parameters('subnetname'))]"}}}]}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamemaster'), copyindex(), "-nic'))]", "[resourceid('microsoft.compute/availabilitysets/", variables('availabilitysetmasters'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetmasters'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizemaster')]"}, "osprofile": {"computername": "[concat(variables('vmnamemaster'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamemaster'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))]"}]}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamemaster'), copyindex(), "-nic'))]", "[resourceid('microsoft.compute/availabilitysets/", variables('availabilitysetmasters'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetmasters'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizemaster')]"}, "osprofile": {"computername": "[concat(variables('vmnamemaster'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamemaster'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))]"}]}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamenode'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopnode", "count": "[parameters('nodecount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamenode'), copyindex(), "-nic'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetnodes'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizenode')]"}, "osprofile": {"computername": "[concat(variables('vmnamenode'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamenode'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamenode'), copyindex(), "-nic'))]"}]}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamemaster'), copyindex(), "-nic'))]", "[resourceid('microsoft.compute/availabilitysets/", variables('availabilitysetmasters'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetmasters'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizemaster')]"}, "osprofile": {"computername": "[concat(variables('vmnamemaster'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamemaster'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))]"}]}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamenode'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopnode", "count": "[parameters('nodecount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamenode'), copyindex(), "-nic'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetnodes'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizenode')]"}, "osprofile": {"computername": "[concat(variables('vmnamenode'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamenode'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamenode'), copyindex(), "-nic'))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmnamemaster'), copyindex(), "/dockerextension')]", "apiversion": "2015-06-15", "location": "[parameters('location')]", "copy": {"name": "extensionloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines/", concat(variables('vmnamemaster'), copyindex()))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "dockerextension", "typehandlerversion": "1.0", "autoupgrademinorversion": true, "settings": {"compose": {"consul": {"image": "progrium/consul", "command": "[concat('-server -node master", copyindex(), " ", variables('consulserverargs')[copyindex()])]", "ports": ["8500:8500", "8300:8300", "8301:8301", "8301:8301/udp", "8302:8302", "8302:8302/udp", "8400:8400"], "volumes": ["/data/consul:/data"], "restart": "always"}, "swarm": {"image": "swarm", "command": "[concat('manage --replication --advertise ", reference(resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))).ipconfigurations[0].properties.privateipaddress, ":2375 --discovery-opt kv.path=docker/nodes consul://10.0.0.4:8500')]", "ports": ["2375:2375"], "links": ["consul"], "volumes": ["/etc/docker:/etc/docker"], "restart": "always"}}}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamemaster'), copyindex(), "-nic'))]", "[resourceid('microsoft.compute/availabilitysets/", variables('availabilitysetmasters'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetmasters'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizemaster')]"}, "osprofile": {"computername": "[concat(variables('vmnamemaster'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamemaster'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))]"}]}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamenode'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopnode", "count": "[parameters('nodecount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamenode'), copyindex(), "-nic'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetnodes'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizenode')]"}, "osprofile": {"computername": "[concat(variables('vmnamenode'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamenode'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamenode'), copyindex(), "-nic'))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmnamemaster'), copyindex(), "/dockerextension')]", "apiversion": "2015-06-15", "location": "[parameters('location')]", "copy": {"name": "extensionloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines/", concat(variables('vmnamemaster'), copyindex()))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "dockerextension", "typehandlerversion": "1.0", "autoupgrademinorversion": true, "settings": {"compose": {"consul": {"image": "progrium/consul", "command": "[concat('-server -node master", copyindex(), " ", variables('consulserverargs')[copyindex()])]", "ports": ["8500:8500", "8300:8300", "8301:8301", "8301:8301/udp", "8302:8302", "8302:8302/udp", "8400:8400"], "volumes": ["/data/consul:/data"], "restart": "always"}, "swarm": {"image": "swarm", "command": "[concat('manage --replication --advertise ", reference(resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))).ipconfigurations[0].properties.privateipaddress, ":2375 --discovery-opt kv.path=docker/nodes consul://10.0.0.4:8500')]", "ports": ["2375:2375"], "links": ["consul"], "volumes": ["/etc/docker:/etc/docker"], "restart": "always"}}}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmnamenode'), copyindex(), "/dockerextension')]", "apiversion": "2015-06-15", "location": "[parameters('location')]", "copy": {"name": "extensionloopnode", "count": "[parameters('nodecount')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines/", concat(variables('vmnamenode'), copyindex()))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "dockerextension", "typehandlerversion": "1.0", "autoupgrademinorversion": true, "settings": {"docker": {"port": "2375", "options": ["--cluster-store=consul://10.0.0.4:8500", "--cluster-advertise=eth0:2375"]}}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamemaster'), copyindex(), "-nic'))]", "[resourceid('microsoft.compute/availabilitysets/", variables('availabilitysetmasters'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetmasters'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizemaster')]"}, "osprofile": {"computername": "[concat(variables('vmnamemaster'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamemaster'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))]"}]}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamemaster'), copyindex(), "-nic'))]", "[resourceid('microsoft.compute/availabilitysets/", variables('availabilitysetmasters'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetmasters'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizemaster')]"}, "osprofile": {"computername": "[concat(variables('vmnamemaster'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamemaster'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))]"}]}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamenode'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopnode", "count": "[parameters('nodecount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamenode'), copyindex(), "-nic'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetnodes'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizenode')]"}, "osprofile": {"computername": "[concat(variables('vmnamenode'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamenode'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamenode'), copyindex(), "-nic'))]"}]}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamemaster'), copyindex(), "-nic'))]", "[resourceid('microsoft.compute/availabilitysets/", variables('availabilitysetmasters'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetmasters'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizemaster')]"}, "osprofile": {"computername": "[concat(variables('vmnamemaster'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamemaster'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))]"}]}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamenode'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopnode", "count": "[parameters('nodecount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamenode'), copyindex(), "-nic'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetnodes'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizenode')]"}, "osprofile": {"computername": "[concat(variables('vmnamenode'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamenode'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamenode'), copyindex(), "-nic'))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmnamemaster'), copyindex(), "/dockerextension')]", "apiversion": "2015-06-15", "location": "[parameters('location')]", "copy": {"name": "extensionloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines/", concat(variables('vmnamemaster'), copyindex()))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "dockerextension", "typehandlerversion": "1.0", "autoupgrademinorversion": true, "settings": {"compose": {"consul": {"image": "progrium/consul", "command": "[concat('-server -node master", copyindex(), " ", variables('consulserverargs')[copyindex()])]", "ports": ["8500:8500", "8300:8300", "8301:8301", "8301:8301/udp", "8302:8302", "8302:8302/udp", "8400:8400"], "volumes": ["/data/consul:/data"], "restart": "always"}, "swarm": {"image": "swarm", "command": "[concat('manage --replication --advertise ", reference(resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))).ipconfigurations[0].properties.privateipaddress, ":2375 --discovery-opt kv.path=docker/nodes consul://10.0.0.4:8500')]", "ports": ["2375:2375"], "links": ["consul"], "volumes": ["/etc/docker:/etc/docker"], "restart": "always"}}}}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetmasters')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"type": "microsoft.compute/availabilitysets", "name": "[variables('availabilitysetnodes')]", "apiversion": "2017-12-01", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamemaster'), copyindex(), "-nic'))]", "[resourceid('microsoft.compute/availabilitysets/", variables('availabilitysetmasters'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetmasters'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizemaster')]"}, "osprofile": {"computername": "[concat(variables('vmnamemaster'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamemaster'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))]"}]}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('vmnamenode'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "vmloopnode", "count": "[parameters('nodecount')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('newstorageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('vmnamenode'), copyindex(), "-nic'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetnodes'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsizenode')]"}, "osprofile": {"computername": "[concat(variables('vmnamenode'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "[variables('osimagepublisher')]", "offer": "[variables('osimageoffer')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"name": "[concat(variables('vmnamenode'), copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamenode'), copyindex(), "-nic'))]"}]}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmnamemaster'), copyindex(), "/dockerextension')]", "apiversion": "2015-06-15", "location": "[parameters('location')]", "copy": {"name": "extensionloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines/", concat(variables('vmnamemaster'), copyindex()))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "dockerextension", "typehandlerversion": "1.0", "autoupgrademinorversion": true, "settings": {"compose": {"consul": {"image": "progrium/consul", "command": "[concat('-server -node master", copyindex(), " ", variables('consulserverargs')[copyindex()])]", "ports": ["8500:8500", "8300:8300", "8301:8301", "8301:8301/udp", "8302:8302", "8302:8302/udp", "8400:8400"], "volumes": ["/data/consul:/data"], "restart": "always"}, "swarm": {"image": "swarm", "command": "[concat('manage --replication --advertise ", reference(resourceid('microsoft.network/networkinterfaces",concat(variables('vmnamemaster'), copyindex(), "-nic'))).ipconfigurations[0].properties.privateipaddress, ":2375 --discovery-opt kv.path=docker/nodes consul://10.0.0.4:8500')]", "ports": ["2375:2375"], "links": ["consul"], "volumes": ["/etc/docker:/etc/docker"], "restart": "always"}}}}}{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmnamenode'), copyindex(), "/dockerextension')]", "apiversion": "2015-06-15", "location": "[parameters('location')]", "copy": {"name": "extensionloopnode", "count": "[parameters('nodecount')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines/", concat(variables('vmnamenode'), copyindex()))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "dockerextension", "typehandlerversion": "1.0", "autoupgrademinorversion": true, "settings": {"docker": {"port": "2375", "options": ["--cluster-store=consul://10.0.0.4:8500", "--cluster-advertise=eth0:2375"]}}}}
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"type": "microsoft.storage/storageaccounts", "name": "[variables('newstorageaccountname')]", "apiversion": "2021-01-01", "location": "[parameters('location')]", "sku": {"name": "[variables('storageaccounttype')]"}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('managementpublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(variables('clusterfqdn'), "-manage')]"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('managementpublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(variables('clusterfqdn'), "-manage')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('nodespublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[variables('clusterfqdn')]"}}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('managementpublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(variables('clusterfqdn'), "-manage')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('nodespublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[variables('clusterfqdn')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]", "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"], "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefixmasters')]", "[variables('addressprefixnodes')]"]}, "subnets": [{"name": "[variables('subnetnamemasters')]", "properties": {"addressprefix": "[variables('subnetprefixmasters')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]"}}}, {"name": "[variables('subnetnamenodes')]", "properties": {"addressprefix": "[variables('subnetprefixnodes')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"}}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('mastersnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('managementpublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(variables('clusterfqdn'), "-manage')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('nodespublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[variables('clusterfqdn')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]", "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"], "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefixmasters')]", "[variables('addressprefixnodes')]"]}, "subnets": [{"name": "[variables('subnetnamemasters')]", "properties": {"addressprefix": "[variables('subnetprefixmasters')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]"}}}, {"name": "[variables('subnetnamenodes')]", "properties": {"addressprefix": "[variables('subnetprefixnodes')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"}}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('mastersnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('nodesnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allowany", "properties": {"description": "swarm node ports need to be configured on the load balancer to be reachable", "protocol": "*", "sourceportrange": "*", "destinationportrange": "*", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('managementpublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(variables('clusterfqdn'), "-manage')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('nodespublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[variables('clusterfqdn')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]", "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"], "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefixmasters')]", "[variables('addressprefixnodes')]"]}, "subnets": [{"name": "[variables('subnetnamemasters')]", "properties": {"addressprefix": "[variables('subnetprefixmasters')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]"}}}, {"name": "[variables('subnetnamenodes')]", "properties": {"addressprefix": "[variables('subnetprefixnodes')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"}}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('mastersnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('nodesnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allowany", "properties": {"description": "swarm node ports need to be configured on the load balancer to be reachable", "protocol": "*", "sourceportrange": "*", "destinationportrange": "*", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networkinterfaces", "name": "[concat(variables('vmnamemaster'), copyindex(), "-nic')]", "location": "[parameters('location')]", "copy": {"name": "nicloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('masterslbname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]", "[resourceid('microsoft.network/loadbalancers/inboundnatrules", variables('masterslbname'), concat('ssh-", variables('vmnamemaster'), copyindex()))]"], "properties": {"ipconfigurations": [{"name": "ipconfigmaster", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[concat('10.0.0.", copyindex(4))]", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets",variables('virtualnetworkname'),variables('subnetnamemasters'))]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools",variables('masterslbname'),variables('masterslbbackendpoolname'))]"}], "loadbalancerinboundnatrules": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatrules",variables('masterslbname'),concat('ssh-",variables('vmnamemaster'),copyindex()))]"}]}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('managementpublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(variables('clusterfqdn'), "-manage')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('nodespublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[variables('clusterfqdn')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]", "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"], "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefixmasters')]", "[variables('addressprefixnodes')]"]}, "subnets": [{"name": "[variables('subnetnamemasters')]", "properties": {"addressprefix": "[variables('subnetprefixmasters')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]"}}}, {"name": "[variables('subnetnamenodes')]", "properties": {"addressprefix": "[variables('subnetprefixnodes')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"}}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('mastersnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('nodesnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allowany", "properties": {"description": "swarm node ports need to be configured on the load balancer to be reachable", "protocol": "*", "sourceportrange": "*", "destinationportrange": "*", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networkinterfaces", "name": "[concat(variables('vmnamemaster'), copyindex(), "-nic')]", "location": "[parameters('location')]", "copy": {"name": "nicloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('masterslbname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]", "[resourceid('microsoft.network/loadbalancers/inboundnatrules", variables('masterslbname'), concat('ssh-", variables('vmnamemaster'), copyindex()))]"], "properties": {"ipconfigurations": [{"name": "ipconfigmaster", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[concat('10.0.0.", copyindex(4))]", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets",variables('virtualnetworkname'),variables('subnetnamemasters'))]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools",variables('masterslbname'),variables('masterslbbackendpoolname'))]"}], "loadbalancerinboundnatrules": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatrules",variables('masterslbname'),concat('ssh-",variables('vmnamemaster'),copyindex()))]"}]}}]}}{"apiversion": "2015-06-15", "name": "[variables('masterslbname')]", "type": "microsoft.network/loadbalancers", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('managementpublicipaddrname'))]"], "properties": {"frontendipconfigurations": [{"name": "[variables('masterslbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('managementpublicipaddrname'))]"}}}], "backendaddresspools": [{"name": "[variables('masterslbbackendpoolname')]"}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('managementpublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(variables('clusterfqdn'), "-manage')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('nodespublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[variables('clusterfqdn')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]", "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"], "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefixmasters')]", "[variables('addressprefixnodes')]"]}, "subnets": [{"name": "[variables('subnetnamemasters')]", "properties": {"addressprefix": "[variables('subnetprefixmasters')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]"}}}, {"name": "[variables('subnetnamenodes')]", "properties": {"addressprefix": "[variables('subnetprefixnodes')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"}}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('mastersnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('nodesnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allowany", "properties": {"description": "swarm node ports need to be configured on the load balancer to be reachable", "protocol": "*", "sourceportrange": "*", "destinationportrange": "*", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networkinterfaces", "name": "[concat(variables('vmnamemaster'), copyindex(), "-nic')]", "location": "[parameters('location')]", "copy": {"name": "nicloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('masterslbname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]", "[resourceid('microsoft.network/loadbalancers/inboundnatrules", variables('masterslbname'), concat('ssh-", variables('vmnamemaster'), copyindex()))]"], "properties": {"ipconfigurations": [{"name": "ipconfigmaster", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[concat('10.0.0.", copyindex(4))]", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets",variables('virtualnetworkname'),variables('subnetnamemasters'))]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools",variables('masterslbname'),variables('masterslbbackendpoolname'))]"}], "loadbalancerinboundnatrules": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatrules",variables('masterslbname'),concat('ssh-",variables('vmnamemaster'),copyindex()))]"}]}}]}}{"apiversion": "2015-06-15", "name": "[variables('masterslbname')]", "type": "microsoft.network/loadbalancers", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('managementpublicipaddrname'))]"], "properties": {"frontendipconfigurations": [{"name": "[variables('masterslbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('managementpublicipaddrname'))]"}}}], "backendaddresspools": [{"name": "[variables('masterslbbackendpoolname')]"}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/loadbalancers/inboundnatrules", "name": "[concat(variables('masterslbname'), "/", "ssh-", variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "lbnatloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('masterslbname'))]"], "properties": {"frontendipconfiguration": {"id": "[resourceid('microsoft.network/loadbalancers/frontendipconfigurations",variables('masterslbname'), variables('masterslbipconfigname'))]"}, "protocol": "tcp", "frontendport": "[copyindex(2200)]", "backendport": 22, "enablefloatingip": false}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('managementpublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(variables('clusterfqdn'), "-manage')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('nodespublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[variables('clusterfqdn')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]", "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"], "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefixmasters')]", "[variables('addressprefixnodes')]"]}, "subnets": [{"name": "[variables('subnetnamemasters')]", "properties": {"addressprefix": "[variables('subnetprefixmasters')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]"}}}, {"name": "[variables('subnetnamenodes')]", "properties": {"addressprefix": "[variables('subnetprefixnodes')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"}}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('mastersnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('nodesnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allowany", "properties": {"description": "swarm node ports need to be configured on the load balancer to be reachable", "protocol": "*", "sourceportrange": "*", "destinationportrange": "*", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networkinterfaces", "name": "[concat(variables('vmnamemaster'), copyindex(), "-nic')]", "location": "[parameters('location')]", "copy": {"name": "nicloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('masterslbname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]", "[resourceid('microsoft.network/loadbalancers/inboundnatrules", variables('masterslbname'), concat('ssh-", variables('vmnamemaster'), copyindex()))]"], "properties": {"ipconfigurations": [{"name": "ipconfigmaster", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[concat('10.0.0.", copyindex(4))]", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets",variables('virtualnetworkname'),variables('subnetnamemasters'))]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools",variables('masterslbname'),variables('masterslbbackendpoolname'))]"}], "loadbalancerinboundnatrules": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatrules",variables('masterslbname'),concat('ssh-",variables('vmnamemaster'),copyindex()))]"}]}}]}}{"apiversion": "2015-06-15", "name": "[variables('masterslbname')]", "type": "microsoft.network/loadbalancers", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('managementpublicipaddrname'))]"], "properties": {"frontendipconfigurations": [{"name": "[variables('masterslbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('managementpublicipaddrname'))]"}}}], "backendaddresspools": [{"name": "[variables('masterslbbackendpoolname')]"}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/loadbalancers/inboundnatrules", "name": "[concat(variables('masterslbname'), "/", "ssh-", variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "lbnatloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('masterslbname'))]"], "properties": {"frontendipconfiguration": {"id": "[resourceid('microsoft.network/loadbalancers/frontendipconfigurations",variables('masterslbname'), variables('masterslbipconfigname'))]"}, "protocol": "tcp", "frontendport": "[copyindex(2200)]", "backendport": 22, "enablefloatingip": false}}{"apiversion": "2015-06-15", "name": "[variables('nodeslbname')]", "type": "microsoft.network/loadbalancers", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('nodespublicipaddrname'))]"], "properties": {"frontendipconfigurations": [{"name": "loadbalancerfrontend", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('nodespublicipaddrname'))]"}}}], "backendaddresspools": [{"name": "[variables('nodeslbbackendpoolname')]"}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('managementpublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat(variables('clusterfqdn'), "-manage')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/publicipaddresses", "name": "[variables('nodespublicipaddrname')]", "location": "[parameters('location')]", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[variables('clusterfqdn')]"}}}{"apiversion": "2015-06-15", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]", "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"], "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefixmasters')]", "[variables('addressprefixnodes')]"]}, "subnets": [{"name": "[variables('subnetnamemasters')]", "properties": {"addressprefix": "[variables('subnetprefixmasters')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('mastersnsgname'))]"}}}, {"name": "[variables('subnetnamenodes')]", "properties": {"addressprefix": "[variables('subnetprefixnodes')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups",variables('nodesnsgname'))]"}}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('mastersnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "ssh", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "22", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networksecuritygroups", "name": "[variables('nodesnsgname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "allowany", "properties": {"description": "swarm node ports need to be configured on the load balancer to be reachable", "protocol": "*", "sourceportrange": "*", "destinationportrange": "*", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 1000, "direction": "inbound"}}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networkinterfaces", "name": "[concat(variables('vmnamemaster'), copyindex(), "-nic')]", "location": "[parameters('location')]", "copy": {"name": "nicloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('masterslbname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]", "[resourceid('microsoft.network/loadbalancers/inboundnatrules", variables('masterslbname'), concat('ssh-", variables('vmnamemaster'), copyindex()))]"], "properties": {"ipconfigurations": [{"name": "ipconfigmaster", "properties": {"privateipallocationmethod": "static", "privateipaddress": "[concat('10.0.0.", copyindex(4))]", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets",variables('virtualnetworkname'),variables('subnetnamemasters'))]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools",variables('masterslbname'),variables('masterslbbackendpoolname'))]"}], "loadbalancerinboundnatrules": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatrules",variables('masterslbname'),concat('ssh-",variables('vmnamemaster'),copyindex()))]"}]}}]}}{"apiversion": "2015-06-15", "name": "[variables('masterslbname')]", "type": "microsoft.network/loadbalancers", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('managementpublicipaddrname'))]"], "properties": {"frontendipconfigurations": [{"name": "[variables('masterslbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('managementpublicipaddrname'))]"}}}], "backendaddresspools": [{"name": "[variables('masterslbbackendpoolname')]"}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/loadbalancers/inboundnatrules", "name": "[concat(variables('masterslbname'), "/", "ssh-", variables('vmnamemaster'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "lbnatloopmaster", "count": "[variables('mastercount')]"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('masterslbname'))]"], "properties": {"frontendipconfiguration": {"id": "[resourceid('microsoft.network/loadbalancers/frontendipconfigurations",variables('masterslbname'), variables('masterslbipconfigname'))]"}, "protocol": "tcp", "frontendport": "[copyindex(2200)]", "backendport": 22, "enablefloatingip": false}}{"apiversion": "2015-06-15", "name": "[variables('nodeslbname')]", "type": "microsoft.network/loadbalancers", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('nodespublicipaddrname'))]"], "properties": {"frontendipconfigurations": [{"name": "loadbalancerfrontend", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('nodespublicipaddrname'))]"}}}], "backendaddresspools": [{"name": "[variables('nodeslbbackendpoolname')]"}]}}{"apiversion": "2015-06-15", "type": "microsoft.network/networkinterfaces", "name": "[concat(variables('vmnamenode'),copyindex(), "-nic')]", "location": "[parameters('location')]", "copy": {"name": "nicloopnode", "count": "[parameters('nodecount')]"}, "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('nodeslbname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]"], "properties": {"ipconfigurations": [{"name": "ipconfignode", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets",variables('virtualnetworkname'),variables('subnetnamenodes'))]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools",variables('nodeslbname'), variables('nodeslbbackendpoolname'))]"}]}}]}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"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": "[concat('acsengine-", variables('agentvmnameprefix'), "-vmss')]"}, "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('masterpublicipaddressname'))]", "[variables('virtualnetworkname')]", "[resourceid('microsoft.network/loadbalancers", variables('agentlbname'))]"], "properties": {"upgradepolicy": {"mode": "automatic"}, "virtualmachineprofile": {"networkprofile": {"networkinterfaceconfigurations": [{"name": "nic", "properties": {"ipconfigurations": [{"name": "nicipconfig", "properties": {"loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}], "subnet": {"id": "[variables('agentvnetsubnetid')]"}}}], "primary": true}}]}, "osprofile": {"adminusername": "[variables('adminusername')]", "computernameprefix": "[variables('agentvmnameprefix')]", "customdata": "[base64(concat(\"#cloud-config\n\nwrite_files:\n - encoding: gzip\n content: !!binary |\n h4siackuqlkaa81zbxpbnhl+zl+xptw1nyaipdsxoweug8dwlp6rly9kd24uawoihczwfkeqogsfq/9+u3ihsfmk3tazowuskuac++wunt0fs/ndoeqycmtkxpn2/vzp24ejky2t6ylnmfywfaqniubqzzi8fbcecvxmegljjhvluwlqwmes0lqskuwaijgdiyxnsqjgamciuuf55rzxrwhj9vbl/smtiudyfzhdm6x+gkge5aqcw8/j0usaj6hzrugrwqk0io0i3ljovciy34uz4t5maspjx/2jf/ugn476p+f9ye/tz73b8kr/1vxbzxan2flrcngkc5azktcm1egchg4veooj/uxzrbdx317agfnb793jv3gk40benqygf4fhxwmcflh0dv9zoehddnv0+opsqxgxj2co8nnpw6pbyfnf5eae37xcem8ph73h5duzhq3/t6x38+nz4wmvezurumui6opglk/f4kpx2icniwg/g+qx7mqw+ezdr63g77983puglz983h/wcd+2w12aa5fumftxr5y9/8xod3ntce51rhenfjk6gebfix5d4jzn4+s2fdgk12tejblucbjheslxos6jzqdk94ed64adg8wlffscnh16sk5x5vh8uxpwr8sa4dvy3t/irs2y6vrk8k7iitptg/c4oiytsmtd/+i/z1wtrh6zt+/dewa7yf5p+mxmfda/el/a5/ecpwpy123j0fjkkcbp4b7dxc27fa2xwggaxtxrox/gfb5mrzrcrknzqujz5lqjbnzcyrg+qomfepdp0ijf9bgqzvqngxf7cyzmwojzdbuwwuymqriv3aquawvzyeo/qiwyyczgylcyo5yzg30/tvrfppzpoe1rxjhxpieyrgmctfwgcgl4o7pmkkfyobcrmenczjnfesekcpmwa2zwu00uddylqxyx8gojriydneurzvmtotnahad0bjd8v0fiwwqcpufp1nna6ch0luwfj9fya6m8932baq8qdseeluhtmmdstlvm1/mrdls4vcaluok5v0weafmxp5jxx9oody5a6nntpjrfai9gjcirs1xs93aaqtpfcqxs4ro1vevqwzx1eq0va89mntbajqdaj+faa37jfpupl437tty83jwftsj0szu8hrmfjs+g24rtom24ajujncppeqtqhopgioqqcimq8qfe1hhinkzzngxry8voizfdin0c0lozivbzvweebsjqzg6tp9pa5qmx8cpeystyuwaxzrdqfvrag2dbeqxhu+2xehzubzohs8ziolsza0wul8nkyvdncczq26zzwxcslkiictfg2vd0zlz0viika+7btoxihhbmu4gmsn+cmadslp3vl2fyfk08dthjvc3ftndkdhxbaty8pdyv++addqkydtg9izmcgpnzevio+tgn7tw0zkq88ytizdgz7hpsh+guu+ttbmvreqyhnrevxsjejoavavicrowiqm8xfe2tqf2bpvkgsylhkcbcgomsuiauwxilklzwwbsec5ahezgvspcywk69paqr7bqxfbgancbavvseaaddtcewklk+cpg10c/vquvu0vtn/cfygkmeboe3gpdhzzocfoo5z/mk5k0iyk6l/nb4bgbx/wtg10llr8u2r7sgi+g3jfqijswisgatdsmdisx5ypnkescxwspyhdy2hwzsxmbodk4ku1pkvxk7vsipu7rsebg0ejm36xuwu67gw7dcne+iczh8h9thtdq5weytskww6bgw8q59abaasxzyl2iju964lnor3rfsy05ydtaan41t7b1erdar1u2wymbiq0ajdqo1mqm/alyqipbygra/2hrxtg5vyfyakr2yx++exerfxkm3/bd4ruxxhstd7jgxkxluxhsoks9yqtur/9ftv7e5jyp7ntc0yl9wdnc2f8ge7xu1jctxhkfrdr1i2kiu7dcdlarjfep07dhqlo2o1hlawcbgmwzilwawon4vgnuvfnofsverfdi1zqueiy7r4fb4hhz9gbp8zmlbqojemmniwhn+e7ivsxhd/leupnqsagucyfouxa3puv62n4fr5yljeawjy37bjyxbfm/swedg6am731qk4znchogjmjprqax7zny/tu4abx9e7osgtb4irthtmpbu7dbselmowupvwwxwvmgy+t0auiwiksjsontvrjamr4pcqso37drtrufooq8mqw1mvs0c6+y18bti88rlfn3s2h5yec/mhexi22jbjsq9q7zqwr9gqlxwjdheox3cbbn7dljnwzfhr+dgthhag+/ctq7bvu1g5it+xp/sme8rseoudh3nlenzkektdqdi7bxnz5sd2lxhif2nlxxug5qe08cf080ql6vraff3blkhwttkosihevjp/nzmzs/y8suc/ap8plnyly6pu/fjnkxtsljrq9qrafdkytxavinq8kv7/1fmvvhlsf01ntmdgkzs+ogl32f9inebjbavo68jtq3tgk8e+lwftm6s6izqi/eyuubfm+zpvkz5mlnkrfk/a3sa8gvncaf15o54m9jfksctylbr8eanodek4jpk9i0ltj/xg5eqsqqczqicane2uq46b75vw/fmy4kxs+wc6jze0u4krbpifjlxx+enmdwtkvci/pgp+nak6zhm50lcdh5j2r32i1og1zusmrgrxjnojru4lsefoohaqili4dkkvqpkpmjdffs+zbu4utnnes+dofqxcp74h9dolc7tgqaa\n path: /opt/azure/containers/configure-swarmmode-cluster.sh\n permissions: "0744"\n\n\",variables(\"agentruncmdfile\'),variables(\"agentruncmd\')))]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"keydata": "[parameters('sshrsapublickey')]", "path": "[variables('sshkeypath')]"}]}}}, "storageprofile": {"imagereference": {"offer": "[variables('osimageoffer')]", "publisher": "[variables('osimagepublisher')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"caching": "readwrite", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "[variables('agentdisktype')]"}}}}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"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": "[concat('acsengine-", variables('agentvmnameprefix'), "-vmss')]"}, "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('masterpublicipaddressname'))]", "[variables('virtualnetworkname')]", "[resourceid('microsoft.network/loadbalancers", variables('agentlbname'))]"], "properties": {"upgradepolicy": {"mode": "automatic"}, "virtualmachineprofile": {"networkprofile": {"networkinterfaceconfigurations": [{"name": "nic", "properties": {"ipconfigurations": [{"name": "nicipconfig", "properties": {"loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}], "subnet": {"id": "[variables('agentvnetsubnetid')]"}}}], "primary": true}}]}, "osprofile": {"adminusername": "[variables('adminusername')]", "computernameprefix": "[variables('agentvmnameprefix')]", "customdata": "[base64(concat(\"#cloud-config\n\nwrite_files:\n - encoding: gzip\n content: !!binary |\n h4siackuqlkaa81zbxpbnhl+zl+xptw1nyaipdsxoweug8dwlp6rly9kd24uawoihczwfkeqogsfq/9+u3ihsfmk3tazowuskuac++wunt0fs/ndoeqycmtkxpn2/vzp24ejky2t6ylnmfywfaqniubqzzi8fbcecvxmegljjhvluwlqwmes0lqskuwaijgdiyxnsqjgamciuuf55rzxrwhj9vbl/smtiudyfzhdm6x+gkge5aqcw8/j0usaj6hzrugrwqk0io0i3ljovciy34uz4t5maspjx/2jf/ugn476p+f9ye/tz73b8kr/1vxbzxan2flrcngkc5azktcm1egchg4veooj/uxzrbdx317agfnb793jv3gk40benqygf4fhxwmcflh0dv9zoehddnv0+opsqxgxj2co8nnpw6pbyfnf5eae37xcem8ph73h5duzhq3/t6x38+nz4wmvezurumui6opglk/f4kpx2icniwg/g+qx7mqw+ezdr63g77983puglz983h/wcd+2w12aa5fumftxr5y9/8xod3ntce51rhenfjk6gebfix5d4jzn4+s2fdgk12tejblucbjheslxos6jzqdk94ed64adg8wlffscnh16sk5x5vh8uxpwr8sa4dvy3t/irs2y6vrk8k7iitptg/c4oiytsmtd/+i/z1wtrh6zt+/dewa7yf5p+mxmfda/el/a5/ecpwpy123j0fjkkcbp4b7dxc27fa2xwggaxtxrox/gfb5mrzrcrknzqujz5lqjbnzcyrg+qomfepdp0ijf9bgqzvqngxf7cyzmwojzdbuwwuymqriv3aquawvzyeo/qiwyyczgylcyo5yzg30/tvrfppzpoe1rxjhxpieyrgmctfwgcgl4o7pmkkfyobcrmenczjnfesekcpmwa2zwu00uddylqxyx8gojriydneurzvmtotnahad0bjd8v0fiwwqcpufp1nna6ch0luwfj9fya6m8932baq8qdseeluhtmmdstlvm1/mrdls4vcaluok5v0weafmxp5jxx9oody5a6nntpjrfai9gjcirs1xs93aaqtpfcqxs4ro1vevqwzx1eq0va89mntbajqdaj+faa37jfpupl437tty83jwftsj0szu8hrmfjs+g24rtom24ajujncppeqtqhopgioqqcimq8qfe1hhinkzzngxry8voizfdin0c0lozivbzvweebsjqzg6tp9pa5qmx8cpeystyuwaxzrdqfvrag2dbeqxhu+2xehzubzohs8ziolsza0wul8nkyvdncczq26zzwxcslkiictfg2vd0zlz0viika+7btoxihhbmu4gmsn+cmadslp3vl2fyfk08dthjvc3ftndkdhxbaty8pdyv++addqkydtg9izmcgpnzevio+tgn7tw0zkq88ytizdgz7hpsh+guu+ttbmvreqyhnrevxsjejoavavicrowiqm8xfe2tqf2bpvkgsylhkcbcgomsuiauwxilklzwwbsec5ahezgvspcywk69paqr7bqxfbgancbavvseaaddtcewklk+cpg10c/vquvu0vtn/cfygkmeboe3gpdhzzocfoo5z/mk5k0iyk6l/nb4bgbx/wtg10llr8u2r7sgi+g3jfqijswisgatdsmdisx5ypnkescxwspyhdy2hwzsxmbodk4ku1pkvxk7vsipu7rsebg0ejm36xuwu67gw7dcne+iczh8h9thtdq5weytskww6bgw8q59abaasxzyl2iju964lnor3rfsy05ydtaan41t7b1erdar1u2wymbiq0ajdqo1mqm/alyqipbygra/2hrxtg5vyfyakr2yx++exerfxkm3/bd4ruxxhstd7jgxkxluxhsoks9yqtur/9ftv7e5jyp7ntc0yl9wdnc2f8ge7xu1jctxhkfrdr1i2kiu7dcdlarjfep07dhqlo2o1hlawcbgmwzilwawon4vgnuvfnofsverfdi1zqueiy7r4fb4hhz9gbp8zmlbqojemmniwhn+e7ivsxhd/leupnqsagucyfouxa3puv62n4fr5yljeawjy37bjyxbfm/swedg6am731qk4znchogjmjprqax7zny/tu4abx9e7osgtb4irthtmpbu7dbselmowupvwwxwvmgy+t0auiwiksjsontvrjamr4pcqso37drtrufooq8mqw1mvs0c6+y18bti88rlfn3s2h5yec/mhexi22jbjsq9q7zqwr9gqlxwjdheox3cbbn7dljnwzfhr+dgthhag+/ctq7bvu1g5it+xp/sme8rseoudh3nlenzkektdqdi7bxnz5sd2lxhif2nlxxug5qe08cf080ql6vraff3blkhwttkosihevjp/nzmzs/y8suc/ap8plnyly6pu/fjnkxtsljrq9qrafdkytxavinq8kv7/1fmvvhlsf01ntmdgkzs+ogl32f9inebjbavo68jtq3tgk8e+lwftm6s6izqi/eyuubfm+zpvkz5mlnkrfk/a3sa8gvncaf15o54m9jfksctylbr8eanodek4jpk9i0ltj/xg5eqsqqczqicane2uq46b75vw/fmy4kxs+wc6jze0u4krbpifjlxx+enmdwtkvci/pgp+nak6zhm50lcdh5j2r32i1og1zusmrgrxjnojru4lsefoohaqili4dkkvqpkpmjdffs+zbu4utnnes+dofqxcp74h9dolc7tgqaa\n path: /opt/azure/containers/configure-swarmmode-cluster.sh\n permissions: "0744"\n\n\",variables(\"agentruncmdfile\'),variables(\"agentruncmd\')))]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"keydata": "[parameters('sshrsapublickey')]", "path": "[variables('sshkeypath')]"}]}}}, "storageprofile": {"imagereference": {"offer": "[variables('osimageoffer')]", "publisher": "[variables('osimagepublisher')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"caching": "readwrite", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "[variables('agentdisktype')]"}}}}}}{"apiversion": "2019-07-01", "type": "microsoft.compute/availabilitysets", "location": "[variables('location')]", "name": "[variables('masteravailabilityset')]", "properties": {"platformupdatedomaincount": 20, "platformfaultdomaincount": 2}, "sku": {"name": "aligned"}}
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": "[concat('acsengine-", variables('agentvmnameprefix'), "-vmss')]"}, "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('masterpublicipaddressname'))]", "[variables('virtualnetworkname')]", "[resourceid('microsoft.network/loadbalancers", variables('agentlbname'))]"], "properties": {"upgradepolicy": {"mode": "automatic"}, "virtualmachineprofile": {"networkprofile": {"networkinterfaceconfigurations": [{"name": "nic", "properties": {"ipconfigurations": [{"name": "nicipconfig", "properties": {"loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}], "subnet": {"id": "[variables('agentvnetsubnetid')]"}}}], "primary": true}}]}, "osprofile": {"adminusername": "[variables('adminusername')]", "computernameprefix": "[variables('agentvmnameprefix')]", "customdata": "[base64(concat(\"#cloud-config\n\nwrite_files:\n - encoding: gzip\n content: !!binary |\n h4siackuqlkaa81zbxpbnhl+zl+xptw1nyaipdsxoweug8dwlp6rly9kd24uawoihczwfkeqogsfq/9+u3ihsfmk3tazowuskuac++wunt0fs/ndoeqycmtkxpn2/vzp24ejky2t6ylnmfywfaqniubqzzi8fbcecvxmegljjhvluwlqwmes0lqskuwaijgdiyxnsqjgamciuuf55rzxrwhj9vbl/smtiudyfzhdm6x+gkge5aqcw8/j0usaj6hzrugrwqk0io0i3ljovciy34uz4t5maspjx/2jf/ugn476p+f9ye/tz73b8kr/1vxbzxan2flrcngkc5azktcm1egchg4veooj/uxzrbdx317agfnb793jv3gk40benqygf4fhxwmcflh0dv9zoehddnv0+opsqxgxj2co8nnpw6pbyfnf5eae37xcem8ph73h5duzhq3/t6x38+nz4wmvezurumui6opglk/f4kpx2icniwg/g+qx7mqw+ezdr63g77983puglz983h/wcd+2w12aa5fumftxr5y9/8xod3ntce51rhenfjk6gebfix5d4jzn4+s2fdgk12tejblucbjheslxos6jzqdk94ed64adg8wlffscnh16sk5x5vh8uxpwr8sa4dvy3t/irs2y6vrk8k7iitptg/c4oiytsmtd/+i/z1wtrh6zt+/dewa7yf5p+mxmfda/el/a5/ecpwpy123j0fjkkcbp4b7dxc27fa2xwggaxtxrox/gfb5mrzrcrknzqujz5lqjbnzcyrg+qomfepdp0ijf9bgqzvqngxf7cyzmwojzdbuwwuymqriv3aquawvzyeo/qiwyyczgylcyo5yzg30/tvrfppzpoe1rxjhxpieyrgmctfwgcgl4o7pmkkfyobcrmenczjnfesekcpmwa2zwu00uddylqxyx8gojriydneurzvmtotnahad0bjd8v0fiwwqcpufp1nna6ch0luwfj9fya6m8932baq8qdseeluhtmmdstlvm1/mrdls4vcaluok5v0weafmxp5jxx9oody5a6nntpjrfai9gjcirs1xs93aaqtpfcqxs4ro1vevqwzx1eq0va89mntbajqdaj+faa37jfpupl437tty83jwftsj0szu8hrmfjs+g24rtom24ajujncppeqtqhopgioqqcimq8qfe1hhinkzzngxry8voizfdin0c0lozivbzvweebsjqzg6tp9pa5qmx8cpeystyuwaxzrdqfvrag2dbeqxhu+2xehzubzohs8ziolsza0wul8nkyvdncczq26zzwxcslkiictfg2vd0zlz0viika+7btoxihhbmu4gmsn+cmadslp3vl2fyfk08dthjvc3ftndkdhxbaty8pdyv++addqkydtg9izmcgpnzevio+tgn7tw0zkq88ytizdgz7hpsh+guu+ttbmvreqyhnrevxsjejoavavicrowiqm8xfe2tqf2bpvkgsylhkcbcgomsuiauwxilklzwwbsec5ahezgvspcywk69paqr7bqxfbgancbavvseaaddtcewklk+cpg10c/vquvu0vtn/cfygkmeboe3gpdhzzocfoo5z/mk5k0iyk6l/nb4bgbx/wtg10llr8u2r7sgi+g3jfqijswisgatdsmdisx5ypnkescxwspyhdy2hwzsxmbodk4ku1pkvxk7vsipu7rsebg0ejm36xuwu67gw7dcne+iczh8h9thtdq5weytskww6bgw8q59abaasxzyl2iju964lnor3rfsy05ydtaan41t7b1erdar1u2wymbiq0ajdqo1mqm/alyqipbygra/2hrxtg5vyfyakr2yx++exerfxkm3/bd4ruxxhstd7jgxkxluxhsoks9yqtur/9ftv7e5jyp7ntc0yl9wdnc2f8ge7xu1jctxhkfrdr1i2kiu7dcdlarjfep07dhqlo2o1hlawcbgmwzilwawon4vgnuvfnofsverfdi1zqueiy7r4fb4hhz9gbp8zmlbqojemmniwhn+e7ivsxhd/leupnqsagucyfouxa3puv62n4fr5yljeawjy37bjyxbfm/swedg6am731qk4znchogjmjprqax7zny/tu4abx9e7osgtb4irthtmpbu7dbselmowupvwwxwvmgy+t0auiwiksjsontvrjamr4pcqso37drtrufooq8mqw1mvs0c6+y18bti88rlfn3s2h5yec/mhexi22jbjsq9q7zqwr9gqlxwjdheox3cbbn7dljnwzfhr+dgthhag+/ctq7bvu1g5it+xp/sme8rseoudh3nlenzkektdqdi7bxnz5sd2lxhif2nlxxug5qe08cf080ql6vraff3blkhwttkosihevjp/nzmzs/y8suc/ap8plnyly6pu/fjnkxtsljrq9qrafdkytxavinq8kv7/1fmvvhlsf01ntmdgkzs+ogl32f9inebjbavo68jtq3tgk8e+lwftm6s6izqi/eyuubfm+zpvkz5mlnkrfk/a3sa8gvncaf15o54m9jfksctylbr8eanodek4jpk9i0ltj/xg5eqsqqczqicane2uq46b75vw/fmy4kxs+wc6jze0u4krbpifjlxx+enmdwtkvci/pgp+nak6zhm50lcdh5j2r32i1og1zusmrgrxjnojru4lsefoohaqili4dkkvqpkpmjdffs+zbu4utnnes+dofqxcp74h9dolc7tgqaa\n path: /opt/azure/containers/configure-swarmmode-cluster.sh\n permissions: "0744"\n\n\",variables(\"agentruncmdfile\'),variables(\"agentruncmd\')))]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"keydata": "[parameters('sshrsapublickey')]", "path": "[variables('sshkeypath')]"}]}}}, "storageprofile": {"imagereference": {"offer": "[variables('osimageoffer')]", "publisher": "[variables('osimagepublisher')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"caching": "readwrite", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "[variables('agentdisktype')]"}}}}}}
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": "[concat('acsengine-", variables('agentvmnameprefix'), "-vmss')]"}, "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('masterpublicipaddressname'))]", "[variables('virtualnetworkname')]", "[resourceid('microsoft.network/loadbalancers", variables('agentlbname'))]"], "properties": {"upgradepolicy": {"mode": "automatic"}, "virtualmachineprofile": {"networkprofile": {"networkinterfaceconfigurations": [{"name": "nic", "properties": {"ipconfigurations": [{"name": "nicipconfig", "properties": {"loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}], "subnet": {"id": "[variables('agentvnetsubnetid')]"}}}], "primary": true}}]}, "osprofile": {"adminusername": "[variables('adminusername')]", "computernameprefix": "[variables('agentvmnameprefix')]", "customdata": "[base64(concat(\"#cloud-config\n\nwrite_files:\n - encoding: gzip\n content: !!binary |\n h4siackuqlkaa81zbxpbnhl+zl+xptw1nyaipdsxoweug8dwlp6rly9kd24uawoihczwfkeqogsfq/9+u3ihsfmk3tazowuskuac++wunt0fs/ndoeqycmtkxpn2/vzp24ejky2t6ylnmfywfaqniubqzzi8fbcecvxmegljjhvluwlqwmes0lqskuwaijgdiyxnsqjgamciuuf55rzxrwhj9vbl/smtiudyfzhdm6x+gkge5aqcw8/j0usaj6hzrugrwqk0io0i3ljovciy34uz4t5maspjx/2jf/ugn476p+f9ye/tz73b8kr/1vxbzxan2flrcngkc5azktcm1egchg4veooj/uxzrbdx317agfnb793jv3gk40benqygf4fhxwmcflh0dv9zoehddnv0+opsqxgxj2co8nnpw6pbyfnf5eae37xcem8ph73h5duzhq3/t6x38+nz4wmvezurumui6opglk/f4kpx2icniwg/g+qx7mqw+ezdr63g77983puglz983h/wcd+2w12aa5fumftxr5y9/8xod3ntce51rhenfjk6gebfix5d4jzn4+s2fdgk12tejblucbjheslxos6jzqdk94ed64adg8wlffscnh16sk5x5vh8uxpwr8sa4dvy3t/irs2y6vrk8k7iitptg/c4oiytsmtd/+i/z1wtrh6zt+/dewa7yf5p+mxmfda/el/a5/ecpwpy123j0fjkkcbp4b7dxc27fa2xwggaxtxrox/gfb5mrzrcrknzqujz5lqjbnzcyrg+qomfepdp0ijf9bgqzvqngxf7cyzmwojzdbuwwuymqriv3aquawvzyeo/qiwyyczgylcyo5yzg30/tvrfppzpoe1rxjhxpieyrgmctfwgcgl4o7pmkkfyobcrmenczjnfesekcpmwa2zwu00uddylqxyx8gojriydneurzvmtotnahad0bjd8v0fiwwqcpufp1nna6ch0luwfj9fya6m8932baq8qdseeluhtmmdstlvm1/mrdls4vcaluok5v0weafmxp5jxx9oody5a6nntpjrfai9gjcirs1xs93aaqtpfcqxs4ro1vevqwzx1eq0va89mntbajqdaj+faa37jfpupl437tty83jwftsj0szu8hrmfjs+g24rtom24ajujncppeqtqhopgioqqcimq8qfe1hhinkzzngxry8voizfdin0c0lozivbzvweebsjqzg6tp9pa5qmx8cpeystyuwaxzrdqfvrag2dbeqxhu+2xehzubzohs8ziolsza0wul8nkyvdncczq26zzwxcslkiictfg2vd0zlz0viika+7btoxihhbmu4gmsn+cmadslp3vl2fyfk08dthjvc3ftndkdhxbaty8pdyv++addqkydtg9izmcgpnzevio+tgn7tw0zkq88ytizdgz7hpsh+guu+ttbmvreqyhnrevxsjejoavavicrowiqm8xfe2tqf2bpvkgsylhkcbcgomsuiauwxilklzwwbsec5ahezgvspcywk69paqr7bqxfbgancbavvseaaddtcewklk+cpg10c/vquvu0vtn/cfygkmeboe3gpdhzzocfoo5z/mk5k0iyk6l/nb4bgbx/wtg10llr8u2r7sgi+g3jfqijswisgatdsmdisx5ypnkescxwspyhdy2hwzsxmbodk4ku1pkvxk7vsipu7rsebg0ejm36xuwu67gw7dcne+iczh8h9thtdq5weytskww6bgw8q59abaasxzyl2iju964lnor3rfsy05ydtaan41t7b1erdar1u2wymbiq0ajdqo1mqm/alyqipbygra/2hrxtg5vyfyakr2yx++exerfxkm3/bd4ruxxhstd7jgxkxluxhsoks9yqtur/9ftv7e5jyp7ntc0yl9wdnc2f8ge7xu1jctxhkfrdr1i2kiu7dcdlarjfep07dhqlo2o1hlawcbgmwzilwawon4vgnuvfnofsverfdi1zqueiy7r4fb4hhz9gbp8zmlbqojemmniwhn+e7ivsxhd/leupnqsagucyfouxa3puv62n4fr5yljeawjy37bjyxbfm/swedg6am731qk4znchogjmjprqax7zny/tu4abx9e7osgtb4irthtmpbu7dbselmowupvwwxwvmgy+t0auiwiksjsontvrjamr4pcqso37drtrufooq8mqw1mvs0c6+y18bti88rlfn3s2h5yec/mhexi22jbjsq9q7zqwr9gqlxwjdheox3cbbn7dljnwzfhr+dgthhag+/ctq7bvu1g5it+xp/sme8rseoudh3nlenzkektdqdi7bxnz5sd2lxhif2nlxxug5qe08cf080ql6vraff3blkhwttkosihevjp/nzmzs/y8suc/ap8plnyly6pu/fjnkxtsljrq9qrafdkytxavinq8kv7/1fmvvhlsf01ntmdgkzs+ogl32f9inebjbavo68jtq3tgk8e+lwftm6s6izqi/eyuubfm+zpvkz5mlnkrfk/a3sa8gvncaf15o54m9jfksctylbr8eanodek4jpk9i0ltj/xg5eqsqqczqicane2uq46b75vw/fmy4kxs+wc6jze0u4krbpifjlxx+enmdwtkvci/pgp+nak6zhm50lcdh5j2r32i1og1zusmrgrxjnojru4lsefoohaqili4dkkvqpkpmjdffs+zbu4utnnes+dofqxcp74h9dolc7tgqaa\n path: /opt/azure/containers/configure-swarmmode-cluster.sh\n permissions: "0744"\n\n\",variables(\"agentruncmdfile\'),variables(\"agentruncmd\')))]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"keydata": "[parameters('sshrsapublickey')]", "path": "[variables('sshkeypath')]"}]}}}, "storageprofile": {"imagereference": {"offer": "[variables('osimageoffer')]", "publisher": "[variables('osimagepublisher')]", "sku": "[variables('osimagesku')]", "version": "latest"}, "osdisk": {"caching": "readwrite", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "[variables('agentdisktype')]"}}}}}}{"apiversion": "2019-07-01", "type": "microsoft.compute/availabilitysets", "location": "[variables('location')]", "name": "[variables('masteravailabilityset')]", "properties": {"platformupdatedomaincount": 20, "platformfaultdomaincount": 2}, "sku": {"name": "aligned"}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('agentipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('agentendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('agentipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('agentendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}{"apiversion": "2020-04-01", "type": "microsoft.network/loadbalancers", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('agentipaddressname'))]"], "location": "[variables('location')]", "name": "[variables('agentlbname')]", "properties": {"backendaddresspools": [{"name": "[variables('agentlbbackendpoolname')]"}], "frontendipconfigurations": [{"name": "[variables('agentlbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('agentipaddressname'))]"}}}], "loadbalancingrules": [{"name": "lbrule80", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools/", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 80, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 80, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp80probe')]"}, "protocol": "tcp"}}, {"name": "lbrule443", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 443, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 443, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp443probe')]"}, "protocol": "tcp"}}, {"name": "lbrule8080", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 8080, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 8080, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp8080probe')]"}, "protocol": "tcp"}}], "probes": [{"name": "tcp80probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 80, "protocol": "tcp"}}, {"name": "tcp443probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 443, "protocol": "tcp"}}, {"name": "tcp8080probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 8080, "protocol": "tcp"}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('agentipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('agentendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}{"apiversion": "2020-04-01", "type": "microsoft.network/loadbalancers", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('agentipaddressname'))]"], "location": "[variables('location')]", "name": "[variables('agentlbname')]", "properties": {"backendaddresspools": [{"name": "[variables('agentlbbackendpoolname')]"}], "frontendipconfigurations": [{"name": "[variables('agentlbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('agentipaddressname'))]"}}}], "loadbalancingrules": [{"name": "lbrule80", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools/", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 80, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 80, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp80probe')]"}, "protocol": "tcp"}}, {"name": "lbrule443", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 443, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 443, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp443probe')]"}, "protocol": "tcp"}}, {"name": "lbrule8080", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 8080, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 8080, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp8080probe')]"}, "protocol": "tcp"}}], "probes": [{"name": "tcp80probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 80, "protocol": "tcp"}}, {"name": "tcp443probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 443, "protocol": "tcp"}}, {"name": "tcp8080probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 8080, "protocol": "tcp"}}]}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('virtualnetworkname')]", "properties": {"addressspace": {"addressprefixes": ["[variables('mastersubnet')]", "[variables('agentsubnet')]"]}, "subnets": [{"name": "[variables('mastersubnetname')]", "properties": {"addressprefix": "[variables('mastersubnet')]"}}, {"name": "[variables('agentsubnetname')]", "properties": {"addressprefix": "[variables('agentsubnet')]"}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('agentipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('agentendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}{"apiversion": "2020-04-01", "type": "microsoft.network/loadbalancers", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('agentipaddressname'))]"], "location": "[variables('location')]", "name": "[variables('agentlbname')]", "properties": {"backendaddresspools": [{"name": "[variables('agentlbbackendpoolname')]"}], "frontendipconfigurations": [{"name": "[variables('agentlbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('agentipaddressname'))]"}}}], "loadbalancingrules": [{"name": "lbrule80", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools/", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 80, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 80, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp80probe')]"}, "protocol": "tcp"}}, {"name": "lbrule443", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 443, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 443, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp443probe')]"}, "protocol": "tcp"}}, {"name": "lbrule8080", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 8080, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 8080, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp8080probe')]"}, "protocol": "tcp"}}], "probes": [{"name": "tcp80probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 80, "protocol": "tcp"}}, {"name": "tcp443probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 443, "protocol": "tcp"}}, {"name": "tcp8080probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 8080, "protocol": "tcp"}}]}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('virtualnetworkname')]", "properties": {"addressspace": {"addressprefixes": ["[variables('mastersubnet')]", "[variables('agentsubnet')]"]}, "subnets": [{"name": "[variables('mastersubnetname')]", "properties": {"addressprefix": "[variables('mastersubnet')]"}}, {"name": "[variables('agentsubnetname')]", "properties": {"addressprefix": "[variables('agentsubnet')]"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('masterpublicipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('masterendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('agentipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('agentendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}{"apiversion": "2020-04-01", "type": "microsoft.network/loadbalancers", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('agentipaddressname'))]"], "location": "[variables('location')]", "name": "[variables('agentlbname')]", "properties": {"backendaddresspools": [{"name": "[variables('agentlbbackendpoolname')]"}], "frontendipconfigurations": [{"name": "[variables('agentlbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('agentipaddressname'))]"}}}], "loadbalancingrules": [{"name": "lbrule80", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools/", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 80, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 80, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp80probe')]"}, "protocol": "tcp"}}, {"name": "lbrule443", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 443, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 443, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp443probe')]"}, "protocol": "tcp"}}, {"name": "lbrule8080", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 8080, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 8080, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp8080probe')]"}, "protocol": "tcp"}}], "probes": [{"name": "tcp80probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 80, "protocol": "tcp"}}, {"name": "tcp443probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 443, "protocol": "tcp"}}, {"name": "tcp8080probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 8080, "protocol": "tcp"}}]}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('virtualnetworkname')]", "properties": {"addressspace": {"addressprefixes": ["[variables('mastersubnet')]", "[variables('agentsubnet')]"]}, "subnets": [{"name": "[variables('mastersubnetname')]", "properties": {"addressprefix": "[variables('mastersubnet')]"}}, {"name": "[variables('agentsubnetname')]", "properties": {"addressprefix": "[variables('agentsubnet')]"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('masterpublicipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('masterendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}{"type": "microsoft.network/loadbalancers", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('masterlbname')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('masterpublicipaddressname'))]"], "properties": {"backendaddresspools": [{"name": "[variables('masterlbbackendpoolname')]"}], "frontendipconfigurations": [{"name": "[variables('masterlbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('masterpublicipaddressname'))]"}}}]}}{"type": "microsoft.network/loadbalancers/inboundnatrules", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[concat(variables('masterlbname'), "/", "ssh-", variables('mastervmnameprefix'), copyindex())]", "copy": {"count": "[variables('mastercount')]", "name": "masterlbloopnode"}, "dependson": ["[resourceid('microsoft.network/loadbalancers", variables('masterlbname'))]"], "properties": {"backendport": 22, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('masterlbipconfigid')]"}, "frontendport": "[copyindex(2200)]", "protocol": "tcp"}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('agentipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('agentendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}{"apiversion": "2020-04-01", "type": "microsoft.network/loadbalancers", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('agentipaddressname'))]"], "location": "[variables('location')]", "name": "[variables('agentlbname')]", "properties": {"backendaddresspools": [{"name": "[variables('agentlbbackendpoolname')]"}], "frontendipconfigurations": [{"name": "[variables('agentlbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('agentipaddressname'))]"}}}], "loadbalancingrules": [{"name": "lbrule80", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools/", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 80, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 80, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp80probe')]"}, "protocol": "tcp"}}, {"name": "lbrule443", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 443, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 443, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp443probe')]"}, "protocol": "tcp"}}, {"name": "lbrule8080", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 8080, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 8080, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp8080probe')]"}, "protocol": "tcp"}}], "probes": [{"name": "tcp80probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 80, "protocol": "tcp"}}, {"name": "tcp443probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 443, "protocol": "tcp"}}, {"name": "tcp8080probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 8080, "protocol": "tcp"}}]}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('virtualnetworkname')]", "properties": {"addressspace": {"addressprefixes": ["[variables('mastersubnet')]", "[variables('agentsubnet')]"]}, "subnets": [{"name": "[variables('mastersubnetname')]", "properties": {"addressprefix": "[variables('mastersubnet')]"}}, {"name": "[variables('agentsubnetname')]", "properties": {"addressprefix": "[variables('agentsubnet')]"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('masterpublicipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('masterendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}{"type": "microsoft.network/loadbalancers", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('masterlbname')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('masterpublicipaddressname'))]"], "properties": {"backendaddresspools": [{"name": "[variables('masterlbbackendpoolname')]"}], "frontendipconfigurations": [{"name": "[variables('masterlbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('masterpublicipaddressname'))]"}}}]}}{"type": "microsoft.network/loadbalancers/inboundnatrules", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[concat(variables('masterlbname'), "/", "ssh-", variables('mastervmnameprefix'), copyindex())]", "copy": {"count": "[variables('mastercount')]", "name": "masterlbloopnode"}, "dependson": ["[resourceid('microsoft.network/loadbalancers", variables('masterlbname'))]"], "properties": {"backendport": 22, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('masterlbipconfigid')]"}, "frontendport": "[copyindex(2200)]", "protocol": "tcp"}}{"type": "microsoft.network/loadbalancers/inboundnatrules", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[concat(variables('mastersshport22inboundnatrulenameprefix'), "0')]", "dependson": ["[resourceid('microsoft.network/loadbalancers", variables('masterlbname'))]"], "properties": {"backendport": 2222, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('masterlbipconfigid')]"}, "frontendport": 22, "protocol": "tcp"}}
Establish connection to a VNET via an ExpressRoute circuit
{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('agentipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('agentendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}{"apiversion": "2020-04-01", "type": "microsoft.network/loadbalancers", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('agentipaddressname'))]"], "location": "[variables('location')]", "name": "[variables('agentlbname')]", "properties": {"backendaddresspools": [{"name": "[variables('agentlbbackendpoolname')]"}], "frontendipconfigurations": [{"name": "[variables('agentlbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('agentipaddressname'))]"}}}], "loadbalancingrules": [{"name": "lbrule80", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools/", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 80, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 80, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp80probe')]"}, "protocol": "tcp"}}, {"name": "lbrule443", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 443, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 443, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp443probe')]"}, "protocol": "tcp"}}, {"name": "lbrule8080", "properties": {"backendaddresspool": {"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('agentlbname'), variables('agentlbbackendpoolname'))]"}, "backendport": 8080, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('agentlbipconfigid')]"}, "frontendport": 8080, "idletimeoutinminutes": 5, "loaddistribution": "default", "probe": {"id": "[resourceid('microsoft.network/loadbalancers/probes", variables('agentlbname'), "tcp8080probe')]"}, "protocol": "tcp"}}], "probes": [{"name": "tcp80probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 80, "protocol": "tcp"}}, {"name": "tcp443probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 443, "protocol": "tcp"}}, {"name": "tcp8080probe", "properties": {"intervalinseconds": 5, "numberofprobes": 2, "port": 8080, "protocol": "tcp"}}]}}{"type": "microsoft.network/virtualnetworks", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('virtualnetworkname')]", "properties": {"addressspace": {"addressprefixes": ["[variables('mastersubnet')]", "[variables('agentsubnet')]"]}, "subnets": [{"name": "[variables('mastersubnetname')]", "properties": {"addressprefix": "[variables('mastersubnet')]"}}, {"name": "[variables('agentsubnetname')]", "properties": {"addressprefix": "[variables('agentsubnet')]"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('masterpublicipaddressname')]", "properties": {"dnssettings": {"domainnamelabel": "[variables('masterendpointdnsnameprefix')]"}, "publicipallocationmethod": "dynamic"}}{"type": "microsoft.network/loadbalancers", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[variables('masterlbname')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses", variables('masterpublicipaddressname'))]"], "properties": {"backendaddresspools": [{"name": "[variables('masterlbbackendpoolname')]"}], "frontendipconfigurations": [{"name": "[variables('masterlbipconfigname')]", "properties": {"publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('masterpublicipaddressname'))]"}}}]}}{"type": "microsoft.network/loadbalancers/inboundnatrules", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[concat(variables('masterlbname'), "/", "ssh-", variables('mastervmnameprefix'), copyindex())]", "copy": {"count": "[variables('mastercount')]", "name": "masterlbloopnode"}, "dependson": ["[resourceid('microsoft.network/loadbalancers", variables('masterlbname'))]"], "properties": {"backendport": 22, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('masterlbipconfigid')]"}, "frontendport": "[copyindex(2200)]", "protocol": "tcp"}}{"type": "microsoft.network/loadbalancers/inboundnatrules", "apiversion": "2020-04-01", "location": "[variables('location')]", "name": "[concat(variables('mastersshport22inboundnatrulenameprefix'), "0')]", "dependson": ["[resourceid('microsoft.network/loadbalancers", variables('masterlbname'))]"], "properties": {"backendport": 2222, "enablefloatingip": false, "frontendipconfiguration": {"id": "[variables('masterlbipconfigid')]"}, "frontendport": 22, "protocol": "tcp"}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-04-01", "name": "[concat(variables('mastervmnameprefix'), "nic-", copyindex())]", "location": "[variables('location')]", "copy": {"count": "[variables('mastercount')]", "name": "nicloopnode"}, "dependson": ["[variables('virtualnetworkname')]", "[resourceid('microsoft.network/loadbalancers", variables('masterlbname'))]", "[resourceid('microsoft.network/loadbalancers/inboundnatrules", variables('masterlbname'), concat('sshport22-",variables('mastervmnameprefix'), "0'))]", "[resourceid('microsoft.network/loadbalancers/inboundnatrules", variables('masterlbname'), concat('ssh-",variables('mastervmnameprefix'), copyindex()))]"], "properties": {"ipconfigurations": [{"name": "ipconfignode", "properties": {"loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('masterlbname'), variables('masterlbbackendpoolname'))]"}], "loadbalancerinboundnatrules": "[variables('masterlbinboundnatrules')[copyindex()]]", "privateipaddress": "[concat(variables('masterfirstaddrprefix'), copyindex(int(variables('masterfirstaddroctet4'))))]", "privateipallocationmethod": "static", "subnet": {"id": "[variables('mastervnetsubnetid')]"}}}]}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"condition": "[equals(parameters('neworscaleexisting'), "deploy new scaleset')]", "type": "microsoft.compute/virtualmachinescalesets", "name": "[if(equals(parameters('neworscaleexisting'), "deploy new scaleset'), parameters('vmssname'), "none')]", "location": "[parameters('location')]", "apiversion": "2019-12-01", "dependson": ["[resourceid('microsoft.network/loadbalancers", variables('loadbalancername'))]"], "sku": {"name": "[parameters('clientvmsize')]", "tier": "standard", "capacity": "[parameters('clientcount')]"}, "properties": {"upgradepolicy": {"mode": "automatic"}, "virtualmachineprofile": {"storageprofile": {"osdisk": {"caching": "readonly", "createoption": "fromimage"}, "imagereference": "[variables('imagereference')]"}, "osprofile": {"computernameprefix": "[parameters('vmssname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "networkprofile": {"networkinterfaceconfigurations": [{"name": "[variables('nicname')]", "properties": {"primary": true, "ipconfigurations": [{"name": "[variables('ipconfigname')]", "properties": {"subnet": {"id": "[variables('subnetclientsid')]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('loadbalancername'), variables('bepoolname'))]"}], "loadbalancerinboundnatpools": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatpools", variables('loadbalancername'), variables('natpoolname'))]"}]}}]}}]}, "extensionprofile": {"extensions": [{"name": "lustre_client", "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustreclient')]"], "commandtoexecute": "[concat('bash lustre_client.sh", " -n clientcentos", parameters('imagesku'), " -i ", "0", " -d 0", " -m ", parameters('mgsipaddress'), " -l ", "0.0.0.0", " -f ", parameters('filesystemname'))]"}}}]}}, "overprovision": true}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"condition": "[equals(parameters('neworscaleexisting'), "deploy new scaleset')]", "type": "microsoft.compute/virtualmachinescalesets", "name": "[if(equals(parameters('neworscaleexisting'), "deploy new scaleset'), parameters('vmssname'), "none')]", "location": "[parameters('location')]", "apiversion": "2019-12-01", "dependson": ["[resourceid('microsoft.network/loadbalancers", variables('loadbalancername'))]"], "sku": {"name": "[parameters('clientvmsize')]", "tier": "standard", "capacity": "[parameters('clientcount')]"}, "properties": {"upgradepolicy": {"mode": "automatic"}, "virtualmachineprofile": {"storageprofile": {"osdisk": {"caching": "readonly", "createoption": "fromimage"}, "imagereference": "[variables('imagereference')]"}, "osprofile": {"computernameprefix": "[parameters('vmssname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "networkprofile": {"networkinterfaceconfigurations": [{"name": "[variables('nicname')]", "properties": {"primary": true, "ipconfigurations": [{"name": "[variables('ipconfigname')]", "properties": {"subnet": {"id": "[variables('subnetclientsid')]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('loadbalancername'), variables('bepoolname'))]"}], "loadbalancerinboundnatpools": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatpools", variables('loadbalancername'), variables('natpoolname'))]"}]}}]}}]}, "extensionprofile": {"extensions": [{"name": "lustre_client", "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustreclient')]"], "commandtoexecute": "[concat('bash lustre_client.sh", " -n clientcentos", parameters('imagesku'), " -i ", "0", " -d 0", " -m ", parameters('mgsipaddress'), " -l ", "0.0.0.0", " -f ", parameters('filesystemname'))]"}}}]}}, "overprovision": true}}{"condition": "[equals(parameters('neworscaleexisting'), "scale existing vmss')]", "type": "microsoft.compute/virtualmachinescalesets", "apiversion": "2019-12-01", "name": "[if(equals(parameters('neworscaleexisting'), "scale existing vmss'), parameters('vmssname'), "none')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('clientvmsize')]", "tier": "standard", "capacity": "[parameters('clientcount')]"}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"condition": "[equals(parameters('neworscaleexisting'), "deploy new scaleset')]", "type": "microsoft.compute/virtualmachinescalesets", "name": "[if(equals(parameters('neworscaleexisting'), "deploy new scaleset'), parameters('vmssname'), "none')]", "location": "[parameters('location')]", "apiversion": "2019-12-01", "dependson": ["[resourceid('microsoft.network/loadbalancers", variables('loadbalancername'))]"], "sku": {"name": "[parameters('clientvmsize')]", "tier": "standard", "capacity": "[parameters('clientcount')]"}, "properties": {"upgradepolicy": {"mode": "automatic"}, "virtualmachineprofile": {"storageprofile": {"osdisk": {"caching": "readonly", "createoption": "fromimage"}, "imagereference": "[variables('imagereference')]"}, "osprofile": {"computernameprefix": "[parameters('vmssname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "networkprofile": {"networkinterfaceconfigurations": [{"name": "[variables('nicname')]", "properties": {"primary": true, "ipconfigurations": [{"name": "[variables('ipconfigname')]", "properties": {"subnet": {"id": "[variables('subnetclientsid')]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('loadbalancername'), variables('bepoolname'))]"}], "loadbalancerinboundnatpools": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatpools", variables('loadbalancername'), variables('natpoolname'))]"}]}}]}}]}, "extensionprofile": {"extensions": [{"name": "lustre_client", "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustreclient')]"], "commandtoexecute": "[concat('bash lustre_client.sh", " -n clientcentos", parameters('imagesku'), " -i ", "0", " -d 0", " -m ", parameters('mgsipaddress'), " -l ", "0.0.0.0", " -f ", parameters('filesystemname'))]"}}}]}}, "overprovision": true}}
Create a VM from a Windows Image with 4 Empty Data Disks
{"condition": "[equals(parameters('neworscaleexisting'), "deploy new scaleset')]", "type": "microsoft.compute/virtualmachinescalesets", "name": "[if(equals(parameters('neworscaleexisting'), "deploy new scaleset'), parameters('vmssname'), "none')]", "location": "[parameters('location')]", "apiversion": "2019-12-01", "dependson": ["[resourceid('microsoft.network/loadbalancers", variables('loadbalancername'))]"], "sku": {"name": "[parameters('clientvmsize')]", "tier": "standard", "capacity": "[parameters('clientcount')]"}, "properties": {"upgradepolicy": {"mode": "automatic"}, "virtualmachineprofile": {"storageprofile": {"osdisk": {"caching": "readonly", "createoption": "fromimage"}, "imagereference": "[variables('imagereference')]"}, "osprofile": {"computernameprefix": "[parameters('vmssname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "networkprofile": {"networkinterfaceconfigurations": [{"name": "[variables('nicname')]", "properties": {"primary": true, "ipconfigurations": [{"name": "[variables('ipconfigname')]", "properties": {"subnet": {"id": "[variables('subnetclientsid')]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('loadbalancername'), variables('bepoolname'))]"}], "loadbalancerinboundnatpools": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatpools", variables('loadbalancername'), variables('natpoolname'))]"}]}}]}}]}, "extensionprofile": {"extensions": [{"name": "lustre_client", "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustreclient')]"], "commandtoexecute": "[concat('bash lustre_client.sh", " -n clientcentos", parameters('imagesku'), " -i ", "0", " -d 0", " -m ", parameters('mgsipaddress'), " -l ", "0.0.0.0", " -f ", parameters('filesystemname'))]"}}}]}}, "overprovision": true}}{"condition": "[equals(parameters('neworscaleexisting'), "scale existing vmss')]", "type": "microsoft.compute/virtualmachinescalesets", "apiversion": "2019-12-01", "name": "[if(equals(parameters('neworscaleexisting'), "scale existing vmss'), parameters('vmssname'), "none')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('clientvmsize')]", "tier": "standard", "capacity": "[parameters('clientcount')]"}}
Establish connection to a VNET via an ExpressRoute circuit
{"condition": "[equals(parameters('vnetneworexisting'), "new')]", "type": "microsoft.network/virtualnetworks", "apiversion": "2019-11-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": "[parameters('addressprefixes')]"}, "subnets": [{"name": "[parameters('subnetname')]", "properties": {"addressprefix": "[parameters('subnetprefix')]"}}]}}
Establish connection to a VNET via an ExpressRoute circuit
{"condition": "[equals(parameters('vnetneworexisting'), "new')]", "type": "microsoft.network/virtualnetworks", "apiversion": "2019-11-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": "[parameters('addressprefixes')]"}, "subnets": [{"name": "[parameters('subnetname')]", "properties": {"addressprefix": "[parameters('subnetprefix')]"}}]}}{"condition": "[equals(parameters('neworscaleexisting'), "deploy new scaleset')]", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[parameters('location')]", "apiversion": "2019-11-01", "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[concat('vmss-",parameters('vmssname'),"-",uniquestring(resourcegroup().id))]"}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2015-06-15", "type": "microsoft.compute/availabilitysets", "name": "[variables('ossavailabilitysetsettings').name]", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": "[variables('ossavailabilitysetsettings').faultdomaincount]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2015-06-15", "type": "microsoft.compute/availabilitysets", "name": "[variables('ossavailabilitysetsettings').name]", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": "[variables('ossavailabilitysetsettings').faultdomaincount]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2015-06-15", "type": "microsoft.compute/availabilitysets", "name": "[variables('ossavailabilitysetsettings').name]", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": "[variables('ossavailabilitysetsettings').faultdomaincount]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mgs", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mgs'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mgs", " -i 0", " -d ", variables('mgsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2015-06-15", "type": "microsoft.compute/availabilitysets", "name": "[variables('ossavailabilitysetsettings').name]", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": "[variables('ossavailabilitysetsettings').faultdomaincount]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mgs", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mgs'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mgs", " -i 0", " -d ", variables('mgsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mds')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mds')]"], "tags": {"lustretype": "mdt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mdsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mds')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mds","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mds","_datadisk1')]", "disksizegb": 128, "lun": 0, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mds'))]"}]}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2015-06-15", "type": "microsoft.compute/availabilitysets", "name": "[variables('ossavailabilitysetsettings').name]", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": "[variables('ossavailabilitysetsettings').faultdomaincount]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mgs", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mgs'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mgs", " -i 0", " -d ", variables('mgsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mds')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mds')]"], "tags": {"lustretype": "mdt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mdsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mds')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mds","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mds","_datadisk1')]", "disksizegb": 128, "lun": 0, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mds'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mds", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mds'))]", "[concat('microsoft.compute/virtualmachines/", parameters('vmnameprefix'), "mgs", "/extensions/init')]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mds", " -i 0", " -d ", variables('mdsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mds'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.
{"apiversion": "2015-06-15", "type": "microsoft.compute/availabilitysets", "name": "[variables('ossavailabilitysetsettings').name]", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": "[variables('ossavailabilitysetsettings').faultdomaincount]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mgs", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mgs'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mgs", " -i 0", " -d ", variables('mgsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mds')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mds')]"], "tags": {"lustretype": "mdt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mdsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mds')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mds","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mds","_datadisk1')]", "disksizegb": 128, "lun": 0, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mds'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mds", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mds'))]", "[concat('microsoft.compute/virtualmachines/", parameters('vmnameprefix'), "mgs", "/extensions/init')]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mds", " -i 0", " -d ", variables('mdsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mds'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'), "oss", copyindex())]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "oss", copyindex())]"], "copy": {"name": "ossvmcopy", "count": "[parameters('osscount')]"}, "tags": {"lustretype": "ost"}, "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets", variables('ossavailabilitysetsettings').name)]"}, "hardwareprofile": {"vmsize": "[parameters('ossvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'), "oss", copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'), "oss", copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'), "oss", copyindex(),"_datadisk1')]", "disksizegb": "[parameters('ossdisksize')]", "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'), "oss", copyindex(),"_datadisk2')]", "disksizegb": "[parameters('ossdisksize')]", "lun": 1, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'), "oss", copyindex(),"_datadisk3')]", "disksizegb": "[parameters('ossdisksize')]", "lun": 2, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'), "oss", copyindex()))]"}]}}}
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"apiversion": "2015-06-15", "type": "microsoft.storage/storageaccounts", "name": "[concat(variables('storageaccountname'),copyindex(1))]", "location": "[parameters('location')]", "copy": {"name": "storageaccountscopy", "count": "[parameters('storageaccountcount')]"}, "properties": {"accounttype": "[parameters('storageaccounttype')]"}}
This module creates a storageAccount resource with apiVersion 2021-01-01.
{"apiversion": "2015-06-15", "type": "microsoft.storage/storageaccounts", "name": "[concat(variables('storageaccountname'),copyindex(1))]", "location": "[parameters('location')]", "copy": {"name": "storageaccountscopy", "count": "[parameters('storageaccountcount')]"}, "properties": {"accounttype": "[parameters('storageaccounttype')]"}}{"apiversion": "2015-06-15", "type": "microsoft.storage/storageaccounts", "name": "[variables('clientstorageaccountname')]", "location": "[parameters('location')]", "properties": {"accounttype": "[parameters('clientstorageaccounttype')]"}}
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]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}
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]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}
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]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mgs", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mgs'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mgs", " -i 0", " -d ", variables('mgsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}
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]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mgs", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mgs'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mgs", " -i 0", " -d ", variables('mgsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mds')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mds')]"], "tags": {"lustretype": "mdt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mdsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mds')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mds","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mds","_datadisk1')]", "disksizegb": 128, "lun": 0, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mds'))]"}]}}}
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]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mgs", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mgs'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mgs", " -i 0", " -d ", variables('mgsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mds')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mds')]"], "tags": {"lustretype": "mdt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mdsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mds')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mds","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mds","_datadisk1')]", "disksizegb": 128, "lun": 0, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mds'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mds", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mds'))]", "[concat('microsoft.compute/virtualmachines/", parameters('vmnameprefix'), "mgs", "/extensions/init')]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mds", " -i 0", " -d ", variables('mdsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mds'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}
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]", "platformupdatedomaincount": "[variables('ossavailabilitysetsettings').updatedomaincount]"}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mgs')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mgs')]"], "tags": {"lustretype": "mgt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mgsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mgs')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mgs","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk1')]", "disksizegb": 5, "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'),"mgs","_datadisk2')]", "disksizegb": 16, "lun": 1, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mgs'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mgs", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mgs'))]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mgs", " -i 0", " -d ", variables('mgsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'),"mds')]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "mds')]"], "tags": {"lustretype": "mdt"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('mdsvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'),"mds')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'),"mds","_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'),"mds","_datadisk1')]", "disksizegb": 128, "lun": 0, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'),"mds'))]"}]}}}{"apiversion": "2015-06-15", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmnameprefix'), "mds", "/init')]", "location": "[parameters('location')]", "dependson": ["[concat('microsoft.compute/virtualmachines/", concat(parameters('vmnameprefix'), "mds'))]", "[concat('microsoft.compute/virtualmachines/", parameters('vmnameprefix'), "mgs", "/extensions/init')]"], "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturllustre')]"], "commandtoexecute": "[concat('sh lustre.sh", " -n mds", " -i 0", " -d ", variables('mdsdiskcount'), " -m ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mgs'))).ipconfigurations[0].properties.privateipaddress, " -l ", reference(resourceid('microsoft.network/networkinterfaces", concat(parameters('vmnameprefix'), "mds'))).ipconfigurations[0].properties.privateipaddress, " -f ", parameters('filesystemname'))]"}}}{"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[concat(parameters('vmnameprefix'), "oss", copyindex())]", "plan": {"publisher": "intel", "product": "lustre-cloud-edition-gs-image", "name": "eval-lustre-2-7"}, "location": "[parameters('location')]", "dependson": ["storageaccountscopy", "[concat('microsoft.network/networkinterfaces/", parameters('vmnameprefix'), "oss", copyindex())]"], "copy": {"name": "ossvmcopy", "count": "[parameters('osscount')]"}, "tags": {"lustretype": "ost"}, "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets", variables('ossavailabilitysetsettings').name)]"}, "hardwareprofile": {"vmsize": "[parameters('ossvmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'), "oss", copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]", "linuxconfiguration": "[variables('linuxconfiguration')]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagereferencelustre').publisher]", "offer": "[variables('imagereferencelustre').offer]", "sku": "[variables('imagereferencelustre').sku]", "version": "latest"}, "osdisk": {"name": "[concat(parameters('vmnameprefix'), "oss", copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"name": "[concat(parameters('vmnameprefix'), "oss", copyindex(),"_datadisk1')]", "disksizegb": "[parameters('ossdisksize')]", "lun": 0, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'), "oss", copyindex(),"_datadisk2')]", "disksizegb": "[parameters('ossdisksize')]", "lun": 1, "caching": "none", "createoption": "empty"}, {"name": "[concat(parameters('vmnameprefix'), "oss", copyindex(),"_datadisk3')]", "disksizegb": "[parameters('ossdisksize')]", "lun": 2, "caching": "none", "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(parameters('vmnameprefix'), "oss", copyindex()))]"}]}}}
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"apiversion": "2015-06-15", "type": "microsoft.storage/storageaccounts", "name": "[concat(variables('storageaccountname'),copyindex(1))]", "location": "[parameters('location')]", "copy": {"name": "storageaccountscopy", "count": "[parameters('storageaccountcount')]"}, "properties": {"accounttype": "[parameters('storageaccounttype')]"}}
Storage Account with Storage Service Encryption and a blob deletion retention policy
{"apiversion": "2015-06-15", "type": "microsoft.storage/storageaccounts", "name": "[concat(variables('storageaccountname'),copyindex(1))]", "location": "[parameters('location')]", "copy": {"name": "storageaccountscopy", "count": "[parameters('storageaccountcount')]"}, "properties": {"accounttype": "[parameters('storageaccounttype')]"}}{"apiversion": "2015-06-15", "type": "microsoft.storage/storageaccounts", "name": "[variables('clientstorageaccountname')]", "location": "[parameters('location')]", "properties": {"accounttype": "[parameters('clientstorageaccounttype')]"}}
This sample contains a script to easily migrate template gallery templates to templateSpec resources.
{"apiversion": "2015-01-01", "type": "microsoft.resources/deployments", "name": "vnet", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('templateurlvnet')]", "contentversion": "1.0.0.0"}, "parameters": {"location": {"value": "[parameters('location')]"}, "vnetname": {"value": "[parameters('existingvnetname')]"}, "vnetresourcegroup": {"value": "[parameters('existingvnetresourcegroup')]"}, "vnetaddressprefix": {"value": "[parameters('vnetaddressprefix')]"}, "subnetserversname": {"value": "[parameters('subnetserversname')]"}, "subnetserversaddressprefix": {"value": "[parameters('subnetserversaddressprefix')]"}, "subnetclientsname": {"value": "[parameters('subnetclientsname')]"}, "subnetclientsaddressprefix": {"value": "[parameters('subnetclientsaddressprefix')]"}}}}