Description
stringlengths 19
200
| IaC
stringlengths 128
8.16k
|
---|---|
Establish connection to a VNET via an ExpressRoute circuit | {"apiversion": "2015-05-01-preview", "type": "microsoft.network/publicipaddresses", "name": "[variables('publicipaddressname')]", "location": "[resourcegroup().location]", "tags": {"displayname": "publicipaddress"}, "properties": {"publicipallocationmethod": "dynamic", "dnssettings": {"domainnamelabel": "[parameters('dnsname')]"}}}{"comments": "default network security group for template", "type": "microsoft.network/networksecuritygroups", "apiversion": "2019-08-01", "name": "[variables('networksecuritygroupname')]", "location": "[resourcegroup().location]", "properties": {"securityrules": [{"name": "default-allow-80", "properties": {"priority": 1000, "access": "allow", "direction": "inbound", "destinationportrange": "80", "protocol": "tcp", "sourceaddressprefix": "*", "sourceportrange": "*", "destinationaddressprefix": "*"}}, {"name": "default-allow-3389", "properties": {"priority": 1001, "access": "allow", "direction": "inbound", "destinationportrange": "3389", "protocol": "tcp", "sourceaddressprefix": "*", "sourceportrange": "*", "destinationaddressprefix": "*"}}]}}{"apiversion": "2015-05-01-preview", "type": "microsoft.network/virtualnetworks", "name": "[variables('virtualnetworkname')]", "location": "[resourcegroup().location]", "dependson": ["[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"], "tags": {"displayname": "virtualnetwork"}, "properties": {"addressspace": {"addressprefixes": ["[variables('addressprefix')]"]}, "subnets": [{"name": "[variables('subnet1name')]", "properties": {"addressprefix": "[variables('subnet1prefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}}}, {"name": "[variables('subnet2name')]", "properties": {"addressprefix": "[variables('subnet2prefix')]"}}]}}{"apiversion": "2015-05-01-preview", "type": "microsoft.network/networkinterfaces", "name": "[variables('nicname')]", "location": "[resourcegroup().location]", "tags": {"displayname": "networkinterface"}, "dependson": ["[concat('microsoft.network/publicipaddresses/", variables('publicipaddressname'))]", "[concat('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]"], "properties": {"ipconfigurations": [{"name": "ipconfig1", "properties": {"privateipallocationmethod": "dynamic", "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('publicipaddressname'))]"}, "subnet": {"id": "[variables('subnet1ref')]"}}}]}} |
This module creates a Shared Image Gallery resource with apiVersion 2019-12-01. | {"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vmname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('nicname'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[concat(variables('vmname'),"vm')]", "adminusername": "[variables('loginuser')]", "adminpassword": "[parameters('loginpassword')]"}, "storageprofile": {"imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "2019-datacenter-core-smalldisk", "version": "latest"}, "osdisk": {"name": "[concat(parameters('stackname'),"vmdisk') ]", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('nicname'))]"}]}}, "resources": [{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmname'),"/antimalware')]", "apiversion": "2019-07-01", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines/", variables('vmname'))]"], "properties": {"publisher": "microsoft.azure.security", "type": "iaasantimalware", "typehandlerversion": "1.3", "autoupgrademinorversion": true, "settings": {"antimalwareenabled": "true", "exclusions": {"extensions": ".log;.ldf", "paths": "d:\\iislogs;d:\\databaselogs", "processes": "mssence.svc"}, "realtimeprotectionenabled": "true", "scheduledscansettings": {"isenabled": "true", "scantype": "quick", "day": 7, "time": 120}}}}]} |
This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01. | {"type": "microsoft.keyvault/vaults", "apiversion": "2019-09-01", "name": "[parameters('stackname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.web/sites",parameters('stackname'))]"], "properties": {"enablerbacauthorization": false, "enablesoftdelete": false, "enabledfordeployment": false, "enabledfordiskencryption": false, "enabledfortemplatedeployment": false, "tenantid": "[subscription().tenantid]", "accesspolicies": [{"tenantid": "[subscription().tenantid]", "objectid": "[parameters('aaduserobjectid')]", "permissions": {"secrets": ["list", "get", "set"]}}, {"tenantid": "[reference(resourceid('microsoft.web/sites", parameters('stackname')), "2018-02-01", "full').identity.tenantid]", "objectid": "[reference(resourceid('microsoft.web/sites", parameters('stackname')), "2018-02-01", "full').identity.principalid]", "permissions": {"secrets": ["list", "get", "set"]}}], "sku": {"name": "standard", "family": "a"}, "networkacls": {"defaultaction": "allow", "bypass": "azureservices"}}} |
This module creates a storageAccount resource with apiVersion 2021-01-01. | {"type": "microsoft.storage/storageaccounts", "apiversion": "2020-08-01-preview", "name": "[parameters('stackname')]", "location": "[variables('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "properties": {"minimumtlsversion": "tls1_2", "allowblobpublicaccess": true, "networkacls": {"bypass": "azureservices", "defaultaction": "allow"}, "supportshttpstrafficonly": true, "encryption": {"services": {"file": {"keytype": "account", "enabled": true}, "blob": {"keytype": "account", "enabled": true}}, "keysource": "microsoft.storage"}, "accesstier": "hot"}, "resources": [{"type": "blobservices/containers", "apiversion": "2019-06-01", "name": "[concat('default/", "scripts')]", "dependson": ["[parameters('stackname')]"]}]} |
Create a VM from a Windows Image with 4 Empty Data Disks | {"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[variables('vmname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('nicname'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[concat(variables('vmname'),"vm')]", "adminusername": "[variables('loginuser')]", "adminpassword": "[parameters('loginpassword')]"}, "storageprofile": {"imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "2019-datacenter-core-smalldisk", "version": "latest"}, "osdisk": {"name": "[concat(parameters('stackname'),"vmdisk') ]", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('nicname'))]"}]}}, "resources": [{"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(variables('vmname'),"/antimalware')]", "apiversion": "2019-07-01", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines/", variables('vmname'))]"], "properties": {"publisher": "microsoft.azure.security", "type": "iaasantimalware", "typehandlerversion": "1.3", "autoupgrademinorversion": true, "settings": {"antimalwareenabled": "true", "exclusions": {"extensions": ".log;.ldf", "paths": "d:\\iislogs;d:\\databaselogs", "processes": "mssence.svc"}, "realtimeprotectionenabled": "true", "scheduledscansettings": {"isenabled": "true", "scantype": "quick", "day": 7, "time": 120}}}}]} |
This template creates a data collection rule defining the data source (Syslog) and the destination workspace. | {"apiversion": "2020-02-02-preview", "name": "[parameters('stackname')]", "type": "microsoft.insights/components", "location": "[variables('location')]", "properties": {"applicationid": "[parameters('stackname')]"}} |
Storage Account with Storage Service Encryption and a blob deletion retention policy | {"type": "microsoft.storage/storageaccounts", "apiversion": "2020-08-01-preview", "name": "[parameters('stackname')]", "location": "[variables('location')]", "sku": {"name": "standard_lrs"}, "kind": "storagev2", "properties": {"minimumtlsversion": "tls1_2", "allowblobpublicaccess": true, "networkacls": {"bypass": "azureservices", "defaultaction": "allow"}, "supportshttpstrafficonly": true, "encryption": {"services": {"file": {"keytype": "account", "enabled": true}, "blob": {"keytype": "account", "enabled": true}}, "keysource": "microsoft.storage"}, "accesstier": "hot"}, "resources": [{"type": "blobservices/containers", "apiversion": "2019-06-01", "name": "[concat('default/", "scripts')]", "dependson": ["[parameters('stackname')]"]}]} |
Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage | {"name": "[parameters('stackname')]", "type": "microsoft.sql/servers", "apiversion": "2020-08-01-preview", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/virtualnetworks/subnets",variables('vnetname'), parameters('frontendsubnet'))]"], "tags": {"displayname": "sqlserver"}, "properties": {"administratorlogin": "[variables('loginuser')]", "administratorloginpassword": "[parameters('loginpassword')]", "version": "12.0", "publicnetworkaccess": "enabled"}, "resources": [{"name": "[variables('databasename')]", "type": "databases", "apiversion": "2020-08-01-preview", "location": "[variables('location')]", "tags": {"displayname": "database"}, "sku": {"name": "[variables('databaseedition')]", "tier": "[variables('databaseedition')]", "capacity": 5}, "dependson": ["[parameters('stackname')]"], "properties": {"edition": "[variables('databaseedition')]", "collation": "[variables('databasecollation')]", "requestedserviceobjectivename": "[variables('databaseserviceobjectivename')]"}, "resources": [{"comments": "transparent data encryption", "name": "current", "type": "transparentdataencryption", "apiversion": "2017-03-01-preview", "dependson": ["[variables('databasename')]"], "properties": {"status": "enabled"}}]}, {"name": "allowallmicrosoftazureips", "type": "firewallrules", "apiversion": "2020-08-01-preview", "location": "[variables('location')]", "dependson": ["[parameters('stackname')]"], "properties": {"endipaddress": "0.0.0.0", "startipaddress": "0.0.0.0"}}, {"type": "microsoft.sql/servers/virtualnetworkrules", "apiversion": "2020-08-01-preview", "name": "[concat(parameters('stackname'), "/allow-", parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.sql/servers", parameters('stackname'))]"], "properties": {"virtualnetworksubnetid": "[resourceid('microsoft.network/virtualnetworks/subnets",variables('vnetname'), parameters('frontendsubnet'))]", "ignoremissingvnetserviceendpoint": false}}, {"type": "administrators", "name": "activedirectory", "apiversion": "2020-08-01-preview", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.sql/servers/", parameters('stackname'))]"], "properties": {"administratortype": "activedirectory", "login": "[parameters('aadusername')]", "sid": "[parameters('aaduserobjectid')]", "tenantid": "[subscription().tenantid]"}}]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('gatewaysubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('gatewaysubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[variables('nicname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"name": "[concat( parameters('stackname'),"vmip')]", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}}}]}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('gatewaysubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[variables('nicname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"name": "[concat( parameters('stackname'),"vmip')]", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}}}]}}{"type": "microsoft.network/privateendpoints", "apiversion": "2019-04-01", "name": "[variables('privatedbendpointname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.sql/servers", parameters('stackname'))]"], "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}, "privatelinkserviceconnections": [{"name": "[variables('privatedbendpointname')]", "properties": {"privatelinkserviceid": "[resourceid('microsoft.sql/servers",parameters('stackname'))]", "groupids": ["sqlserver"]}}]}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('gatewaysubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[variables('nicname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"name": "[concat( parameters('stackname'),"vmip')]", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}}}]}}{"type": "microsoft.network/privateendpoints", "apiversion": "2019-04-01", "name": "[variables('privatedbendpointname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.sql/servers", parameters('stackname'))]"], "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}, "privatelinkserviceconnections": [{"name": "[variables('privatedbendpointname')]", "properties": {"privatelinkserviceid": "[resourceid('microsoft.sql/servers",parameters('stackname'))]", "groupids": ["sqlserver"]}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatedbdnszonename')]", "location": "global", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('gatewaysubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[variables('nicname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"name": "[concat( parameters('stackname'),"vmip')]", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}}}]}}{"type": "microsoft.network/privateendpoints", "apiversion": "2019-04-01", "name": "[variables('privatedbendpointname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.sql/servers", parameters('stackname'))]"], "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}, "privatelinkserviceconnections": [{"name": "[variables('privatedbendpointname')]", "properties": {"privatelinkserviceid": "[resourceid('microsoft.sql/servers",parameters('stackname'))]", "groupids": ["sqlserver"]}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatedbdnszonename')]", "location": "global", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[concat(variables('privatedbdnszonename'), "/", variables('privatedbdnszonename'), "-link')]", "location": "global", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2020-03-01", "name": "[variables('privatedbdnsgroupname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[variables('privatedbendpointname')]"], "properties": {"privatednszoneconfigs": [{"name": "config1", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]"}}]}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('gatewaysubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[variables('nicname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"name": "[concat( parameters('stackname'),"vmip')]", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}}}]}}{"type": "microsoft.network/privateendpoints", "apiversion": "2019-04-01", "name": "[variables('privatedbendpointname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.sql/servers", parameters('stackname'))]"], "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}, "privatelinkserviceconnections": [{"name": "[variables('privatedbendpointname')]", "properties": {"privatelinkserviceid": "[resourceid('microsoft.sql/servers",parameters('stackname'))]", "groupids": ["sqlserver"]}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatedbdnszonename')]", "location": "global", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[concat(variables('privatedbdnszonename'), "/", variables('privatedbdnszonename'), "-link')]", "location": "global", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2020-03-01", "name": "[variables('privatedbdnsgroupname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[variables('privatedbendpointname')]"], "properties": {"privatednszoneconfigs": [{"name": "config1", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]"}}]}}{"apiversion": "2020-06-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('gatewaypublicipname')]", "location": "[variables('location')]", "properties": {"publicipallocationmethod": "dynamic"}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('gatewaysubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[variables('nicname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"name": "[concat( parameters('stackname'),"vmip')]", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}}}]}}{"type": "microsoft.network/privateendpoints", "apiversion": "2019-04-01", "name": "[variables('privatedbendpointname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.sql/servers", parameters('stackname'))]"], "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}, "privatelinkserviceconnections": [{"name": "[variables('privatedbendpointname')]", "properties": {"privatelinkserviceid": "[resourceid('microsoft.sql/servers",parameters('stackname'))]", "groupids": ["sqlserver"]}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatedbdnszonename')]", "location": "global", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[concat(variables('privatedbdnszonename'), "/", variables('privatedbdnszonename'), "-link')]", "location": "global", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2020-03-01", "name": "[variables('privatedbdnsgroupname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[variables('privatedbendpointname')]"], "properties": {"privatednszoneconfigs": [{"name": "config1", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]"}}]}}{"apiversion": "2020-06-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('gatewaypublicipname')]", "location": "[variables('location')]", "properties": {"publicipallocationmethod": "dynamic"}}{"apiversion": "2019-04-01", "type": "microsoft.network/virtualnetworkgateways", "name": "[variables('gatewayname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('gatewaypublicipname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('gatewaysubnet'))]"}, "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('gatewaypublicipname'))]"}}, "name": "vnetgatewayconfig"}], "sku": {"name": "basic", "tier": "basic"}, "gatewaytype": "vpn", "vpntype": "routebased", "enablebgp": "false", "vpnclientconfiguration": {"vpnclientaddresspool": {"addressprefixes": ["[variables('vpnclientaddresspoolprefix')]"]}, "vpnclientrootcertificates": [{"name": "p2srootcert", "properties": {"publiccertdata": "[parameters('p2srootcert')]"}}]}}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('gatewaysubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[variables('nicname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"name": "[concat( parameters('stackname'),"vmip')]", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}}}]}}{"type": "microsoft.network/privateendpoints", "apiversion": "2019-04-01", "name": "[variables('privatedbendpointname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.sql/servers", parameters('stackname'))]"], "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}, "privatelinkserviceconnections": [{"name": "[variables('privatedbendpointname')]", "properties": {"privatelinkserviceid": "[resourceid('microsoft.sql/servers",parameters('stackname'))]", "groupids": ["sqlserver"]}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatedbdnszonename')]", "location": "global", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[concat(variables('privatedbdnszonename'), "/", variables('privatedbdnszonename'), "-link')]", "location": "global", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2020-03-01", "name": "[variables('privatedbdnsgroupname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[variables('privatedbendpointname')]"], "properties": {"privatednszoneconfigs": [{"name": "config1", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]"}}]}}{"apiversion": "2020-06-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('gatewaypublicipname')]", "location": "[variables('location')]", "properties": {"publicipallocationmethod": "dynamic"}}{"apiversion": "2019-04-01", "type": "microsoft.network/virtualnetworkgateways", "name": "[variables('gatewayname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('gatewaypublicipname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('gatewaysubnet'))]"}, "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('gatewaypublicipname'))]"}}, "name": "vnetgatewayconfig"}], "sku": {"name": "basic", "tier": "basic"}, "gatewaytype": "vpn", "vpntype": "routebased", "enablebgp": "false", "vpnclientconfiguration": {"vpnclientaddresspool": {"addressprefixes": ["[variables('vpnclientaddresspoolprefix')]"]}, "vpnclientrootcertificates": [{"name": "p2srootcert", "properties": {"publiccertdata": "[parameters('p2srootcert')]"}}]}}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatehost1dnszonename')]", "location": "global", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-06-01", "name": "[variables('vnetname')]", "location": "[variables('location')]", "properties": {"addressspace": {"addressprefixes": ["172.16.0.0/16"]}, "enableddosprotection": false, "enablevmprotection": false, "subnets": [{"name": "[parameters('frontendsubnet')]", "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('backendsubnet')]", "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}, {"name": "[parameters('gatewaysubnet')]", "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}]}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('frontendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.0.0/24", "serviceendpoints": [{"service": "microsoft.sql"}], "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('backendsubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.1.0/24", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-06-01", "name": "[concat(variables('vnetname'), "/",parameters('gatewaysubnet'))]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"addressprefix": "172.16.255.0/27", "privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "disabled"}}{"type": "microsoft.network/networkinterfaces", "apiversion": "2020-06-01", "name": "[variables('nicname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"name": "[concat( parameters('stackname'),"vmip')]", "properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}}}]}}{"type": "microsoft.network/privateendpoints", "apiversion": "2019-04-01", "name": "[variables('privatedbendpointname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.sql/servers", parameters('stackname'))]"], "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('backendsubnet'))]"}, "privatelinkserviceconnections": [{"name": "[variables('privatedbendpointname')]", "properties": {"privatelinkserviceid": "[resourceid('microsoft.sql/servers",parameters('stackname'))]", "groupids": ["sqlserver"]}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatedbdnszonename')]", "location": "global", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[concat(variables('privatedbdnszonename'), "/", variables('privatedbdnszonename'), "-link')]", "location": "global", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2020-03-01", "name": "[variables('privatedbdnsgroupname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]", "[variables('privatedbendpointname')]"], "properties": {"privatednszoneconfigs": [{"name": "config1", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatedbdnszonename'))]"}}]}}{"apiversion": "2020-06-01", "type": "microsoft.network/publicipaddresses", "name": "[variables('gatewaypublicipname')]", "location": "[variables('location')]", "properties": {"publicipallocationmethod": "dynamic"}}{"apiversion": "2019-04-01", "type": "microsoft.network/virtualnetworkgateways", "name": "[variables('gatewayname')]", "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.network/publicipaddresses/", variables('gatewaypublicipname'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('vnetname'))]"], "properties": {"ipconfigurations": [{"properties": {"privateipallocationmethod": "dynamic", "subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnetname'), parameters('gatewaysubnet'))]"}, "publicipaddress": {"id": "[resourceid('microsoft.network/publicipaddresses",variables('gatewaypublicipname'))]"}}, "name": "vnetgatewayconfig"}], "sku": {"name": "basic", "tier": "basic"}, "gatewaytype": "vpn", "vpntype": "routebased", "enablebgp": "false", "vpnclientconfiguration": {"vpnclientaddresspool": {"addressprefixes": ["[variables('vpnclientaddresspoolprefix')]"]}, "vpnclientrootcertificates": [{"name": "p2srootcert", "properties": {"publiccertdata": "[parameters('p2srootcert')]"}}]}}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatehost1dnszonename')]", "location": "global", "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[concat(variables('privatehost1dnszonename'), "/", variables('privatehost1dnszonename'), "-link')]", "location": "global", "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatehost1dnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"], "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}} |
This module creates a storageAccount resource with apiVersion 2021-01-01. | {"apiversion": "2021-02-01", "type": "microsoft.storage/storageaccounts", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storageaccountskuname')]"}, "kind": "[parameters('storageaccountkind')]", "resources": [{"name": "[concat('default/", variables('blobcontainername'))]", "type": "blobservices/containers", "apiversion": "2021-02-01", "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname'))]"], "properties": {"publicaccess": "blob"}}]} |
Storage Account with Storage Service Encryption and a blob deletion retention policy | {"apiversion": "2021-02-01", "type": "microsoft.storage/storageaccounts", "name": "[parameters('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storageaccountskuname')]"}, "kind": "[parameters('storageaccountkind')]", "resources": [{"name": "[concat('default/", variables('blobcontainername'))]", "type": "blobservices/containers", "apiversion": "2021-02-01", "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname'))]"], "properties": {"publicaccess": "blob"}}]} |
This template creates a data collection rule defining the data source (Syslog) and the destination workspace. | {"apiversion": "2020-02-02-preview", "name": "[variables('appinsight')]", "type": "microsoft.insights/components", "location": "[parameters('location')]", "properties": {"applicationid": "[parameters('webappname')]"}} |
This template creates an Azure Cosmos account for Core (SQL) API and a container with a stored procedure, trigger and user defined function. | {"type": "microsoft.documentdb/databaseaccounts", "apiversion": "2021-10-15", "name": "[parameters('databaseaccountname')]", "location": "[parameters('location')]", "properties": {"databaseaccountoffertype": "[variables('databaseaccounttier')]", "locations": [{"locationname": "[parameters('location')]", "failoverpriority": 0}]}} |
Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage | {"type": "microsoft.sql/servers", "apiversion": "2021-02-01-preview", "name": "[variables('sqlservername')]", "location": "[parameters('location')]", "tags": {"displayname": "sql server"}, "properties": {"administratorlogin": "[parameters('sqladministratorlogin')]", "administratorloginpassword": "[parameters('sqladministratorloginpassword')]", "version": "12.0"}} |
Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage | {"type": "microsoft.sql/servers", "apiversion": "2021-02-01-preview", "name": "[variables('sqlservername')]", "location": "[parameters('location')]", "tags": {"displayname": "sql server"}, "properties": {"administratorlogin": "[parameters('sqladministratorlogin')]", "administratorloginpassword": "[parameters('sqladministratorloginpassword')]", "version": "12.0"}}{"type": "microsoft.sql/servers/databases", "apiversion": "2021-02-01-preview", "name": "[format('{0}/{1}", variables('sqlservername'), variables('databasename'))]", "location": "[parameters('location')]", "tags": {"displayname": "database"}, "sku": {"name": "basic"}, "properties": {"collation": "sql_latin1_general_cp1_ci_as", "maxsizebytes": 1073741824}, "dependson": ["[resourceid('microsoft.sql/servers", variables('sqlservername'))]"]} |
Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage | {"type": "microsoft.sql/servers", "apiversion": "2021-02-01-preview", "name": "[variables('sqlservername')]", "location": "[parameters('location')]", "tags": {"displayname": "sql server"}, "properties": {"administratorlogin": "[parameters('sqladministratorlogin')]", "administratorloginpassword": "[parameters('sqladministratorloginpassword')]", "version": "12.0"}}{"type": "microsoft.sql/servers/databases", "apiversion": "2021-02-01-preview", "name": "[format('{0}/{1}", variables('sqlservername'), variables('databasename'))]", "location": "[parameters('location')]", "tags": {"displayname": "database"}, "sku": {"name": "basic"}, "properties": {"collation": "sql_latin1_general_cp1_ci_as", "maxsizebytes": 1073741824}, "dependson": ["[resourceid('microsoft.sql/servers", variables('sqlservername'))]"]}{"type": "microsoft.sql/servers/firewallrules", "apiversion": "2021-02-01-preview", "name": "[format('{0}/{1}", variables('sqlservername'), "allowallwindowsazureips')]", "properties": {"endipaddress": "0.0.0.0", "startipaddress": "0.0.0.0"}, "dependson": ["[resourceid('microsoft.sql/servers", variables('sqlservername'))]"]} |
This template provides a way to deploy an Azure database for MySQL with VNet integration. | {"type": "microsoft.dbformysql/servers", "apiversion": "2017-12-01", "name": "[variables('servername')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('databaseskuname')]", "tier": "[parameters('databaseskutier')]", "capacity": "[parameters('databaseskucapacity')]", "size": "[string(parameters('databaseskusizemb'))]", "family": "[parameters('databaseskufamily')]"}, "properties": {"createmode": "default", "version": "[parameters('mysqlversion')]", "administratorlogin": "[parameters('administratorlogin')]", "administratorloginpassword": "[parameters('administratorloginpassword')]", "storageprofile": {"storagemb": "[parameters('databaseskusizemb')]", "backupretentiondays": 7, "georedundantbackup": "disabled"}, "sslenforcement": "disabled"}} |
This template provides a way to deploy an Azure database for MySQL with VNet integration. | {"type": "microsoft.dbformysql/servers", "apiversion": "2017-12-01", "name": "[variables('servername')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('databaseskuname')]", "tier": "[parameters('databaseskutier')]", "capacity": "[parameters('databaseskucapacity')]", "size": "[string(parameters('databaseskusizemb'))]", "family": "[parameters('databaseskufamily')]"}, "properties": {"createmode": "default", "version": "[parameters('mysqlversion')]", "administratorlogin": "[parameters('administratorlogin')]", "administratorloginpassword": "[parameters('administratorloginpassword')]", "storageprofile": {"storagemb": "[parameters('databaseskusizemb')]", "backupretentiondays": 7, "georedundantbackup": "disabled"}, "sslenforcement": "disabled"}}{"type": "microsoft.dbformysql/servers/firewallrules", "apiversion": "2017-12-01", "name": "[format('{0}/{1}", variables('servername'), "allowazureips')]", "properties": {"startipaddress": "0.0.0.0", "endipaddress": "0.0.0.0"}, "dependson": ["[resourceid('microsoft.dbformysql/servers/databases", variables('servername'), variables('databasename'))]", "[resourceid('microsoft.dbformysql/servers", variables('servername'))]"]} |
This template provides a way to deploy an Azure database for MySQL with VNet integration. | {"type": "microsoft.dbformysql/servers", "apiversion": "2017-12-01", "name": "[variables('servername')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('databaseskuname')]", "tier": "[parameters('databaseskutier')]", "capacity": "[parameters('databaseskucapacity')]", "size": "[string(parameters('databaseskusizemb'))]", "family": "[parameters('databaseskufamily')]"}, "properties": {"createmode": "default", "version": "[parameters('mysqlversion')]", "administratorlogin": "[parameters('administratorlogin')]", "administratorloginpassword": "[parameters('administratorloginpassword')]", "storageprofile": {"storagemb": "[parameters('databaseskusizemb')]", "backupretentiondays": 7, "georedundantbackup": "disabled"}, "sslenforcement": "disabled"}}{"type": "microsoft.dbformysql/servers/firewallrules", "apiversion": "2017-12-01", "name": "[format('{0}/{1}", variables('servername'), "allowazureips')]", "properties": {"startipaddress": "0.0.0.0", "endipaddress": "0.0.0.0"}, "dependson": ["[resourceid('microsoft.dbformysql/servers/databases", variables('servername'), variables('databasename'))]", "[resourceid('microsoft.dbformysql/servers", variables('servername'))]"]}{"type": "microsoft.dbformysql/servers/databases", "apiversion": "2017-12-01", "name": "[format('{0}/{1}", variables('servername'), variables('databasename'))]", "properties": {"charset": "utf8", "collation": "utf8_general_ci"}, "dependson": ["[resourceid('microsoft.dbformysql/servers", variables('servername'))]"]} |
Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage | {"type": "microsoft.sql/servers", "apiversion": "2020-02-02-preview", "location": "[parameters('location')]", "name": "[variables('sqlservername')]", "kind": "v12.0", "properties": {"administratorlogin": "[parameters('sqlserveradministratorusername')]", "administratorloginpassword": "[parameters('sqlserveradministratorpassword')]", "version": "12.0"}, "resources": [{"type": "firewallrules", "apiversion": "2020-02-02-preview", "location": "[parameters('location')]", "name": "[concat(variables('sqlservername'),"firewall')]", "properties": {"startipaddress": "0.0.0.0", "endipaddress": "0.0.0.0"}, "dependson": ["[variables('sqlservername')]"]}, {"type": "databases", "apiversion": "2020-02-02-preview", "name": "[variables('databasename')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('sqldatabaseskuname')]", "tier": "generalpurpose"}, "kind": "[concat('v12.0,user,vcore",if(contains(variables('sqldatabaseserverlesstiers'),parameters('sqldatabaseskuname')),",serverless","'))]", "properties": {"collation": "sql_latin1_general_cp1_cs_as", "catalogcollation": "sql_latin1_general_cp1_ci_as", "maxsizebytes": "[mul(mul(mul(parameters('sqldatabaseskusizegb'),1024),1024),1024)]"}, "dependson": ["[variables('sqlservername')]"]}]} |
This module creates a storageAccount resource with apiVersion 2021-01-01. | {"type": "microsoft.storage/storageaccounts", "apiversion": "2021-02-01", "name": "[parameters('functionstorageaccountname')]", "location": "[parameters('location')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}, "properties": {"networkacls": {"bypass": "none", "defaultaction": "deny"}}} |
This module creates a storageAccount resource with apiVersion 2021-01-01. | {"type": "microsoft.storage/storageaccounts", "apiversion": "2021-02-01", "name": "[parameters('functionstorageaccountname')]", "location": "[parameters('location')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}, "properties": {"networkacls": {"bypass": "none", "defaultaction": "deny"}}}{"type": "microsoft.storage/storageaccounts/fileservices/shares", "apiversion": "2021-04-01", "name": "[format('{0}/default/{1}", parameters('functionstorageaccountname'), variables('functioncontentsharename'))]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('functionstorageaccountname'))]"]} |
Storage Account with Storage Service Encryption and a blob deletion retention policy | {"type": "microsoft.storage/storageaccounts", "apiversion": "2021-02-01", "name": "[parameters('functionstorageaccountname')]", "location": "[parameters('location')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}, "properties": {"networkacls": {"bypass": "none", "defaultaction": "deny"}}} |
Storage Account with Storage Service Encryption and a blob deletion retention policy | {"type": "microsoft.storage/storageaccounts", "apiversion": "2021-02-01", "name": "[parameters('functionstorageaccountname')]", "location": "[parameters('location')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}, "properties": {"networkacls": {"bypass": "none", "defaultaction": "deny"}}}{"type": "microsoft.storage/storageaccounts/fileservices/shares", "apiversion": "2021-04-01", "name": "[format('{0}/default/{1}", parameters('functionstorageaccountname'), variables('functioncontentsharename'))]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('functionstorageaccountname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragefilednszonename'), format('{0}-link", variables('privatestoragefilednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragefilednszonename'), format('{0}-link", variables('privatestoragefilednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestorageblobdnszonename'), format('{0}-link", variables('privatestorageblobdnszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragefilednszonename'), format('{0}-link", variables('privatestoragefilednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestorageblobdnszonename'), format('{0}-link", variables('privatestorageblobdnszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragetablednszonename'), format('{0}-link", variables('privatestoragetablednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragequeuednszonename'), format('{0}-link", variables('privatestoragequeuednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragefilednszonename'), format('{0}-link", variables('privatestoragefilednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestorageblobdnszonename'), format('{0}-link", variables('privatestorageblobdnszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragetablednszonename'), format('{0}-link", variables('privatestoragetablednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragequeuednszonename'), format('{0}-link", variables('privatestoragequeuednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragefilename'), "fileprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragefilename'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragefilednszonename'), format('{0}-link", variables('privatestoragefilednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestorageblobdnszonename'), format('{0}-link", variables('privatestorageblobdnszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragetablednszonename'), format('{0}-link", variables('privatestoragetablednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragequeuednszonename'), format('{0}-link", variables('privatestoragequeuednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragefilename'), "fileprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragefilename'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstorageblobname'), "blobprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstorageblobname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragefilednszonename'), format('{0}-link", variables('privatestoragefilednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestorageblobdnszonename'), format('{0}-link", variables('privatestorageblobdnszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragetablednszonename'), format('{0}-link", variables('privatestoragetablednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragequeuednszonename'), format('{0}-link", variables('privatestoragequeuednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragefilename'), "fileprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragefilename'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstorageblobname'), "blobprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstorageblobname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragetablename'), "tableprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragetablename'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragefilednszonename'), format('{0}-link", variables('privatestoragefilednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestorageblobdnszonename'), format('{0}-link", variables('privatestorageblobdnszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragetablednszonename'), format('{0}-link", variables('privatestoragetablednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragequeuednszonename'), format('{0}-link", variables('privatestoragequeuednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragefilename'), "fileprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragefilename'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstorageblobname'), "blobprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstorageblobname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragetablename'), "tableprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragetablename'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragequeuename'), "tableprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragequeuename'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragefilednszonename'), format('{0}-link", variables('privatestoragefilednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestorageblobdnszonename'), format('{0}-link", variables('privatestorageblobdnszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragetablednszonename'), format('{0}-link", variables('privatestoragetablednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragequeuednszonename'), format('{0}-link", variables('privatestoragequeuednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragefilename'), "fileprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragefilename'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstorageblobname'), "blobprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstorageblobname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragetablename'), "tableprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragetablename'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragequeuename'), "tableprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragequeuename'))]"]}{"type": "microsoft.network/privateendpoints", "apiversion": "2021-02-01", "name": "[variables('privateendpointstoragefilename')]", "location": "[parameters('location')]", "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('privateendpointsubnetname'))]"}, "privatelinkserviceconnections": [{"name": "mystoragefileprivatelinkconnection", "properties": {"privatelinkserviceid": "[resourceid('microsoft.storage/storageaccounts", parameters('functionstorageaccountname'))]", "groupids": ["file"]}}]}, "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('functionstorageaccountname'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/virtualnetworks", "apiversion": "2020-07-01", "name": "[parameters('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[parameters('functionsubnetname')]", "properties": {"privateendpointnetworkpolicies": "enabled", "privatelinkservicenetworkpolicies": "enabled", "delegations": [{"name": "webapp", "properties": {"servicename": "microsoft.web/serverfarms"}}], "addressprefix": "[parameters('functionsubnetaddressprefix')]"}}, {"name": "[parameters('privateendpointsubnetname')]", "properties": {"privateendpointnetworkpolicies": "disabled", "privatelinkservicenetworkpolicies": "enabled", "addressprefix": "[parameters('privateendpointsubnetaddressprefix')]"}}]}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragefilednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestorageblobdnszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragequeuednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[variables('privatestoragetablednszonename')]", "location": "global"}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragefilednszonename'), format('{0}-link", variables('privatestoragefilednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestorageblobdnszonename'), format('{0}-link", variables('privatestorageblobdnszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragetablednszonename'), format('{0}-link", variables('privatestoragetablednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", variables('privatestoragequeuednszonename'), format('{0}-link", variables('privatestoragequeuednszonename')))]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragefilename'), "fileprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragefilednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragefilename'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstorageblobname'), "blobprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestorageblobdnszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstorageblobname'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragetablename'), "tableprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragetablednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragetablename'))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", variables('privateendpointstoragequeuename'), "tableprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", variables('privatestoragequeuednszonename'))]", "[resourceid('microsoft.network/privateendpoints", variables('privateendpointstoragequeuename'))]"]}{"type": "microsoft.network/privateendpoints", "apiversion": "2021-02-01", "name": "[variables('privateendpointstoragefilename')]", "location": "[parameters('location')]", "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('privateendpointsubnetname'))]"}, "privatelinkserviceconnections": [{"name": "mystoragefileprivatelinkconnection", "properties": {"privatelinkserviceid": "[resourceid('microsoft.storage/storageaccounts", parameters('functionstorageaccountname'))]", "groupids": ["file"]}}]}, "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('functionstorageaccountname'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]}{"type": "microsoft.network/privateendpoints", "apiversion": "2021-02-01", "name": "[variables('privateendpointstoragetablename')]", "location": "[parameters('location')]", "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('privateendpointsubnetname'))]"}, "privatelinkserviceconnections": [{"name": "mystoragetableprivatelinkconnection", "properties": {"privatelinkserviceid": "[resourceid('microsoft.storage/storageaccounts", parameters('functionstorageaccountname'))]", "groupids": ["table"]}}]}, "dependson": ["[resourceid('microsoft.storage/storageaccounts", parameters('functionstorageaccountname'))]", "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]} |
Storage Account with Storage Service Encryption and a blob deletion retention policy | {"type": "microsoft.storage/storageaccounts", "name": "[parameters('storageaccountname')]", "apiversion": "2019-06-01", "location": "[parameters('location')]", "kind": "storagev2", "sku": {"name": "standard_lrs"}} |
This module creates a storageAccount resource with apiVersion 2021-01-01. | {"apiversion": "2019-06-01", "type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}} |
This template creates a data collection rule defining the data source (Syslog) and the destination workspace. | {"apiversion": "2018-05-01-preview", "name": "[parameters('functionappname')]", "type": "microsoft.insights/components", "location": "[variables('insightslocation')[environment().name]]", "tags": {"[concat('hidden-link:", resourceid('microsoft.web/sites/", parameters('functionappname')))]": "resource"}, "properties": {"applicationid": "[parameters('functionappname')]"}} |
Storage Account with Storage Service Encryption and a blob deletion retention policy | {"apiversion": "2019-06-01", "type": "microsoft.storage/storageaccounts", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "standard_lrs"}} |
This sample contains a script to easily migrate template gallery templates to templateSpec resources. | {"condition": "[parameters('useexistingvnetandsubnet')]", "type": "microsoft.resources/deployments", "apiversion": "2019-10-01", "name": "[format('{0}-subnet-delegation-{1}", parameters('subnetname'), variables('unistr'))]", "resourcegroup": "[parameters('vnetresourcegroupname')]", "properties": {"expressionevaluationoptions": {"scope": "inner"}, "mode": "incremental", "parameters": {"virtualnetworkname": {"value": "[parameters('virtualnetworkname')]"}, "subnetname": {"value": "[parameters('subnetname')]"}, "subnetaddressprefix": {"value": "[parameters('subnetaddressprefix')]"}}, "template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#", "contentversion": "1.0.0.0", "parameters": {"virtualnetworkname": {"type": "string", "metadata": {"description": "required. the virtual network (vnet) name."}}, "subnetname": {"type": "string", "metadata": {"description": "required. the subnet name of asev3."}}, "subnetaddressprefix": {"type": "string", "metadata": {"description": "required. the subnet name of asev3."}}}, "functions": [], "resources": [{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-11-01", "name": "[format('{0}/{1}", parameters('virtualnetworkname'), parameters('subnetname'))]", "properties": {"addressprefix": "[parameters('subnetaddressprefix')]", "delegations": [{"name": "microsoft.web.hostingenvironments", "properties": {"servicename": "microsoft.web/hostingenvironments"}}]}}]}}} |
This sample contains a script to easily migrate template gallery templates to templateSpec resources. | {"condition": "[parameters('useexistingvnetandsubnet')]", "type": "microsoft.resources/deployments", "apiversion": "2019-10-01", "name": "[format('{0}-subnet-delegation-{1}", parameters('subnetname'), variables('unistr'))]", "resourcegroup": "[parameters('vnetresourcegroupname')]", "properties": {"expressionevaluationoptions": {"scope": "inner"}, "mode": "incremental", "parameters": {"virtualnetworkname": {"value": "[parameters('virtualnetworkname')]"}, "subnetname": {"value": "[parameters('subnetname')]"}, "subnetaddressprefix": {"value": "[parameters('subnetaddressprefix')]"}}, "template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#", "contentversion": "1.0.0.0", "parameters": {"virtualnetworkname": {"type": "string", "metadata": {"description": "required. the virtual network (vnet) name."}}, "subnetname": {"type": "string", "metadata": {"description": "required. the subnet name of asev3."}}, "subnetaddressprefix": {"type": "string", "metadata": {"description": "required. the subnet name of asev3."}}}, "functions": [], "resources": [{"type": "microsoft.network/virtualnetworks/subnets", "apiversion": "2020-11-01", "name": "[format('{0}/{1}", parameters('virtualnetworkname'), parameters('subnetname'))]", "properties": {"addressprefix": "[parameters('subnetaddressprefix')]", "delegations": [{"name": "microsoft.web.hostingenvironments", "properties": {"servicename": "microsoft.web/hostingenvironments"}}]}}]}}}{"condition": "[and(parameters('createprivatedns'), equals(parameters('internalloadbalancingmode'), 3))]", "type": "microsoft.resources/deployments", "apiversion": "2019-10-01", "name": "[format('private-dns-zone-deployment-{0}", variables('unistr'))]", "properties": {"expressionevaluationoptions": {"scope": "inner"}, "mode": "incremental", "parameters": {"privatednszonename": {"value": "[reference(resourceid('microsoft.web/hostingenvironments", parameters('asename'))).dnssuffix]"}, "virtualnetworkid": {"value": "[variables('virtualnetworkid')]"}, "asename": {"value": "[parameters('asename')]"}}, "template": {"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#", "contentversion": "1.0.0.0", "parameters": {"asename": {"type": "string", "metadata": {"description": "required. ase name."}}, "privatednszonename": {"type": "string", "metadata": {"description": "required. private dns zone name."}}, "virtualnetworkid": {"type": "string", "metadata": {"description": "required. network id."}}}, "functions": [], "resources": [{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[parameters('privatednszonename')]", "location": "global", "properties": {}}, {"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('privatednszonename'), "vnetlink')]", "location": "global", "properties": {"virtualnetwork": {"id": "[parameters('virtualnetworkid')]"}, "registrationenabled": false}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('privatednszonename'))]"]}, {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('privatednszonename'), "*')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.web/hostingenvironments/configurations", split(format('{0}/networking", parameters('asename')), "/')[0], split(format('{0}/networking", parameters('asename')), "/')[1]), "2021-01-15').internalinboundipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('privatednszonename'))]"]}, {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('privatednszonename'), "*.scm')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.web/hostingenvironments/configurations", split(format('{0}/networking", parameters('asename')), "/')[0], split(format('{0}/networking", parameters('asename')), "/')[1]), "2021-01-15').internalinboundipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('privatednszonename'))]"]}, {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('privatednszonename'), "@')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.web/hostingenvironments/configurations", split(format('{0}/networking", parameters('asename')), "/')[0], split(format('{0}/networking", parameters('asename')), "/')[1]), "2021-01-15').internalinboundipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('privatednszonename'))]"]}]}}, "dependson": ["[resourceid('microsoft.web/hostingenvironments", parameters('asename'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"condition": "[not(parameters('useexistingvnetandsubnet'))]", "type": "microsoft.network/networksecuritygroups", "apiversion": "2020-11-01", "name": "[parameters('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"copy": [{"name": "securityrules", "count": "[length(parameters('networksecuritygroupsecurityrules'))]", "input": {"name": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].name]", "properties": {"description": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.description]", "access": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.access]", "destinationaddressprefix": "[if(equals(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationaddressprefix, "'), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationaddressprefix)]", "destinationaddressprefixes": "[if(equals(length(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationaddressprefixes), 0), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationaddressprefixes)]", "destinationportranges": "[if(equals(length(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationportranges), 0), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationportranges)]", "destinationportrange": "[if(equals(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationportrange, "'), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationportrange)]", "direction": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.direction]", "priority": "[int(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.priority)]", "protocol": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.protocol]", "sourceaddressprefix": "[if(equals(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceaddressprefix, "'), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceaddressprefix)]", "sourceportranges": "[if(equals(length(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceportranges), 0), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceportranges)]", "sourceportrange": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceportrange]"}}}]}} |
Establish connection to a VNET via an ExpressRoute circuit | {"condition": "[not(parameters('useexistingvnetandsubnet'))]", "type": "microsoft.network/networksecuritygroups", "apiversion": "2020-11-01", "name": "[parameters('networksecuritygroupname')]", "location": "[parameters('location')]", "properties": {"copy": [{"name": "securityrules", "count": "[length(parameters('networksecuritygroupsecurityrules'))]", "input": {"name": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].name]", "properties": {"description": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.description]", "access": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.access]", "destinationaddressprefix": "[if(equals(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationaddressprefix, "'), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationaddressprefix)]", "destinationaddressprefixes": "[if(equals(length(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationaddressprefixes), 0), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationaddressprefixes)]", "destinationportranges": "[if(equals(length(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationportranges), 0), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationportranges)]", "destinationportrange": "[if(equals(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationportrange, "'), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.destinationportrange)]", "direction": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.direction]", "priority": "[int(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.priority)]", "protocol": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.protocol]", "sourceaddressprefix": "[if(equals(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceaddressprefix, "'), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceaddressprefix)]", "sourceportranges": "[if(equals(length(parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceportranges), 0), json('null'), parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceportranges)]", "sourceportrange": "[parameters('networksecuritygroupsecurityrules')[copyindex('securityrules')].properties.sourceportrange]"}}}]}}{"condition": "[not(parameters('useexistingvnetandsubnet'))]", "type": "microsoft.network/virtualnetworks", "apiversion": "2020-11-01", "name": "[parameters('virtualnetworkname')]", "location": "[parameters('location')]", "properties": {"copy": [{"name": "subnets", "count": "[length(parameters('subnets'))]", "input": {"name": "[parameters('subnets')[copyindex('subnets')].name]", "properties": {"addressprefix": "[parameters('subnets')[copyindex('subnets')].addressprefix]", "networksecuritygroup": "[if(empty(parameters(\"subnets\')[copyindex(\"subnets\')].networksecuritygroupname), json(\"null\'), json(format(\"{{"id": "{0}"}}\", resourceid(\"microsoft.network/networksecuritygroups\", parameters(\"subnets\')[copyindex(\"subnets\')].networksecuritygroupname))))]", "delegations": "[parameters('subnets')[copyindex('subnets')].delegations]"}}}], "addressspace": {"addressprefixes": "[parameters('vnetaddressprefixes')]"}}, "dependson": ["[resourceid('microsoft.network/networksecuritygroups", parameters('networksecuritygroupname'))]"]} |
This template creates an Azure Notification Hub. Template originally authored by John Downs. | {"apiversion": "2017-04-01", "type": "microsoft.notificationhubs/namespaces", "name": "[variables('notificationhubnamespace')]", "location": "[parameters('location')]", "properties": {"region": "[parameters('location')]", "namespacetype": "notificationhub"}} |
This template creates an Azure Notification Hub. Template originally authored by John Downs. | {"apiversion": "2017-04-01", "type": "microsoft.notificationhubs/namespaces", "name": "[variables('notificationhubnamespace')]", "location": "[parameters('location')]", "properties": {"region": "[parameters('location')]", "namespacetype": "notificationhub"}}{"apiversion": "2017-04-01", "name": "[concat(variables('notificationhubnamespace'), "/", variables('uniqueappname'), "-hub')]", "type": "microsoft.notificationhubs/namespaces/notificationhubs", "location": "[parameters('location')]", "dependson": ["[variables('notificationhubnamespace')]"], "properties": {}} |
Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage | {"name": "[variables('databaseservername')]", "type": "microsoft.sql/servers", "location": "[parameters('location')]", "apiversion": "2020-02-02-preview", "properties": {"administratorlogin": "[parameters('sqlserveradminlogin')]", "administratorloginpassword": "[parameters('sqlserveradminpassword')]", "version": "12.0"}, "resources": [{"name": "[variables('databasename')]", "type": "databases", "location": "[parameters('location')]", "apiversion": "2020-02-02-preview", "dependson": ["[variables('databaseservername')]"], "properties": {"edition": "[parameters('sqldatabaseedition')]", "collation": "[parameters('sqldatabasecollation')]", "maxsizebytes": "[parameters('sqldatabasemaxsizebytes')]"}}, {"type": "firewallrules", "apiversion": "2020-02-02-preview", "dependson": ["[variables('databaseservername')]"], "location": "[parameters('location')]", "name": "open", "properties": {"endipaddress": "255.255.255.255", "startipaddress": "0.0.0.0"}}]} |
This template creates a data collection rule defining the data source (Syslog) and the destination workspace. | {"type": "microsoft.insights/components", "apiversion": "2020-02-02-preview", "name": "[variables('appinsights')]", "location": "[parameters('location')]", "properties": {"applicationid": "[parameters('webappname')]", "application_type": "web"}} |
This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01. | {"type": "microsoft.keyvault/vaults/secrets", "apiversion": "2021-04-01-preview", "name": "[format('{0}/{1}", variables('keyvaultname'), format('kvs-{0}-aikey", variables('basename')))]", "properties": {"value": "[reference(resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))).instrumentationkey]"}, "dependson": ["[resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))]", "[resourceid('microsoft.keyvault/vaults", variables('keyvaultname'))]"]} |
This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01. | {"type": "microsoft.keyvault/vaults/secrets", "apiversion": "2021-04-01-preview", "name": "[format('{0}/{1}", variables('keyvaultname'), format('kvs-{0}-aikey", variables('basename')))]", "properties": {"value": "[reference(resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))).instrumentationkey]"}, "dependson": ["[resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))]", "[resourceid('microsoft.keyvault/vaults", variables('keyvaultname'))]"]}{"type": "microsoft.keyvault/vaults", "apiversion": "2021-04-01-preview", "name": "[variables('keyvaultname')]", "location": "[parameters('location')]", "properties": {"sku": {"family": "a", "name": "standard"}, "tenantid": "[subscription().tenantid]", "accesspolicies": [{"tenantid": "[reference(resourceid('microsoft.web/sites", variables('webappname')), "2020-12-01", "full').identity.tenantid]", "objectid": "[reference(resourceid('microsoft.web/sites", variables('webappname')), "2020-12-01", "full').identity.principalid]", "permissions": {"secrets": ["get"]}}], "networkacls": {"bypass": "none", "defaultaction": "deny"}}, "dependson": ["[resourceid('microsoft.web/sites", variables('webappname'))]"]} |
This template creates a data collection rule defining the data source (Syslog) and the destination workspace. | {"type": "microsoft.insights/components", "apiversion": "2020-02-02", "name": "[format('ai-{0}", variables('basename'))]", "location": "[parameters('location')]", "kind": "web", "properties": {"application_type": "web", "workspaceresourceid": "[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]"}, "dependson": ["[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]"]} |
This template creates a data collection rule defining the data source (Syslog) and the destination workspace. | {"type": "microsoft.insights/components", "apiversion": "2020-02-02", "name": "[format('ai-{0}", variables('basename'))]", "location": "[parameters('location')]", "kind": "web", "properties": {"application_type": "web", "workspaceresourceid": "[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]"}, "dependson": ["[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]"]}{"type": "microsoft.insights/diagnosticsettings", "apiversion": "2021-05-01-preview", "scope": "[format('microsoft.apimanagement/service/{0}", variables('apimanagementservicename'))]", "name": "apimanagementdiagnosticsettings", "properties": {"workspaceid": "[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]", "logs": [{"category": "gatewaylogs", "enabled": true}], "metrics": [{"category": "allmetrics", "enabled": true}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]"]} |
This template creates a data collection rule defining the data source (Syslog) and the destination workspace. | {"type": "microsoft.insights/components", "apiversion": "2020-02-02", "name": "[format('ai-{0}", variables('basename'))]", "location": "[parameters('location')]", "kind": "web", "properties": {"application_type": "web", "workspaceresourceid": "[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]"}, "dependson": ["[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]"]}{"type": "microsoft.insights/diagnosticsettings", "apiversion": "2021-05-01-preview", "scope": "[format('microsoft.apimanagement/service/{0}", variables('apimanagementservicename'))]", "name": "apimanagementdiagnosticsettings", "properties": {"workspaceid": "[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]", "logs": [{"category": "gatewaylogs", "enabled": true}], "metrics": [{"category": "allmetrics", "enabled": true}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]"]}{"type": "microsoft.insights/diagnosticsettings", "apiversion": "2021-05-01-preview", "scope": "[format('microsoft.network/applicationgateways/{0}", variables('applicationgatewayname'))]", "name": "diagnosticsettings", "properties": {"workspaceid": "[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]", "logs": [{"category": "applicationgatewayaccesslog", "enabled": true}, {"category": "applicationgatewayperformancelog", "enabled": true}, {"category": "applicationgatewayfirewalllog", "enabled": true}], "metrics": [{"category": "allmetrics", "enabled": true}]}, "dependson": ["[resourceid('microsoft.network/applicationgateways", variables('applicationgatewayname'))]", "[resourceid('microsoft.operationalinsights/workspaces", format('log-{0}", variables('basename')))]"]} |
Creates and optionally secures a Key Vault with logging linked to a storage account. | {"type": "microsoft.keyvault/vaults/secrets", "apiversion": "2021-04-01-preview", "name": "[format('{0}/{1}", variables('keyvaultname'), format('kvs-{0}-aikey", variables('basename')))]", "properties": {"value": "[reference(resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))).instrumentationkey]"}, "dependson": ["[resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))]", "[resourceid('microsoft.keyvault/vaults", variables('keyvaultname'))]"]}{"type": "microsoft.keyvault/vaults", "apiversion": "2021-04-01-preview", "name": "[variables('keyvaultname')]", "location": "[parameters('location')]", "properties": {"sku": {"family": "a", "name": "standard"}, "tenantid": "[subscription().tenantid]", "accesspolicies": [{"tenantid": "[reference(resourceid('microsoft.web/sites", variables('webappname')), "2020-12-01", "full').identity.tenantid]", "objectid": "[reference(resourceid('microsoft.web/sites", variables('webappname')), "2020-12-01", "full').identity.principalid]", "permissions": {"secrets": ["get"]}}], "networkacls": {"bypass": "none", "defaultaction": "deny"}}, "dependson": ["[resourceid('microsoft.web/sites", variables('webappname'))]"]} |
This template provides an example of how to create API Management service and configure all sub-entities | {"type": "microsoft.apimanagement/service/loggers", "apiversion": "2020-12-01", "name": "[format('{0}/{1}", variables('apimanagementservicename'), "appinsightslogger')]", "properties": {"loggertype": "applicationinsights", "credentials": {"instrumentationkey": "[reference(resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))).instrumentationkey]"}}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))]"]} |
This template provides an example of how to create API Management service and configure all sub-entities | {"type": "microsoft.apimanagement/service/loggers", "apiversion": "2020-12-01", "name": "[format('{0}/{1}", variables('apimanagementservicename'), "appinsightslogger')]", "properties": {"loggertype": "applicationinsights", "credentials": {"instrumentationkey": "[reference(resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))).instrumentationkey]"}}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))]"]}{"type": "microsoft.apimanagement/service/diagnostics", "apiversion": "2020-12-01", "name": "[format('{0}/{1}", variables('apimanagementservicename'), "applicationinsights')]", "properties": {"loggerid": "[resourceid('microsoft.apimanagement/service/loggers", variables('apimanagementservicename'), "appinsightslogger')]", "logclientip": true, "alwayslog": "allerrors", "verbosity": "information", "sampling": {"percentage": 100, "samplingtype": "fixed"}, "httpcorrelationprotocol": "legacy"}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.apimanagement/service/loggers", variables('apimanagementservicename'), "appinsightslogger')]"]} |
This template provides an example of how to create API Management service and configure all sub-entities | {"type": "microsoft.apimanagement/service/loggers", "apiversion": "2020-12-01", "name": "[format('{0}/{1}", variables('apimanagementservicename'), "appinsightslogger')]", "properties": {"loggertype": "applicationinsights", "credentials": {"instrumentationkey": "[reference(resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))).instrumentationkey]"}}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.insights/components", format('ai-{0}", variables('basename')))]"]}{"type": "microsoft.apimanagement/service/diagnostics", "apiversion": "2020-12-01", "name": "[format('{0}/{1}", variables('apimanagementservicename'), "applicationinsights')]", "properties": {"loggerid": "[resourceid('microsoft.apimanagement/service/loggers", variables('apimanagementservicename'), "appinsightslogger')]", "logclientip": true, "alwayslog": "allerrors", "verbosity": "information", "sampling": {"percentage": 100, "samplingtype": "fixed"}, "httpcorrelationprotocol": "legacy"}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.apimanagement/service/loggers", variables('apimanagementservicename'), "appinsightslogger')]"]}{"type": "microsoft.apimanagement/service", "apiversion": "2020-12-01", "name": "[variables('apimanagementservicename')]", "location": "[parameters('location')]", "sku": {"capacity": 1, "name": "[parameters('apimanagementsku')]"}, "properties": {"publisheremail": "[parameters('apimanagementpublisheremailaddress')]", "publishername": "[parameters('apimanagementpublishername')]", "virtualnetworktype": "internal", "virtualnetworkconfiguration": {"subnetresourceid": "[variables('apimsubnetid')]"}, "hostnameconfigurations": [{"type": "developerportal", "hostname": "[parameters('apimanagementportalcustomhostname')]", "encodedcertificate": "[parameters('apimanagementportalcustomhostnamebase64encodedcertificate')]", "certificatepassword": "[parameters('apimanagementportalcertificatepassword')]", "negotiateclientcertificate": false}, {"type": "proxy", "hostname": "[parameters('apimanagementproxycustomhostname')]", "encodedcertificate": "[parameters('apimanagementproxycustomhostnamebase64encodedcertificate')]", "certificatepassword": "[parameters('apimanagementproxycertificatepassword')]", "negotiateclientcertificate": false}, {"type": "management", "hostname": "[parameters('apimanagementmanagementcustomhostname')]", "encodedcertificate": "[parameters('apimanagementmanagementcustomhostnamebase64encodedcertificate')]", "certificatepassword": "[parameters('apimanagementmanagementcertificatepassword')]", "negotiateclientcertificate": false}]}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.azurewebsites.net", "webappprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.azurewebsites.net", "webappprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-sites", variables('basename')), "webappprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-sites", variables('basename')))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-kv", variables('basename')), "keyvaultprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-kv", variables('basename')))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.azurewebsites.net", "webappprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-sites", variables('basename')), "webappprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-sites", variables('basename')))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-kv", variables('basename')), "keyvaultprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-kv", variables('basename')))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.vaultcore.azure.net", "keyvaultprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.azurewebsites.net", "webappprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-sites", variables('basename')), "webappprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-sites", variables('basename')))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-kv", variables('basename')), "keyvaultprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-kv", variables('basename')))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.vaultcore.azure.net", "keyvaultprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-03-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[variables('subnetappserviceintname')]", "properties": {"addressprefix": "[parameters('subnetappserviceintaddressprefix')]", "delegations": [{"name": "delegation", "properties": {"servicename": "microsoft.web/serverfarms"}}]}}, {"name": "[variables('subnetprivateendpointname')]", "properties": {"addressprefix": "[parameters('subnetprivateendpointaddressprefix')]", "privateendpointnetworkpolicies": "disabled"}}, {"name": "[variables('subnetapimanagementname')]", "properties": {"addressprefix": "[parameters('subnetapimanagementaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]"}}}, {"name": "[variables('subnetappgatewayname')]", "properties": {"addressprefix": "[parameters('subnetapplicationgatewayaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"}}}]}, "dependson": ["[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"]} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.azurewebsites.net", "webappprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-sites", variables('basename')), "webappprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-sites", variables('basename')))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-kv", variables('basename')), "keyvaultprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-kv", variables('basename')))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.vaultcore.azure.net", "keyvaultprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-03-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[variables('subnetappserviceintname')]", "properties": {"addressprefix": "[parameters('subnetappserviceintaddressprefix')]", "delegations": [{"name": "delegation", "properties": {"servicename": "microsoft.web/serverfarms"}}]}}, {"name": "[variables('subnetprivateendpointname')]", "properties": {"addressprefix": "[parameters('subnetprivateendpointaddressprefix')]", "privateendpointnetworkpolicies": "disabled"}}, {"name": "[variables('subnetapimanagementname')]", "properties": {"addressprefix": "[parameters('subnetapimanagementaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]"}}}, {"name": "[variables('subnetappgatewayname')]", "properties": {"addressprefix": "[parameters('subnetapplicationgatewayaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"}}}]}, "dependson": ["[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"]}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[variables('nsgappgatewayname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "agw-in", "properties": {"direction": "inbound", "access": "allow", "protocol": "*", "description": "app gateway inbound", "priority": 100, "sourceaddressprefix": "gatewaymanager", "sourceportrange": "*", "destinationaddressprefix": "*", "destinationportrange": "65200-65535"}}, {"name": "https-in", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "443", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 110, "direction": "inbound", "description": "allow https inbound"}}]}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.azurewebsites.net", "webappprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-sites", variables('basename')), "webappprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-sites", variables('basename')))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-kv", variables('basename')), "keyvaultprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-kv", variables('basename')))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.vaultcore.azure.net", "keyvaultprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-03-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[variables('subnetappserviceintname')]", "properties": {"addressprefix": "[parameters('subnetappserviceintaddressprefix')]", "delegations": [{"name": "delegation", "properties": {"servicename": "microsoft.web/serverfarms"}}]}}, {"name": "[variables('subnetprivateendpointname')]", "properties": {"addressprefix": "[parameters('subnetprivateendpointaddressprefix')]", "privateendpointnetworkpolicies": "disabled"}}, {"name": "[variables('subnetapimanagementname')]", "properties": {"addressprefix": "[parameters('subnetapimanagementaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]"}}}, {"name": "[variables('subnetappgatewayname')]", "properties": {"addressprefix": "[parameters('subnetapplicationgatewayaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"}}}]}, "dependson": ["[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"]}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[variables('nsgappgatewayname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "agw-in", "properties": {"direction": "inbound", "access": "allow", "protocol": "*", "description": "app gateway inbound", "priority": 100, "sourceaddressprefix": "gatewaymanager", "sourceportrange": "*", "destinationaddressprefix": "*", "destinationportrange": "65200-65535"}}, {"name": "https-in", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "443", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 110, "direction": "inbound", "description": "allow https inbound"}}]}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[variables('nsgapimanagementname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "apim-in", "properties": {"direction": "inbound", "access": "allow", "protocol": "tcp", "description": "api management inbound", "priority": 100, "sourceaddressprefix": "apimanagement", "sourceportrange": "*", "destinationaddressprefix": "virtualnetwork", "destinationportrange": "3443"}}]}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.azurewebsites.net", "webappprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-sites", variables('basename')), "webappprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-sites", variables('basename')))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-kv", variables('basename')), "keyvaultprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-kv", variables('basename')))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.vaultcore.azure.net", "keyvaultprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-03-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[variables('subnetappserviceintname')]", "properties": {"addressprefix": "[parameters('subnetappserviceintaddressprefix')]", "delegations": [{"name": "delegation", "properties": {"servicename": "microsoft.web/serverfarms"}}]}}, {"name": "[variables('subnetprivateendpointname')]", "properties": {"addressprefix": "[parameters('subnetprivateendpointaddressprefix')]", "privateendpointnetworkpolicies": "disabled"}}, {"name": "[variables('subnetapimanagementname')]", "properties": {"addressprefix": "[parameters('subnetapimanagementaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]"}}}, {"name": "[variables('subnetappgatewayname')]", "properties": {"addressprefix": "[parameters('subnetapplicationgatewayaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"}}}]}, "dependson": ["[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"]}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[variables('nsgappgatewayname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "agw-in", "properties": {"direction": "inbound", "access": "allow", "protocol": "*", "description": "app gateway inbound", "priority": 100, "sourceaddressprefix": "gatewaymanager", "sourceportrange": "*", "destinationaddressprefix": "*", "destinationportrange": "65200-65535"}}, {"name": "https-in", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "443", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 110, "direction": "inbound", "description": "allow https inbound"}}]}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[variables('nsgapimanagementname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "apim-in", "properties": {"direction": "inbound", "access": "allow", "protocol": "tcp", "description": "api management inbound", "priority": 100, "sourceaddressprefix": "apimanagement", "sourceportrange": "*", "destinationaddressprefix": "virtualnetwork", "destinationportrange": "3443"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2021-03-01", "name": "[variables('appgatewaypublicipaddressname')]", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {"publicipallocationmethod": "static", "publicipaddressversion": "ipv4", "idletimeoutinminutes": 4}} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.azurewebsites.net", "webappprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-sites", variables('basename')), "webappprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-sites", variables('basename')))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-kv", variables('basename')), "keyvaultprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-kv", variables('basename')))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.vaultcore.azure.net", "keyvaultprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-03-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[variables('subnetappserviceintname')]", "properties": {"addressprefix": "[parameters('subnetappserviceintaddressprefix')]", "delegations": [{"name": "delegation", "properties": {"servicename": "microsoft.web/serverfarms"}}]}}, {"name": "[variables('subnetprivateendpointname')]", "properties": {"addressprefix": "[parameters('subnetprivateendpointaddressprefix')]", "privateendpointnetworkpolicies": "disabled"}}, {"name": "[variables('subnetapimanagementname')]", "properties": {"addressprefix": "[parameters('subnetapimanagementaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]"}}}, {"name": "[variables('subnetappgatewayname')]", "properties": {"addressprefix": "[parameters('subnetapplicationgatewayaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"}}}]}, "dependson": ["[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"]}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[variables('nsgappgatewayname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "agw-in", "properties": {"direction": "inbound", "access": "allow", "protocol": "*", "description": "app gateway inbound", "priority": 100, "sourceaddressprefix": "gatewaymanager", "sourceportrange": "*", "destinationaddressprefix": "*", "destinationportrange": "65200-65535"}}, {"name": "https-in", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "443", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 110, "direction": "inbound", "description": "allow https inbound"}}]}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[variables('nsgapimanagementname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "apim-in", "properties": {"direction": "inbound", "access": "allow", "protocol": "tcp", "description": "api management inbound", "priority": 100, "sourceaddressprefix": "apimanagement", "sourceportrange": "*", "destinationaddressprefix": "virtualnetwork", "destinationportrange": "3443"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2021-03-01", "name": "[variables('appgatewaypublicipaddressname')]", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {"publicipallocationmethod": "static", "publicipaddressversion": "ipv4", "idletimeoutinminutes": 4}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[parameters('apimanagementcustomdnsname')]", "location": "global"} |
Establish connection to a VNET via an ExpressRoute circuit | {"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "api')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "management')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/a", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "portal')]", "properties": {"ttl": 3600, "arecords": [{"ipv4address": "[reference(resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))).privateipaddresses[0]]"}]}, "dependson": ["[resourceid('microsoft.apimanagement/service", variables('apimanagementservicename'))]", "[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", parameters('apimanagementcustomdnsname'), "privatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", parameters('apimanagementcustomdnsname'))]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.azurewebsites.net", "webappprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]", "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-sites", variables('basename')), "webappprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.azurewebsites.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-sites", variables('basename')))]"]}{"type": "microsoft.network/privateendpoints/privatednszonegroups", "apiversion": "2021-02-01", "name": "[format('{0}/{1}", format('pe-{0}-kv", variables('basename')), "keyvaultprivatednszonegroup')]", "properties": {"privatednszoneconfigs": [{"name": "config", "properties": {"privatednszoneid": "[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]"}}]}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/privateendpoints", format('pe-{0}-kv", variables('basename')))]"]}{"type": "microsoft.network/privatednszones/virtualnetworklinks", "apiversion": "2020-06-01", "name": "[format('{0}/{1}", "privatelink.vaultcore.azure.net", "keyvaultprivatednszonelink')]", "location": "global", "properties": {"registrationenabled": false, "virtualnetwork": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"}}, "dependson": ["[resourceid('microsoft.network/privatednszones", "privatelink.vaultcore.azure.net')]", "[resourceid('microsoft.network/virtualnetworks", variables('vnetname'))]"]}{"type": "microsoft.network/virtualnetworks", "apiversion": "2021-03-01", "name": "[variables('vnetname')]", "location": "[parameters('location')]", "properties": {"addressspace": {"addressprefixes": ["[parameters('vnetaddressprefix')]"]}, "subnets": [{"name": "[variables('subnetappserviceintname')]", "properties": {"addressprefix": "[parameters('subnetappserviceintaddressprefix')]", "delegations": [{"name": "delegation", "properties": {"servicename": "microsoft.web/serverfarms"}}]}}, {"name": "[variables('subnetprivateendpointname')]", "properties": {"addressprefix": "[parameters('subnetprivateendpointaddressprefix')]", "privateendpointnetworkpolicies": "disabled"}}, {"name": "[variables('subnetapimanagementname')]", "properties": {"addressprefix": "[parameters('subnetapimanagementaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]"}}}, {"name": "[variables('subnetappgatewayname')]", "properties": {"addressprefix": "[parameters('subnetapplicationgatewayaddressprefix')]", "networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"}}}]}, "dependson": ["[resourceid('microsoft.network/networksecuritygroups", variables('nsgapimanagementname'))]", "[resourceid('microsoft.network/networksecuritygroups", variables('nsgappgatewayname'))]"]}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[variables('nsgappgatewayname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "agw-in", "properties": {"direction": "inbound", "access": "allow", "protocol": "*", "description": "app gateway inbound", "priority": 100, "sourceaddressprefix": "gatewaymanager", "sourceportrange": "*", "destinationaddressprefix": "*", "destinationportrange": "65200-65535"}}, {"name": "https-in", "properties": {"protocol": "tcp", "sourceportrange": "*", "destinationportrange": "443", "sourceaddressprefix": "*", "destinationaddressprefix": "*", "access": "allow", "priority": 110, "direction": "inbound", "description": "allow https inbound"}}]}}{"type": "microsoft.network/networksecuritygroups", "apiversion": "2021-02-01", "name": "[variables('nsgapimanagementname')]", "location": "[parameters('location')]", "properties": {"securityrules": [{"name": "apim-in", "properties": {"direction": "inbound", "access": "allow", "protocol": "tcp", "description": "api management inbound", "priority": 100, "sourceaddressprefix": "apimanagement", "sourceportrange": "*", "destinationaddressprefix": "virtualnetwork", "destinationportrange": "3443"}}]}}{"type": "microsoft.network/publicipaddresses", "apiversion": "2021-03-01", "name": "[variables('appgatewaypublicipaddressname')]", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {"publicipallocationmethod": "static", "publicipaddressversion": "ipv4", "idletimeoutinminutes": 4}}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "[parameters('apimanagementcustomdnsname')]", "location": "global"}{"type": "microsoft.network/privatednszones", "apiversion": "2020-06-01", "name": "privatelink.azurewebsites.net", "location": "global"} |
Enable Azure Sentinel | {"type": "microsoft.operationsmanagement/solutions", "apiversion": "2015-11-01-preview", "name": "[variables('vminsights').name]", "location": "[parameters('location')]", "properties": {"workspaceresourceid": "[resourceid('microsoft.operationalinsights/workspaces", parameters('loganalyticsworkspacename'))]"}, "plan": {"name": "[variables('vminsights').name]", "publisher": "microsoft", "product": "[format('omsgallery/{0}", variables('vminsights').galleryname)]", "promotioncode": ""}, "dependson": ["[resourceid('microsoft.operationalinsights/workspaces", parameters('loganalyticsworkspacename'))]"]} |
Enable Azure Sentinel | {"type": "microsoft.operationsmanagement/solutions", "apiversion": "2015-11-01-preview", "name": "[variables('vminsights').name]", "location": "[parameters('location')]", "properties": {"workspaceresourceid": "[resourceid('microsoft.operationalinsights/workspaces", parameters('loganalyticsworkspacename'))]"}, "plan": {"name": "[variables('vminsights').name]", "publisher": "microsoft", "product": "[format('omsgallery/{0}", variables('vminsights').galleryname)]", "promotioncode": ""}, "dependson": ["[resourceid('microsoft.operationalinsights/workspaces", parameters('loganalyticsworkspacename'))]"]}{"type": "microsoft.operationsmanagement/solutions", "apiversion": "2015-11-01-preview", "name": "[variables('containerinsights').name]", "location": "[parameters('location')]", "properties": {"workspaceresourceid": "[resourceid('microsoft.operationalinsights/workspaces", parameters('loganalyticsworkspacename'))]"}, "plan": {"name": "[variables('containerinsights').name]", "publisher": "microsoft", "product": "[format('omsgallery/{0}", variables('containerinsights').galleryname)]", "promotioncode": ""}, "dependson": ["[resourceid('microsoft.operationalinsights/workspaces", parameters('loganalyticsworkspacename'))]"]} |
This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth | {"condition": "[parameters('enabledeletelock')]", "type": "microsoft.authorization/locks", "apiversion": "2017-04-01", "scope": "[format('microsoft.operationalinsights/workspaces/{0}", parameters('name'))]", "name": "[variables('lockname')]", "properties": {"level": "cannotdelete"}, "dependson": ["[resourceid('microsoft.operationalinsights/workspaces", parameters('name'))]"]} |
Enable Azure Sentinel | {"copy": {"name": "loganalyticssolutions", "count": "[length(parameters('solutions'))]"}, "type": "microsoft.operationsmanagement/solutions", "apiversion": "2015-11-01-preview", "name": "[format('{0}({1})", parameters('solutions')[copyindex()].name, parameters('name'))]", "location": "[parameters('location')]", "properties": {"workspaceresourceid": "[resourceid('microsoft.operationalinsights/workspaces", parameters('name'))]"}, "plan": {"name": "[format('{0}({1})", parameters('solutions')[copyindex()].name, parameters('name'))]", "product": "[parameters('solutions')[copyindex()].product]", "publisher": "[parameters('solutions')[copyindex()].publisher]", "promotioncode": "[parameters('solutions')[copyindex()].promotioncode]"}, "dependson": ["[resourceid('microsoft.operationalinsights/workspaces", parameters('name'))]"]} |
This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group. | {"type": "microsoft.managedidentity/userassignedidentities", "name": "[parameters('userassignedidentityname')]", "apiversion": "2018-11-30", "location": "[parameters('location')]"} |
This template deploys and Azure Maps account and lists a Sas token and creates an Azure Key Vault secret with the sas token as the value. | {"apiversion": "2018-05-01", "name": "[parameters('mapsaccountname')]", "location": "global", "type": "microsoft.maps/accounts", "sku": {"name": "s0"}} |
This template deploys and Azure Maps account and lists a Sas token and creates an Azure Key Vault secret with the sas token as the value. | {"apiversion": "2018-05-01", "name": "[parameters('mapsaccountname')]", "location": "global", "type": "microsoft.maps/accounts", "sku": {"name": "s0"}}{"apiversion": "2018-09-01-preview", "name": "[concat(parameters('mapsaccountname'), "/microsoft.authorization/", parameters('guid'))]", "type": "microsoft.maps/accounts/providers/roleassignments", "dependson": ["[parameters('mapsaccountname')]", "[parameters('userassignedidentityname')]"], "properties": {"roledefinitionid": "[variables('azure maps data reader')]", "principalid": "[reference(parameters('userassignedidentityname')).principalid]", "principaltype": "serviceprincipal"}} |
This sample contains a script to easily migrate template gallery templates to templateSpec resources. | {"name": "shared-resources", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('sharedtemplateurl')]", "contentversion": "1.0.0.0"}, "parameters": {"commonsettings": {"value": "[variables('commonsettings')]"}, "networksettings": {"value": "[variables('networksettings')]"}, "location": {"value": "[parameters('location')]"}}}} |
This sample contains a script to easily migrate template gallery templates to templateSpec resources. | {"name": "shared-resources", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('sharedtemplateurl')]", "contentversion": "1.0.0.0"}, "parameters": {"commonsettings": {"value": "[variables('commonsettings')]"}, "networksettings": {"value": "[variables('networksettings')]"}, "location": {"value": "[parameters('location')]"}}}}{"condition": "[equals('enabled", parameters('jumpbox'))]", "name": "jumpbox-resources", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "dependson": ["[resourceid('microsoft.resources/deployments/", "shared-resources')]"], "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('jumpboxtemplateurl')]", "contentversion": "1.0.0.0"}, "parameters": {"networksettings": {"value": "[variables('networksettings')]"}, "machinesettings": {"value": "[variables('machinesettings')]"}, "adminpasswordorkey": {"value": "[parameters('adminpasswordorkey')]"}, "authenticationtype": {"value": "[parameters('authenticationtype')]"}, "location": {"value": "[parameters('location')]"}, "vmsize": {"value": "[parameters('vmsize')]"}}}} |
This sample contains a script to easily migrate template gallery templates to templateSpec resources. | {"name": "shared-resources", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('sharedtemplateurl')]", "contentversion": "1.0.0.0"}, "parameters": {"commonsettings": {"value": "[variables('commonsettings')]"}, "networksettings": {"value": "[variables('networksettings')]"}, "location": {"value": "[parameters('location')]"}}}}{"condition": "[equals('enabled", parameters('jumpbox'))]", "name": "jumpbox-resources", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "dependson": ["[resourceid('microsoft.resources/deployments/", "shared-resources')]"], "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('jumpboxtemplateurl')]", "contentversion": "1.0.0.0"}, "parameters": {"networksettings": {"value": "[variables('networksettings')]"}, "machinesettings": {"value": "[variables('machinesettings')]"}, "adminpasswordorkey": {"value": "[parameters('adminpasswordorkey')]"}, "authenticationtype": {"value": "[parameters('authenticationtype')]"}, "location": {"value": "[parameters('location')]"}, "vmsize": {"value": "[parameters('vmsize')]"}}}}{"type": "microsoft.resources/deployments", "name": "[concat('node-resources", copyindex())]", "apiversion": "2020-10-01", "dependson": ["[resourceid('microsoft.resources/deployments/", "shared-resources')]"], "copy": {"name": "membernodesloop", "count": "[variables('clusterspec').totalmembercountexcludinglast]"}, "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('clusterspec').vmtemplate]", "contentversion": "1.0.0.0"}, "parameters": {"commonsettings": {"value": "[variables('commonsettings')]"}, "networksettings": {"value": "[variables('networksettings')]"}, "machinesettings": {"value": {"adminusername": "[variables('machinesettings').adminusername]", "machinenameprefix": "[variables('machinesettings').machinenameprefix]", "osimagereference": "[variables('machinesettings').osimagereference]", "vmsize": "[variables('clusterspec').vmsizemember]", "machineindex": "[copyindex()]", "vmscripts": "[variables('vmscripts').scriptstodownload]", "commandtoexecute": "[concat(variables('vmscripts').installcommand, " -i ", copyindex())]"}}, "adminpasswordorkey": {"value": "[parameters('adminpasswordorkey')]"}, "authenticationtype": {"value": "[parameters('authenticationtype')]"}, "location": {"value": "[parameters('location')]"}}}} |
This sample contains a script to easily migrate template gallery templates to templateSpec resources. | {"name": "shared-resources", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('sharedtemplateurl')]", "contentversion": "1.0.0.0"}, "parameters": {"commonsettings": {"value": "[variables('commonsettings')]"}, "networksettings": {"value": "[variables('networksettings')]"}, "location": {"value": "[parameters('location')]"}}}}{"condition": "[equals('enabled", parameters('jumpbox'))]", "name": "jumpbox-resources", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "dependson": ["[resourceid('microsoft.resources/deployments/", "shared-resources')]"], "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('jumpboxtemplateurl')]", "contentversion": "1.0.0.0"}, "parameters": {"networksettings": {"value": "[variables('networksettings')]"}, "machinesettings": {"value": "[variables('machinesettings')]"}, "adminpasswordorkey": {"value": "[parameters('adminpasswordorkey')]"}, "authenticationtype": {"value": "[parameters('authenticationtype')]"}, "location": {"value": "[parameters('location')]"}, "vmsize": {"value": "[parameters('vmsize')]"}}}}{"type": "microsoft.resources/deployments", "name": "[concat('node-resources", copyindex())]", "apiversion": "2020-10-01", "dependson": ["[resourceid('microsoft.resources/deployments/", "shared-resources')]"], "copy": {"name": "membernodesloop", "count": "[variables('clusterspec').totalmembercountexcludinglast]"}, "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('clusterspec').vmtemplate]", "contentversion": "1.0.0.0"}, "parameters": {"commonsettings": {"value": "[variables('commonsettings')]"}, "networksettings": {"value": "[variables('networksettings')]"}, "machinesettings": {"value": {"adminusername": "[variables('machinesettings').adminusername]", "machinenameprefix": "[variables('machinesettings').machinenameprefix]", "osimagereference": "[variables('machinesettings').osimagereference]", "vmsize": "[variables('clusterspec').vmsizemember]", "machineindex": "[copyindex()]", "vmscripts": "[variables('vmscripts').scriptstodownload]", "commandtoexecute": "[concat(variables('vmscripts').installcommand, " -i ", copyindex())]"}}, "adminpasswordorkey": {"value": "[parameters('adminpasswordorkey')]"}, "authenticationtype": {"value": "[parameters('authenticationtype')]"}, "location": {"value": "[parameters('location')]"}}}}{"name": "lastnode-resources", "type": "microsoft.resources/deployments", "apiversion": "2020-10-01", "dependson": ["membernodesloop"], "properties": {"mode": "incremental", "templatelink": {"uri": "[variables('clusterspec').vmtemplate]", "contentversion": "1.0.0.0"}, "parameters": {"commonsettings": {"value": "[variables('commonsettings')]"}, "networksettings": {"value": "[variables('networksettings')]"}, "machinesettings": {"value": {"adminusername": "[variables('machinesettings').adminusername]", "machinenameprefix": "[variables('machinesettings').machinenameprefix]", "osimagereference": "[variables('machinesettings').osimagereference]", "vmsize": "[variables('clusterspec').vmsizemember]", "machineindex": "[variables('clusterspec').totalmembercountexcludinglast]", "vmscripts": "[variables('vmscripts').scriptstodownload]", "commandtoexecute": "[concat(variables('vmscripts').setupcommand, " -i ", variables('clusterspec').totalmembercountexcludinglast)]"}}, "adminpasswordorkey": {"value": "[parameters('adminpasswordorkey')]"}, "authenticationtype": {"value": "[parameters('authenticationtype')]"}, "location": {"value": "[parameters('location')]"}}}} |
This template creates a data collection rule defining the data source (Syslog) and the destination workspace. | {"type": "microsoft.insights/diagnosticsettings", "apiversion": "2017-05-01-preview", "scope": "[format('microsoft.cache/redis/{0}", parameters('rediscachename'))]", "name": "[parameters('rediscachename')]", "properties": {"storageaccountid": "[parameters('existingdiagnosticsstorageaccountid')]", "metrics": [{"timegrain": "allmetrics", "enabled": "[parameters('diagnosticsenabled')]", "retentionpolicy": {"days": 90, "enabled": "[parameters('diagnosticsenabled')]"}}]}, "dependson": ["[resourceid('microsoft.cache/redis", parameters('rediscachename'))]"]} |
This template creates a data collection rule defining the data source (Syslog) and the destination workspace. | {"type": "microsoft.insights/diagnosticsettings", "apiversion": "2021-05-01-preview", "scope": "[format('microsoft.cache/redis/{0}", parameters('rediscachename'))]", "name": "[parameters('rediscachename')]", "properties": {"storageaccountid": "[parameters('existingdiagnosticsstorageaccountid')]", "metrics": [{"timegrain": "allmetrics", "enabled": "[parameters('diagnosticsenabled')]", "retentionpolicy": {"days": 90, "enabled": "[parameters('diagnosticsenabled')]"}}]}, "dependson": ["[resourceid('microsoft.cache/redis", parameters('rediscachename'))]"]} |
This template creates a EventHubs namespace, an Event Hub, a consumer group and authorizationRules | {"condition": "[equals(parameters('eventhubneworexisting'), "new')]", "apiversion": "2021-01-01-preview", "name": "[parameters('eventhubnamespacename')]", "type": "microsoft.eventhub/namespaces", "location": "[parameters('location')]", "sku": {"name": "standard"}, "properties": {"isautoinflateenabled": true, "maximumthroughputunits": 20}, "resources": [{"condition": "[equals(parameters('eventhubneworexisting'), "new')]", "apiversion": "2017-04-01", "name": "[parameters('eventhubname')]", "type": "eventhubs", "dependson": ["[parameters('eventhubnamespacename')]"], "properties": {"messageretentionindays": 7, "partitioncount": 4}, "resources": [{"condition": "[equals(parameters('eventhubneworexisting'), "new')]", "type": "authorizationrules", "name": "[parameters('eventsourcekeyname')]", "apiversion": "2017-04-01", "location": "[parameters('location')]", "dependson": ["[parameters('eventhubname')]"], "properties": {"rights": ["listen", "send", "manage"]}}, {"condition": "[equals(parameters('eventhubneworexisting'), "new')]", "apiversion": "2017-04-01", "name": "[parameters('consumergroupname')]", "type": "consumergroups", "dependson": ["[parameters('eventhubname')]"]}]}]} |
This module creates a storageAccount resource with apiVersion 2021-01-01. | {"condition": "[equals(parameters('environmentkind'), "longterm')]", "type": "microsoft.storage/storageaccounts", "apiversion": "2018-11-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storageaccounttype')]"}, "kind": "storagev2", "properties": {}} |
This template creates an IoT hub and an IoT Hub Device Provisioning Service, and link the two services together. | {"condition": "[equals(parameters('iothubneworexisting'), "new')]", "type": "microsoft.devices/iothubs", "apiversion": "2020-03-01", "name": "[parameters('iothubname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('iothubsku')]", "tier": "[parameters('iothubskutier')]", "capacity": 1}} |
Storage Account with Storage Service Encryption and a blob deletion retention policy | {"condition": "[equals(parameters('environmentkind'), "longterm')]", "type": "microsoft.storage/storageaccounts", "apiversion": "2018-11-01", "name": "[variables('storageaccountname')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('storageaccounttype')]"}, "kind": "storagev2", "properties": {}} |