diff --git "a/test.csv" "b/test.csv" --- "a/test.csv" +++ "b/test.csv" @@ -1,258 +1,227 @@ Description,IaC -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'shared', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('sharedtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'networksettings': {'value': ""[variables('networksettings')]""}, 'namespace': {'value': ""[variables('namespace')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'name': ""[concat('webnode', copyindex())]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared')]""], 'copy': {'name': 'vmloop', 'count': ""[parameters('webnodecount')]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('webtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adminusername': {'value': ""[parameters('adminusername')]""}, 'mysqlpassword': {'value': ""[parameters('mysqlpassword')]""}, 'namespace': {'value': ""[variables('namespace')]""}, 'vmbasename': {'value': ""[concat('web', copyindex())]""}, 'subnet': {'value': ""[variables('networksettings').subnet.web]""}, 'sizeofdatadiskingb': {'value': ""[variables('sizeofdatadiskingb')]""}, 'vmsize': {'value': ""[parameters('webnodevmsize')]""}, 'zabbixserveripaddress': {'value': ""[parameters('zabbixserveripaddress')]""}, 'ossettings': {'value': ""[variables('webossettings')]""}, 'authenticationtype': {'value': ""[parameters('authenticationtype')]""}, 'adminpasswordorkey': {'value': ""[parameters('adminpasswordorkey')]""}, 'location': {'value': ""[parameters('location')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(variables('publicipname'), copyindex())]"", 'copy': {'name': 'publiciploop', 'count': ""[variables('numberofinstances')]""}, 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static'}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': 'lbpublicip', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static'}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': 'lbpublicip-v6', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static', 'publicipaddressversion': 'ipv6'}}{'apiversion': '2020-07-01', 'name': 'loadbalancer', 'type': 'microsoft.network/loadbalancers', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'dependson': [""[resourceid('microsoft.network/publicipaddresses','lbpublicip')]"", ""[resourceid('microsoft.network/publicipaddresses','lbpublicip-v6')]""], 'properties': {'frontendipconfigurations': [{'name': 'lbfe', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', 'lbpublicip')]""}}}, {'name': 'lbfe-v6', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses','lbpublicip-v6')]""}}}], 'backendaddresspools': [{'name': 'lbbap'}, {'name': 'lbbap-v6'}], 'loadbalancingrules': [{'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', 'loadbalancer', 'lbfe')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', 'loadbalancer', 'lbbap')]""}, 'protocol': 'tcp', 'frontendport': 80, 'backendport': 80, 'idletimeoutinminutes': 15, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', 'loadbalancer', 'ipv4ipv6probe')]""}}, 'name': 'lbrule'}, {'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', 'loadbalancer', 'lbfe-v6')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', 'loadbalancer', 'lbbap-v6')]""}, 'protocol': 'tcp', 'frontendport': 80, 'backendport': 80, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', 'loadbalancer', 'ipv4ipv6probe')]""}}, 'name': 'lbrule-v6'}], 'probes': [{'name': 'ipv4ipv6probe', 'properties': {'protocol': 'tcp', 'port': 80, 'intervalinseconds': 5, 'numberofprobes': 2}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/virtualnetworks', 'name': 'vnet', 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('vnetv4addressrange')]"", ""[variables('vnetv6addressrange')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefixes': [""[variables('subnetv4addressrange')]"", ""[variables('subnetv6addressrange')]""]}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': 'dsnsg', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow-http-in', 'properties': {'description': 'allow http', 'protocol': 'tcp', 'sourceportrange': '80', 'destinationportrange': '80', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1001, 'direction': 'inbound'}}, {'name': 'allow-all-out', 'properties': {'description': 'allow out all', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1002, 'direction': 'outbound'}}, {'name': 'allow-rdp-in', 'properties': {'description': 'allow rdp', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1003, 'direction': 'inbound'}}, {'name': 'allow-myipv6app-out', 'properties': {'description': 'allow my ipv6 app', 'protocol': 'tcp', 'sourceportrange': '33819-33829', 'destinationportrange': '5000-6000', 'sourceaddressprefix': 'ace:cab:deca:deed::/64', 'destinationaddressprefixes': ['cab:cab:aaaa:bbbb::/64', 'cab:cab:1111:2222::/64'], 'access': 'allow', 'priority': 1004, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/routetables', 'name': 'v6routetable', 'apiversion': '2020-07-01', 'location': ""[parameters('location')]"", 'properties': {'routes': [{'name': 'v6route', 'properties': {'addressprefix': 'cab:cab::/96', 'nexthoptype': 'virtualappliance', 'nexthopipaddress': 'ace:cab:deca:f00d::1'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('vmname'),copyindex())]"", 'copy': {'name': 'netintloop', 'count': ""[variables('numberofinstances')]""}, 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks','vnet')]"", ""[resourceid('microsoft.network/networksecuritygroups','dsnsg')]"", ""[resourceid('microsoft.network/loadbalancers','loadbalancer')]"", 'publiciploop'], 'properties': {'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups','dsnsg')]""}, 'ipconfigurations': [{'name': 'ipconfig-v4', 'properties': {'privateipallocationmethod': 'dynamic', 'privateipaddressversion': 'ipv4', 'primary': true, 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',concat(variables('publicipname'),copyindex()))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', 'vnet', variables('subnetname'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', 'loadbalancer', 'lbbap')]""}]}}, {'name': 'ipconfig-v6', 'properties': {'privateipallocationmethod': 'dynamic', 'privateipaddressversion': 'ipv6', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', 'vnet', variables('subnetname'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', 'loadbalancer', 'lbbap-v6')]""}]}}]}} END" -"This template creates an App Service Plan, a Web App, a scheduler job collection and a job."," {'name': ""[variables('schedulerjobcollectionname')]"", 'type': 'microsoft.scheduler/jobcollections', 'apiversion': '2016-03-01', 'location': ""[parameters('location')]"", 'properties': {'sku': {'name': 'standard'}}, 'resources': [{'type': 'jobs', 'name': ""[variables('schedulerjobname')]"", 'apiversion': '2016-03-01', 'dependson': [""[resourceid('microsoft.scheduler/jobcollections', variables('schedulerjobcollectionname'))]"", ""[variables('queuesendonlykeyname')]""], 'properties': {'state': 'enabled', 'action': {'type': 'servicebusqueue', 'servicebusqueuemessage': {'namespace': ""[variables('servicebusnamespacename')]"", 'queuename': ""[parameters('queuename')]"", 'transporttype': 'amqp', 'authentication': {'saskey': ""[listkeys(variables('queuesendonlykeyname'), '2018-01-01-preview').primarykey]"", 'saskeyname': ""[listkeys(variables('queuesendonlykeyname'), '2018-01-01-preview').keyname]"", 'type': 'sharedaccesskey'}, 'message': ""[parameters('messagecontents')]""}}, 'recurrence': ""[parameters('postrecurrence')]""}}]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[parameters('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnsnameforlbip')]""}}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('vnetname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/virtualmachinescalesets', 'apiversion': '2016-04-30-preview', 'name': ""[variables('frontendvmssname')]"", 'location': ""[parameters('location')]"", 'tags': {'vmsstag1': 'rev vmss fe'}, 'dependson': [""[concat('microsoft.network/loadbalancers/',variables('lbname'))]"", ""[concat('microsoft.network/virtualnetworks/','appvnet')]""], 'sku': {'name': ""[variables('frontendvmsize')]"", 'tier': 'standard', 'capacity': ""[parameters('instancecount')]""}, 'properties': {'upgradepolicy': {'mode': 'manual'}, 'virtualmachineprofile': {'storageprofile': {'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[parameters('appstoragetype')]""}}, 'imagereference': {'publisher': ""[variables('appvmimagepublisher')]"", 'offer': ""[variables('appvmimageoffer')]"", 'sku': ""[parameters('appvmwindowsosversion')]"", 'version': 'latest'}}, 'osprofile': {'computernameprefix': ""[variables('frontendvmssname')]"", 'adminusername': ""[parameters('appvmadminusername')]"", 'adminpassword': ""[parameters('appvmadminpassword')]"", 'secrets': [{'sourcevault': {'id': ""[resourceid(parameters('vaultresourcegroup'), 'microsoft.keyvault/vaults', parameters('vaultname'))]""}, 'vaultcertificates': [{'certificateurl': ""[parameters('httpssecreturlwithversion')]"", 'certificatestore': ""[parameters('certificatestore')]""}]}]}, 'networkprofile': {'networkinterfaceconfigurations': [{'name': 'nic1', 'properties': {'primary': true, 'ipconfigurations': [{'name': 'ip1', 'properties': {'subnet': {'id': ""[variables('appvmsubnetref')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[variables('lbbeaddresspoolid')]""}], 'loadbalancerinboundnatpools': [{'id': ""[variables('lbwebinboundnatpoolid')]""}]}}]}}]}, 'extensionprofile': {'extensions': [{'name': 'microsoft.powershell.dsc', 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.9', 'autoupgrademinorversion': true, 'forceupdatetag': ""[parameters('frontenddscvmssupdatetagversion')]"", 'settings': {'configuration': {'url': ""[concat(parameters('_artifactslocation'), '/', variables('frontenddscvmssarchivefolder'), '/', variables('frontenddscvmssarchivefilename'))]"", 'script': 'frontenddscvmss.ps1', 'function': 'main'}, 'configurationarguments': {'nodename': 'localhost', 'webdeploypackage': ""[parameters('appwebpackage')]"", 'certstorename': ""[parameters('certificatestore')]"", 'certdomain': ""[parameters('certificatedomain')]""}}, 'protectedsettings': {'configurationurlsastoken': ""[parameters('_artifactslocationsastoken')]""}}}]}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-06-01', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddressprefix')]""]}}}{'type': 'microsoft.network/virtualnetworks/subnets', 'apiversion': '2020-06-01', 'name': ""[format('{0}/{1}', parameters('virtualnetworkname'), parameters('subnetname'))]"", 'properties': {'addressprefix': ""[parameters('subnetprefix')]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2015-05-01-preview', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('vmname')]""}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2020-06-01', 'name': 'mysqlserver', 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplatemysql')]""}, 'parameters': {'sku': {'value': ""[variables('sku')]""}, 'servername': {'value': ""[parameters('servername')]""}, 'location': {'value': ""[parameters('location')]""}, 'version': {'value': ""[parameters('version')]""}, 'administratorlogin': {'value': ""[parameters('administratorlogin')]""}, 'administratorloginpassword': {'value': ""[parameters('administratorloginpassword')]""}, 'backupretentiondays': {'value': ""[parameters('backupretentiondays')]""}, 'georedundantbackup': {'value': ""[parameters('georedundantbackup')]""}, 'enableazureresources': {'value': ""[parameters('enableazureresources')]""}, 'serverid': {'value': ""[variables('sourceserverid')]""}}}}{'apiversion': '2020-06-01', 'name': 'mysqlserverreplicas', 'type': 'microsoft.resources/deployments', 'condition': ""[greater(parameters('numberofreplicas'),0)]"", 'dependson': ['mysqlserver'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplatemysqlreplica')]""}, 'parameters': {'sku': {'value': ""[variables('sku')]""}, 'servername': {'value': ""[parameters('servername')]""}, 'location': {'value': ""[parameters('location')]""}, 'numberofreplicas': {'value': ""[parameters('numberofreplicas')]""}, 'backupretentiondays': {'value': ""[parameters('backupretentiondays')]""}, 'georedundantbackup': {'value': ""[parameters('georedundantbackup')]""}, 'sourceserverid': {'value': ""[variables('sourceserverid')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-04-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowsshinbound', 'properties': {'priority': 100, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}}{'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('nsgid')]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('virtualnetworkaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[variables('nsgid')]""}, 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}}]}}{'apiversion': '2020-04-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('publicipid')]"", ""[variables('vnetid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetid')]""}}}]}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2018-09-01', 'name': ""[variables('keyvaultprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2018-09-01', 'name': ""[variables('blobprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2018-09-01', 'name': ""[concat(variables('keyvaultprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('keyvaultprivatednszoneid')]"", ""[variables('vnetid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('vnetid')]""}}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2018-09-01', 'name': ""[concat(variables('blobprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('blobprivatednszoneid')]"", ""[variables('vnetid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('vnetid')]""}}}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-04-01', 'name': ""[parameters('keyvaultprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vnetid')]"", ""[variables('keyvaultid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('keyvaultprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('keyvaultid')]"", 'groupids': [""[variables('keyvaultprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('subnetid')]""}, 'customdnsconfigs': [{'fqdn': ""[concat(parameters('keyvaultname'), variables('keyvaultpublicdnszoneforwarder'))]""}]}}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-04-01', 'name': ""[parameters('blobstorageaccountprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vnetid')]"", ""[variables('blobstorageaccountid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('blobstorageaccountprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('blobstorageaccountid')]"", 'groupids': [""[variables('blobstorageaccountprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('subnetid')]""}, 'customdnsconfigs': [{'fqdn': ""[concat(parameters('blobstorageaccountname'), variables('blobpublicdnszoneforwarder'))]""}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'comments': 'default network security group for template', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-07-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'default-allow-3389', 'properties': {'priority': 1000, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '3389', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}}{'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2020-07-01', 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2020-07-01', 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('longnaminginfix')]""}}} END" -This template allows you to add an NSG with Azure Redis Cache security rules to an existing subnet within a VNET.," {'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-05-01', 'name': ""[parameters('newnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow_outbound_storage_pki', 'properties': {'description': 'redis dependencies on azure storage/pki (internet)', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportranges': ['80', '443'], 'sourceaddressprefix': '*', 'destinationaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'access': 'allow', 'priority': 200, 'direction': 'outbound'}}, {'name': 'allow_outbound_dns', 'properties': {'description': 'redis dependencies on dns (internet/vnet)', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '53', 'sourceaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 201, 'direction': 'outbound'}}, {'name': 'allow_outbound_redisportswithinsubnet', 'properties': {'description': 'internal communications for redis', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportranges': ['6379', '6380', '8443', '10221-10231', '20226', '13000-13999', '15000-15999'], 'sourceaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'destinationaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'access': 'allow', 'priority': 202, 'direction': 'outbound'}}, {'name': 'allow_inbound_clientendpoints', 'properties': {'description': 'client communication to redis, azure load balancing', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportranges': ['6379', '6380'], 'sourceaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'destinationaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}, {'name': 'allow_inbound_clientcommunicationwithinvnet', 'properties': {'description': 'client communication to redis, azure load balancing', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportranges': ['6379', '6380', '13000-13999', '15000-15999'], 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'access': 'allow', 'priority': 201, 'direction': 'inbound'}}, {'name': 'allow_inbound_loadbalancingwithinvnet', 'properties': {'description': 'client communication to redis, azure load balancing', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportranges': ['6379', '6380', '13000-13999', '15000-15999'], 'sourceaddressprefix': 'azureloadbalancer', 'destinationaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'access': 'allow', 'priority': 202, 'direction': 'inbound'}}, {'name': 'allow_inbound_internalrediscommunication', 'properties': {'description': 'internal communications for redis', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportranges': ['8443', '10221-10231', '20226'], 'sourceaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'destinationaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'access': 'allow', 'priority': 203, 'direction': 'inbound'}}, {'name': 'allow_inbound_loadbalancertoredisinternaladdresses', 'properties': {'description': 'internal communications for redis', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '10221-10231', 'sourceaddressprefix': 'azureloadbalancer', 'destinationaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'access': 'allow', 'priority': 204, 'direction': 'inbound'}}, {'name': 'allow_inbound_loadbalancing', 'properties': {'description': 'azure load balancing', 'protocol': '*', 'sourceportrange': '*', 'destinationportranges': ['8500', '16001'], 'sourceaddressprefix': 'azureloadbalancer', 'destinationaddressprefix': ""[reference(variables('subnetid'), '2018-04-01').addressprefix]"", 'access': 'allow', 'priority': 205, 'direction': 'inbound'}}]}} END" -This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('vhdstoragenamers')]"", 'apiversion': '2021-01-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage', 'tags': {'displayname': 'datastorageaccountrs'}, 'properties': {}} END" -This module creates a storageAccount resource with apiVersion 2021-01-01.," {'apiversion': '2021-01-01', 'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[concat(variables('uniquestringarray')[copyindex()], variables('newstorageaccountsuffix'))]"", 'location': '[resourcegroup().location]', 'apiversion': '2016-01-01', 'copy': {'name': 'storageloop', 'count': ""[variables('sacount')]""}, 'properties': {}, 'kind': 'storage', 'sku': {'name': ""[variables('storageaccounttype')]""}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[variables('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'name': ""[concat(parameters('envprefixname'), 'sqlsrv14')]"", 'type': 'microsoft.compute/virtualmachines', 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('sqlsrvdbnicname'))]"", ""[resourceid('microsoft.network/publicipaddresses/', variables('sqlpublicip'))]""], 'tags': {'displayname': 'sql-svr-db'}, 'properties': {'hardwareprofile': {'vmsize': ""[variables('sqlvmsize')]""}, 'osprofile': {'computername': ""[variables('sqlsrvdbname')]"", 'adminusername': ""[parameters('username')]"", 'adminpassword': ""[parameters('password')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('sqlimagepublisher')]"", 'offer': ""[variables('sqlimageoffer')]"", 'sku': ""[variables('sqlimagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('sqlsrvdbname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[parameters('disktype')]""}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('sqlsrvdbnicname'))]""}]}}}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'name': ""[variables('websrvavailabilitysetname')]"", 'properties': {'platformupdatedomaincount': 20, 'platformfaultdomaincount': 2}, 'tags': {'displayname': 'websrvavailabilityset'}, 'sku': {'name': 'aligned'}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'ansibleroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','ansibleaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('ansible_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'ansibleaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('ansible_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-ansiblehostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','ansibleaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./ansible_setup.sh',' ',parameters('storageaccountname'),' ',parameters('filesharename'),' ',parameters('viyarepofolder'),' ',parameters('sasapplicationname'),' ',variables('domain_name'),' ',variables('ansible_vm_name'),' ',variables('microservices_vm_name'),' ',variables('cascontroller_vm_name'),' ',variables('spre_vm_name'),' ',variables('casworker_vm_name'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',parameters('numberofviyacasnodes'),' ',variables('mid_vm_name'),' ',parameters('_artifactslocation'),' ',variables('compute_vm_name'),' ',variables('meta_vm_name'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/ansible_setup.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-ansiblesslcopy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase2-metainstall')]"", ""[resourceid('microsoft.resources/deployments','phase2-midinstall')]"", ""[resourceid('microsoft.resources/deployments','phase2-computeinstall')]"", ""[resourceid('microsoft.resources/deployments','phase4-viyainstallpart2')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;./ansible_ssl.sh 2>&1 | tee /var/log/sas/install/runphase2ansiblesslcopy.log;')]""}, 'filepath': {'value': 'scripts/ansible_ssl.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-06-01', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('virtualnetwork_cidr')]""]}, 'subnets': [{'name': ""[parameters('subnet1name')]"", 'properties': {'addressprefix': ""[parameters('subnet1_cidr')]"", 'privateendpointnetworkpolicies': 'disabled'}}, {'name': ""[parameters('subnet2name')]"", 'properties': {'addressprefix': ""[parameters('subnet2_cidr')]"", 'delegations': [{'name': 'delegation', 'properties': {'servicename': 'microsoft.web/serverfarms'}}], 'privateendpointnetworkpolicies': 'enabled'}}]}}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-06-01', 'name': ""[parameters('privateendpointname')]"", 'location': ""[parameters('location')]"", 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('virtualnetworkname'), parameters('subnet1name'))]""}, 'privatelinkserviceconnections': [{'name': ""[parameters('privatelinkconnectionname')]"", 'properties': {'privatelinkserviceid': ""[resourceid('microsoft.web/sites', parameters('site1_name'))]"", 'groupids': ['sites']}}]}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.web/sites', parameters('site1_name'))]""]}{'type': 'microsoft.network/privatednszones', 'apiversion': '2018-09-01', 'name': ""[variables('privatednszonename')]"", 'location': 'global', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""]} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2017-05-10', 'name': ""[variables('nesteddeploymentnamensg')]"", 'type': 'microsoft.resources/deployments', 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/newnsg.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'nsgname': {'value': ""[variables('nsgname')]""}, 'ostype': {'value': ""[variables('internalostype')]""}}}}{'apiversion': '2017-05-10', 'name': ""[variables('nesteddeploymentnamevnet')]"", 'type': 'microsoft.resources/deployments', 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'dependson': [""[concat('microsoft.resources/deployments/', variables('nesteddeploymentnamensg'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/newvnetnsg.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'addressprefix': {'value': '10.0.0.0/16'}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'subnetprefix': {'value': '10.0.0.0/24'}, 'nsgname': {'value': ""[variables('nsgname')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnamepip'), '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'pipascsloop', 'count': ""[variables('ascsvmcount')]""}, 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/newpip.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'publicipname': {'value': ""[concat(variables('publicipnameascs'), '-', copyindex())]""}, 'publicipaddresstype': {'value': 'dynamic'}}}}{'apiversion': '2017-05-10', 'name': ""[variables('nesteddeploymentnamelbascs')]"", 'type': 'microsoft.resources/deployments', 'dependson': [""[concat('microsoft.resources/deployments/', variables('nesteddeploymentnamevnet'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/loadbalancer.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'loadbalancername': {'value': ""[variables('loadbalancernameascs')]""}, 'sapsystemcount': {'value': 1}, 'stacktype': {'value': ""[parameters('stacktype')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'createxscs': {'value': true}, 'createdb': {'value': false}, 'subnetid': {'value': ""[variables('selectedsubnetid')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnamenicascs'), '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'nicconfigascsloop', 'count': ""[variables('ascsvmcount')]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/nic-config.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'publicipname': {'value': ""[concat(variables('publicipnameascs'), '-', copyindex())]""}, 'subnetid': {'value': ""[parameters('subnetid')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnameprof'), '-ascs-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'osdiskpartsascsloop', 'count': ""[variables('ascsvmcount')]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/os-disk-parts-md.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'imagesku': {'value': ''}, 'imagepublisher': {'value': ''}, 'imageoffer': {'value': ''}, 'imageversion': {'value': ''}, 'osdisktype': {'value': ""[variables('osdisktype')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'vmname': {'value': ""[concat(variables('vmnameascs'), '-', copyindex())]""}, 'storagetype': {'value': 'premium_lrs'}, 'manageddiskid': {'value': ""[parameters('userimageid')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnameascs'), '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'serverascsloop', 'count': ""[variables('ascsvmcount')]""}, 'dependson': ['nicascsloop', ""[concat('microsoft.compute/availabilitysets/', variables('avsetnameascs'))]"", 'osdiskpartsascsloop'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/server-md.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'imagereference': {'value': ""[reference(concat(variables('nesteddeploymentnameprof'), '-ascs-', copyindex())).outputs.imagereference.value]""}, 'osdisk': {'value': ""[reference(concat(variables('nesteddeploymentnameprof'), '-ascs-', copyindex())).outputs.osdisk.value]""}, 'osdisktype': {'value': ""[variables('osdisktype')]""}, 'vmname': {'value': ""[concat(variables('vmnameascs'), '-', copyindex())]""}, 'vmsize': {'value': ""[variables('vmsizes')[parameters('sapsystemsize')][parameters('systemavailability')].ascsserversize]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'csextensionscript': {'value': ""[variables('csextension')[variables('internalostype')].script]""}, 'csextensionscriptcall': {'value': ""[variables('csextension')[variables('internalostype')].scriptcall]""}, 'csextensionscriptargs': {'value': ''}, 'avsetobj': {'value': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('avsetnameascs'))]""}}, 'useavset': {'value': true}, 'nicname': {'value': ""[concat(variables('nicnameascs'), '-', copyindex())]""}, 'datadisksobj': {'value': {'datadisks': [{'lun': 0, 'createoption': 'empty', 'disksizegb': 128}]}}, 'ostype': {'value': ""[variables('internalostype')]""}}}}{'apiversion': '2017-05-10', 'name': ""[variables('nesteddeploymentnamelbdb')]"", 'type': 'microsoft.resources/deployments', 'dependson': [""[concat('microsoft.resources/deployments/', variables('nesteddeploymentnamevnet'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/loadbalancer.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'loadbalancername': {'value': ""[variables('loadbalancernamedb')]""}, 'sapsystemcount': {'value': 1}, 'stacktype': {'value': ""[parameters('stacktype')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'createxscs': {'value': false}, 'createdb': {'value': true}, 'dbtype': {'value': ""[parameters('dbtype')]""}, 'subnetid': {'value': ""[variables('selectedsubnetid')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'name': ""[variables('storageaccountname')]"", 'type': 'microsoft.storage/storageaccounts', 'location': ""[parameters('location')]"", 'apiversion': '2021-01-01', 'tags': {'displayname': 'storage01'}, 'sku': {'name': ""[parameters('storagetype')]""}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'name': ""[parameters('vmname')]"", 'type': 'microsoft.compute/virtualmachines', 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('vmnicname'))]""], 'tags': {'displayname': 'vm01'}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('vmadminusername')]"", 'adminpassword': ""[parameters('vmadminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('vmimagepublisher')]"", 'offer': ""[variables('vmimageoffer')]"", 'sku': ""[parameters('vmsku')]"", 'version': ""[parameters('vmversion')]""}, 'osdisk': {'name': ""[concat(parameters('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('vmnicname'))]""}]}}, 'resources': [{'name': 'setupoffice', 'type': 'extensions', 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', parameters('vmname'))]""], 'tags': {'displayname': 'setupoffice'}, 'properties': {'publisher': 'microsoft.compute', 'type': 'customscriptextension', 'typehandlerversion': '1.9', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/', parameters('setupofficescriptfilename'), parameters('_artifactslocationsastoken')))]"", 'https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/defaultconfiguration.xml', 'https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/office2013setup.exe', 'https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/office2016setup.exe', 'https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/edit-officeconfigurationfile.ps1', 'https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/generate-odtconfigurationxml.ps1', 'https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/install-officeclicktorun.ps1'], 'commandtoexecute': ""[concat('powershell -executionpolicy bypass -file scripts/', parameters('setupofficescriptfilename'),' -officeversion ', parameters('officeversion'))]""}}}]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-06-01', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': ['10.0.0.0/16']}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': '10.0.2.0/24'}}]}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2020-06-01', 'name': ""[concat(variables('networkinterfacename'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'nicloop', 'count': ""[variables('numberofinstances')]""}, 'dependson': [""[variables('virtualnetworkname')]"", ""[variables('loadbalancername')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('subnetref')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('loadbalancername'), 'backendpool1')]""}]}}]}}{'type': 'microsoft.network/loadbalancers', 'apiversion': '2020-06-01', 'name': ""[variables('loadbalancername')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'dependson': [""[variables('virtualnetworkname')]""], 'properties': {'frontendipconfigurations': [{'properties': {'subnet': {'id': ""[variables('subnetref')]""}, 'privateipaddress': '10.0.2.6', 'privateipallocationmethod': 'static'}, 'name': 'loadbalancerfrontend'}], 'backendaddresspools': [{'name': 'backendpool1'}], 'loadbalancingrules': [{'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', variables('loadbalancername'), 'loadbalancerfrontend')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('loadbalancername'), 'backendpool1')]""}, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', variables('loadbalancername'), 'lbprobe')]""}, 'protocol': 'tcp', 'frontendport': 80, 'backendport': 80, 'idletimeoutinminutes': 15}, 'name': 'lbrule'}], 'probes': [{'properties': {'protocol': 'tcp', 'port': 80, 'intervalinseconds': 15, 'numberofprobes': 2}, 'name': 'lbprobe'}]}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('infrastorageaccountname')]"", 'apiversion': '2019-06-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage', 'properties': {}}{'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('statestorageaccountname')]"", 'apiversion': '2019-06-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage', 'properties': {}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/applicationgateways', 'apiversion': '2020-11-01', 'name': ""[variables('app-gateway-name')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.insights/components', variables('app-insights-name'))]"", ""[resourceid('microsoft.network/publicipaddresses', variables('public-ip-name'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('vnet-name'))]"", ""[resourceid('microsoft.network/privatednszones', 'azure-api.net')]""], 'properties': {'sku': {'name': 'waf_v2', 'tier': 'waf_v2', 'capacity': ""[parameters('app-gateway-capacity')]""}, 'gatewayipconfigurations': [{'name': 'appgatewayipconfig', 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet-name'), 'appgatewaysubnet')]""}}}], 'frontendipconfigurations': [{'name': 'appgwpublicfrontendip', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('public-ip-name'))]""}}}], 'frontendports': [{'name': 'port_80', 'properties': {'port': 80}}], 'backendaddresspools': [{'name': 'gatewaybackend', 'properties': {'backendaddresses': [{'fqdn': ""[concat(variables('apim-name'), '.azure-api.net')]""}]}}], 'backendhttpsettingscollection': [{'name': 'apim-gateway-https-setting', 'properties': {'port': 443, 'protocol': 'https', 'cookiebasedaffinity': 'disabled', 'hostname': ""[concat(variables('apim-name'), '.azure-api.net')]"", 'pickhostnamefrombackendaddress': false, 'requesttimeout': 20, 'probe': {'id': ""[resourceid('microsoft.network/applicationgateways/probes', variables('app-gateway-name'), 'apim-gateway-probe')]""}}}], 'httplisteners': [{'name': 'apim-listener', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/applicationgateways/frontendipconfigurations', variables('app-gateway-name'), 'appgwpublicfrontendip')]""}, 'frontendport': {'id': ""[resourceid('microsoft.network/applicationgateways/frontendports', variables('app-gateway-name'), 'port_80')]""}, 'protocol': 'http', 'requireservernameindication': false}}], 'requestroutingrules': [{'name': 'apim-routing-rule', 'properties': {'ruletype': 'basic', 'httplistener': {'id': ""[resourceid('microsoft.network/applicationgateways/httplisteners', variables('app-gateway-name'), 'apim-listener')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/applicationgateways/backendaddresspools', variables('app-gateway-name'), 'gatewaybackend')]""}, 'backendhttpsettings': {'id': ""[resourceid('microsoft.network/applicationgateways/backendhttpsettingscollection', variables('app-gateway-name'), 'apim-gateway-https-setting')]""}}}], 'probes': [{'name': 'apim-gateway-probe', 'properties': {'protocol': 'https', 'host': ""[concat(variables('apim-name'), '.azure-api.net')]"", 'port': 443, 'path': '/status-0123456789abcdef', 'interval': 30, 'timeout': 120, 'unhealthythreshold': 8, 'pickhostnamefrombackendhttpsettings': false, 'minservers': 0}}], 'webapplicationfirewallconfiguration': {'enabled': true, 'firewallmode': 'detection', 'rulesettype': 'owasp', 'rulesetversion': '3.2', 'requestbodycheck': true, 'maxrequestbodysizeinkb': 128, 'fileuploadlimitinmb': 100}}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-11-01', 'name': ""[variables('public-ip-name')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard', 'tier': 'regional'}, 'properties': {'publicipallocationmethod': 'static', 'dnssettings': {'domainnamelabel': ""[parameters('base-name')]""}}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('storageaccountname')]"", 'apiversion': '2021-01-01', 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storage'} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('storageaccountname')]"", 'apiversion': '2021-02-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage'} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('imagesku')]"", 'version': ""[variables('imageversion')]""}, 'datadisks': [{'disksizegb': ""[parameters('sizeofeachdatadiskingb')]"", 'lun': 0, 'name': ""[concat(variables('vmname'),'_datadisk1')]"", 'createoption': 'empty'}], 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}} END" -Create an on-demand SFTP Server with persistent storage using an existing storage account," {'type': 'microsoft.containerinstance/containergroups', 'name': ""[variables('sftpcontainergroupname')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'properties': {'containers': [{'name': ""[variables('sftpcontainername')]"", 'properties': {'image': ""[variables('sftpcontainerimage')]"", 'environmentvariables': [{'name': 'sftp_users', 'value': ""[variables('sftpenvvariable')]""}], 'resources': {'requests': {'cpu': 2, 'memoryingb': 1}}, 'ports': [{'port': 22}], 'volumemounts': [{'mountpath': ""[concat('/home/', parameters('sftpuser'), '/upload')]"", 'name': 'sftpvolume', 'readonly': false}]}}], 'ostype': 'linux', 'ipaddress': {'type': 'public', 'ports': [{'protocol': 'tcp', 'port': 22}]}, 'restartpolicy': 'onfailure', 'volumes': [{'name': 'sftpvolume', 'azurefile': {'readonly': false, 'sharename': ""[parameters('existingfilesharename')]"", 'storageaccountname': ""[parameters('existingstorageaccountname')]"", 'storageaccountkey': ""[listkeys(variables('storageaccountid'),'2018-02-01').keys[0].value]""}}]}} END" -"This template creates an Azure Cosmos account, injects the Cosmos DB endpoint and keys into Azure Web App settings, then deploys an ASP MVC web app from GitHub."," {'type': 'microsoft.documentdb/databaseaccounts', 'apiversion': '2021-04-15', 'name': ""[variables('cosmosaccountname')]"", 'kind': 'globaldocumentdb', 'location': ""[parameters('location')]"", 'properties': {'consistencypolicy': {'defaultconsistencylevel': 'session'}, 'locations': [{'locationname': ""[parameters('location')]"", 'failoverpriority': 0, 'iszoneredundant': false}], 'databaseaccountoffertype': 'standard'}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'apiversion': '2019-06-01', 'type': 'microsoft.storage/storageaccounts', 'name': ""[parameters('blobstorageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storagev2'} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipprefixes', 'apiversion': '2021-03-01', 'name': ""[parameters('publicipprefixname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard', 'tier': 'regional'}, 'properties': {'prefixlength': ""[parameters('publicipprefixlength')]"", 'publicipaddressversion': 'ipv4'}}{'type': 'microsoft.network/natgateways', 'apiversion': '2020-06-01', 'name': ""[parameters('natgatewayname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'dependson': [""[variables('publicipprefixid')]""], 'properties': {'idletimeoutinminutes': 4, 'publicipprefixes': [{'id': ""[variables('publicipprefixid')]""}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('bastionpublicipaddressname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static'}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/bastionhosts', 'name': ""[parameters('bastionhostname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('bastionpublicipaddressid')]"", ""[variables('virtualnetworkid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconf', 'properties': {'subnet': {'id': ""[variables('bastionsubnetid')]""}, 'publicipaddress': {'id': ""[variables('bastionpublicipaddressid')]""}}}]}, 'resources': [{'type': 'providers/diagnosticsettings', 'apiversion': '2017-05-01-preview', 'name': 'microsoft.insights/default', 'location': ""[parameters('location')]"", 'dependson': [""[variables('bastionhostid')]"", ""[variables('workspaceid')]""], 'properties': {'workspaceid': ""[variables('workspaceid')]"", 'logs': [{'category': 'bastionauditlogs', 'enabled': true}]}}]}{'apiversion': '2020-04-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('vmnicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('virtualnetworkid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('vmsubnetid')]""}}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('vmsubnetnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowsshinbound', 'properties': {'priority': 100, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}, 'resources': [{'type': 'providers/diagnosticsettings', 'apiversion': '2017-05-01-preview', 'name': 'microsoft.insights/default', 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmsubnetnsgid')]"", ""[variables('workspaceid')]""], 'properties': {'workspaceid': ""[variables('workspaceid')]"", 'logs': [{'category': 'networksecuritygroupevent', 'enabled': true, 'retentionpolicy': {'enabled': false, 'days': 0}}, {'category': 'networksecuritygrouprulecounter', 'enabled': true, 'retentionpolicy': {'enabled': false, 'days': 0}}]}}]} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'shared-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-11-01', 'comments': 'resources that are shared within the infrastructure environment', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('share-resourcesuri')]"", 'contentversion': '1.0.0.1'}, 'parameters': {'resourceapiversion': {'value': ""[variables('resourceapiversion')]""}, 'networkspec': {'value': ""[variables('networkspec')]""}, 'tableauasname': {'value': ""[variables('vmspec').tableauasname]""}, 'masternodeasname': {'value': ""[variables('vmspec').masternodeasname]""}, 'datanodeasname': {'value': ""[variables('vmspec').datanodeasname]""}, 'clouderatags': {'value': ""[variables('clouderatags')]""}, 'tableautags': {'value': ""[variables('tableautags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'master-node', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-11-01', 'comments': 'cloudera master node that manages the cluster nodes', 'dependson': ['microsoft.resources/deployments/shared-resources'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(variables('scriptsuri'), '/nested/master-node.json')]"", 'contentversion': '1.0.0.1'}, 'parameters': {'vnetid': {'value': ""[variables('vnetid')]""}, 'resourceapiversion': {'value': ""[variables('resourceapiversion')]""}, 'dnsnameprefix': {'value': ""[parameters('dnsnameprefix')]""}, 'scriptsuri': {'value': ""[variables('scriptsuri')]""}, 'storageaccount': {'value': ""[variables('masterstorageaccount')]""}, 'vmcount': {'value': ""[variables('clusterspec').masternodecount]""}, 'vmspec': {'value': ""[variables('vmspec')]""}, 'networkspec': {'value': ""[variables('networkspec')]""}, 'clusterspec': {'value': ""[variables('clusterspec')]""}, 'clouderatags': {'value': ""[variables('clouderatags')]""}, 'tableautags': {'value': ""[variables('tableautags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetdmzname')]"", 'properties': {'addressprefix': ""[parameters('subnetdmzprefix')]""}}, {'name': ""[variables('subnetmemcachedname')]"", 'properties': {'addressprefix': ""[parameters('subnetmemcachedprefix')]""}}]}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': 'publicip', 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('domainname')]""}}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/networkinterfaces', 'name': 'nicapache', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', parameters('virtualnetworkname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses','publicip')]""}, 'subnet': {'id': ""[variables('subnetdmzref')]""}}}]}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat('nicmemcached', copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'memcachednicloop', 'count': ""[parameters('numberofmemcachedinstances')]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', parameters('virtualnetworkname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('subnetmemcachedref')]""}}}]}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('imagesku')]"", 'version': ""[variables('imageversion')]""}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2020-06-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}} END" -This template creates a data collection rule defining the data source (Syslog) and the destination workspace.," {'type': 'microsoft.insights/autoscalesettings', 'apiversion': '2015-04-01', 'name': 'autoscalesettings', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachinescalesets', variables('vmssuniquename'))]""], 'properties': {'name': 'autoscalesettings', 'targetresourceuri': ""[resourceid('microsoft.compute/virtualmachinescalesets', variables('vmssuniquename'))]"", 'enabled': true, 'profiles': [{'name': 'profile1', 'capacity': {'minimum': '2', 'maximum': '20', 'default': ""[parameters('capacity')]""}, 'rules': [{'metrictrigger': {'metricname': 'percentage cpu', 'metricresourceuri': ""[resourceid('microsoft.compute/virtualmachinescalesets', variables('vmssuniquename'))]"", 'timegrain': 'pt1m', 'statistic': 'average', 'timewindow': 'pt5m', 'timeaggregation': 'average', 'operator': 'greaterthan', 'threshold': 40.0}, 'scaleaction': {'direction': 'increase', 'type': 'changecount', 'value': '1', 'cooldown': 'pt1m'}}, {'metrictrigger': {'metricname': 'percentage cpu', 'metricresourceuri': ""[resourceid('microsoft.compute/virtualmachinescalesets', variables('vmssuniquename'))]"", 'timegrain': 'pt1m', 'statistic': 'average', 'timewindow': 'pt5m', 'timeaggregation': 'average', 'operator': 'lessthan', 'threshold': 30.0}, 'scaleaction': {'direction': 'decrease', 'type': 'changecount', 'value': '1', 'cooldown': 'pt5m'}}]}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-06-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow_tds_inbound', 'properties': {'description': 'allow access to data', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '1433', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}, {'name': 'allow_redirect_inbound', 'properties': {'description': 'allow inbound redirect traffic to managed instance inside the virtual network', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '11000-11999', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1100, 'direction': 'inbound'}}, {'name': 'deny_all_inbound', 'properties': {'description': 'deny all other inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 4096, 'direction': 'inbound'}}, {'name': 'deny_all_outbound', 'properties': {'description': 'deny all other outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 4096, 'direction': 'outbound'}}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2019-06-01', 'name': ""[variables('vnet_name')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups',variables('pub_sub_nw_sg'))]"", ""[resourceid('microsoft.network/networksecuritygroups',variables('pvt_sub_nw_sg'))]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddresscidr')]""]}, 'subnets': [{'name': ""[variables('vnet_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('sasprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_viya_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('viyaprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_pub_subnt')]"", 'properties': {'addressprefix': ""[parameters('ansiblebastionpublicsubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pub_sub_nw_sg'))]""}}}], 'enableddosprotection': false, 'enablevmprotection': false}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('pub_sub_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow-ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': ""[parameters('adminingresslocation')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}], 'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('pvt_sub_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('ansible_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow-ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': ""[parameters('adminingresslocation')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}], 'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('meta_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('mid_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('compute_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('rdp_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('microservices_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('spre_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('cascontroller_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('casworker_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2019-09-01', 'name': ""[variables('ansible_pub_nw_interface')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'basic', 'tier': 'regional'}, 'properties': {'publicipaddressversion': 'ipv4', 'publicipallocationmethod': 'static', 'idletimeoutinminutes': 4}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('ansible_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('ansible_pub_nw_interface'))]"", ""[resourceid('microsoft.network/networksecuritygroups', variables('ansible_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('ansible_pub_nw_interface'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pub_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('ansible_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('rdp_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('rdp_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('rdp_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('meta_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('meta_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('meta_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('compute_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('compute_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('compute_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('mid_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('mid_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('mid_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('microservices_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('microservices_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_viya_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('microservices_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('spre_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('spre_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_viya_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('spre_nw_sg'))]""}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-06-01', 'name': ""[variables('virtualmachinename')]"", 'location': ""[parameters('location')]"", 'properties': {'osprofile': {'computername': ""[variables('virtualmachinename')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'windowsconfiguration': {'provisionvmagent': true}}, 'hardwareprofile': {'vmsize': ""[parameters('virtualmachinesize')]""}, 'storageprofile': {'imagereference': {'publisher': 'microsoftwindowsserver', 'offer': 'windowsserver', 'sku': '2019-datacenter', 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'properties': {'primary': true}, 'id': ""[resourceid('microsoft.network/networkinterfaces', variables('nic1name'))]""}, {'properties': {'primary': false}, 'id': ""[resourceid('microsoft.network/networkinterfaces', variables('nic2name'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts', variables('diagstorageaccountname'))).primaryendpoints.blob]""}}}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts', variables('diagstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces', variables('nic1name'))]"", ""[resourceid('microsoft.network/networkinterfaces', variables('nic2name'))]""]} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[variables('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}, 'datadisks': [{'name': ""[concat(variables('vmname'),'_datadisk1')]"", 'disksizegb': '10', 'lun': 0, 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'), '/setupdatadisk')]"", 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/setup_data_disk.sh', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': 'bash setup_data_disk.sh'}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'), '/neo4jdocker')]"", 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/extensions', variables('vmname'),'setupdatadisk')]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'dockerextension', 'typehandlerversion': '1.0', 'autoupgrademinorversion': true, 'settings': {'compose': {'neo4j': {'image': 'tpires/neo4j', 'ports': ['7474:7474', '7473:7473'], 'volumes': ['/datadisk:/var/lib/neo4j/data']}}}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('avsetnamedi')]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 20}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'publicipaddressdeploy', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('publicipaddressurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'networkapiversion': {'value': ""[variables('networkapiversion')]""}, 'publicipaddressname': {'value': ""[variables('pubicipaddressname')]""}, 'publicipdnsprefix': {'value': ""[variables('publicipdns')]""}, 'tag': {'value': {'key1': 'public ip address', 'value1': ""[parameters('tag').value1]""}}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'storageaccountdeploy', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('storageaccounturl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'storageapiversion': {'value': ""[variables('storageapiversion')]""}, 'storageaccounttype': {'value': ""[variables('storageaccounttype')]""}, 'storageaccountname': {'value': ""[variables('storageaccname')]""}, 'tag': {'value': {'key1': 'storage account', 'value1': ""[parameters('tag').value1]""}}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'adfstorageaccountdeploy', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('storageaccounturl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'storageapiversion': {'value': ""[variables('storageapiversion')]""}, 'storageaccounttype': {'value': ""[variables('storageaccounttype')]""}, 'storageaccountname': {'value': ""[variables('adfstorageaccname')]""}, 'tag': {'value': {'key1': 'storage account', 'value1': ""[parameters('tag').value1]""}}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'virtualnetworkdeploy', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('virtualnetworkurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'networkapiversion': {'value': ""[variables('networkapiversion')]""}, 'vnetname': {'value': ""[variables('vnetname')]""}, 'subnet1name': {'value': ""[variables('subnet1name')]""}, 'vnetaddressprefix': {'value': ""[variables('vnetaddressprefix')]""}, 'subnet1prefix': {'value': ""[variables('subnet1prefix')]""}, 'tag': {'value': {'key1': 'virtual network', 'value1': ""[parameters('tag').value1]""}}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'networkinterfacedeploy', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'dependson': ['virtualnetworkdeploy', 'networksecuritygroupdeploy', 'publicipaddressdeploy'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('networkinterfaceurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'networkapiversion': {'value': ""[variables('networkapiversion')]""}, 'networkinterfacename': {'value': ""[variables('networkinterfacename')]""}, 'networksecuritygroupname': {'value': ""[variables('networksecuritygroupsname')]""}, 'publicipaddressname': {'value': ""[variables('pubicipaddressname')]""}, 'subnetref': {'value': ""[variables('subnetref')]""}, 'tag': {'value': {'key1': 'network interface', 'value1': ""[parameters('tag').value1]""}}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'networksecuritygroupdeploy', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('networksecuritygroupurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'networkapiversion': {'value': ""[variables('networkapiversion')]""}, 'networksecuritygroupsname': {'value': ""[variables('networksecuritygroupsname')]""}, 'tag': {'value': {'key1': 'network security group', 'value1': ""[parameters('tag').value1]""}}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'virtualmachinedeploy', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'dependson': ['storageaccountdeploy', 'networkinterfacedeploy'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('virtualmachineurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'computeapiversion': {'value': ""[variables('computeapiversion')]""}, 'vmname': {'value': ""[variables('vmname')]""}, 'storageaccountname': {'value': ""[variables('storageaccname')]""}, 'vmstorageaccountcontainername': {'value': ""[variables('storagecontainer')]""}, 'vmsize': {'value': ""[variables('vmsize')]""}, 'imagepublisher': {'value': ""[variables('imagepublisher')]""}, 'imageoffer': {'value': ""[variables('imageoffer')]""}, 'imageversion': {'value': ""[variables('imageversion')]""}, 'imagesku': {'value': ""[variables('imagesku')]""}, 'adminusername': {'value': ""[parameters('adminusernameinformaticavm')]""}, 'adminpassword': {'value': ""[parameters('adminpasswordinformaticavm')]""}, 'networkinterfacename': {'value': ""[variables('networkinterfacename')]""}, 'tag': {'value': {'key1': 'virtual machine', 'value1': ""[parameters('tag').value1]""}}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'virtualmachineextdeploy', 'dependson': ['virtualmachinedeploy', 'informaticacredentialsautomationsetup'], 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('virtualmachineexturl')]""}, 'parameters': {'vmname': {'value': ""[variables('vmname')]""}, 'location': {'value': ""[parameters('location')]""}, 'fileuris': {'value': ""[variables('fileuris')]""}, 'arguments': {'value': ""[variables('arguments')]""}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'informaticacredentialsautomationsetup', 'apiversion': '2015-01-01', 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('credentialsautomationsetupurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'jobidsignup': {'value': ""[parameters('jobidsignup')]""}, 'automationaccountname': {'value': ""[variables('automationaccname')]""}, 'credential1name': {'value': ""[variables('credential1name')]""}, 'cred1username': {'value': ""[variables('azurermusername')]""}, 'cred1password': {'value': ""[variables('azurermpassword')]""}, 'runbookname': {'value': ""[variables('credsetuprunbookname')]""}, 'location': {'value': ""[variables('automationlocation')]""}, 'runbookurl': {'value': ""[variables('credsrunbookurl')]""}, 'sku': {'value': ""[variables('sku')]""}, 'ip': {'value': ""[variables('ip')]""}, 'sysgain_ms_email': {'value': ""[variables('sysgainmsemail')]""}, 'sysgain_ms_password': {'value': ""[variables('sysgainmspassword')]""}, 'user_email': {'value': ""[parameters('useremail')]""}, 'informatica_user_name': {'value': ""[parameters('informaticausername')]""}, 'informatica_user_password': {'value': ""[parameters('informaticauserpassword')]""}, 'user_firstname': {'value': ""[parameters('userfirstname')]""}, 'user_lastname': {'value': ""[parameters('userlastname')]""}, 'user_title': {'value': ""[parameters('usertitle')]""}, 'user_phone': {'value': ""[parameters('userphone')]""}, 'org_name': {'value': ""[parameters('orgname')]""}, 'org_address': {'value': ""[parameters('orgaddress')]""}, 'org_city': {'value': ""[parameters('orgcity')]""}, 'org_state': {'value': ""[parameters('orgstate')]""}, 'org_zipcode': {'value': ""[parameters('orgzipcode')]""}, 'org_country': {'value': ""[parameters('orgcountry')]""}, 'org_employees': {'value': ""[parameters('orgemployees')]""}, 'client_id': {'value': ""[variables('clientid')]""}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'workflowautomationsetup', 'apiversion': '2015-01-01', 'type': 'microsoft.resources/deployments', 'dependson': ['informaticacredentialsautomationsetup', 'virtualmachineextdeploy', 'sqldatawarehouesetup', 'adfstorageaccountdeploy', 'createcontainerautomationsetup'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('workflowautomationsetupurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'jobidworkflow': {'value': ""[parameters('jobidworkflow')]""}, 'automationaccountname': {'value': ""[variables('wfaatomationaccountname')]""}, 'credential1name': {'value': ""[variables('credential1name')]""}, 'cred1username': {'value': ""[variables('azurermusername')]""}, 'cred1password': {'value': ""[variables('azurermpassword')]""}, 'runbookname': {'value': ""[variables('wfrunbookname')]""}, 'location': {'value': ""[variables('automationlocation')]""}, 'runbookurl': {'value': ""[variables('wfrunbookurl')]""}, 'sku': {'value': ""[variables('sku')]""}, 'ip': {'value': ""[variables('ip')]""}, 'sysgain_ms_email': {'value': ""[variables('sysgainmsemail')]""}, 'sysgain_ms_password': {'value': ""[variables('sysgainmspassword')]""}, 'informatica_user_name': {'value': ""[parameters('informaticausername')]""}, 'informatica_user_password': {'value': ""[parameters('informaticauserpassword')]""}, 'informatica_csa_vmname': {'value': ""[variables('vmname')]""}, 'client_id': {'value': ""[variables('clientid')]""}, 'adfstorageaccname': {'value': ""[variables('adfstorageaccname')]""}, 'adfstorageacckey': {'value': ""[reference('adfstorageaccountdeploy').outputs.primarykey.value]""}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'sqldatawarehouesetup', 'apiversion': '2015-01-01', 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('sqldatawarehousesetupurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[variables('sqldwlocation')]""}, 'sqldwservername': {'value': ""[variables('sqldwservername')]""}, 'sqldwdbadminname': {'value': ""[parameters('sqldwdbadminname')]""}, 'sqldwadminpassword': {'value': ""[parameters('sqldwadminpassword')]""}, 'sqldwdbname': {'value': ""[variables('sqldwdbname')]""}, 'servicelevelobjective': {'value': ""[variables('servicelevelobjective')]""}, 'startipaddress': {'value': ""[variables('startipaddress')]""}, 'endipaddress': {'value': ""[variables('endipaddress')]""}, 'sql-api-version': {'value': ""[variables('sqlapiversion')]""}, 'sqldb-api-version': {'value': ""[variables('sqldbapiversion')]""}, 'sqlfirewallrules-api-version': {'value': ""[variables('sqlfirewallrulesapiversion')]""}, 'collation': {'value': ""[variables('collation')]""}, 'maxsizebytes': {'value': ""[variables('maxsizebytes')]""}, 'version': {'value': ""[variables('sqlversion')]""}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'createtableautomationsetup', 'apiversion': '2015-01-01', 'type': 'microsoft.resources/deployments', 'dependson': ['sqldatawarehouesetup'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('createtableautomationsetupurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'sqldwservername': {'value': ""[variables('sqldwservername')]""}, 'sqldwdbadminname': {'value': ""[parameters('sqldwdbadminname')]""}, 'sqldwadminpassword': {'value': ""[parameters('sqldwadminpassword')]""}, 'sqldwdbname': {'value': ""[variables('sqldwdbname')]""}, 'jobid': {'value': ""[parameters('jobid')]""}, 'accountname': {'value': ""[variables('accountname')]""}, 'credentialname': {'value': ""[variables('credentialname')]""}, 'runbookname': {'value': ""[variables('runbookname')]""}, 'location': {'value': ""[variables('automationlocation')]""}, 'scripturi': {'value': ""[variables('automationscripturi')]""}, 'runbookdescription': {'value': ""[variables('runbookdescription')]""}, 'sku': {'value': ""[variables('sku')]""}, 'informaticatags': {'value': ""[variables('informaticatags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'apiversion': '2019-06-01', 'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('storageaccountnamediag')]"", 'location': ""[parameters('location')]"", 'kind': 'storagev2', 'sku': {'name': 'standard_lrs'}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'name': ""[variables('chefbeavailname')]"", 'type': 'microsoft.compute/availabilitysets', 'location': '[resourcegroup().location]', 'apiversion': '2017-12-01', 'dependson': [], 'tags': {'displayname': 'beavailset', 'provider': ""[variables('tagvalues').provider]""}, 'sku': {'name': 'aligned'}, 'properties': {'platformupdatedomaincount': 3, 'platformfaultdomaincount': 3}}{'name': ""[variables('cheffeavailname')]"", 'type': 'microsoft.compute/availabilitysets', 'location': '[resourcegroup().location]', 'apiversion': '2017-12-01', 'dependson': [], 'tags': {'displayname': 'feavailset', 'provider': ""[variables('tagvalues').provider]""}, 'sku': {'name': 'aligned'}, 'properties': {'platformupdatedomaincount': 3, 'platformfaultdomaincount': 3}}{'name': 'be0', 'type': 'microsoft.compute/virtualmachines', 'location': ""[variables('location')]"", 'apiversion': '2017-03-30', 'dependson': [""[concat('microsoft.storage/storageaccounts/', variables('chefbename'))]"", ""[concat('microsoft.network/networkinterfaces/', 'be0nic')]"", ""[concat('microsoft.compute/availabilitysets/',variables('chefbeavailname'))]""], 'tags': {'displayname': 'be0', 'provider': ""[variables('tagvalues').provider]""}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('chefbevmsize')]""}, 'osprofile': {'computername': 'be0', 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'keydata': ""[parameters('sshkeydata')]"", 'path': ""[variables('sshkeypath')]""}]}}}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': ""[concat('be0','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', 'be0nic')]""}]}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('chefbeavailname'))]""}}, 'resources': [{'name': 'be0setup', 'type': 'extensions', 'location': ""[variables('location')]"", 'apiversion': '2015-06-15', 'dependson': [""[concat('microsoft.compute/virtualmachines/', 'be0')]""], 'tags': {'displayname': 'be0setup'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[concat(parameters('_artifactslocation'), '/', variables('leadersetupscriptfilename'), parameters('_artifactslocationsastoken'))]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'sh \', variables(\'leadersetupscriptfilename\'), \' ""\', parameters(\'_secretslocation\'), \'"" ""\', parameters(\'_secretslocationsastoken\'), \'""\')]'}}}]}{'name': 'be1', 'type': 'microsoft.compute/virtualmachines', 'location': ""[variables('location')]"", 'apiversion': '2017-03-30', 'dependson': [""[concat('microsoft.storage/storageaccounts/', variables('chefbename'))]"", ""[concat('microsoft.network/networkinterfaces/', 'be1nic')]"", ""[concat('microsoft.compute/availabilitysets/',variables('chefbeavailname'))]""], 'tags': {'displayname': 'be1', 'provider': ""[variables('tagvalues').provider]""}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('chefbevmsize')]""}, 'osprofile': {'computername': 'be1', 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'keydata': ""[parameters('sshkeydata')]"", 'path': ""[variables('sshkeypath')]""}]}}}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': ""[concat('be1','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', 'be1nic')]""}]}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('chefbeavailname'))]""}}, 'resources': [{'name': 'be1setup', 'type': 'extensions', 'location': ""[variables('location')]"", 'apiversion': '2015-06-15', 'dependson': [""[concat('microsoft.compute/virtualmachines/', 'be1')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'be0', 'be0setup')]""], 'tags': {'displayname': 'be1setup'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[concat(parameters('_artifactslocation'), '/', variables('followersetupscriptfilename'), parameters('_artifactslocationsastoken'))]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'sh \', variables(\'followersetupscriptfilename\'), \' ""\', parameters(\'_secretslocation\'), \'"" ""\', parameters(\'_secretslocationsastoken\'), \'""\')]'}}}]}{'name': 'be2', 'type': 'microsoft.compute/virtualmachines', 'location': ""[variables('location')]"", 'apiversion': '2017-03-30', 'dependson': [""[concat('microsoft.storage/storageaccounts/', variables('chefbename'))]"", ""[concat('microsoft.network/networkinterfaces/', 'be2nic')]"", ""[concat('microsoft.compute/availabilitysets/',variables('chefbeavailname'))]""], 'tags': {'displayname': 'be2', 'provider': ""[variables('tagvalues').provider]""}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('chefbevmsize')]""}, 'osprofile': {'computername': 'be2', 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'keydata': ""[parameters('sshkeydata')]"", 'path': ""[variables('sshkeypath')]""}]}}}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': ""[concat('be2','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', 'be2nic')]""}]}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('chefbeavailname'))]""}}, 'resources': [{'name': 'be2setup', 'type': 'extensions', 'location': ""[variables('location')]"", 'apiversion': '2015-06-15', 'dependson': [""[concat('microsoft.compute/virtualmachines/', 'be2')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'be0', 'be0setup')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'be1', 'be1setup')]""], 'tags': {'displayname': 'be2setup'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[concat(parameters('_artifactslocation'), '/', variables('followersetupscriptfilename'), parameters('_artifactslocationsastoken'))]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'sh \', variables(\'followersetupscriptfilename\'), \' ""\', parameters(\'_secretslocation\'), \'"" ""\', parameters(\'_secretslocationsastoken\'), \'""\')]'}}}]}{'name': 'fe0', 'type': 'microsoft.compute/virtualmachines', 'location': ""[variables('location')]"", 'apiversion': '2017-03-30', 'dependson': [""[concat('microsoft.storage/storageaccounts/', variables('cheffename'))]"", ""[concat('microsoft.network/networkinterfaces/', 'fe0nic')]"", ""[concat('microsoft.compute/availabilitysets/',variables('cheffeavailname'))]""], 'tags': {'displayname': 'fe0', 'provider': ""[variables('tagvalues').provider]""}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('cheffevmsize')]""}, 'osprofile': {'computername': 'fe0', 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'keydata': ""[parameters('sshkeydata')]"", 'path': ""[variables('sshkeypath')]""}]}}}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': ""[concat('fe0','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', 'fe0nic')]""}]}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('cheffeavailname'))]""}}, 'resources': [{'name': 'fe0setup', 'type': 'extensions', 'location': ""[variables('location')]"", 'apiversion': '2015-06-15', 'dependson': [""[concat('microsoft.compute/virtualmachines/', 'fe0')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'be0', 'be0setup')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'be1', 'be1setup')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'be2', 'be2setup')]""], 'tags': {'displayname': 'fe0setup'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[concat(parameters('_artifactslocation'), '/', variables('fe0setupscriptscriptfilename'), parameters('_artifactslocationsastoken'))]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'sh \', variables(\'fe0setupscriptscriptfilename\'), \' ""\', parameters(\'_secretslocation\'), \'"" ""\', parameters(\'_secretslocationsastoken\'), \'""\')]'}}}]} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'condition': ""[parameters('deploycustomdnsforwarder')]"", 'type': 'microsoft.compute/availabilitysets', 'comments': 'thi is the availability set for creating a ha cluster, run the template multiple times to get multiple dns servers', 'name': ""[parameters('dnsavailabilitysetname')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 2}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vmname'), '-nic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('osimagepublisher')]"", 'offer': ""[variables('osimageoffer')]"", 'sku': ""[variables('osimagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('vmname'), '-nic'))]""}]}}}{'apiversion': '2015-06-15', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'), '/installscript')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[concat(variables('scriptdownloaduri'), variables('installscript'))]"", ""[concat(variables('scriptdownloaduri'), 'server-vars.yml')]""], 'commandtoexecute': ""[variables('installcommand')]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('vmdnsprefix')]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetref')]""}}}]}} END" -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')]""]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('bastionpublicipaddressname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static'}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('bastionsubnetnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowhttpsinbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'internet', 'destinationportrange': '443', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'allowgatewaymanagerinbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'gatewaymanager', 'destinationportrange': '443', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 110, 'direction': 'inbound'}}, {'name': 'allowloadbalancerinbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'azureloadbalancer', 'destinationportrange': '443', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 120, 'direction': 'inbound'}}, {'name': 'allowbastionhostcommunicationinbound', 'properties': {'protocol': '*', 'sourceportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationportranges': ['8080', '5701'], 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 130, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'protocol': '*', 'sourceportrange': '*', 'sourceaddressprefix': '*', 'destinationportrange': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 1000, 'direction': 'inbound'}}, {'name': 'allowsshrdpoutbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': '*', 'destinationportranges': ['22', '3389'], 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 100, 'direction': 'outbound'}}, {'name': 'allowazurecloudcommunicationoutbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': '*', 'destinationportrange': '443', 'destinationaddressprefix': 'azurecloud', 'access': 'allow', 'priority': 110, 'direction': 'outbound'}}, {'name': 'allowbastionhostcommunicationoutbound', 'properties': {'protocol': '*', 'sourceportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationportranges': ['8080', '5701'], 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 120, 'direction': 'outbound'}}, {'name': 'allowgetsessioninformationoutbound', 'properties': {'protocol': '*', 'sourceportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'destinationportranges': ['80', '443'], 'access': 'allow', 'priority': 130, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 1000, 'direction': 'outbound'}}]}, 'resources': [{'type': 'providers/diagnosticsettings', 'apiversion': '2017-05-01-preview', 'name': 'microsoft.insights/default', 'location': ""[parameters('location')]"", 'dependson': [""[variables('bastionsubnetnsgid')]"", ""[variables('workspaceid')]""], 'properties': {'workspaceid': ""[variables('workspaceid')]"", 'logs': [{'category': 'networksecuritygroupevent', 'enabled': true, 'retentionpolicy': {'enabled': false, 'days': 0}}, {'category': 'networksecuritygrouprulecounter', 'enabled': true, 'retentionpolicy': {'enabled': false, 'days': 0}}]}}]}{'apiversion': '2020-05-01', 'type': 'microsoft.network/bastionhosts', 'name': ""[parameters('bastionhostname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('bastionpublicipaddressid')]"", ""[variables('virtualnetworkid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconf', 'properties': {'subnet': {'id': ""[variables('bastionsubnetid')]""}, 'publicipaddress': {'id': ""[variables('bastionpublicipaddressid')]""}}}]}}{'apiversion': '2020-04-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('vmnicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('virtualnetworkid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('vmsubnetid')]""}}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('vmsubnetnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowsshinbound', 'properties': {'priority': 100, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}, 'resources': [{'type': 'providers/diagnosticsettings', 'apiversion': '2017-05-01-preview', 'name': 'microsoft.insights/default', 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmsubnetnsgid')]"", ""[variables('workspaceid')]""], 'properties': {'workspaceid': ""[variables('workspaceid')]"", 'logs': [{'category': 'networksecuritygroupevent', 'enabled': true, 'retentionpolicy': {'enabled': false, 'days': 0}}, {'category': 'networksecuritygrouprulecounter', 'enabled': true, 'retentionpolicy': {'enabled': false, 'days': 0}}]}}]}{'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-05-01', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('bastionsubnetnsgid')]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('virtualnetworkaddressprefixes')]""]}, 'subnets': [{'name': ""[parameters('akssubnetname')]"", 'properties': {'addressprefix': ""[parameters('akssubnetaddressprefix')]"", 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}}, {'name': ""[parameters('podsubnetname')]"", 'properties': {'addressprefix': ""[parameters('podsubnetaddressprefix')]"", 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}}, {'name': ""[parameters('vmsubnetname')]"", 'properties': {'addressprefix': ""[parameters('vmsubnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[variables('vmsubnetnsgid')]""}, 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}}, {'name': ""[variables('bastionsubnetname')]"", 'properties': {'addressprefix': ""[parameters('bastionsubnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[variables('bastionsubnetnsgid')]""}}}], 'enableddosprotection': false, 'enablevmprotection': false}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('blobprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('acrprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('keyvaultprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-06-01', 'name': ""[concat(variables('blobprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('blobprivatednszoneid')]"", ""[variables('virtualnetworkid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('virtualnetworkid')]""}}}{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-06-01', 'name': ""[concat(variables('acrprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('acrprivatednszoneid')]"", ""[variables('virtualnetworkid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('virtualnetworkid')]""}}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-06-01', 'name': ""[concat(variables('keyvaultprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('keyvaultprivatednszoneid')]"", ""[variables('virtualnetworkid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('virtualnetworkid')]""}}}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-07-01', 'name': ""[parameters('blobstorageaccountprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('virtualnetworkid')]"", ""[variables('blobstorageaccountid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('blobstorageaccountprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('blobstorageaccountid')]"", 'groupids': [""[variables('blobstorageaccountprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('vmsubnetid')]""}}, 'resources': [{'type': 'privatednszonegroups', 'apiversion': '2020-07-01', 'name': ""[variables('blobprivatednszonegroupname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('blobstorageaccountprivateendpointid')]"", ""[variables('blobprivatednszoneid')]"", ""[variables('blobstorageaccountprivateendpointid')]""], 'properties': {'privatednszoneconfigs': [{'name': 'dnsconfig', 'properties': {'privatednszoneid': ""[variables('blobprivatednszoneid')]""}}]}}]}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-07-01', 'name': ""[parameters('keyvaultprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('virtualnetworkid')]"", ""[variables('keyvaultid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('keyvaultprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('keyvaultid')]"", 'groupids': [""[variables('keyvaultprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('vmsubnetid')]""}}, 'resources': [{'type': 'privatednszonegroups', 'apiversion': '2020-07-01', 'name': ""[variables('keyvaultprivatednszonegroupname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('keyvaultid')]"", ""[variables('keyvaultprivatednszoneid')]"", ""[variables('keyvaultprivateendpointid')]""], 'properties': {'privatednszoneconfigs': [{'name': 'dnsconfig', 'properties': {'privatednszoneid': ""[variables('keyvaultprivatednszoneid')]""}}]}}]} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('defaultstorageaccount').name]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-06-01', 'sku': {'name': ""[variables('defaultstorageaccount').type]""}, 'kind': 'storagev2', 'properties': {}} END" -"This template creates a private link service that exposes a virtual machine, and it is consumed via a private endpoint."," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-06-01', 'name': ""[variables('vnetname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('vnetaddressprefix')]""]}, 'subnets': [{'name': ""[variables('frontendsubnetname')]"", 'properties': {'addressprefix': ""[variables('frontendsubnetprefix')]"", 'privatelinkservicenetworkpolicies': 'disabled'}}, {'name': ""[variables('backendsubnetname')]"", 'properties': {'addressprefix': ""[variables('backendsubnetprefix')]""}}]}}{'type': 'microsoft.network/loadbalancers', 'apiversion': '2020-06-01', 'name': ""[variables('loadbalancername')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'dependson': [""[variables('vnetname')]""], 'properties': {'frontendipconfigurations': [{'name': ""[variables('loadbalancerfrontendipconfigurationname')]"", 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnetname'), variables('frontendsubnetname'))]""}}}], 'backendaddresspools': [{'name': ""[variables('backendpoolname')]""}], 'inboundnatrules': [{'name': 'rdp-vm0', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', variables('loadbalancername'), variables('loadbalancerfrontendipconfigurationname'))]""}, 'protocol': 'tcp', 'frontendport': 3389, 'backendport': 3389, 'enablefloatingip': false}}], 'loadbalancingrules': [{'name': 'myhttprule', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', variables('loadbalancername'), variables('loadbalancerfrontendipconfigurationname'))]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('loadbalancername'), variables('backendpoolname'))]""}, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', variables('loadbalancername'), variables('healthprobename'))]""}, 'protocol': 'tcp', 'frontendport': 80, 'backendport': 80, 'idletimeoutinminutes': 15}}], 'probes': [{'properties': {'protocol': 'tcp', 'port': 80, 'intervalinseconds': 15, 'numberofprobes': 2}, 'name': ""[variables('healthprobename')]""}]}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2020-06-01', 'name': ""[variables('networkinterfacename')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('loadbalancername')]""], 'tags': {'displayname': ""[variables('networkinterfacename')]""}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnetname'), variables('backendsubnetname'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('loadbalancername'), variables('backendpoolname'))]""}], 'loadbalancerinboundnatrules': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatrules/', variables('loadbalancername'), 'rdp-vm0')]""}]}}]}}{'type': 'microsoft.network/privatelinkservices', 'apiversion': '2020-06-01', 'name': ""[variables('privatelinkservicename')]"", 'location': ""[parameters('location')]"", 'properties': {'enableproxyprotocol': false, 'loadbalancerfrontendipconfigurations': [{'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', variables('loadbalancername'), variables('loadbalancerfrontendipconfigurationname'))]""}], 'ipconfigurations': [{'name': 'snet-provider-default-1', 'properties': {'privateipallocationmethod': 'dynamic', 'privateipaddressversion': 'ipv4', 'subnet': {'id': ""[reference(variables('loadbalancerid'), '2019-06-01').frontendipconfigurations[0].properties.subnet.id]""}, 'primary': false}}]}}{'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-06-01', 'name': ""[variables('vnetconsumername')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('vnetaddressprefix')]""]}, 'subnets': [{'name': ""[variables('consumersubnetname')]"", 'properties': {'addressprefix': ""[variables('consumersubnetprefix')]"", 'privateendpointnetworkpolicies': 'disabled'}}, {'name': ""[variables('backendsubnetname')]"", 'properties': {'addressprefix': ""[variables('backendsubnetprefix')]""}}]}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-06-01', 'name': ""[variables('publicipaddressconsumername')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': ""[variables('publicipaddressconsumername')]""}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[tolower(variables('vmconsumername'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2020-06-01', 'name': ""[variables('networkinterfaceconsumername')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vnetconsumername')]"", ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressconsumername'))]""], 'tags': {'displayname': ""[variables('networkinterfaceconsumername')]""}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressconsumername'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnetconsumername'), variables('consumersubnetname'))]""}}}]}}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-06-01', 'name': ""[variables('privateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vnetconsumername')]"", ""[variables('privatelinkservicename')]""], 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnetconsumername'), variables('consumersubnetname'))]""}, 'privatelinkserviceconnections': [{'name': ""[variables('privateendpointname')]"", 'properties': {'privatelinkserviceid': ""[resourceid('microsoft.network/privatelinkservices',variables('privatelinkservicename'))]""}}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('toolpublicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[variables('tooldnslabelprefix')]""}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2019-12-01', 'type': 'microsoft.compute/proximityplacementgroups', 'name': ""[variables('ppg_name')]"", 'location': ""[parameters('location')]""}{'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-07-01', 'name': ""[variables('ansible_vm_name')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('ansible_nw_interface'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('diagnostic_storagegroup_name'))]"", ""[resourceid('microsoft.keyvault/vaults',variables('key_vault_name'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('ansiblevmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'redhat', 'offer': 'rhel', 'sku': '7.7', 'version': 'latest'}, 'osdisk': {'ostype': 'linux', 'name': ""[concat(variables('ansible_vm_name'),'-osdisk')]"", 'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': 'premium_lrs'}, 'disksizegb': 64}, 'datadisks': [{'name': ""[concat(variables('ansible_vm_name'),'-playbook')]"", 'disksizegb': 50, 'lun': 0, 'createoption': 'empty'}]}, 'osprofile': {'computername': ""[variables('ansible_vm_name')]"", 'adminusername': ""[parameters('primaryusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[concat('/home/', parameters('primaryusername'), '/.ssh/authorized_keys')]"", 'keydata': ""[parameters('sshpublickey')]""}]}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('ansible_nw_interface'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('diagnostic_storagegroup_name')).primaryendpoints.blob]""}}, 'proximityplacementgroup': {'id': ""[resourceid('microsoft.compute/proximityplacementgroups',variables('ppg_name'))]""}}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2019-06-01', 'name': ""[variables('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('storageaccounttype')]""}, 'kind': 'storagev2'} END" -Deploy Azure Sql Database Managed Instance (SQL MI) and Virtual network gateway configured for point-to-site connection inside the new virtual network.," {'type': 'microsoft.sql/managedinstances', 'apiversion': '2019-06-01-preview', 'dependson': [""[parameters('virtualnetworkname')]""], 'identity': {'type': 'systemassigned'}, 'location': ""[parameters('location')]"", 'name': ""[parameters('managedinstancename')]"", 'sku': {'name': ""[parameters('skuname')]""}, 'properties': {'administratorlogin': ""[parameters('administratorlogin')]"", 'administratorloginpassword': ""[parameters('administratorloginpassword')]"", 'subnetid': ""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('virtualnetworkname'), parameters('subnetname'))]"", 'storagesizeingb': ""[parameters('storagesizeingb')]"", 'vcores': ""[parameters('vcores')]"", 'licensetype': ""[parameters('licensetype')]""}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'name': ""[variables('clustervnetname')]"", 'type': 'microsoft.network/virtualnetworks', 'location': ""[parameters('location')]"", 'apiversion': '2020-07-01', 'properties': {'addressspace': {'addressprefixes': [""[parameters('clustervnetaddressspace')]""]}, 'subnets': [{'name': ""[parameters('clustervnetsubnetname')]"", 'properties': {'addressprefix': ""[parameters('clustervnetsubnetaddressrange')]""}}]}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[concat(variables('availsetname'), copyindex(1))]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'comments': 'these are the availability sets for web vms, app vms and database vms', 'tags': {'displayname': 'availability sets', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('redhattags').provider]""}, 'copy': {'name': 'availsetloop', 'count': 3}, 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('avsetnameascs')]"", 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'condition': ""[equals(length(parameters('availabilityzones')), 0)]"", 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 10}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmnameascs'), '-', copyindex())]"", 'copy': {'name': 'xscsvmloop', 'count': ""[variables('ascsvmcount')]""}, 'dependson': ['nicascsloop', ""[resourceid('microsoft.compute/availabilitysets', variables('avsetnameascs'))]""], 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'zones': ""[if(equals(length(parameters('availabilityzones')), 0), json('null'), array(variables('azarray')[mod(copyindex(), variables('azarraylength'))]))]"", 'properties': {'availabilityset': ""[if(equals(variables('azarraylength'), 0), resourceid('microsoft.compute/availabilitysets', variables('avsetnameascs')), json('null'))]"", 'hardwareprofile': {'vmsize': ""[variables('ascsvmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmnameascs'), '-', copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('images')[parameters('ostype')].publisher]"", 'offer': ""[variables('images')[parameters('ostype')].offer]"", 'sku': ""[variables('images')[parameters('ostype')].sku]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmnameascs'), '-', copyindex(), '-osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'premium_lrs'}}, 'datadisks': [{'lun': 0, 'createoption': 'empty', 'disksizegb': 128}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('nicnameascs'), '-', copyindex()))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmnameascs'), '-', copyindex(), '/', variables('csextension')[variables('internalostype')].name)]"", 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'dependson': ['xscsvmloop'], 'copy': {'name': 'xscsextvmloop', 'count': ""[variables('ascsvmcount')]""}, 'properties': {'publisher': ""[variables('csextension')[variables('internalostype')].publisher]"", 'type': ""[variables('csextension')[variables('internalostype')].name]"", 'typehandlerversion': ""[variables('csextension')[variables('internalostype')].version]"", 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('csextension')[variables('internalostype')].script]""], 'commandtoexecute': ""[concat(variables('csextension')[variables('internalostype')].scriptcall, ' ', variables('scriptargumentsascsdi')[variables('internalostype')])]""}}}{'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('avsetnamedb')]"", 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'condition': ""[equals(length(parameters('availabilityzones')), 0)]"", 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 10}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmnamedb'), '-', copyindex())]"", 'copy': {'name': 'dbvmloop', 'count': ""[variables('dbvmcount')]""}, 'dependson': ['nicdbloop', ""[resourceid('microsoft.compute/availabilitysets', variables('avsetnamedb'))]""], 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'zones': ""[if(equals(length(parameters('availabilityzones')), 0), json('null'), array(variables('azarray')[mod(copyindex(), variables('azarraylength'))]))]"", 'properties': {'availabilityset': ""[if(equals(variables('azarraylength'), 0), resourceid('microsoft.compute/availabilitysets', variables('avsetnamedb')), json('null'))]"", 'hardwareprofile': {'vmsize': ""[variables('dbvmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmnamedb'), '-', copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('images')[parameters('ostype')].publisher]"", 'offer': ""[variables('images')[parameters('ostype')].offer]"", 'sku': ""[variables('images')[parameters('ostype')].sku]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmnamedb'), '-', copyindex(), '-osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'premium_lrs'}}, 'datadisks': ""[variables('dbdisks')]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('nicnamedb'), '-', copyindex()))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmnamedb'), '-', copyindex(), '/', variables('csextension')[variables('internalostype')].name)]"", 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'dependson': ['dbvmloop'], 'copy': {'name': 'dbextvmloop', 'count': ""[variables('dbvmcount')]""}, 'properties': {'publisher': ""[variables('csextension')[variables('internalostype')].publisher]"", 'type': ""[variables('csextension')[variables('internalostype')].name]"", 'typehandlerversion': ""[variables('csextension')[variables('internalostype')].version]"", 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('csextension')[variables('internalostype')].script]""], 'commandtoexecute': ""[concat(variables('csextension')[variables('internalostype')].scriptcall, ' ', variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].scriptarguments[variables('internalostype')])]""}}}{'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('avsetnamedi')]"", 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'condition': ""[equals(length(parameters('availabilityzones')), 0)]"", 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 10}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('avsetnamexscs')]"", 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 20}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmnamexscs'), '-', copyindex())]"", 'copy': {'name': 'xscsvmloop', 'count': ""[variables('xscsvmcount')]""}, 'dependson': ['nicxscsloop', ""[resourceid('microsoft.compute/availabilitysets/', variables('avsetnamexscs'))]""], 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('avsetnamexscs'))]""}, 'hardwareprofile': {'vmsize': ""[variables('xscsvmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmnamexscs'), '-', copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('images')[parameters('ostype')].publisher]"", 'offer': ""[variables('images')[parameters('ostype')].offer]"", 'sku': ""[variables('images')[parameters('ostype')].sku]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmnamexscs'), '-', copyindex(), '-osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'premium_lrs'}}, 'copy': [{'name': 'datadisks', 'count': ""[parameters('sapsystemcount')]"", 'input': {'lun': ""[copyindex('datadisks')]"", 'createoption': 'empty', 'disksizegb': 128}}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('nicnamexscs'), '-', copyindex()))]""}]}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2021-07-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vmname'), '-nic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('osimagepublisher')]"", 'offer': ""[variables('osimageoffer')]"", 'sku': ""[variables('osimagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('vmname'), '-nic'))]""}]}}}{'apiversion': '2021-07-01', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'), '/installscript')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('scriptfileuri')]""], 'commandtoexecute': ""[variables('installcommand')]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('boshnetworksecuritygroup')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}, {'name': 'bosh-agent', 'properties': {'description': 'allow bosh-agent', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '6868', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 201, 'direction': 'inbound'}}, {'name': 'bosh-director', 'properties': {'description': 'allow bosh-director', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '25555', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 202, 'direction': 'inbound'}}, {'name': 'dns', 'properties': {'description': 'allow dns', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '53', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 203, 'direction': 'inbound'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('devboxnetworksecuritygroup')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('concoursenetworksecuritygroup')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'concourse-https', 'properties': {'description': 'allow https', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}, {'name': 'concourse-ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 201, 'direction': 'inbound'}}, {'name': 'concourse-http', 'properties': {'description': 'allow http', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 202, 'direction': 'inbound'}}, {'name': 'concourse-atc', 'properties': {'description': 'allow concourse atc', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '8080', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 203, 'direction': 'inbound'}}, {'name': 'concourse-tsa', 'properties': {'description': 'allow concourse tsa', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '2222', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 204, 'direction': 'inbound'}}, {'name': 'concourse-garden', 'properties': {'description': 'allow concourse garden', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '7777', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 205, 'direction': 'inbound'}}, {'name': 'concourse-baggageclaim', 'properties': {'description': 'allow concourse baggageclaim', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '7788', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 206, 'direction': 'inbound'}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(parameters('jumpboxvmname'),'-devbox')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[concat(tolower(parameters('jumpboxvmname')), '-', uniquestring(resourcegroup().id))]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(parameters('jumpboxvmname'), '-concourse')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'static'}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('virtualnetworkaddressspace')]""]}, 'subnets': [{'name': ""[variables('subnetnameforbosh')]"", 'properties': {'addressprefix': ""[variables('subnetaddressrangeforbosh')]""}}, {'name': ""[variables('subnetnameforconcourse')]"", 'properties': {'addressprefix': ""[variables('subnetaddressrangeforconcourse')]""}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', concat(parameters('jumpboxvmname'), '-devbox'))]"", ""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/', variables('devboxnetworksecuritygroup'))]""], 'properties': {'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('devboxnetworksecuritygroup'))]""}, 'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[variables('devboxprivateipaddress')]"", 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', concat(parameters('jumpboxvmname'), '-devbox'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnetnameforbosh'))]""}}}]}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-06-01', 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'name': ""[variables('availabilitysetname')]"", 'properties': {'platformupdatedomaincount': 20, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}} END" -Create a Standard Storage Account (bicep)," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-06-01', 'name': ""[parameters('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('storageaccounttype')]""}, 'kind': 'storagev2', 'properties': {}} END" -Creates and optionally secures a Key Vault with logging linked to a storage account.," {'type': 'microsoft.keyvault/vaults', 'apiversion': '2019-09-01', 'name': ""[variables('keyvaultname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.managedidentity/userassignedidentities', 'demoidentity')]""], 'properties': {'enabledfordeployment': false, 'enabledfordiskencryption': false, 'enabledfortemplatedeployment': false, 'tenantid': '[subscription().tenantid]', 'accesspolicies': [{'objectid': ""[reference(resourceid('microsoft.managedidentity/userassignedidentities', 'demoidentity'), '2018-11-30').principalid]"", 'tenantid': ""[reference(resourceid('microsoft.managedidentity/userassignedidentities', 'demoidentity'), '2018-11-30').tenantid]"", 'permissions': {'secrets': ['get', 'list']}}], 'sku': {'name': 'standard', 'family': 'a'}}}{'type': 'microsoft.keyvault/vaults/secrets', 'apiversion': '2019-09-01', 'name': ""[concat(variables('keyvaultname'), '/', variables('keyvaultcasecretname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.keyvault/vaults', variables('keyvaultname'))]"", ""[resourceid('microsoft.resources/deploymentscripts', 'createanddeploycertificates')]""], 'properties': {'value': ""[reference('createanddeploycertificates').outputs.interca]""}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-04-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowsshinbound', 'properties': {'priority': 100, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}}{'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('nsgid')]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('virtualnetworkaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[variables('nsgid')]""}, 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}}]}}{'apiversion': '2020-04-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('publicipid')]"", ""[variables('vnetid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetid')]""}}}]}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2018-09-01', 'name': ""[variables('keyvaultprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2018-09-01', 'name': ""[variables('blobprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2018-09-01', 'name': ""[concat(variables('keyvaultprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('keyvaultprivatednszoneid')]"", ""[variables('vnetid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('vnetid')]""}}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2018-09-01', 'name': ""[concat(variables('blobprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('blobprivatednszoneid')]"", ""[variables('vnetid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('vnetid')]""}}} END" -This template creates an Azure Machine Learning aks compute.," {'type': 'microsoft.machinelearningservices/workspaces/computes', 'apiversion': '2021-01-01', 'name': ""[concat(parameters('workspacename'), '/', parameters('computename'))]"", 'location': ""[parameters('location')]"", 'properties': {'computetype': 'aks', 'properties': {'agentvmsize': ""[parameters('agentvmsize')]"", 'agentcount': ""[parameters('agentcount')]"", 'sslconfiguration': ""[if(equals(parameters('sslstatus'),'disabled'), json('null'), variables('sslconfiguration'))]"", 'aksnetworkingconfiguration': ""[if(and(not(empty(parameters('vnetresourcegroupname'))),not(empty(parameters('vnetname'))),not(empty(parameters('subnetname'))),not(empty(parameters('servicecidr'))),not(empty(parameters('dnsserviceip'))),not(empty(parameters('dockerbridgecidr')))), variables('aksnetworkingconfiguration'), json('null'))]""}}} END" -Creates and optionally secures a Key Vault with logging linked to a storage account.," {'type': 'microsoft.keyvault/vaults', 'apiversion': '2021-04-01-preview', 'name': ""[variables('keyvaultname')]"", 'location': ""[parameters('location')]"", 'properties': {'tenantid': ""[variables('tenantid')]"", 'sku': {'name': 'standard', 'family': 'a'}, 'accesspolicies': [], 'enablesoftdelete': true, 'enablepurgeprotection': true}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'ansibleroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','ansibleaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('ansible_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'ansibleaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('ansible_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-ansiblehostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','ansibleaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./ansible_setup.sh',' ',parameters('storageaccountname'),' ',parameters('filesharename'),' ',parameters('viyarepofolder'),' ',parameters('sasapplicationname'),' ',variables('domain_name'),' ',variables('ansible_vm_name'),' ',variables('microservices_vm_name'),' ',variables('cascontroller_vm_name'),' ',variables('spre_vm_name'),' ',variables('casworker_vm_name'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',parameters('numberofviyacasnodes'),' ',variables('mid_vm_name'),' ',parameters('_artifactslocation'),' ',variables('compute_vm_name'),' ',variables('meta_vm_name'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/ansible_setup.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-ansiblesslcopy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase2-metainstall')]"", ""[resourceid('microsoft.resources/deployments','phase2-midinstall')]"", ""[resourceid('microsoft.resources/deployments','phase2-computeinstall')]"", ""[resourceid('microsoft.resources/deployments','phase4-viyainstallpart2')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;./ansible_ssl.sh 2>&1 | tee /var/log/sas/install/runphase2ansiblesslcopy.log;')]""}, 'filepath': {'value': 'scripts/ansible_ssl.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase3-viyainstallpart1', 'dependson': [""[resourceid('microsoft.resources/deployments', 'phase1-ansiblehostsetup')]"", ""[resourceid('microsoft.resources/deployments', 'phase2-microservicesviyaark')]"", ""[resourceid('microsoft.resources/deployments', 'phase2-spreviyaark')]"", ""[resourceid('microsoft.resources/deployments', 'phase2-cascontrollerviyaark')]"", 'casworkerviyaarkcopy'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viyainstall.sh',' ', '1',' ','2>&1 | tee /var/log/sas/install/runphase3_viyainstallpart1.log')]""}, 'filepath': {'value': 'scripts/viyainstall.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase4-viyainstallpart2', 'dependson': [""[resourceid('microsoft.resources/deployments', 'phase3-viyainstallpart1')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viyainstall.sh',' ', '2',' ','2>&1 | tee /var/log/sas/install/runphase4_viyainstallpart2.log')]""}, 'filepath': {'value': 'scripts/viyainstall.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase5-viyainstallpart3', 'dependson': [""[resourceid('microsoft.resources/deployments', 'phase2-ansiblesslcopy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viyainstall.sh',' ', '3',' ','2>&1 | tee /var/log/sas/install/runphase5_viyainstallpart3.log')]""}, 'filepath': {'value': 'scripts/viyainstall.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase6-viyapostinstall', 'dependson': [""[resourceid('microsoft.resources/deployments', 'phase5-viyainstallpart3')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viyainstall.sh',' ', '4',' ','2>&1 | tee /var/log/sas/install/runphase6_viyapostinstall.log')]""}, 'filepath': {'value': 'scripts/viyainstall.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'rdpcontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('rdp_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('windows_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('rdp_vm_name')]""}, 'commandtoexecute': {'value': 'powershell.exe expand-archive -literalpath client_install.zip -destination c:\\windowsazure\\client_install'}, 'filepath': {'value': 'client_install.zip'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-sasclientinstall', 'dependson': [""[resourceid('microsoft.resources/deployments', 'rdpcontentfiledownload')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('windows_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('rdp_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('powershell -executionpolicy unrestricted -file sas_client_install.ps1 ','-stg_acc_name ',parameters('storageaccountname'),' -stg_key ',parameters('storageaccountkey'),' -file_share_name ',parameters('filesharename'),' -depot_folder_name ',parameters('sasdepotfolder'),' -clients_sid ',parameters('sasserverlicensefile'),' -app_name ',parameters('sasapplicationname'),' -mid_name ',variables('mid_vm_name'),' -domain_name ',variables('domain_name'),' -artifact_loc ',parameters('_artifactslocation'),' -storageuri ',variables('storage_account_uri'))]""}, 'filepath': {'value': 'sas_client_install.ps1'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'metaroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('meta_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('meta_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'metaaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('meta_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]"", ""[resourceid('microsoft.resources/deployments','ansibleaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-metahostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','metaaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('meta_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./sasapp_prereq.sh',' ',parameters('sasapplicationname'),' ',parameters('sasdepotfolder'),' ',parameters('filesharename'),' ',parameters('storageaccountname'),' ',variables('domain_name'),' ',parameters('location'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',variables('mid_vm_name'),' ',variables('meta_vm_name'),' ',variables('compute_vm_name'),' ',parameters('sasserverlicensefile'),' ','meta',' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/sasapp_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'metacontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-metahostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('meta_vm_name')]""}, 'commandtoexecute': {'value': 'cp response-properties.tar.gz /tmp'}, 'filepath': {'value': 'properties/response-properties.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-metainstall', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','metacontentfiledownload')]"", ""[resourceid('microsoft.resources/deployments','phase1-ansiblehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('meta_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./meta_install.sh 2>&1 | tee /var/log/sas/install/meta_install.log')]""}, 'filepath': {'value': 'scripts/meta_install.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase3-metaconfig', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase2-metainstall')]"", ""[resourceid('microsoft.resources/deployments','phase2-ansiblesslcopy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('meta_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./meta_config.sh 2>&1 | tee /var/log/sas/install/meta_config.log')]""}, 'filepath': {'value': 'scripts/meta_config.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'computeroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('compute_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('compute_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('compute_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'computeaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('compute_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','metaaccesspolicy')]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('compute_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-computehostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('compute_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','computeaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('compute_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./sasapp_prereq.sh',' ',parameters('sasapplicationname'),' ',parameters('sasdepotfolder'),' ',parameters('filesharename'),' ',parameters('storageaccountname'),' ',variables('domain_name'),' ',parameters('location'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',variables('mid_vm_name'),' ',variables('meta_vm_name'),' ',variables('compute_vm_name'),' ',parameters('sasserverlicensefile'),' ','compute',' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/sasapp_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'computecontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('compute_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-computehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('compute_vm_name')]""}, 'commandtoexecute': {'value': 'cp response-properties.tar.gz /tmp'}, 'filepath': {'value': 'properties/response-properties.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-computeinstall', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('compute_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','computecontentfiledownload')]"", ""[resourceid('microsoft.resources/deployments','phase1-ansiblehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('compute_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./compute_install.sh 2>&1 | tee /var/log/sas/install/compute_install.log')]""}, 'filepath': {'value': 'scripts/compute_install.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase3-computeconfig', 'dependson': [""[resourceid('microsoft.resources/deployments','phase2-computeinstall')]"", ""[resourceid('microsoft.resources/deployments','phase3-metaconfig')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('compute_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./compute_config.sh 2>&1 | tee /var/log/sas/install/compute_config.log')]""}, 'filepath': {'value': 'scripts/compute_config.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'midroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('mid_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('mid_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'midaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','computeaccesspolicy')]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-midhostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','midaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('mid_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./sasapp_prereq.sh',' ',parameters('sasapplicationname'),' ',parameters('sasdepotfolder'),' ',parameters('filesharename'),' ',parameters('storageaccountname'),' ',variables('domain_name'),' ',parameters('location'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',variables('mid_vm_name'),' ',variables('meta_vm_name'),' ',variables('compute_vm_name'),' ',parameters('sasserverlicensefile'),' ','mid',' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/sasapp_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'midcontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-midhostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('mid_vm_name')]""}, 'commandtoexecute': {'value': 'cp response-properties.tar.gz /tmp'}, 'filepath': {'value': 'properties/response-properties.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-midinstall', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','midcontentfiledownload')]"", ""[resourceid('microsoft.resources/deployments','phase1-ansiblehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('mid_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./mid_install.sh 2>&1 | tee /var/log/sas/install/mid-install.log')]""}, 'filepath': {'value': 'scripts/mid_install.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase3-midconfig', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase2-midinstall')]"", ""[resourceid('microsoft.resources/deployments','phase3-computeconfig')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('mid_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./mid_config.sh 2>&1 | tee /var/log/sas/install/mid_config.log')]""}, 'filepath': {'value': 'scripts/mid_config.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'microservicesroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('microservices_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('microservices_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('microservices_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'microservicesaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('microservices_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]"", ""[resourceid('microsoft.resources/deployments','midaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('microservices_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-microserviceshostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('microservices_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','microservicesaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('microservices_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./viya_prereq.sh',' ',parameters('storageaccountname'),' ',parameters('filesharename'),' ',parameters('viyarepofolder'),' ',parameters('sasapplicationname'),' ',variables('domain_name'),' ',variables('ansible_vm_name'),' ',variables('microservices_vm_name'),' ',variables('cascontroller_vm_name'),' ',variables('spre_vm_name'),' ',variables('casworker_vm_name'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',parameters('numberofviyacasnodes'),' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/viya_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'microservicescontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('microservices_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-microserviceshostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('microservices_vm_name')]""}, 'commandtoexecute': {'value': 'cp viya-ark.tar.gz /tmp'}, 'filepath': {'value': 'properties/viya-ark.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-microservicesviyaark', 'dependson': [""[resourceid('microsoft.resources/deployments', 'microservicescontentfiledownload')]"", ""[resourceid('microsoft.resources/deployments', 'phase1-ansiblehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('microservices_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viya_ark.sh 2>&1 | tee /var/log/sas/install/runphase2_viyaark.log')]""}, 'filepath': {'value': 'scripts/viya_ark.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'spreroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('spre_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('spre_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('spre_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'spreaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('spre_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]"", ""[resourceid('microsoft.resources/deployments','cascontrolleraccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('spre_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-sprehostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('spre_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','spreaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('spre_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./viya_prereq.sh',' ',parameters('storageaccountname'),' ',parameters('filesharename'),' ',parameters('filesharename'),' ',parameters('sasapplicationname'),' ',variables('domain_name'),' ',variables('ansible_vm_name'),' ',variables('microservices_vm_name'),' ',variables('cascontroller_vm_name'),' ',variables('spre_vm_name'),' ',variables('casworker_vm_name'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',parameters('numberofviyacasnodes'),' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/viya_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'sprecontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('spre_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-sprehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('spre_vm_name')]""}, 'commandtoexecute': {'value': 'cp viya-ark.tar.gz /tmp'}, 'filepath': {'value': 'properties/viya-ark.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2019-06-01', 'name': ""[parameters('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage', 'properties': {}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[parameters('dnsnameforpublicip')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'publicipaddress'}, 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnsnameforpublicip')]""}}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-04-01', 'name': ""[variables('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage'} END" -This template creates an Azure Notification Hub. Template originally authored by John Downs.," {'type': 'microsoft.notificationhubs/namespaces', 'apiversion': '2017-04-01', 'name': ""[parameters('namespacename')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'free'}, 'kind': 'notificationhub', 'resources': [{'type': 'microsoft.notificationhubs/namespaces/notificationhubs', 'apiversion': '2017-04-01', 'name': ""[concat(parameters('namespacename'), '/', variables('hubname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[parameters('namespacename')]""]}]} END" -This template creates a Service Bus Namespace and Topic.," {'type': 'microsoft.servicebus/namespaces', 'sku': {'name': 'standard', 'tier': 'standard'}, 'name': ""[parameters('servicebusnamespace')]"", 'apiversion': '2017-04-01', 'location': ""[parameters('location')]"", 'properties': {'metricid': ""[concat(subscription().subscriptionid, ':router', parameters('servicebusnamespace'))]"", 'createdat': '2018-04-07t12:06:43.41z', 'updatedat': '2018-04-07t12:07:09.597z', 'servicebusendpoint': ""[concat('https://', parameters('servicebusnamespace'),'.servicebus.windows.net:443/')]"", 'status': 'active'}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': 'safekitcluster', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('cltemplate')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'os': {'value': ""[parameters('os')]""}, 'clusternodes': {'value': ""[variables('clusternodes')]""}, 'vmsize': {'value': ""[parameters('vmsize')]""}, 'adminuser': {'value': ""[parameters('adminuser')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'moduleurl': {'value': ""[variables('mirrorurl')[variables('ostype')]]""}, 'modulename': {'value': ""[variables('modulename')]""}, 'vipdnslabel': {'value': ""[parameters('vipdnslabel')]""}, 'vmdnsprefix': {'value': ""[parameters('vmdnsprefix')]""}, 'loadbalancer': {'value': 'external'}, 'location': {'value': ""[parameters('location')]""}, 'safekitfileuri': {'value': ""[if(equals(parameters('safekitfileuri'),'default'),variables('safekitpkgurl')[variables('ostype')],parameters('safekitfileuri'))]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': 'safekitmoduleconfig', 'dependson': ['safekitcluster'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('skcfgmoduletemplate')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vmname': {'value': ""[variables('vmname')]""}, 'ostype': {'value': ""[variables('ostype')]""}, 'modulename': {'value': ""[variables('modulename')]""}, 'location': {'value': ""[parameters('location')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2020-06-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[parameters('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'),'/newuserscript')]"", 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('install_apache.sh', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': 'sh install_apache.sh'}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'name': 'jumpbox', 'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces', variables('jumpboxnicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'canonical', 'offer': 'ubuntuserver', 'sku': '18.04-lts', 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}}, 'osprofile': {'computername': 'jumpbox', 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('jumpboxnicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts', variables('storageaccountname'))).primaryendpoints.blob]""}}}} END" -Create new Azure NetApp Files resource with NFSV3 or NFSv4.1 volume," {'type': 'microsoft.netapp/netappaccounts', 'apiversion': '2020-06-01', 'name': ""[parameters('netappaccountname')]"", 'location': ""[parameters('location')]"", 'properties': {}}{'type': 'microsoft.netapp/netappaccounts/capacitypools', 'apiversion': '2020-06-01', 'name': ""[variables('capacitypoolname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.netapp/netappaccounts', parameters('netappaccountname'))]""], 'properties': {'servicelevel': ""[parameters('servicelevel')]"", 'size': ""[parameters('poolsizebytes')]""}}{'type': 'microsoft.netapp/netappaccounts/capacitypools/volumes', 'apiversion': '2020-06-01', 'name': ""[variables('volumename')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.netapp/netappaccounts/capacitypools', parameters('netappaccountname'), parameters('netapppoolname'))]"", ""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""], 'properties': {'servicelevel': ""[parameters('servicelevel')]"", 'creationtoken': ""[parameters('netappvolumename')]"", 'usagethreshold': ""[parameters('volsizebytes')]"", 'exportpolicy': {'rules': [{'ruleindex': 1, 'unixreadonly': ""[parameters('unixreadonly')]"", 'unixreadwrite': ""[parameters('unixreadwrite')]"", 'cifs': false, 'nfsv3': ""[if(equals( parameters('protocoltypes'), 'nfsv3'),bool('true'),bool('false'))]"", 'nfsv41': ""[if(equals(parameters('protocoltypes'), 'nfsv4.1'),bool('true'),bool('false'))]"", 'allowedclients': ""[parameters('allowedclients')]""}]}, 'protocoltypes': [""[parameters('protocoltypes')]""], 'subnetid': ""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('virtualnetworkname'), parameters('subnetname'))]"", 'snapshotdirectoryvisible': ""[parameters('snapshotdirectoryvisible')]""}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmname'))]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'properties': {'hardwareprofile': {'vmsize': ""[variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].vmsize]""}, 'osprofile': {'computername': ""[parameters('computername')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('images')[parameters('ostype')].publisher]"", 'offer': ""[variables('images')[parameters('ostype')].offer]"", 'sku': ""[variables('images')[parameters('ostype')].sku]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'), '-osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'disksizegb': ""[variables('images')[parameters('ostype')].osdisksize]"", 'manageddisk': {'storageaccounttype': 'premium_lrs'}}, 'datadisks': ""[if(parameters('deployemptytarget'), json('[]'), variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].disks)]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('nicname'))]""}]}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2020-07-01', 'name': 'setactivedeployment', 'dependson': [""[resourceid('microsoft.appplatform/spring/apps/deployments', parameters('servicename'), parameters('app1'), 'default')]"", ""[resourceid('microsoft.appplatform/spring/apps/deployments', parameters('servicename'), parameters('app2'), 'default')]"", ""[resourceid('microsoft.appplatform/spring/apps/deployments', parameters('servicename'), parameters('app3'), 'default')]""], 'properties': {'mode': 'incremental', 'parameters': {}, 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'parameters': {}, 'variables': {}, 'resources': [{'type': 'microsoft.appplatform/spring/apps', 'apiversion': '2020-07-01', 'name': ""[concat(parameters('servicename'), '/', parameters('app1'))]"", 'properties': {'public': true, 'activedeploymentname': 'default'}}, {'type': 'microsoft.appplatform/spring/apps', 'apiversion': '2020-07-01', 'name': ""[concat(parameters('servicename'), '/', parameters('app2'))]"", 'properties': {'public': false, 'activedeploymentname': 'default'}}, {'type': 'microsoft.appplatform/spring/apps', 'apiversion': '2020-07-01', 'name': ""[concat(parameters('servicename'), '/', parameters('app3'))]"", 'properties': {'public': false, 'activedeploymentname': 'default'}}]}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'master-nodes', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': [""[resourceid('microsoft.resources/deployments', 'shared')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat(variables('nestedtemplatesfoldername'), '/', variables('mastertemplatefilename'), parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'storagesettings': {'value': ""[variables('datanodestoragesettings')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'authset': {'value': ""[variables('authset')]""}, 'masternodesipprefix': {'value': ""[variables('masternodesipprefix')]""}, 'vmsize': {'value': ""[parameters('vmsizemasternodes')]""}, 'subnet': {'value': ""[variables('networksettings').subnet.master]""}, 'ossettings': {'value': ""[variables('ossettings')]""}, 'namespace': {'value': ""[concat(parameters('esclustername'), '-master')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'name': 'marvel-nodes', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': [""[resourceid('microsoft.resources/deployments', 'shared')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat(variables('nestedtemplatesfoldername'), '/', variables('marveltemplatefilename'), parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}}}{'name': 'shared', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat(variables('nestedtemplatesfoldername'), '/', variables('sharedtemplatefilename'), parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'networksettings': {'value': ""[variables('networksettings')]""}, 'storagesettings': {'value': ""[variables('datanodestoragesettings')]""}, 'loadbalancertype': {'value': ""[parameters('loadbalancertype')]""}, 'ilbipaddress': {'value': '10.0.2.100'}, 'location': {'value': ""[parameters('location')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('boshnetworksecuritygroup')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}, {'name': 'bosh-agent', 'properties': {'description': 'allow bosh-agent', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '6868', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 201, 'direction': 'inbound'}}, {'name': 'bosh-director', 'properties': {'description': 'allow bosh-director', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '25555', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 202, 'direction': 'inbound'}}, {'name': 'dns', 'properties': {'description': 'allow dns', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '53', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 203, 'direction': 'inbound'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('devboxnetworksecuritygroup')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('concoursenetworksecuritygroup')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'concourse-https', 'properties': {'description': 'allow https', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}, {'name': 'concourse-ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 201, 'direction': 'inbound'}}, {'name': 'concourse-http', 'properties': {'description': 'allow http', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 202, 'direction': 'inbound'}}, {'name': 'concourse-atc', 'properties': {'description': 'allow concourse atc', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '8080', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 203, 'direction': 'inbound'}}, {'name': 'concourse-tsa', 'properties': {'description': 'allow concourse tsa', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '2222', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 204, 'direction': 'inbound'}}, {'name': 'concourse-garden', 'properties': {'description': 'allow concourse garden', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '7777', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 205, 'direction': 'inbound'}}, {'name': 'concourse-baggageclaim', 'properties': {'description': 'allow concourse baggageclaim', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '7788', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 206, 'direction': 'inbound'}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(parameters('jumpboxvmname'),'-devbox')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[concat(tolower(parameters('jumpboxvmname')), '-', uniquestring(resourcegroup().id))]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(parameters('jumpboxvmname'), '-concourse')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'static'}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'name': 'logicapppausedeployment', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('nestedtemplates/pausetemplate.json', parameters('_artifactslocationsastoken')))]""}, 'parameters': {'logicappname': {'value': ""[variables('logicapps')[0]]""}, 'frequency': {'value': ""[parameters('frequency')]""}, 'companytla': {'value': ""[parameters('companytla')]""}, 'deploymenttype': {'value': ""[parameters('deploymenttype')]""}, 'time_zone': {'value': ""[parameters('time_zone')]""}, 'pausetime': {'value': ""[parameters('pausetime')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'name': 'logicappresumedeployment', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('nestedtemplates/resumetemplate.json', parameters('_artifactslocationsastoken')))]""}, 'parameters': {'logicappname': {'value': ""[variables('logicapps')[1]]""}, 'frequency': {'value': ""[parameters('frequency')]""}, 'companytla': {'value': ""[parameters('companytla')]""}, 'deploymenttype': {'value': ""[parameters('deploymenttype')]""}, 'time_zone': {'value': ""[parameters('time_zone')]""}, 'resumetime': {'value': ""[parameters('resumetime')]""}, 'location': {'value': ""[parameters('location')]""}}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2021-01-01', 'name': ""[variables('nesteddeploymentnamensg')]"", 'type': 'microsoft.resources/deployments', 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('shared/newnsg.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'nsgname': {'value': ""[variables('nsgnamecl')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'apiversion': '2021-01-01', 'name': ""[variables('nesteddeploymentnamevnet')]"", 'type': 'microsoft.resources/deployments', 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'dependson': [""[resourceid('microsoft.resources/deployments/', variables('nesteddeploymentnamensg'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('shared/newvnetnsg.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'addressprefix': {'value': ""[variables('addressprefix')]""}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'subnetprefix': {'value': ""[variables('subnetprefix')]""}, 'nsgname': {'value': ""[variables('nsgnamecl')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'apiversion': '2021-01-01', 'name': ""[concat(variables('nesteddeploymentnamepip'), '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'piploop', 'count': ""[variables('clvmcount')]""}, 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('shared/newpip.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'publicipname': {'value': ""[concat(variables('publicipnamecl'), '-', copyindex())]""}, 'publicipaddresstype': {'value': ""[variables('publicipaddresstype')]""}, 'location': {'value': ""[parameters('location')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'name': ""[variables('networksecuritygroupname')]"", 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'location': ""[parameters('existingvnetlocation')]"", 'properties': {'securityrules': [{'name': 'default-allow-rdp', 'properties': {'priority': 1000, 'sourceaddressprefix': '*', 'protocol': 'tcp', 'destinationportrange': '3389', 'access': 'allow', 'direction': 'inbound', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}} END" -"This template creates a disk, backup vault, backup policy, grants necessary permission and enables protection"," {'type': 'microsoft.dataprotection/backupvaults', 'apiversion': '2021-01-01', 'name': ""[parameters('vaultname')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'properties': {'storagesettings': [{'datastoretype': 'vaultstore', 'type': ""[parameters('vaultstorageredundancy')]""}]}}{'type': 'microsoft.dataprotection/backupvaults/backuppolicies', 'apiversion': '2021-01-01', 'name': ""[format('{0}/{1}', parameters('vaultname'), parameters('backuppolicyname'))]"", 'properties': {'policyrules': [{'backupparameters': {'backuptype': 'incremental', 'objecttype': 'azurebackupparams'}, 'trigger': {'schedule': {'repeatingtimeintervals': [""[variables('repeatingtimeinterval')]""], 'timezone': 'utc'}, 'taggingcriteria': [{'taginfo': {'tagname': 'default', 'id': 'default_'}, 'taggingpriority': 99, 'isdefault': true}], 'objecttype': 'schedulebasedtriggercontext'}, 'datastore': {'datastoretype': 'operationalstore', 'objecttype': 'datastoreinfobase'}, 'name': 'backuphourly', 'objecttype': 'azurebackuprule'}, {'lifecycles': [{'sourcedatastore': {'datastoretype': 'operationalstore', 'objecttype': 'datastoreinfobase'}, 'deleteafter': {'objecttype': 'absolutedeleteoption', 'duration': ""[variables('retentionduration')]""}}], 'isdefault': true, 'name': 'default', 'objecttype': 'azureretentionrule', 'ruletype': 'retention'}], 'datasourcetypes': [""[variables('datasourcetype')]""], 'objecttype': 'backuppolicy'}, 'dependson': [""[resourceid('microsoft.dataprotection/backupvaults', parameters('vaultname'))]""]}{'type': 'microsoft.dataprotection/backupvaults/backupinstances', 'apiversion': '2021-01-01', 'name': ""[format('{0}/{1}', parameters('vaultname'), parameters('diskname'))]"", 'properties': {'objecttype': 'backupinstance', 'datasourceinfo': {'objecttype': 'datasource', 'resourceid': ""[resourceid('microsoft.compute/disks', parameters('diskname'))]"", 'resourcename': ""[parameters('diskname')]"", 'resourcetype': ""[variables('resourcetype')]"", 'resourceuri': ""[resourceid('microsoft.compute/disks', parameters('diskname'))]"", 'resourcelocation': ""[parameters('location')]"", 'datasourcetype': ""[variables('datasourcetype')]""}, 'policyinfo': {'policyid': ""[resourceid('microsoft.dataprotection/backupvaults/backuppolicies', parameters('vaultname'), parameters('backuppolicyname'))]"", 'name': ""[parameters('backuppolicyname')]"", 'policyparameters': {'datastoreparameterslist': [{'objecttype': 'azureoperationalstoreparameters', 'datastoretype': 'operationalstore', 'resourcegroupid': '[resourcegroup().id]'}]}}}, 'dependson': [""[resourceid('microsoft.dataprotection/backupvaults/backuppolicies', parameters('vaultname'), parameters('backuppolicyname'))]"", ""[resourceid('microsoft.dataprotection/backupvaults', parameters('vaultname'))]"", ""[resourceid('microsoft.compute/disks', parameters('diskname'))]"", ""[resourceid('microsoft.authorization/roleassignments', variables('rolenameguidfordisk'))]"", ""[resourceid('microsoft.authorization/roleassignments', variables('rolenameguidforsnapshotrg'))]""]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipaddresses', 'apiversion': '2021-05-01', 'name': 'publicip', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'publicipaddress'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('vm-dns')]""}}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-04-01', 'name': 'nsg', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'rdp', 'properties': {'description': 'description', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 100, 'direction': 'inbound'}}, {'name': 'https', 'properties': {'description': 'description', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 110, 'direction': 'inbound'}}, {'name': 'ssh', 'properties': {'description': 'description', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 120, 'direction': 'inbound'}}, {'name': 'applications', 'properties': {'description': 'description', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '8080-8089', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 130, 'direction': 'inbound'}}]}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-12-01', 'name': ""[concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))))]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'vmcopy', 'count': ""[add(add(length(variables('vminfo')),length(variables('siteinfo'))),length(variables('clientrole')))]""}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/',concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))),'-ni'))]""], 'properties': {'osprofile': {'computername': ""[concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))))]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'windowsconfiguration': {'provisionvmagent': true, 'timezone': ""[variables('timezone')]""}}, 'hardwareprofile': {'vmsize': ""[if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].size,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].size,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].size))]""}, 'storageprofile': {'imagereference': ""[if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].imagereference,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].imagereference,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].imagereference))]"", 'osdisk': {'ostype': 'windows', 'name': ""[concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))),'-osdisk')]"", 'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': ""[if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].disktype,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].disktype,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].disktype))]""}, 'disksizegb': 150}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))), '-ni'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': false}}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'apiversion': '2020-12-01', 'name': ""[concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))), '/workflow')]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'dscvmextensioncopy', 'count': ""[add(add(length(variables('vminfo')),length(variables('siteinfo'))),length(variables('clientrole')))]""}, 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', concat(tolower(parameters('prefix')),if(less(copyindex(),length(variables('vminfo'))),tolower(variables('vminfo')[variables('vmrole')[copyindex()]].name),if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),tolower(variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name),tolower(variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name)))))]""], 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.21', 'autoupgrademinorversion': true, 'settings': {'modulesurl': ""[uri(parameters('_artifactslocation'),concat(variables('dscscript'),parameters('_artifactslocationsastoken')))]"", 'configurationfunction': ""[if(less(copyindex(),length(variables('vminfo'))),concat(variables('vmrole')[copyindex()],'configuration.ps1\\configuration'),if(less(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),concat(variables('siterole')[sub(copyindex(),length(variables('vminfo')))],'configuration.ps1\\configuration'),'clientconfiguration.ps1\\configuration'))]"", 'properties': {'domainname': ""[variables('domainname')]"", 'dcname': ""[concat(parameters('prefix'),variables('vminfo')['dc'].name)]"", 'dpmpname': ""[concat(parameters('prefix'),variables('vminfo')['dpmp'].name)]"", 'psname': ""[concat(parameters('prefix'),variables('siteinfo')['ps'].name)]"", 'clientname': ""[if(equals(parameters('clientscount'),0),'empty',variables('clientname'))]"", 'dnsipaddress': ""[concat(variables('networksettings').virtualmachinesipaddress,add(int('0'),int('4')))]"", 'admincreds': {'username': ""[parameters('adminusername')]"", 'password': 'privatesettingsref:adminpassword'}}}, 'protectedsettings': {'items': {'adminpassword': ""[parameters('adminpassword')]""}}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'customdata': ""[base64(variables('publicipaddressname'))]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2015-06-15', 'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('ossavailabilitysetsettings').name]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': ""[variables('ossavailabilitysetsettings').faultdomaincount]"", 'platformupdatedomaincount': ""[variables('ossavailabilitysetsettings').updatedomaincount]""}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(parameters('vmnameprefix'),'mgs')]"", 'plan': {'publisher': 'intel', 'product': 'lustre-cloud-edition-gs-image', 'name': 'eval-lustre-2-7'}, 'location': ""[parameters('location')]"", 'dependson': ['storageaccountscopy', ""[concat('microsoft.network/networkinterfaces/', parameters('vmnameprefix'), 'mgs')]""], 'tags': {'lustretype': 'mgt'}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('mgsvmsize')]""}, 'osprofile': {'computername': ""[concat(parameters('vmnameprefix'),'mgs')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'linuxconfiguration': ""[variables('linuxconfiguration')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagereferencelustre').publisher]"", 'offer': ""[variables('imagereferencelustre').offer]"", 'sku': ""[variables('imagereferencelustre').sku]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('vmnameprefix'),'mgs','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}, 'datadisks': [{'name': ""[concat(parameters('vmnameprefix'),'mgs','_datadisk1')]"", 'disksizegb': 5, 'lun': 0, 'caching': 'none', 'createoption': 'empty'}, {'name': ""[concat(parameters('vmnameprefix'),'mgs','_datadisk2')]"", 'disksizegb': 16, 'lun': 1, 'caching': 'none', 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(parameters('vmnameprefix'),'mgs'))]""}]}}}{'apiversion': '2015-06-15', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmnameprefix'), 'mgs', '/init')]"", 'location': ""[parameters('location')]"", 'dependson': [""[concat('microsoft.compute/virtualmachines/', concat(parameters('vmnameprefix'), 'mgs'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('scripturllustre')]""], 'commandtoexecute': ""[concat('sh lustre.sh', ' -n mgs', ' -i 0', ' -d ', variables('mgsdiskcount'), ' -m ', reference(resourceid('microsoft.network/networkinterfaces', concat(parameters('vmnameprefix'), 'mgs'))).ipconfigurations[0].properties.privateipaddress, ' -l ', reference(resourceid('microsoft.network/networkinterfaces', concat(parameters('vmnameprefix'), 'mgs'))).ipconfigurations[0].properties.privateipaddress, ' -f ', parameters('filesystemname'))]""}}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(parameters('vmnameprefix'),'mds')]"", 'plan': {'publisher': 'intel', 'product': 'lustre-cloud-edition-gs-image', 'name': 'eval-lustre-2-7'}, 'location': ""[parameters('location')]"", 'dependson': ['storageaccountscopy', ""[concat('microsoft.network/networkinterfaces/', parameters('vmnameprefix'), 'mds')]""], 'tags': {'lustretype': 'mdt'}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('mdsvmsize')]""}, 'osprofile': {'computername': ""[concat(parameters('vmnameprefix'),'mds')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'linuxconfiguration': ""[variables('linuxconfiguration')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagereferencelustre').publisher]"", 'offer': ""[variables('imagereferencelustre').offer]"", 'sku': ""[variables('imagereferencelustre').sku]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('vmnameprefix'),'mds','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}, 'datadisks': [{'name': ""[concat(parameters('vmnameprefix'),'mds','_datadisk1')]"", 'disksizegb': 128, 'lun': 0, 'caching': 'none', 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(parameters('vmnameprefix'),'mds'))]""}]}}}{'apiversion': '2015-06-15', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmnameprefix'), 'mds', '/init')]"", 'location': ""[parameters('location')]"", 'dependson': [""[concat('microsoft.compute/virtualmachines/', concat(parameters('vmnameprefix'), 'mds'))]"", ""[concat('microsoft.compute/virtualmachines/', parameters('vmnameprefix'), 'mgs', '/extensions/init')]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('scripturllustre')]""], 'commandtoexecute': ""[concat('sh lustre.sh', ' -n mds', ' -i 0', ' -d ', variables('mdsdiskcount'), ' -m ', reference(resourceid('microsoft.network/networkinterfaces', concat(parameters('vmnameprefix'), 'mgs'))).ipconfigurations[0].properties.privateipaddress, ' -l ', reference(resourceid('microsoft.network/networkinterfaces', concat(parameters('vmnameprefix'), 'mds'))).ipconfigurations[0].properties.privateipaddress, ' -f ', parameters('filesystemname'))]""}}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(parameters('vmnameprefix'), 'oss', copyindex())]"", 'plan': {'publisher': 'intel', 'product': 'lustre-cloud-edition-gs-image', 'name': 'eval-lustre-2-7'}, 'location': ""[parameters('location')]"", 'dependson': ['storageaccountscopy', ""[concat('microsoft.network/networkinterfaces/', parameters('vmnameprefix'), 'oss', copyindex())]""], 'copy': {'name': 'ossvmcopy', 'count': ""[parameters('osscount')]""}, 'tags': {'lustretype': 'ost'}, 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('ossavailabilitysetsettings').name)]""}, 'hardwareprofile': {'vmsize': ""[parameters('ossvmsize')]""}, 'osprofile': {'computername': ""[concat(parameters('vmnameprefix'), 'oss', copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'linuxconfiguration': ""[variables('linuxconfiguration')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagereferencelustre').publisher]"", 'offer': ""[variables('imagereferencelustre').offer]"", 'sku': ""[variables('imagereferencelustre').sku]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('vmnameprefix'), 'oss', copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}, 'datadisks': [{'name': ""[concat(parameters('vmnameprefix'), 'oss', copyindex(),'_datadisk1')]"", 'disksizegb': ""[parameters('ossdisksize')]"", 'lun': 0, 'caching': 'none', 'createoption': 'empty'}, {'name': ""[concat(parameters('vmnameprefix'), 'oss', copyindex(),'_datadisk2')]"", 'disksizegb': ""[parameters('ossdisksize')]"", 'lun': 1, 'caching': 'none', 'createoption': 'empty'}, {'name': ""[concat(parameters('vmnameprefix'), 'oss', copyindex(),'_datadisk3')]"", 'disksizegb': ""[parameters('ossdisksize')]"", 'lun': 2, 'caching': 'none', 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(parameters('vmnameprefix'), 'oss', copyindex()))]""}]}}}{'apiversion': '2015-06-15', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmnameprefix'), 'oss', copyindex(), '/init')]"", 'location': ""[parameters('location')]"", 'dependson': [""[concat('microsoft.compute/virtualmachines/', concat(parameters('vmnameprefix'), 'oss', copyindex()))]"", ""[concat('microsoft.compute/virtualmachines/', parameters('vmnameprefix'), 'mds', '/extensions/init')]""], 'copy': {'name': 'ossextensionscopy', 'count': ""[parameters('osscount')]""}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('scripturllustre')]""], 'commandtoexecute': ""[concat('sh lustre.sh', ' -n oss', ' -i ', copyindex(), ' -d ', variables('ossdiskcount'), ' -m ', reference(resourceid('microsoft.network/networkinterfaces', concat(parameters('vmnameprefix'), 'mgs'))).ipconfigurations[0].properties.privateipaddress, ' -l ', reference(resourceid('microsoft.network/networkinterfaces', concat(parameters('vmnameprefix'), 'oss', copyindex()))).ipconfigurations[0].properties.privateipaddress, ' -f ', parameters('filesystemname'))]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('clientavailabilitysetsettings').name]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': ""[variables('clientavailabilitysetsettings').faultdomaincount]"", 'platformupdatedomaincount': ""[variables('clientavailabilitysetsettings').updatedomaincount]""}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(parameters('clientvmnameprefix'), 'client', copyindex())]"", 'location': ""[parameters('location')]"", 'dependson': [""[concat('microsoft.storage/storageaccounts/', variables('clientstorageaccountname'))]"", ""[concat('microsoft.compute/availabilitysets/', variables('clientavailabilitysetsettings').name)]"", ""[concat('microsoft.network/networkinterfaces/', parameters('clientvmnameprefix'), 'client', copyindex())]""], 'copy': {'name': 'clientvmcopy', 'count': ""[parameters('clientcount')]""}, 'tags': {'lustretype': 'client'}, 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('clientavailabilitysetsettings').name)]""}, 'hardwareprofile': {'vmsize': ""[parameters('clientvmsize')]""}, 'osprofile': {'computername': ""[concat(parameters('clientvmnameprefix'), 'client', copyindex())]"", 'adminusername': ""[parameters('clientadminusername')]"", 'adminpassword': ""[parameters('clientadminpassword')]"", 'linuxconfiguration': ""[variables('linuxconfiguration')]""}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': ""[concat(parameters('clientvmnameprefix'), 'client', copyindex(),'osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(parameters('clientvmnameprefix'), 'client', copyindex()))]""}]}}} END" -This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.," {'condition': ""[equals(parameters('keyvaultoption'), 'new')]"", 'type': 'microsoft.keyvault/vaults', 'apiversion': '2019-09-01', 'name': ""[parameters('keyvaultname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('vnetname'), parameters('subnetname'))]""], 'tags': ""[parameters('tagvalues')]"", 'properties': {'tenantid': ""[variables('tenantid')]"", 'sku': {'name': 'standard', 'family': 'a'}, 'accesspolicies': [], 'networkacls': ""[if(equals(parameters('keyvaultbehindvnet'), 'true'), variables('networkrulesetbehindvnet'), json('null'))]""}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}} END" -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'}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'), '/django')]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('install_django.sh', parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[concat('sh install_django.sh ', parameters('vmdnsname'), ' ', parameters('servername'), ' ', parameters('administratorlogin'), ' ', parameters('administratorloginpassword'), ' ', parameters('databasename'))]""}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetname')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 2}}{'apiversion': '2019-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmname'), copyindex())]"", 'copy': {'name': 'virtualmachineloop', 'count': ""[variables('numberofinstances')]""}, 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts', variables('newstorageaccountname'))]"", ""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('windowsvmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmname'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[parameters('windowsvmsku')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('vmname'),copyindex()))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('newstorageaccountname')).primaryendpoints.blob]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-11-01', 'name': ""[parameters('vnetname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddressprefix')]""]}}}{'type': 'microsoft.network/virtualnetworks/subnets', 'apiversion': '2020-11-01', 'name': ""[format('{0}/{1}', parameters('vnetname'), parameters('subnetname'))]"", 'properties': {'addressprefix': ""[parameters('subnetaddressprefix')]"", 'delegations': [{'name': 'delegationservice', 'properties': {'servicename': 'microsoft.containerinstance/containergroups'}}]}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks', parameters('vnetname'))]""]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2019-06-01', 'name': ""[variables('vnet_name')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups',variables('pub_sub_nw_sg'))]"", ""[resourceid('microsoft.network/networksecuritygroups',variables('pvt_sub_nw_sg'))]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddresscidr')]""]}, 'subnets': [{'name': ""[variables('vnet_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('sasprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_viya_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('viyaprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_pub_subnt')]"", 'properties': {'addressprefix': ""[parameters('ansiblebastionpublicsubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pub_sub_nw_sg'))]""}}}], 'enableddosprotection': false, 'enablevmprotection': false}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('pub_sub_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow-ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': ""[parameters('adminingresslocation')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}], 'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('pvt_sub_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('ansible_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow-ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': ""[parameters('adminingresslocation')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}], 'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('meta_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('mid_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('compute_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('rdp_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('microservices_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('defaultstorageaccountname')]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'properties': {'accounttype': ""[variables('storageaccounttype')]""}} END" -This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-02-01', 'name': ""[variables('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage', 'properties': {}} END" -This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-02-01', 'name': ""[variables('bootstorageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storage', 'tags': {'quickstartname': 'jboss eap on rhel (clustered, multi-vm)'}}{'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-02-01', 'name': ""[variables('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('storagereplication')]""}, 'kind': 'storage', 'tags': {'quickstartname': 'jboss eap on rhel (clustered, multi-vm)'}, 'resources': [{'type': 'blobservices/containers', 'apiversion': '2021-02-01', 'name': ""[concat('default/', variables('containername'))]"", 'dependson': [""[variables('storageaccountname')]""]}]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('dbsubnetname')]"", 'properties': {'addressprefix': ""[parameters('dbsubnetaddressprefix')]""}}]}}{'apiversion': '2017-08-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(variables('publicipaddressname'), copyindex())]"", 'location': ""[parameters('location')]"", 'zones': ['[copyindex(1)]'], 'copy': {'name': 'piploop', 'count': 3}, 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static', 'publicipaddressversion': 'ipv4'}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-07-01', 'name': ""[parameters('filestorageaccountprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('filestorageaccountid')]"", ""[variables('fileshareid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('filestorageaccountprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('filestorageaccountid')]"", 'groupids': [""[variables('filestorageaccountprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('subnetid')]""}}}{'type': 'microsoft.network/privateendpoints/privatednszonegroups', 'apiversion': '2020-06-01', 'name': ""[variables('fileprivatednszonegroup')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('fileprivatednszoneid')]"", ""[variables('filestorageaccountprivateendpointid')]""], 'properties': {'privatednszoneconfigs': [{'name': 'dnsconfig', 'properties': {'privatednszoneid': ""[variables('fileprivatednszoneid')]""}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowsshinbound', 'properties': {'priority': 100, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}}{'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('nsgid')]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('virtualnetworkaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[variables('nsgid')]""}, 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('publicipid')]"", ""[variables('vnetid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetid')]""}}}]}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('fileprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('blobprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-06-01', 'name': ""[concat(variables('fileprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('fileprivatednszoneid')]"", ""[variables('vnetid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('vnetid')]""}}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-06-01', 'name': ""[concat(variables('blobprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('blobprivatednszoneid')]"", ""[variables('vnetid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('vnetid')]""}}}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-07-01', 'name': ""[parameters('blobstorageaccountprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vnetid')]"", ""[variables('blobstorageaccountid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('blobstorageaccountprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('blobstorageaccountid')]"", 'groupids': [""[variables('blobstorageaccountprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('subnetid')]""}}}{'type': 'microsoft.network/privateendpoints/privatednszonegroups', 'apiversion': '2020-06-01', 'name': ""[variables('blobprivatednszonegroup')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('blobprivatednszoneid')]"", ""[variables('blobstorageaccountprivateendpointid')]""], 'properties': {'privatednszoneconfigs': [{'name': 'dnsconfig', 'properties': {'privatednszoneid': ""[variables('blobprivatednszoneid')]""}}]}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2019-12-01', 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'name': ""[variables('adavailabilitysetname')]"", 'properties': {'platformupdatedomaincount': 20, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}}{'name': ""[variables('adpdcvmname')]"", 'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('adpdcnicname'))]"", ""[resourceid('microsoft.compute/availabilitysets', variables('adavailabilitysetname'))]"", ""[resourceid('microsoft.network/loadbalancers', variables('adlbname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('advmsize')]""}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('adavailabilitysetname'))]""}, 'osprofile': {'computername': ""[variables('adpdcvmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('adpdcvmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[variables('storageaccounttype')]""}}, 'datadisks': [{'name': ""[concat(variables('adpdcvmname'),'_data-disk1')]"", 'caching': 'none', 'disksizegb': ""[variables('addatadisksize')]"", 'lun': 0, 'createoption': 'empty', 'manageddisk': {'storageaccounttype': ""[variables('storageaccounttype')]""}}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('adpdcnicname'))]""}]}}, 'resources': [{'name': 'createadforest', 'type': 'extensions', 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('adpdcvmname'))]""], 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.19', 'autoupgrademinorversion': true, 'settings': {'modulesurl': ""[variables('adpdcmodulesurl')]"", 'configurationfunction': ""[variables('adpdcconfigurationfunction')]"", 'properties': {'domainname': ""[parameters('domainname')]"", 'admincreds': {'username': ""[parameters('adminusername')]"", 'password': 'privatesettingsref:adminpassword'}}}, 'protectedsettings': {'items': {'adminpassword': ""[parameters('adminpassword')]""}}}}]}{'name': ""[variables('adbdcvmname')]"", 'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('adbdcnicname'))]"", ""[resourceid('microsoft.compute/availabilitysets', variables('adavailabilitysetname'))]"", ""[resourceid('microsoft.network/loadbalancers', variables('adlbname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('advmsize')]""}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('adavailabilitysetname'))]""}, 'osprofile': {'computername': ""[variables('adbdcvmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('adbdcvmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[variables('storageaccounttype')]""}}, 'datadisks': [{'name': ""[concat(variables('adbdcvmname'),'_data-disk1')]"", 'caching': 'none', 'disksizegb': ""[variables('addatadisksize')]"", 'lun': 0, 'createoption': 'empty', 'manageddisk': {'storageaccounttype': ""[variables('storageaccounttype')]""}}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('adbdcnicname'))]""}]}}} END" -This template creates a data collection rule defining the data source (Syslog) and the destination workspace.," {'type': 'microsoft.insights/autoscalesettings', 'apiversion': '2015-04-01', 'name': 'autoscalesetting', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachinescalesets', parameters('vmssname'))]""], 'properties': {'name': 'autoscalesetting', 'targetresourceuri': ""[resourceid('microsoft.compute/virtualmachinescalesets', parameters('vmssname'))]"", 'enabled': true, 'profiles': [{'name': 'profile1', 'capacity': {'minimum': ""[parameters('instancecount')]"", 'maximum': ""[parameters('maximuminstancecount')]"", 'default': ""[parameters('instancecount')]""}, 'rules': [{'metrictrigger': {'metricname': '\\processor\\percentprocessortime', 'metricresourceuri': ""[resourceid('microsoft.compute/virtualmachinescalesets', parameters('vmssname'))]"", 'timegrain': 'pt1m', 'statistic': 'average', 'timewindow': 'pt5m', 'timeaggregation': 'average', 'operator': 'greaterthan', 'threshold': 60}, 'scaleaction': {'direction': 'increase', 'type': 'changecount', 'value': '1', 'cooldown': 'pt1m'}}, {'metrictrigger': {'metricname': '\\processor\\percentprocessortime', 'metricresourceuri': ""[resourceid('microsoft.compute/virtualmachinescalesets', parameters('vmssname'))]"", 'timegrain': 'pt1m', 'statistic': 'average', 'timewindow': 'pt5m', 'timeaggregation': 'average', 'operator': 'lessthan', 'threshold': 50}, 'scaleaction': {'direction': 'decrease', 'type': 'changecount', 'value': '1', 'cooldown': 'pt1m'}}]}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2019-06-01', 'name': ""[variables('vnet_name')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups',variables('pub_sub_nw_sg'))]"", ""[resourceid('microsoft.network/networksecuritygroups',variables('pvt_sub_nw_sg'))]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddresscidr')]""]}, 'subnets': [{'name': ""[variables('vnet_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('sasprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_viya_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('viyaprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_pub_subnt')]"", 'properties': {'addressprefix': ""[parameters('ansiblebastionpublicsubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pub_sub_nw_sg'))]""}}}], 'enableddosprotection': false, 'enablevmprotection': false}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('pub_sub_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow-ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': ""[parameters('adminingresslocation')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}], 'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('pvt_sub_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('ansible_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow-ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': ""[parameters('adminingresslocation')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}], 'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('meta_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('mid_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('compute_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('rdp_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('microservices_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('spre_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('cascontroller_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('casworker_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2019-09-01', 'name': ""[variables('ansible_pub_nw_interface')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'basic', 'tier': 'regional'}, 'properties': {'publicipaddressversion': 'ipv4', 'publicipallocationmethod': 'static', 'idletimeoutinminutes': 4}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('ansible_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('ansible_pub_nw_interface'))]"", ""[resourceid('microsoft.network/networksecuritygroups', variables('ansible_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('ansible_pub_nw_interface'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pub_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('ansible_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('rdp_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('rdp_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('rdp_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('meta_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('meta_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('meta_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('compute_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('compute_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('compute_nw_sg'))]""}}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-09-01', 'name': ""[variables('mid_nw_interface')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('mid_nw_sg'))]"", ""[resourceid('microsoft.network/virtualnetworks',variables('vnet_name'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet_name'), variables('vnet_pvt_subnt'))]""}, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': true, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('mid_nw_sg'))]""}}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('storageaccountname')]"", 'apiversion': '2021-01-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage', 'properties': {}} END" -Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.," {'type': 'microsoft.web/connections', 'apiversion': '2018-07-01-preview', 'name': ""[parameters('contoso_as2_connection_name')]"", 'location': ""[parameters('location')]"", 'properties': {'api': {'id': ""[variables('as2id')]""}, 'displayname': 'contoso as2 connection', 'parametervalues': {'integrationaccountid': ""[resourceid('microsoft.logic/integrationaccounts', parameters('contosointegrationaccountname'))]"", 'integrationaccounturl': ""[listcallbackurl(resourceid('microsoft.logic/integrationaccounts', parameters('contosointegrationaccountname')), '2019-05-01').value]""}}}{'type': 'microsoft.web/connections', 'apiversion': '2018-07-01-preview', 'name': ""[parameters('fabrikam_as2_connection_name')]"", 'location': ""[parameters('location')]"", 'properties': {'api': {'id': ""[variables('as2id')]""}, 'displayname': 'fabrikam as2 connection', 'parametervalues': {'integrationaccountid': ""[resourceid('microsoft.logic/integrationaccounts', parameters('fabrikamintegrationaccountname'))]"", 'integrationaccounturl': ""[listcallbackurl(resourceid('microsoft.logic/integrationaccounts', parameters('fabrikamintegrationaccountname')), '2019-05-01').value]""}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'shared-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('sharedtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'commonsettings': {'value': ""[variables('commonsettings')]""}, 'networksettings': {'value': ""[variables('networksettings')]""}}}}{'name': 'jumpbox-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'dependson': [""[concat('microsoft.resources/deployments/', 'shared-resources')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('jumpboxtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'commonsettings': {'value': ""[variables('commonsettings')]""}, 'networksettings': {'value': ""[variables('networksettings')]""}, 'machinesettings': {'value': ""[variables('machinesettings')]""}}}}{'type': 'microsoft.resources/deployments', 'name': ""[concat('member-resources', copyindex())]"", 'apiversion': '2015-01-01', 'dependson': [""[concat('microsoft.resources/deployments/', 'shared-resources')]""], 'copy': {'name': 'membernodesloop', 'count': ""[variables('clusterspec').numberofmembers]""}, '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]"", 'adminpassword': ""[variables('machinesettings').adminpassword]"", 'machinenameprefix': ""[variables('machinesettings').machinenameprefix]"", 'osimagereference': ""[variables('machinesettings').osimagereference]"", 'vmsize': ""[variables('clusterspec').vmsizemember]"", 'datadisksize': ""[variables('clusterspec').datadisksize]"", 'machineindex': '[copyindex()]', 'vmscripts': ""[variables('vmscripts').scriptstodownload]"", 'commandtoexecute': ""[variables('vmscripts').regularnodeinstallcommand]""}}}}}{'type': 'microsoft.resources/deployments', 'name': 'lastmember-resources', 'apiversion': '2015-01-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]"", 'adminpassword': ""[variables('machinesettings').adminpassword]"", 'machinenameprefix': ""[variables('machinesettings').machinenameprefix]"", 'osimagereference': ""[variables('machinesettings').osimagereference]"", 'vmsize': ""[variables('clusterspec').vmsizemember]"", 'datadisksize': ""[variables('clusterspec').datadisksize]"", 'machineindex': ""[variables('clusterspec').numberofmembers]"", 'vmscripts': ""[variables('vmscripts').scriptstodownload]"", 'commandtoexecute': ""[variables('vmscripts').lastnodeinstallcommand]""}}}}} END" -This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth," {'type': 'microsoft.authorization/roleassignments', 'apiversion': '2018-09-01-preview', 'name': ""[variables('dsroleassignmentid')]"", 'properties': {'roledefinitionid': ""[variables('dsroledefinitionid')]"", 'principalid': ""[reference(resourceid('microsoft.managedidentity/userassignedidentities', variables('dsidentityname')), '2018-11-30').principalid]"", 'scope': '[resourcegroup().id]', 'principaltype': 'serviceprincipal'}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-07-01', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('networkinterfacename'))]"", ""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[variables('vmsize')[parameters('cpu-gpu')]]""}, 'storageprofile': {'osdisk': {'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}}, 'datadisks': [{'lun': 0, 'name': ""[concat('datadisk', parameters('vmname'))]"", 'createoption': 'empty', 'disksizegb': ""[parameters('disksizegb')]""}], 'imagereference': {'publisher': 'canonical', 'offer': 'ubuntuserver', 'sku': '18.04-lts', 'version': 'latest'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('networkinterfacename'))]""}]}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[concat(reference(variables('storageaccountname')).primaryendpoints.blob)]""}}}, 'resources': [{'type': 'microsoft.compute/virtualmachines/extensions', 'apiversion': '2019-07-01', 'name': ""[concat(variables('vmname'),'/installscript')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('vmname'))]""], 'tags': {'displayname': 'execute my custom script'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'protectedsettings': {'commandtoexecute': ""[concat('bash install.sh ', parameters('adminusername'))]"", 'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/install.sh', parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('scripts/bootstrap.py', parameters('_artifactslocationsastoken')))]""]}}}]} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/availabilitysets', 'comments': 'availability set for creating a ha cluster, run the template multiple times to get multiple dns servers', 'name': ""[variables('asetname')]"", 'apiversion': '2019-12-01', 'location': ""[variables('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 2}}{'type': 'microsoft.compute/virtualmachines', 'comments': 'a stock ubuntu server, a vm extension will add the dns server to it later', 'name': ""[parameters('vmname')]"", 'apiversion': '2019-12-01', 'location': ""[variables('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]"", ""[resourceid('microsoft.storage/storageaccounts/', parameters('storageaccountname'))]"", ""[resourceid('microsoft.compute/availabilitysets/', variables('asetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('asetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': 'canonical', 'offer': 'ubuntuserver', 'sku': ""[variables('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts', tolower(parameters('storageaccountname')))).primaryendpoints.blob]""}}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'comments': 'the shell script to install bind9 and setup the acl and forwarders. if this step fails, check the logs in /var/log/waagent.log and /var/log/azure/* for details', 'name': ""[concat(parameters('vmname'),'/setupdnsfirewall')]"", 'apiversion': '2019-12-01', 'location': ""[variables('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', parameters('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('scripturl')]""], 'commandtoexecute': ""[concat('sh forwardersetup.sh',' ',parameters('forwardip'),' ', variables('vnetaddressprefix'))]""}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachinescalesets', 'apiversion': '2016-04-30-preview', 'name': ""[variables('frontendvmssname')]"", 'location': ""[parameters('location')]"", 'tags': {'vmsstag1': 'rev vmss fe'}, 'dependson': [""[concat('microsoft.network/loadbalancers/',variables('lbname'))]"", ""[concat('microsoft.network/virtualnetworks/','appvnet')]""], 'sku': {'name': ""[variables('frontendvmsize')]"", 'tier': 'standard', 'capacity': ""[parameters('instancecount')]""}, 'properties': {'upgradepolicy': {'mode': 'manual'}, 'virtualmachineprofile': {'storageprofile': {'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[parameters('appstoragetype')]""}}, 'imagereference': {'publisher': ""[variables('appvmimagepublisher')]"", 'offer': ""[variables('appvmimageoffer')]"", 'sku': ""[parameters('appvmwindowsosversion')]"", 'version': 'latest'}}, 'osprofile': {'computernameprefix': ""[variables('frontendvmssname')]"", 'adminusername': ""[parameters('appvmadminusername')]"", 'adminpassword': ""[parameters('appvmadminpassword')]"", 'secrets': [{'sourcevault': {'id': ""[resourceid(parameters('vaultresourcegroup'), 'microsoft.keyvault/vaults', parameters('vaultname'))]""}, 'vaultcertificates': [{'certificateurl': ""[parameters('httpssecreturlwithversion')]"", 'certificatestore': ""[parameters('certificatestore')]""}]}]}, 'networkprofile': {'networkinterfaceconfigurations': [{'name': 'nic1', 'properties': {'primary': true, 'ipconfigurations': [{'name': 'ip1', 'properties': {'subnet': {'id': ""[variables('appvmsubnetref')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[variables('lbbeaddresspoolid')]""}], 'loadbalancerinboundnatpools': [{'id': ""[variables('lbwebinboundnatpoolid')]""}]}}]}}]}, 'extensionprofile': {'extensions': [{'name': 'microsoft.powershell.dsc', 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.9', 'autoupgrademinorversion': true, 'forceupdatetag': ""[parameters('frontenddscvmssupdatetagversion')]"", 'settings': {'configuration': {'url': ""[concat(parameters('_artifactslocation'), '/', variables('frontenddscvmssarchivefolder'), '/', variables('frontenddscvmssarchivefilename'))]"", 'script': 'frontenddscvmss.ps1', 'function': 'main'}, 'configurationarguments': {'nodename': 'localhost', 'webdeploypackage': ""[parameters('appwebpackage')]"", 'certstorename': ""[parameters('certificatestore')]"", 'certdomain': ""[parameters('certificatedomain')]""}}, 'protectedsettings': {'configurationurlsastoken': ""[parameters('_artifactslocationsastoken')]""}}}]}}}}{'type': 'microsoft.compute/virtualmachinescalesets', 'apiversion': '2016-04-30-preview', 'name': ""[variables('servicevmssname')]"", 'location': ""[parameters('location')]"", 'tags': {'vmsstag1': 'rev service'}, 'dependson': [""[concat('microsoft.network/loadbalancers/',variables('lbservicename'))]"", ""[concat('microsoft.network/virtualnetworks/','appvnet')]""], 'sku': {'name': ""[variables('servicevmsize')]"", 'tier': 'standard', 'capacity': ""[parameters('instancecount')]""}, 'properties': {'upgradepolicy': {'mode': 'manual'}, 'virtualmachineprofile': {'storageprofile': {'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[parameters('appstoragetype')]""}}, 'imagereference': {'publisher': ""[variables('appvmimagepublisher')]"", 'offer': ""[variables('appvmimageoffer')]"", 'sku': ""[parameters('appvmwindowsosversion')]"", 'version': 'latest'}}, 'osprofile': {'computernameprefix': ""[variables('servicevmssname')]"", 'adminusername': ""[parameters('appvmadminusername')]"", 'adminpassword': ""[parameters('appvmadminpassword')]""}, 'networkprofile': {'networkinterfaceconfigurations': [{'name': 'nics1', 'properties': {'primary': true, 'ipconfigurations': [{'name': 'ips1', 'properties': {'subnet': {'id': ""[variables('servicevmsubnetref')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[variables('lbbeserviceaddresspoolid')]""}], 'loadbalancerinboundnatpools': [{'id': ""[variables('lbserviceinboundnatpoolid')]""}]}}]}}]}, 'extensionprofile': {'extensions': [{'name': 'microsoft.powershell.dsc', 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.9', 'autoupgrademinorversion': true, 'forceupdatetag': ""[parameters('servicedscvmssupdatetagversion')]"", 'settings': {'configuration': {'url': ""[concat(parameters('_artifactslocation'), '/', variables('servicedscvmssarchivefolder'), '/', variables('servicedscvmssarchivefilename'))]"", 'script': 'servicedscvmss.ps1', 'function': 'main'}, 'configurationarguments': {'nodename': 'localhost', 'webdeploypackage': ""[parameters('appservicepackage')]""}}, 'protectedsettings': {'configurationurlsastoken': ""[parameters('_artifactslocationsastoken')]""}}}]}}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2019-07-01', 'type': 'microsoft.compute/proximityplacementgroups', 'name': ""[parameters('proximityplacementgroupname')]"", 'location': ""[parameters('location')]"", 'properties': {}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-05-01', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('networksettings').virtualnetworkaddressprefix]""]}, 'subnets': [{'name': 'default', 'properties': {'addressprefix': ""[variables('networksettings').subnetaddressprefix]""}}]}}{'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))), '-ni')]"", 'apiversion': '2020-05-01', 'location': ""[parameters('location')]"", 'copy': {'name': 'nicopy', 'count': ""[add(add(length(variables('vminfo')),length(variables('siteinfo'))),length(variables('clientrole')))]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses/', concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))), '-ip'))]"", ""[resourceid('microsoft.network/networksecuritygroups/', concat(tolower(tolower(parameters('prefix'))), '-nsg'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'subnet': {'id': ""[variables('networksettings').subnetref]""}, 'privateipallocationmethod': ""[variables('networksettings').privateipallocationmethod]"", 'privateipaddress': ""[concat(variables('networksettings').virtualmachinesipaddress,add(copyindex(),int('4')))]"", 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))), '-ip'))]""}}}], 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', concat(tolower(parameters('prefix')), '-nsg'))]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-08-01', 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}, {'name': ""[variables('agsubnetname')]"", 'properties': {'addressprefix': ""[variables('agsubnetprefix')]""}}]}}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-08-01', 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('longnaminginfix')]""}}}{'type': 'microsoft.network/loadbalancers', 'name': ""[variables('loadbalancername')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-08-01', 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('publicipaddressname'))]""], 'properties': {'frontendipconfigurations': [{'name': ""[variables('lbfrontendname')]"", 'properties': {'publicipaddress': {'id': ""[variables('publicipaddressid')]""}}}], 'backendaddresspools': [{'name': ""[variables('bepoolname')]""}], 'inboundnatpools': [{'name': ""[variables('natpoolname')]"", 'properties': {'frontendipconfiguration': {'id': ""[variables('frontendipconfigid')]""}, 'protocol': 'tcp', 'frontendportrangestart': ""[variables('natstartport')]"", 'frontendportrangeend': ""[variables('natendport')]"", 'backendport': ""[variables('natbackendport')]""}}], 'loadbalancingrules': [{'name': 'lbrule', 'properties': {'frontendipconfiguration': {'id': ""[variables('frontendipconfigid')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('loadbalancername'), variables('bepoolname'))]""}, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', variables('loadbalancername'), variables('lbprobename'))]""}, 'protocol': 'tcp', 'loaddistribution': 'sourceip', 'frontendport': 80, 'backendport': 80, 'idletimeoutinminutes': 15}}], 'probes': [{'name': ""[variables('lbprobename')]"", 'properties': {'protocol': 'http', 'port': 80, 'intervalinseconds': 15, 'numberofprobes': 2, 'requestpath': 'cgi-bin/probe'}}]}}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('dbpublicipaddressname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-08-01', 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('dblongnaminginfix')]""}}}{'type': 'microsoft.network/loadbalancers', 'name': ""[variables('dbloadbalancername')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-08-01', 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('dbpublicipaddressname'))]""], 'properties': {'frontendipconfigurations': [{'name': ""[variables('dblbfrontendname')]"", 'properties': {'publicipaddress': {'id': ""[variables('dbpublicipaddressid')]""}}}], 'backendaddresspools': [{'name': ""[variables('dbbepoolname')]""}], 'loadbalancingrules': [{'name': 'lbrule', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', variables('dbloadbalancername'), variables('dblbfrontendname'))]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('dbloadbalancername'), variables('dbbepoolname'))]""}, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', variables('dbloadbalancername'), variables('dblbprobename'))]""}, 'protocol': 'tcp', 'loaddistribution': 'sourceip', 'frontendport': 50000, 'backendport': 3389, 'idletimeoutinminutes': 15}}], 'probes': [{'name': ""[variables('dblbprobename')]"", 'properties': {'protocol': 'tcp', 'port': 3389, 'intervalinseconds': 15, 'numberofprobes': 2}}]}} END" -Deploy two web apps and connect it securely with Private Endpoint and VNet injection," {'type': 'microsoft.web/serverfarms', 'apiversion': '2020-06-01', 'name': ""[parameters('serverfarmname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('skuname')]"", 'tier': ""[variables('sku_tier')]"", 'size': ""[parameters('skusize')]"", 'family': ""[parameters('skufamily')]"", 'capacity': 1}, 'kind': 'app'}{'type': 'microsoft.web/sites', 'apiversion': '2020-06-01', 'name': ""[parameters('site1_name')]"", 'location': ""[parameters('location')]"", 'kind': 'app', 'properties': {'serverfarmid': ""[resourceid('microsoft.web/serverfarms', parameters('serverfarmname'))]""}, 'dependson': [""[resourceid('microsoft.web/serverfarms', parameters('serverfarmname'))]""]}{'type': 'microsoft.web/sites', 'apiversion': '2020-06-01', 'name': ""[parameters('site2_name')]"", 'location': ""[parameters('location')]"", 'kind': 'app', 'properties': {'serverfarmid': ""[resourceid('microsoft.web/serverfarms', parameters('serverfarmname'))]""}, 'dependson': [""[resourceid('microsoft.web/serverfarms', parameters('serverfarmname'))]""]}{'type': 'microsoft.web/sites/config', 'apiversion': '2020-06-01', 'name': ""[format('{0}/{1}', parameters('site2_name'), 'appsettings')]"", 'properties': {'website_dns_server': '168.63.129.16', 'website_vnet_route_all': '1'}, 'dependson': [""[resourceid('microsoft.web/sites', parameters('site2_name'))]""]}{'type': 'microsoft.web/sites/config', 'apiversion': '2020-06-01', 'name': ""[format('{0}/{1}', parameters('site1_name'), 'web')]"", 'properties': {'ftpsstate': 'allallowed'}, 'dependson': [""[resourceid('microsoft.web/sites', parameters('site1_name'))]""]}{'type': 'microsoft.web/sites/config', 'apiversion': '2020-06-01', 'name': ""[format('{0}/{1}', parameters('site2_name'), 'web')]"", 'properties': {'ftpsstate': 'allallowed'}, 'dependson': [""[resourceid('microsoft.web/sites', parameters('site2_name'))]""]}{'type': 'microsoft.web/sites/hostnamebindings', 'apiversion': '2019-08-01', 'name': ""[format('{0}/{1}', parameters('site1_name'), format('{0}{1}', parameters('site1_name'), variables('webapp_dns_name')))]"", 'properties': {'sitename': ""[parameters('site1_name')]"", 'hostnametype': 'verified'}, 'dependson': [""[resourceid('microsoft.web/sites', parameters('site1_name'))]""]}{'type': 'microsoft.web/sites/hostnamebindings', 'apiversion': '2019-08-01', 'name': ""[format('{0}/{1}', parameters('site2_name'), format('{0}{1}', parameters('site2_name'), variables('webapp_dns_name')))]"", 'properties': {'sitename': ""[parameters('site2_name')]"", 'hostnametype': 'verified'}, 'dependson': [""[resourceid('microsoft.web/sites', parameters('site2_name'))]""]}{'type': 'microsoft.web/sites/networkconfig', 'apiversion': '2020-06-01', 'name': ""[format('{0}/{1}', parameters('site2_name'), 'virtualnetwork')]"", 'properties': {'subnetresourceid': ""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('virtualnetworkname'), parameters('subnet2name'))]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.web/sites', parameters('site2_name'))]""]} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2019-06-01', 'name': ""[variables('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage'} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[concat(variables('vmstorageaccountname'), copyindex(1))]"", 'apiversion': '2021-01-01', 'location': ""[parameters('location')]"", 'comments': '4 storage accounts used to store the vm disks for each tier', 'tags': {'displayname': 'vm storage accounts', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('redhattags').provider]""}, 'copy': {'name': 'vmstorageaccountloop', 'count': 4}, 'sku': {'name': ""[variables('vmstorageaccounttype')]""}, 'kind': 'storage', 'properties': {}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2021-02-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('networksettings').nsgsubnetdcname]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': ""[variables('networksettings').nsgsubnetdcname]""}, 'properties': {'securityrules': ""[if(equals(tolower(parameters('rdptrafficallowed')), 'no'), json('null'), variables('networksettings').nsgruleallowincomingtraffic)]""}}{'apiversion': '2021-02-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('networksettings').nsgsubnetsqlname]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': ""[variables('networksettings').nsgsubnetsqlname]""}, 'properties': {'securityrules': ""[if(equals(tolower(parameters('rdptrafficallowed')), 'no'), json('null'), variables('networksettings').nsgruleallowincomingtraffic)]""}}{'apiversion': '2021-02-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('networksettings').nsgsubnetspname]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': ""[variables('networksettings').nsgsubnetspname]""}, 'properties': {'securityrules': ""[if(equals(tolower(parameters('rdptrafficallowed')), 'no'), json('null'), variables('networksettings').nsgruleallowincomingtraffic)]""}}{'name': ""[variables('networksettings').vnetprivatename]"", 'type': 'microsoft.network/virtualnetworks', 'location': ""[parameters('location')]"", 'apiversion': '2021-02-01', 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksettings').nsgsubnetdcname)]"", ""[resourceid('microsoft.network/networksecuritygroups', variables('networksettings').nsgsubnetsqlname)]"", ""[resourceid('microsoft.network/networksecuritygroups', variables('networksettings').nsgsubnetspname)]""], 'tags': {'displayname': ""[variables('networksettings').vnetprivatename]""}, 'properties': {'addressspace': {'addressprefixes': [""[variables('networksettings').vnetprivateprefix]""]}, 'subnets': [{'name': ""[variables('networksettings').subnetdcname]"", 'properties': {'addressprefix': ""[variables('networksettings').subnetdcprefix]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksettings').nsgsubnetdcname)]""}}}, {'name': ""[variables('networksettings').subnetsqlname]"", 'properties': {'addressprefix': ""[variables('networksettings').subnetsqlprefix]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksettings').nsgsubnetsqlname)]""}}}, {'name': ""[variables('networksettings').subnetspname]"", 'properties': {'addressprefix': ""[variables('networksettings').subnetspprefix]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksettings').nsgsubnetspname)]""}}}]}}{'condition': ""[equals(parameters('addpublicipaddresstoeachvm'), true())]"", 'name': ""[variables('vmdc').vmpublicipname]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[parameters('location')]"", 'apiversion': '2021-02-01', 'tags': {'displayname': ""[variables('vmdc').vmpublicipname]""}, 'sku': {'name': 'basic', 'tier': 'regional'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('vmdc').vmpublicipdnsname]""}}}{'name': ""[variables('vmdc').vmnicname]"", 'type': 'microsoft.network/networkinterfaces', 'location': ""[parameters('location')]"", 'apiversion': '2021-02-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('networksettings').vnetprivatename)]"", ""[resourceid('microsoft.network/publicipaddresses', variables('vmdc').vmpublicipname)]""], 'tags': {'displayname': ""[variables('vmdc').vmnicname]""}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[variables('networksettings').dcprivateipaddress]"", 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('networksettings').vnetprivatename, variables('networksettings').subnetdcname)]""}, 'publicipaddress': ""[if(parameters('addpublicipaddresstoeachvm'), variables('networksettings').vmdcpublicipnicassociation, json('null'))]""}}]}}{'condition': ""[equals(parameters('addpublicipaddresstoeachvm'), true())]"", 'name': ""[variables('vmsql').vmpublicipname]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[parameters('location')]"", 'apiversion': '2021-02-01', 'tags': {'displayname': ""[variables('vmsql').vmpublicipname]""}, 'sku': {'name': 'basic', 'tier': 'regional'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('vmsql').vmpublicipdnsname]""}}}{'name': ""[variables('vmsql').vmnicname]"", 'type': 'microsoft.network/networkinterfaces', 'location': ""[parameters('location')]"", 'apiversion': '2021-02-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('networksettings').vnetprivatename)]"", ""[resourceid('microsoft.network/publicipaddresses', variables('vmsql').vmpublicipname)]""], 'tags': {'displayname': ""[variables('vmsql').vmnicname]""}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('networksettings').vnetprivatename, variables('networksettings').subnetsqlname)]""}, 'publicipaddress': ""[if(parameters('addpublicipaddresstoeachvm'), variables('networksettings').vmsqlpublicipnicassociation, json('null'))]""}}]}}{'condition': ""[equals(parameters('addpublicipaddresstoeachvm'), true())]"", 'name': ""[variables('vmsp').vmpublicipname]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[parameters('location')]"", 'apiversion': '2021-02-01', 'tags': {'displayname': ""[variables('vmsp').vmpublicipname]""}, 'sku': {'name': 'basic', 'tier': 'regional'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('vmsp').vmpublicipdnsname]""}}}{'name': ""[variables('vmsp').vmnicname]"", 'type': 'microsoft.network/networkinterfaces', 'location': ""[parameters('location')]"", 'apiversion': '2021-02-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('networksettings').vnetprivatename)]"", ""[resourceid('microsoft.network/publicipaddresses', variables('vmsp').vmpublicipname)]""], 'tags': {'displayname': ""[variables('vmsp').vmnicname]""}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('networksettings').vnetprivatename, variables('networksettings').subnetspname)]""}, 'publicipaddress': ""[if(parameters('addpublicipaddresstoeachvm'), variables('networksettings').vmsppublicipnicassociation, json('null'))]""}}]}}{'condition': ""[and(greaterorequals(parameters('numberofadditionalfrontend'), 1), equals(parameters('addpublicipaddresstoeachvm'), true()))]"", 'name': ""[concat(variables('vmfe').vmpublicipname, '-', copyindex())]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[parameters('location')]"", 'apiversion': '2021-02-01', 'tags': {'displayname': ""[concat(variables('vmfe').vmpublicipname, '-', copyindex())]""}, 'copy': {'name': 'frontendpublicipaddresses', 'count': ""[parameters('numberofadditionalfrontend')]""}, 'sku': {'name': 'basic', 'tier': 'regional'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[concat(variables('vmfe').vmpublicipdnsname, '-', copyindex())]""}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachinescalesets', 'apiversion': '2019-03-01', 'name': ""[parameters('vmssname')]"", 'location': ""[parameters('location')]"", 'tags': {'vmsstag': 'automaticrepairs'}, 'dependson': [""[resourceid('microsoft.network/loadbalancers/', variables('lbname'))]"", ""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]""], 'sku': {'name': ""[parameters('vmsku')]"", 'tier': 'standard', 'capacity': ""[parameters('instancecount')]""}, 'properties': {'upgradepolicy': {'mode': 'manual'}, 'automaticrepairspolicy': {'enabled': true, 'graceperiod': 'pt30m'}, 'virtualmachineprofile': {'storageprofile': {'imagereference': ""[variables('imagereference')]""}, 'osprofile': {'computernameprefix': 'vmss', 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'extensionprofile': {'extensions': [{'name': 'customscripttoinstallapache', 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('install_apache.sh', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': 'sh install_apache.sh'}}}]}, 'networkprofile': {'healthprobe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes/', variables('lbname'), variables('probename'))]""}, 'networkinterfaceconfigurations': [{'name': 'nic1', 'properties': {'primary': true, 'ipconfigurations': [{'name': 'ip1', 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnetname'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[variables('bepoolid')]""}], 'publicipaddressconfiguration': {'name': 'pub1', 'properties': {'idletimeoutinminutes': 15}}}}]}}]}}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-12-01', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('storageaccountname')]"", ""[variables('nicname')]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': 'suse', 'offer': ""[parameters('suseosversion')]"", 'sku': 'gen1', 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}, 'datadisks': [{'disksizegb': 100, 'lun': 0, 'name': ""[concat(variables('vmname'),'_datadisk1')]"", 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname')), '2019-06-01').primaryendpoints.blob]""}}}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('defaultstorageaccount').name]"", 'location': ""[parameters('location')]"", 'apiversion': '2021-06-01', 'sku': {'name': ""[variables('defaultstorageaccount').type]""}, 'kind': 'storage', 'properties': {}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/virtualmachinescalesets', 'name': ""[variables('dbvmssname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-07-01', 'dependson': [""[resourceid('microsoft.network/loadbalancers/', variables('loadbalancername'))]"", ""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]"", ""[resourceid('microsoft.sql/servers/', variables('sqlservername'))]"", ""[resourceid('microsoft.sql/servers/databases/', variables('sqlservername'), parameters('databasename'))]"", ""[resourceid('microsoft.network/applicationgateways/', variables('agname'))]""], 'sku': {'name': ""[parameters('dbvirtualmachinesize')]"", 'tier': 'standard', 'capacity': 1}, 'plan': {'name': ""[variables('imagesku')]"", 'product': ""[parameters('imageoffer')]"", 'publisher': ""[variables('imagepublisher')]""}, 'properties': {'overprovision': false, 'upgradepolicy': {'mode': 'automatic'}, 'virtualmachineprofile': {'storageprofile': {'osdisk': {'caching': 'readonly', 'createoption': 'fromimage'}, 'imagereference': ""[variables('imagereference')]""}, 'osprofile': {'computernameprefix': ""[variables('dbvmssname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'windowsconfiguration': {'provisionvmagent': true}}, 'networkprofile': {'networkinterfaceconfigurations': [{'name': ""[concat('db', variables('nicname'))]"", 'properties': {'primary': true, 'ipconfigurations': [{'name': ""[concat( 'db',variables('ipconfigname'))]"", 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnetname'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('dbloadbalancername'), variables('dbbepoolname'))]""}]}}]}}]}, 'extensionprofile': {'extensions': [{'name': 'firstinstall', 'properties': {'publisher': 'microsoft.compute', 'type': 'customscriptextension', 'typehandlerversion': '1.9', 'autoupgrademinorversion': true, 'forceupdatetag': ""[concat( parameters('installmsi'),parameters('updatemsi'),parameters('triggerwebconfig'),parameters('uninstallmsi'),parameters('fixlicense'), parameters('trace'), parameters('gitbranch') )]"", 'settings': {'fileuris': [""[variables('gitrefreshuri')]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'powershell -noprofile -executionpolicy unrestricted -command ""& {pushd;./\',variables(\'gitrefreshname\'), \' \', parameters(\'gitbranch\'), \';popd;\', \'pushd;c:\\lansa\\scripts\\azure-custom-script.ps1 \', \'-server_name \',variables(\'q\'), if(variables(\'isnewdatabase\'), reference(variables(\'sqlservername\')).fullyqualifieddomainname, parameters(\'databaseservername\')), variables(\'q\'), \' -dbut \', variables(\'q\'), parameters(\'databasetype\'), variables(\'q\'), \' -dbname \', variables(\'q\'), parameters(\'databasename\'), variables(\'q\'), \' -dbuser \', variables(\'q\'), parameters(\'databaselogin\'), variables(\'q\'), \' -dbpassword \', variables(\'q\'), parameters(\'databaseloginpassword\'), variables(\'q\'), \' -webuser \', variables(\'q\'), parameters(\'webusername\'), variables(\'q\'), \' -webpassword \', variables(\'q\'), parameters(\'webpassword\'), variables(\'q\'), \' -msiuri \', variables(\'q\'), parameters(\'msiurl\'), variables(\'q\'), \' -maxconnections \', variables(\'q\'), parameters(\'webservermaxconnect\'), variables(\'q\'), \' -trace \', variables(\'q\'), parameters(\'trace\'), variables(\'q\'), \' -installmsi \', variables(\'q\'), parameters(\'installmsi\'), variables(\'q\'), \' -updatemsi \', variables(\'q\'), parameters(\'updatemsi\'), variables(\'q\'),\' -triggerwebconfig \', variables(\'q\'), parameters(\'triggerwebconfig\'), variables(\'q\'),\' -uninstallmsi \', variables(\'q\'), parameters(\'uninstallmsi\'), variables(\'q\'), \' -fixlicense \', variables(\'q\'), parameters(\'fixlicense\'), variables(\'q\'), \';if ($lastexitcode -ne 0) {write-error (""msi install failed"");exit $lastexitcode}; exit 0;popd;}""\')]'}}}]}}}} END" -"Create an Azure Automation account and create a new Azure Monitor Log Analytics workspace if it doesn't exist, and then link them together."," {'type': 'microsoft.automation/automationaccounts', 'apiversion': '2021-04-01', 'location': ""[parameters('location')]"", 'name': ""[parameters('automationaccountname')]"", 'tags': {'arotoolkitversion': ""[variables('arotoolkitversion')]""}, 'comments': 'automation account', 'properties': {'sku': {'name': 'basic'}}}{'type': 'microsoft.automation/automationaccounts/variables', 'apiversion': '2021-04-01', 'name': ""[concat(parameters('automationaccountname'), '/', variables('automationvariables')[copyindex()].name)]"", 'dependson': [""[resourceid('microsoft.automation/automationaccounts', parameters('automationaccountname'))]""], 'copy': {'name': 'variableloop', 'count': ""[length(variables('automationvariables'))]""}, 'properties': {'description': ""[variables('automationvariables')[copyindex()].description]"", 'value': ""[variables('automationvariables')[copyindex()].value]""}}{'type': 'microsoft.automation/automationaccounts/variables', 'apiversion': '2021-04-01', 'name': ""[concat(parameters('automationaccountname'), '/', variables('internalazuresubscriptionid').name)]"", 'dependson': [""[resourceid('microsoft.automation/automationaccounts', parameters('automationaccountname'))]""], 'properties': {'description': ""[variables('internalazuresubscriptionid').description]"", 'isencrypted': true, 'type': 'string', 'value': ""[variables('internalazuresubscriptionid').value]""}}{'name': ""[concat(parameters('automationaccountname'), '/', variables('azurecredentials'))]"", 'type': 'microsoft.automation/automationaccounts/credentials', 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.automation/automationaccounts', parameters('automationaccountname'))]""], 'properties': {'description': 'azure subscription credentials', 'password': ""[parameters('azureadminpwd')]"", 'username': ""[parameters('azureadmin')]""}}{'comments': 'provision the azurerm.profile module first since others are depenedent on it', 'name': ""[concat(parameters('automationaccountname'), '/', variables('azurerm.profile').name)]"", 'type': 'microsoft.automation/automationaccounts/modules', 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.automation/automationaccounts', parameters('automationaccountname'))]""], 'properties': {'contentlink': {'uri': ""[variables('azurerm.profile').url]""}}}{'name': ""[concat(parameters('automationaccountname'), '/', variables('psmodules')[copyindex()].name)]"", 'type': 'microsoft.automation/automationaccounts/modules', 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.automation/automationaccounts', parameters('automationaccountname'))]"", ""[variables('azurerm.profile').name]""], 'copy': {'name': 'modulesloop', 'count': ""[length(variables('psmodules'))]""}, 'properties': {'contentlink': {'uri': ""[variables('psmodules')[copyindex()].url]""}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'condition': ""[contains(parameters('virtualmachinesize'), 'standard_nv')]"", 'name': 'nvidia-gpu-driver-linux', 'apiversion': '2021-04-01', 'type': 'microsoft.resources/deployments', 'dependson': [""[resourceid('microsoft.resources/deployments', concat(variables('virtualmachinename'), '-rosinstall'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nvidiagpudriverlinuxuri')]""}, 'parameters': {'vmname': {'value': ""[variables('virtualmachinename')]""}, 'location': {'value': ""[variables('location')]""}}}} END" -Install Virtual Network with DMZ Subnet," {'apiversion': '2020-05-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[parameters('fensgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'rdp_rule', 'properties': {'description': 'allow rdp', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'web_rule', 'properties': {'description': 'allow web', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 101, 'direction': 'inbound'}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[parameters('appnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow_fe', 'properties': {'description': 'allow fe subnet', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': ""[parameters('fesubnetprefix')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'block_rdp_internet', 'properties': {'description': 'block rdp', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 101, 'direction': 'inbound'}}, {'name': 'block_internet_outbound', 'properties': {'description': 'block internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'deny', 'priority': 200, 'direction': 'outbound'}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[parameters('dbnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow_app', 'properties': {'description': 'allow app subnet', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '1433', 'sourceaddressprefix': ""[parameters('appsubnetprefix')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'block_fe', 'properties': {'description': 'block fe subnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': ""[parameters('fesubnetprefix')]"", 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 101, 'direction': 'inbound'}}, {'name': 'block_app', 'properties': {'description': 'block app subnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': ""[parameters('appsubnetprefix')]"", 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 102, 'direction': 'inbound'}}, {'name': 'block_internet', 'properties': {'description': 'block internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'deny', 'priority': 200, 'direction': 'outbound'}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups/', parameters('fensgname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/', parameters('appnsgname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/', parameters('dbnsgname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('addressprefix')]""]}, 'subnets': [{'name': 'fesubnet', 'properties': {'addressprefix': ""[parameters('fesubnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', parameters('fensgname'))]""}}}, {'name': 'appsubnet', 'properties': {'addressprefix': ""[parameters('appsubnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', parameters('appnsgname'))]""}}}, {'name': 'dbsubnet', 'properties': {'addressprefix': ""[parameters('dbsubnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', parameters('dbnsgname'))]""}}}]}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vm01name')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'iis01'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vm01name'), '_nic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vm01name')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('windowsosversion')]"", 'version': 'latest'}, 'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'properties': {'primary': true}, 'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('vm01name'), '_nic'))]""}]}}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vm02name')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'appvm01'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vm02name'), '_nic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vm02name')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('windowsosversion')]"", 'version': 'latest'}, 'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'properties': {'primary': true}, 'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('vm02name'), '_nic'))]""}]}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'apiversion': '2020-07-01', 'location': ""[parameters('location')]"", 'dependson': [""[variables('nsgname')]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnet1name')]"", 'properties': {'addressprefix': ""[variables('subnet1prefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups',variables('nsgname'))]""}}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': ""[variables('nsgname')]""}, 'properties': {'securityrules': ""[if(variables('os_is_linux'),variables('linuxsecurityrules'),variables('windowssecurityrules'))]""}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'name': ""[variables('names').pip]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[parameters('location')]"", 'apiversion': '2017-10-01', 'tags': {'displayname': 'publicip'}, 'properties': {'dnssettings': {'domainnamelabel': ""[parameters('publicipdnsname')]""}, 'idletimeoutinminutes': 4, 'publicipaddressversion': 'ipv4', 'publicipallocationmethod': 'dynamic'}}{'comments': 'default network security group for template', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-08-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'default-allow-3389', 'properties': {'priority': 1000, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '3389', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'name': ""[concat(variables('nsgname'))]"", 'apiversion': '2020-07-01', 'location': ""[parameters('location')]"", 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'properties': {'securityrules': ""[variables('selectedsecurityrules')]""}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmname'),'/','azurediskencryption')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-12-01', 'properties': {'publisher': 'microsoft.azure.security', 'type': 'azurediskencryption', 'typehandlerversion': '2.2', 'autoupgrademinorversion': true, 'forceupdatetag': ""[parameters('forceupdatetag')]"", 'settings': {'encryptionoperation': 'disableencryption', 'volumetype': ""[parameters('volumetype')]""}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2020-08-01', 'name': ""[concat('appgw', copyindex(1))]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'appgwcopy', 'count': 2}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('nested/azuredeployappgw.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'location': {'value': ""[parameters('location')]""}, 'appgwname': {'value': ""[concat('appgw', copyindex(1))]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'comments': ""simple network security group for subnet [variables('vnet1').subnetname]"", 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-04-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[variables('vnet1').location]"", 'properties': {}}{'comments': ""simple network security group for subnet [variables('vnet2').subnetname]"", 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-04-01', 'name': ""[variables('networksecuritygroupname2')]"", 'location': ""[variables('vnet2').location]"", 'properties': {}} END" -This template creates a Front Door in front of an API Management instance hosted by a virtual network.," {'type': 'microsoft.network/networksecuritygroups', 'name': ""[parameters('virtualnetwork').subnets[0].nsg]"", 'apiversion': '2019-09-01', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'clientcommunicationtoapimanagementinbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': ""[if(parameters('allowtrafficonlyfromfrontdoor'), 'azurefrontdoor.backend', 'internet')]"", 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'secureclientcommunicationtoapimanagementinbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': ""[if(parameters('allowtrafficonlyfromfrontdoor'), 'azurefrontdoor.backend', 'internet')]"", 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 110, 'direction': 'inbound'}}, {'name': 'managementendpointforazureportalandpowershellinbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3443', 'sourceaddressprefix': 'apimanagement', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 120, 'direction': 'inbound'}}, {'name': 'dependencyonrediscacheinbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '6381-6383', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 130, 'direction': 'inbound'}}, {'name': 'azureinfrastructureloadbalancer', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'azureloadbalancer', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 180, 'direction': 'inbound'}}, {'name': 'dependencyonazuresqloutbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '1433', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'sql', 'access': 'allow', 'priority': 140, 'direction': 'outbound'}}, {'name': 'dependencyforlogtoeventhubpolicyoutbound', 'properties': {'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '5671', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'eventhub', 'access': 'allow', 'priority': 150, 'direction': 'outbound'}}, {'name': 'dependencyonrediscacheoutbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '6381-6383', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 160, 'direction': 'outbound'}}, {'name': 'dependencyonazurefileshareforgitoutbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '445', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'storage', 'access': 'allow', 'priority': 170, 'direction': 'outbound'}}, {'name': 'publishdiagnosticlogsandmetricsoutbound', 'properties': {'description': 'apim logs and metrics for consumption by admins and your it team are all part of the management plane', 'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'azuremonitor', 'access': 'allow', 'priority': 185, 'direction': 'outbound', 'destinationportranges': ['443', '12000', '1886']}}, {'name': 'connecttosmtprelayforsendingemailsoutbound', 'properties': {'description': 'apim features the ability to generate email traffic as part of the data plane and the management plane', 'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 190, 'direction': 'outbound', 'destinationportranges': ['25', '587', '25028']}}, {'name': 'authenticatetoazureactivedirectoryoutbound', 'properties': {'description': 'connect to azure active directory for developer portal authentication or for oauth2 flow during any proxy authentication', 'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'azureactivedirectory', 'access': 'allow', 'priority': 200, 'direction': 'outbound', 'destinationportranges': ['80', '443']}}, {'name': 'dependencyonazurestorageoutbound', 'properties': {'description': 'apim service dependency on azure blob and azure table storage', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'storage', 'access': 'allow', 'priority': 100, 'direction': 'outbound'}}, {'name': 'publishmonitoringlogsoutbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'azurecloud', 'access': 'allow', 'priority': 300, 'direction': 'outbound'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetwork').name]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('nsgid')]""], 'properties': {'addressspace': {'addressprefixes': ""[parameters('virtualnetwork').addressprefixes]""}, 'copy': [{'name': 'subnets', 'count': ""[length(parameters('virtualnetwork').subnets)]"", 'input': {'name': ""[parameters('virtualnetwork').subnets[copyindex('subnets')].name]"", 'properties': {'addressprefix': ""[parameters('virtualnetwork').subnets[copyindex('subnets')].addressprefix]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', parameters('virtualnetwork').subnets[copyindex('subnets')].nsg)]""}}}}]}}{'condition': ""[parameters('deploywaf')]"", 'apiversion': '2019-03-01', 'type': 'microsoft.network/frontdoorwebapplicationfirewallpolicies', 'name': ""[parameters('wafpolicyname')]"", 'location': 'global', 'properties': {'policysettings': {'mode': ""[parameters('wafmode')]"", 'enabledstate': 'enabled'}, 'managedrules': {'managedrulesets': [{'rulesettype': 'defaultruleset', 'rulesetversion': '1.0'}]}}}{'type': 'microsoft.network/frontdoors', 'apiversion': '2019-05-01', 'name': ""[parameters('frontdoorname')]"", 'location': 'global', 'dependson': [""[variables('wafpolicyid')]""], 'properties': {'backendpoolssettings': {'enforcecertificatenamecheck': ""[parameters('frontdoorenforcecertificatenamecheck')]"", 'sendrecvtimeoutseconds': 120}, 'enabledstate': 'enabled', 'resourcestate': 'enabled', 'backendpools': [{'name': ""[parameters('frontdoorbackendpool').name]"", 'properties': {'backends': [{'address': ""[reference(resourceid('microsoft.apimanagement/service', parameters('apimservicename'))).hostnameconfigurations[0].hostname]"", 'httpport': 80, 'httpsport': 443, 'priority': 1, 'weight': 100, 'backendhostheader': ""[reference(resourceid('microsoft.apimanagement/service', parameters('apimservicename'))).hostnameconfigurations[0].hostname]""}], 'healthprobesettings': {'id': ""[variables('frontdoorhealthprobesettingsid')]""}, 'loadbalancingsettings': {'id': ""[variables('frontdoorloadbalancerid')]""}}}], 'healthprobesettings': [{'name': ""[parameters('frontdoorhealthprobesettings').name]"", 'properties': {'intervalinseconds': ""[parameters('frontdoorhealthprobesettings').intervalinseconds]"", 'path': ""[parameters('frontdoorhealthprobesettings').path]"", 'protocol': ""[parameters('frontdoorhealthprobesettings').protocol]""}}], 'frontendendpoints': [{'name': ""[parameters('frontdoorfrontendendpoint').name]"", 'properties': {'hostname': ""[variables('frontdoorhostname')]"", 'sessionaffinityenabledstate': ""[parameters('frontdoorfrontendendpoint').sessionaffinityenabledstate]"", 'sessionaffinityttlseconds': ""[parameters('frontdoorfrontendendpoint').sessionaffinityttlseconds]"", 'resourcestate': 'enabled', 'webapplicationfirewallpolicylink': {'id': ""[if(parameters('deploywaf'), variables('wafpolicyid'), json('null'))]""}}}], 'loadbalancingsettings': [{'name': ""[parameters('frontdoorbackendpool').loadbalancername]"", 'properties': {'additionallatencymilliseconds': 0, 'samplesize': 4, 'successfulsamplesrequired': 2}}], 'routingrules': [{'name': ""[parameters('frontdoorroutingrule').name]"", 'properties': {'frontendendpoints': [{'id': ""[variables('frontdoorfrontedendpointid')]""}], 'acceptedprotocols': ""[parameters('frontdoorroutingrule').acceptedprotocols]"", 'patternstomatch': ""[parameters('frontdoorroutingrule').patternstomatch]"", 'routeconfiguration': {'@odata.type': '#microsoft.azure.frontdoor.models.frontdoorforwardingconfiguration', 'customforwardingpath': '/', 'forwardingprotocol': ""[parameters('frontdoorroutingrule').forwardingprotocol]"", 'backendpool': {'id': ""[variables('frontdoorbackendpoolid')]""}, 'cacheconfiguration': ""[parameters('frontdoorroutingrule').cacheconfiguration]""}}}], 'friendlyname': ""[parameters('frontdoorname')]""}}{'type': 'microsoft.network/frontdoors/providers/diagnosticsettings', 'name': ""[concat(parameters('frontdoorname'), '/microsoft.insights/service')]"", 'apiversion': '2016-09-01', 'location': ""[parameters('location')]"", 'dependson': [""[variables('frontdoorid')]"", ""[variables('workspaceid')]""], 'properties': {'workspaceid': ""[variables('workspaceid')]"", 'logs': [{'category': 'frontdooraccesslog', 'enabled': true, 'retentionpolicy': {'enabled': true, 'days': 0}}, {'category': 'frontdoorwebapplicationfirewalllog', 'enabled': true, 'retentionpolicy': {'enabled': true, 'days': 0}}], 'metrics': [{'category': 'allmetrics', 'timegrain': 'pt1m', 'enabled': true, 'retentionpolicy': {'enabled': false, 'days': 0}}]}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'apiversion': '2015-06-15', 'type': 'microsoft.storage/storageaccounts', 'name': ""[concat(variables('storageaccountname'),copyindex(1))]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'storageaccountscopy', 'count': ""[parameters('storageaccountcount')]""}, 'properties': {'accounttype': ""[parameters('storageaccounttype')]""}}{'apiversion': '2015-06-15', 'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('clientstorageaccountname')]"", 'location': ""[parameters('location')]"", 'properties': {'accounttype': ""[parameters('clientstorageaccounttype')]""}} END" -A template for creating a new Azure Container Registry. Use this template as the framework for your custom deployment.," {'comments': 'container registry for storing docker images', 'name': ""[parameters('acrname')]"", 'type': 'microsoft.containerregistry/registries', 'apiversion': '2019-12-01-preview', 'location': ""[parameters('location')]"", 'dependson': [""[variables('acrprivatednszoneid')]""], 'tags': {'displayname': 'container registry', 'container.registry': ""[parameters('acrname')]""}, 'sku': {'name': ""[parameters('acrsku')]"", 'tier': ""[parameters('acrsku')]""}, 'properties': {'adminuserenabled': ""[parameters('acradminuserenabled')]"", 'networkruleset': {'defaultaction': ""[parameters('acrnetworkrulesetdefaultaction')]""}, 'policies': {'quarantinepolicy': {'status': 'disabled'}, 'trustpolicy': {'type': 'notary', 'status': 'disabled'}, 'retentionpolicy': {'days': 15, 'status': 'enabled'}}, 'publicnetworkaccess': ""[parameters('acrpublicnetworkaccess')]"", 'encryption': {'status': 'disabled'}, 'dataendpointenabled': true, 'networkrulebypassoptions': 'azureservices'}, 'resources': [{'type': 'providers/roleassignments', 'apiversion': '2020-04-01-preview', 'name': ""[variables('acrpullroleassignmentname')]"", 'dependson': [""[variables('aksclusterid')]"", ""[variables('acrid')]""], 'properties': {'roledefinitionid': ""[variables('acrpullroleid')]"", 'principalid': ""[reference(variables('aksclusterid'), '2020-12-01', 'full').properties.identityprofile.kubeletidentity.objectid]"", 'principaltype': 'serviceprincipal'}}, {'type': 'providers/diagnosticsettings', 'apiversion': '2017-05-01-preview', 'name': 'microsoft.insights/default', 'dependson': [""[variables('acrid')]"", ""[variables('workspaceid')]""], 'properties': {'workspaceid': ""[variables('workspaceid')]"", 'metrics': [{'timegrain': 'pt1m', 'category': 'allmetrics', 'enabled': true}], 'logs': [{'category': 'containerregistryrepositoryevents', 'enabled': true}, {'category': 'containerregistryloginevents', 'enabled': true}]}}]} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'name': ""[parameters('vmname')]"", 'type': 'microsoft.compute/virtualmachines', 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('vmnicname'))]""], 'tags': {'displayname': 'vm01'}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('vmadminusername')]"", 'adminpassword': ""[parameters('vmadminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('vmimagepublisher')]"", 'offer': ""[variables('vmimageoffer')]"", 'sku': ""[parameters('vmvisualstudioversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('vmnicname'))]""}]}}, 'resources': [{'name': 'customscript', 'type': 'extensions', 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', parameters('vmname'))]""], 'properties': {'publisher': 'microsoft.compute', 'type': 'customscriptextension', 'typehandlerversion': '1.4', 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('installvstsagent.ps1', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': '[concat(\'powershell.exe -executionpolicy unrestricted -command ""& {\', \'./\', \'installvstsagent.ps1\', \' \', variables(\'vstsparameters\'), \'}""\')]'}}}]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': 'publicip', 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('publicdnsname')]""}}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': 'vmsqlip', 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[concat(parameters('publicdnsname'),'db')]""}}}{'apiversion': '2018-02-01', 'type': 'microsoft.network/virtualnetworks', 'name': 'vnet', 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('vnetaddressrange')]""]}, 'subnets': [{'name': 'subnet', 'properties': {'addressprefix': ""[variables('subnetaddressrange')]""}}]}}{'apiversion': '2018-02-01', 'name': 'loadbalancer', 'type': 'microsoft.network/loadbalancers', 'location': ""[parameters('location')]"", 'dependson': ['microsoft.network/publicipaddresses/publicip'], 'properties': {'frontendipconfigurations': [{'name': 'lbfe', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses','publicip')]""}}}], 'backendaddresspools': [{'name': 'lbbap'}], 'inboundnatrules': [{'name': ""[concat('ssh-vm','0')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations','loadbalancer','lbfe')]""}, 'protocol': 'tcp', 'frontendport': 2200, 'backendport': 22, 'enablefloatingip': false}}, {'name': ""[concat('ssh-vm','1')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations','loadbalancer','lbfe')]""}, 'protocol': 'tcp', 'frontendport': 2201, 'backendport': 22, 'enablefloatingip': false}}, {'name': ""[concat('ssh-vm','2')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations','loadbalancer','lbfe')]""}, 'protocol': 'tcp', 'frontendport': 2202, 'backendport': 22, 'enablefloatingip': false}}, {'name': ""[concat('ssh-vm','3')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations','loadbalancer','lbfe')]""}, 'protocol': 'tcp', 'frontendport': 2203, 'backendport': 22, 'enablefloatingip': false}}, {'name': ""[concat('ssh-vm','4')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations','loadbalancer','lbfe')]""}, 'protocol': 'tcp', 'frontendport': 2204, 'backendport': 22, 'enablefloatingip': false}}], 'loadbalancingrules': [{'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', 'loadbalancer', 'lbfe')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', 'loadbalancer', 'lbbap')]""}, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', 'loadbalancer', 'lbprobe')]""}, 'protocol': 'tcp', 'frontendport': 80, 'backendport': 80, 'idletimeoutinminutes': 15}, 'name': 'lbrule'}, {'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', 'loadbalancer', 'lbfe')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', 'loadbalancer', 'lbbap')]""}, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', 'loadbalancer', 'lbprobe')]""}, 'protocol': 'tcp', 'frontendport': 8443, 'backendport': 8443, 'idletimeoutinminutes': 15}, 'name': 'lbrule8443'}], 'probes': [{'properties': {'protocol': 'http', 'port': 8080, 'requestpath': '/', 'intervalinseconds': 15, 'numberofprobes': 2}, 'name': 'lbprobe'}]}}{'apiversion': '2018-02-01', 'type': 'microsoft.network/networksecuritygroups', 'name': 'vmsql', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'default-allow-ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1201, 'direction': 'inbound'}}, {'name': 'port_3306', 'properties': {'description': 'allow 3306', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '3306', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1010, 'direction': 'inbound'}}]}} END" -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'} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('vmdnsname')]""}}}{'comments': 'default network security group for template', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-08-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'default-allow-22', 'properties': {'priority': 1000, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}} END" -This module creates a storageAccount resource with apiVersion 2021-01-01.," {'apiversion': '2021-01-01', 'type': 'microsoft.storage/storageaccounts', 'name': ""[parameters('filestorageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs', 'tier': 'standard'}, 'kind': 'storagev2', 'properties': {'accesstier': 'hot', 'networkacls': {'defaultaction': ""[parameters('networkaclsdefaultaction')]"", 'bypass': 'azureservices'}, 'allowblobpublicaccess': ""[parameters('allowblobpublicaccess')]""}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2020-06-01', 'name': 'deploy-virus-attack-oms-resource', 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('omstemplateuri')]""}, 'parameters': {'omsworkspacename': {'value': ""[variables('omsworkspacename')]""}, 'omssolutionsname': {'value': ""[variables('omssolutions')]""}, 'sku': {'value': ""[parameters('omssku')]""}, 'location': {'value': ""[parameters('location')]""}, 'tags': {'value': ""[variables('tags')]""}}}}{'apiversion': '2020-06-01', 'name': ""[concat(parameters('vnetname'),'-','-resource')]"", 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('vnettemplateuri')]""}, 'parameters': {'vnetname': {'value': ""[parameters('vnetname')]""}, 'addressprefix': {'value': ""[parameters('vnetaddressspace')]""}, 'subnets': {'value': ""[variables('subnets')]""}, 'location': {'value': ""[parameters('location')]""}, 'tags': {'value': ""[variables('tags')]""}}}}{'apiversion': '2020-06-01', 'name': ""[concat(variables('nsgname'),'-','-resource')]"", 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nsgtemplateuri')]""}, 'parameters': {'nsgname': {'value': ""[variables('nsgname')]""}, 'securityrules': {'value': ""[variables('nsgsecurityrules')]""}, 'location': {'value': ""[parameters('location')]""}, 'tags': {'value': ""[variables('tags')]""}}}}{'apiversion': '2020-06-01', 'name': ""[concat(variables('vmnames')[copyindex()],'-pip','-resource')]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'copy-pip', 'count': 2}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('piptemplateuri')]""}, 'parameters': {'publicipaddressname': {'value': ""[concat(variables('vmnames')[copyindex()],'-pip')]""}, 'publicipaddresstype': {'value': ""[parameters('pipaddresstype')]""}, 'dnsnameforpublicip': {'value': ""[concat(variables('vmnames')[copyindex()],uniquestring(resourcegroup().id, 'pip'),'-pip')]""}, 'location': {'value': ""[parameters('location')]""}, 'tags': {'value': ""[variables('tags')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2020-08-01', 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2017-04-01', 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('longnaminginfix')]""}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2021-01-01', 'name': 'safekitcluster', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('cltemplate')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'os': {'value': ""[parameters('os')]""}, 'clusternodes': {'value': ""[variables('clusternodes')]""}, 'vmsize': {'value': ""[parameters('vmsize')]""}, 'adminuser': {'value': ""[parameters('adminuser')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'moduleurl': {'value': ""[variables('farmurl')[variables('ostype')]]""}, 'modulename': {'value': ""[variables('modulename')]""}, 'vipdnslabel': {'value': ""[parameters('vipdnslabel')]""}, 'vmdnsprefix': {'value': ""[parameters('vmdnsprefix')]""}, 'loadbalancer': {'value': 'external'}, 'location': {'value': ""[parameters('location')]""}, 'safekitfileuri': {'value': ""[if(equals(parameters('safekitfileuri'),'default'),variables('safekitpkgurl')[variables('ostype')],parameters('safekitfileuri'))]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2018-05-01', 'name': 'safekitmoduleconfig', 'dependson': ['safekitcluster'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('skcfgmoduletemplate')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vmname': {'value': ""[variables('vmname')]""}, 'ostype': {'value': ""[variables('ostype')]""}, 'modulename': {'value': ""[variables('modulename')]""}, 'location': {'value': ""[parameters('location')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}} END" -"This template creates an Azure Cosmos DB account for MongoDB API (3.2, 3.6 and 4.0) in two regions using shared database throughput with two collections."," {'type': 'microsoft.documentdb/databaseaccounts', 'apiversion': '2021-04-15', 'name': ""[variables('accountname_var')]"", 'location': ""[parameters('location')]"", 'kind': 'mongodb', 'properties': {'consistencypolicy': ""[variables('consistencypolicy')[parameters('defaultconsistencylevel')]]"", 'locations': ""[variables('locations')]"", 'databaseaccountoffertype': 'standard', 'apiproperties': {'serverversion': ""[parameters('serverversion')]""}}}{'type': 'microsoft.documentdb/databaseaccounts/mongodbdatabases', 'apiversion': '2021-04-15', 'name': ""[format('{0}/{1}', variables('accountname_var'), parameters('databasename'))]"", 'properties': {'resource': {'id': ""[parameters('databasename')]""}, 'options': {'throughput': ""[parameters('throughput')]""}}, 'dependson': [""[resourceid('microsoft.documentdb/databaseaccounts', variables('accountname_var'))]""]}{'type': 'microsoft.documentdb/databaseaccounts/mongodbdatabases/collections', 'apiversion': '2021-04-15', 'name': ""[format('{0}/{1}', format('{0}/{1}', variables('accountname_var'), parameters('databasename')), parameters('collection1name'))]"", 'properties': {'resource': {'id': ""[parameters('collection1name')]"", 'shardkey': {'user_id': 'hash'}, 'indexes': [{'key': {'keys': ['_id']}}, {'key': {'keys': ['$**']}}, {'key': {'keys': ['user_id', 'user_address']}, 'options': {'unique': true}}, {'key': {'keys': ['_ts']}, 'options': {'expireafterseconds': 2629746}}], 'options': {'if-match': ''}}}, 'dependson': [""[resourceid('microsoft.documentdb/databaseaccounts/mongodbdatabases', split(format('{0}/{1}', variables('accountname_var'), parameters('databasename')), '/')[0], split(format('{0}/{1}', variables('accountname_var'), parameters('databasename')), '/')[1])]""]}{'type': 'microsoft.documentdb/databaseaccounts/mongodbdatabases/collections', 'apiversion': '2021-04-15', 'name': ""[format('{0}/{1}', format('{0}/{1}', variables('accountname_var'), parameters('databasename')), parameters('collection2name'))]"", 'properties': {'resource': {'id': ""[parameters('collection2name')]"", 'shardkey': {'company_id': 'hash'}, 'indexes': [{'key': {'keys': ['_id']}}, {'key': {'keys': ['$**']}}, {'key': {'keys': ['company_id', 'company_address']}, 'options': {'unique': true}}, {'key': {'keys': ['_ts']}, 'options': {'expireafterseconds': 2629746}}], 'options': {'if-match': ''}}}, 'dependson': [""[resourceid('microsoft.documentdb/databaseaccounts/mongodbdatabases', split(format('{0}/{1}', variables('accountname_var'), parameters('databasename')), '/')[0], split(format('{0}/{1}', variables('accountname_var'), parameters('databasename')), '/')[1])]""]} END" -This template grants applicable role based access to an multiple existing VMs in a existing Resource Group," {'scope': ""[concat('microsoft.compute/virtualmachines/', parameters('virtualmachinename1'))]"", 'type': 'microsoft.authorization/roleassignments', 'apiversion': '2020-04-01-preview', 'name': ""[variables('roleassignmentname1')]"", 'properties': {'roledefinitionid': ""[variables('role')[parameters('builtinroletype')]]"", 'principalid': ""[parameters('principalid')]""}}{'scope': ""[concat('microsoft.compute/virtualmachines/', parameters('virtualmachinename2'))]"", 'type': 'microsoft.authorization/roleassignments', 'apiversion': '2020-04-01-preview', 'name': ""[variables('roleassignmentname2')]"", 'properties': {'roledefinitionid': ""[variables('role')[parameters('builtinroletype')]]"", 'principalid': ""[parameters('principalid')]""}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'shared', 'type': 'microsoft.resources/deployments', 'apiversion': '2019-07-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('sharedtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'networksettings': {'value': ""[variables('networksettings')]""}, 'namespace': {'value': ""[variables('namespace')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'name': ""[concat('configsecondarynode', copyindex(1))]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2019-07-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared')]""], 'copy': {'name': 'secondaryconfigcopy', 'count': 2, 'mode': 'serial', 'batchsize': 1}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('configtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adminusername': {'value': ""[parameters('adminusername')]""}, 'mongoadminusername': {'value': ""[parameters('mongoadminusername')]""}, 'mongoadminpassword': {'value': ""[parameters('mongoadminpassword')]""}, 'namespace': {'value': ""[variables('namespace')]""}, 'vmbasename': {'value': ""[concat('configsecondary', copyindex(1))]""}, 'subnet': {'value': ""[variables('networksettings').subnet.dse]""}, 'vmsize': {'value': ""[parameters('confignodevmsize')]""}, 'sizeofdatadiskingb': {'value': ""[parameters('sizeofdatadiskingb')]""}, 'numdatadisks': {'value': ""[parameters('numdatadisks')]""}, 'staticip': {'value': ""[variables('networksettings').statics[concat('configsecondaryip', copyindex(1))]]""}, 'ossettings': {'value': ""[variables('configsecondaryossettings')]""}, 'authenticationtype': {'value': ""[parameters('authenticationtype')]""}, 'adminpasswordorkey': {'value': ""[parameters('adminpasswordorkey')]""}, 'location': {'value': ""[parameters('location')]""}, 'routerdnsnameprefix': {'value': ""[parameters('dnsnameprefix')]""}, 'roletype': {'value': 'secondary'}, 'mongosslcertpassword': {'value': ""[parameters('mongosslcertpassword')]""}}}}{'name': 'configprimarynode', 'type': 'microsoft.resources/deployments', 'apiversion': '2019-07-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared')]"", 'secondaryconfigcopy'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('configtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adminusername': {'value': ""[parameters('adminusername')]""}, 'mongoadminusername': {'value': ""[parameters('mongoadminusername')]""}, 'mongoadminpassword': {'value': ""[parameters('mongoadminpassword')]""}, 'namespace': {'value': ""[variables('namespace')]""}, 'vmbasename': {'value': 'configprimary'}, 'sizeofdatadiskingb': {'value': ""[parameters('sizeofdatadiskingb')]""}, 'numdatadisks': {'value': ""[parameters('numdatadisks')]""}, 'subnet': {'value': ""[variables('networksettings').subnet.dse]""}, 'staticip': {'value': ""[variables('networksettings').statics.configprimaryip]""}, 'vmsize': {'value': ""[parameters('confignodevmsize')]""}, 'ossettings': {'value': ""[variables('configprimaryossettings')]""}, 'authenticationtype': {'value': ""[parameters('authenticationtype')]""}, 'adminpasswordorkey': {'value': ""[parameters('adminpasswordorkey')]""}, 'location': {'value': ""[parameters('location')]""}, 'routerdnsnameprefix': {'value': ""[parameters('dnsnameprefix')]""}, 'roletype': {'value': 'primary'}, 'mongosslcertpassword': {'value': ""[parameters('mongosslcertpassword')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2019-06-01', 'name': ""[variables('vnet_name')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups',variables('pub_sub_nw_sg'))]"", ""[resourceid('microsoft.network/networksecuritygroups',variables('pvt_sub_nw_sg'))]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddresscidr')]""]}, 'subnets': [{'name': ""[variables('vnet_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('sasprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_viya_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('viyaprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_pub_subnt')]"", 'properties': {'addressprefix': ""[parameters('ansiblebastionpublicsubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pub_sub_nw_sg'))]""}}}], 'enableddosprotection': false, 'enablevmprotection': false}} END" -Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage," {'type': 'microsoft.sqlvirtualmachine/sqlvirtualmachinegroups/availabilitygrouplisteners', 'name': ""[concat(parameters('existingfailoverclustername'), '/', parameters('listener'))]"", 'apiversion': '2017-03-01-preview', 'location': ""[parameters('location')]"", 'properties': {'availabilitygroupname': ""[parameters('existingsqlavailabilitygroup')]"", 'loadbalancerconfigurations': [{'privateipaddress': {'ipaddress': ""[parameters('listenerip')]"", 'subnetresourceid': ""[variables('subnetresourceid')]""}, 'loadbalancerresourceid': ""[variables('loadbalancerresourceid')]"", 'probeport': ""[parameters('probeport')]"", 'sqlvirtualmachineinstances': ""[variables('sqlvmresourceidlist')]""}], 'port': ""[parameters('listenerport')]""}} END" -This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-08-01', 'name': ""[variables('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage'} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-06-01', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'plan': ""[if(equals(parameters('rheloslicensetype'),'payg'), json('null'), variables('plan'))]"", 'dependson': [""[variables('nicname')]"", ""[variables('bootstorageaccountname')]""], 'tags': {'quickstartname': 'jboss eap on rhel (stand-alone vm)'}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorsshkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}, 'imagereference': ""[variables('imagereference')]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('bootstorageaccountname'), '2021-01-01').primaryendpoints['blob']]""}}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'apiversion': '2020-06-01', 'name': ""[concat(variables('vmname'),'/jbosseap-setup-extension')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmname')]""], 'tags': {'quickstartname': 'jboss eap on rhel (stand-alone vm)'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/jbosseap-setup-redhat.sh', parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[format('sh jbosseap-setup-redhat.sh {0} {1} ''{2}'' {3} ''{4}'' {5} {6} {7} {8}', variables('scriptargs'), parameters('jbosseapusername'), parameters('jbosseappassword'), parameters('rhsmusername'), parameters('rhsmpassword'), parameters('rheloslicensetype'), parameters('rhsmpooleap'), parameters('eaponrhelversion'), parameters('rhsmpoolrhel'))]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnsnameprefix')]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'shared-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('sharedtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'commonsettings': {'value': ""[variables('commonsettings')]""}, 'storagesettings': {'value': ""[variables('storagesettings')]""}, 'networksettings': {'value': ""[variables('networksettings')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'condition': ""[equals(parameters('jumpbox'), 'enabled')]"", 'name': 'jumpbox-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('jumpboxtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'storagesettings': {'value': {'vhdstorageaccountname': ""[concat(variables('storagesettings').vhdstorageaccountname, '0')]"", 'vhdcontainername': ""[variables('storagesettings').vhdcontainername]"", 'vmseries': ""[parameters('vmseries')]"", 'destinationvhdscontainer': ""[concat('https://', variables('storagesettings').vhdstorageaccountname, '0', environment().suffixes.storage, '/', variables('storagesettings').vhdcontainername, '/')]""}}, 'networksettings': {'value': ""[variables('networksettings')]""}, 'machinesettings': {'value': ""[variables('machinesettings')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'condition': ""[equals(parameters('jumpbox'), 'disabled')]"", 'name': 'empty-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('emptyresourcestemplateurl')]"", 'contentversion': '1.0.0.0'}}}{'type': 'microsoft.resources/deployments', 'name': ""[concat('member-resources', copyindex())]"", 'apiversion': '2020-06-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]""], 'copy': {'name': 'membernodesloop', 'count': ""[variables('clusterspec').numberofmembers]""}, '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]"", 'adminpassword': ""[variables('machinesettings').adminpassword]"", 'machinenameprefix': ""[variables('machinesettings').machinenameprefix]"", 'osimagereference': ""[variables('machinesettings').osimagereference]"", 'vmsize': ""[variables('clusterspec').vmsizemember]"", 'datadisksize': ""[variables('clusterspec').datadisksize]"", 'machineindex': '[copyindex()]', 'vmscripts': ""[variables('vmscripts').scriptstodownload]"", 'commandtoexecute': ""[variables('vmscripts').regularnodeinstallcommand]""}}, 'location': {'value': ""[parameters('location')]""}}}}{'type': 'microsoft.resources/deployments', 'name': 'lastmember-resources', 'apiversion': '2020-06-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]"", 'adminpassword': ""[variables('machinesettings').adminpassword]"", 'machinenameprefix': ""[variables('machinesettings').machinenameprefix]"", 'osimagereference': ""[variables('machinesettings').osimagereference]"", 'vmsize': ""[variables('clusterspec').vmsizemember]"", 'datadisksize': ""[variables('clusterspec').datadisksize]"", 'machineindex': ""[variables('clusterspec').numberofmembers]"", 'vmscripts': ""[variables('vmscripts').scriptstodownload]"", 'commandtoexecute': ""[variables('vmscripts').lastnodeinstallcommand]""}}, 'location': {'value': ""[parameters('location')]""}}}}{'name': 'arbiter-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'lastmember-resources')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('arbitertemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'networksettings': {'value': ""[variables('networksettings')]""}, 'machinesettings': {'value': {'adminusername': ""[variables('machinesettings').adminusername]"", 'adminpassword': ""[variables('machinesettings').adminpassword]"", 'machinenameprefix': ""[variables('machinesettings').machinenameprefix]"", 'osimagereference': ""[variables('machinesettings').osimagereference]"", 'vmsize': ""[variables('clusterspec').vmsizearbiter]"", 'vmscripts': ""[variables('vmscripts').scriptstodownload]"", 'commandtoexecute': ""[concat(variables('vmscripts').arbiternodeinstallcommand)]""}}, 'location': {'value': ""[parameters('location')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipaddresses', 'apiversion': '2019-11-01', 'name': ""[concat('labvm-pip-',copyindex(1))]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'vmpipcopy', 'count': ""[parameters('vmcount')]""}, 'tags': {'displayname': 'publicipaddress'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[tolower(concat(parameters('dns-prefix'),'-',copyindex(1)))]""}}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-04-01', 'name': 'labvm-nsg', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'nsgrule1', 'properties': {'description': 'description', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}]}}{'type': 'microsoft.network/virtualnetworks', 'apiversion': '2019-11-01', 'name': 'labvm-vnet', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', 'labvm-nsg')]""], 'tags': {'displayname': 'labvm-vnet'}, 'properties': {'addressspace': {'addressprefixes': ['30.0.0.0/16']}, 'subnets': [{'name': 'labvm-subnet', 'properties': {'addressprefix': '30.0.0.0/24', 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', 'labvm-nsg')]""}}}]}} END" -This template creates a data collection rule defining the data source (Syslog) and the destination workspace.," {'type': 'microsoft.insights/components', 'apiversion': '2018-05-01-preview', 'name': ""[parameters('applicationinsightsname')]"", 'location': ""[if(equals(parameters('location'),'westcentralus'),'southcentralus', parameters('location'))]"", 'kind': 'web', 'properties': {'application_type': 'web'}} END" -Create a Site-to-Site VPN Connection to any on premises or other cloud networks such as AWS Virtual Private Cloud," {'apiversion': '2020-08-01', 'type': 'microsoft.network/localnetworkgateways', 'name': ""[parameters('localgatewayname')]"", 'location': ""[parameters('location')]"", 'properties': {'localnetworkaddressspace': {'addressprefixes': [""[parameters('localaddressprefix')]""]}, 'gatewayipaddress': ""[parameters('localgatewayipaddress')]""}}{'apiversion': '2020-11-01', 'name': ""[parameters('connectionname')]"", 'type': 'microsoft.network/connections', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworkgateways', parameters('gatewayname'))]"", ""[resourceid('microsoft.network/localnetworkgateways', parameters('localgatewayname'))]""], 'properties': {'virtualnetworkgateway1': {'id': ""[resourceid('microsoft.network/virtualnetworkgateways', parameters('gatewayname'))]""}, 'localnetworkgateway2': {'id': ""[resourceid('microsoft.network/localnetworkgateways', parameters('localgatewayname'))]""}, 'connectiontype': 'ipsec', 'routingweight': 10, 'sharedkey': ""[parameters('sharedkey')]""}}{'comments': 'default network security group for template', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-08-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'default-allow-22', 'properties': {'priority': 1000, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('azurevnetaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}, {'name': 'gatewaysubnet', 'properties': {'addressprefix': ""[parameters('gatewaysubnetprefix')]""}}]}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[parameters('gatewaypublicipname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('vmpublicipname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/virtualnetworkgateways', 'name': ""[parameters('gatewayname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', parameters('gatewaypublicipname'))]"", ""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""], 'properties': {'ipconfigurations': [{'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('gatewaysubnetref')]""}, 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', parameters('gatewaypublicipname'))]""}}, 'name': 'vnetgatewayconfig'}], 'sku': {'name': ""[parameters('gatewaysku')]"", 'tier': ""[parameters('gatewaysku')]""}, 'gatewaytype': 'vpn', 'vpntype': ""[parameters('vpntype')]"", 'enablebgp': 'false'}}{'apiversion': '2020-08-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('vmpublicipname'))]"", ""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/virtualnetworkgateways', parameters('gatewayname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('vmpublicipname'))]""}, 'subnet': {'id': ""[variables('subnetref')]""}}}]}} END" -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'}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-04-01', 'location': ""[variables('location')]"", 'name': ""[variables('agentipaddressname')]"", 'properties': {'dnssettings': {'domainnamelabel': ""[variables('agentendpointdnsnameprefix')]""}, 'publicipallocationmethod': 'dynamic'}}{'apiversion': '2020-04-01', 'type': 'microsoft.network/loadbalancers', 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('agentipaddressname'))]""], 'location': ""[variables('location')]"", 'name': ""[variables('agentlbname')]"", 'properties': {'backendaddresspools': [{'name': ""[variables('agentlbbackendpoolname')]""}], 'frontendipconfigurations': [{'name': ""[variables('agentlbipconfigname')]"", 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('agentipaddressname'))]""}}}], 'loadbalancingrules': [{'name': 'lbrule80', 'properties': {'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools/', variables('agentlbname'), variables('agentlbbackendpoolname'))]""}, 'backendport': 80, 'enablefloatingip': false, 'frontendipconfiguration': {'id': ""[variables('agentlbipconfigid')]""}, 'frontendport': 80, 'idletimeoutinminutes': 5, 'loaddistribution': 'default', 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', variables('agentlbname'), 'tcp80probe')]""}, 'protocol': 'tcp'}}, {'name': 'lbrule443', 'properties': {'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('agentlbname'), variables('agentlbbackendpoolname'))]""}, 'backendport': 443, 'enablefloatingip': false, 'frontendipconfiguration': {'id': ""[variables('agentlbipconfigid')]""}, 'frontendport': 443, 'idletimeoutinminutes': 5, 'loaddistribution': 'default', 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', variables('agentlbname'), 'tcp443probe')]""}, 'protocol': 'tcp'}}, {'name': 'lbrule8080', 'properties': {'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('agentlbname'), variables('agentlbbackendpoolname'))]""}, 'backendport': 8080, 'enablefloatingip': false, 'frontendipconfiguration': {'id': ""[variables('agentlbipconfigid')]""}, 'frontendport': 8080, 'idletimeoutinminutes': 5, 'loaddistribution': 'default', 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', variables('agentlbname'), 'tcp8080probe')]""}, 'protocol': 'tcp'}}], 'probes': [{'name': 'tcp80probe', 'properties': {'intervalinseconds': 5, 'numberofprobes': 2, 'port': 80, 'protocol': 'tcp'}}, {'name': 'tcp443probe', 'properties': {'intervalinseconds': 5, 'numberofprobes': 2, 'port': 443, 'protocol': 'tcp'}}, {'name': 'tcp8080probe', 'properties': {'intervalinseconds': 5, 'numberofprobes': 2, 'port': 8080, 'protocol': 'tcp'}}]}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[parameters('newstorageaccountname')]"", 'apiversion': '2019-06-01', 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storagev2'} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'createvnet', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('vnettemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'virtualnetworkname': {'value': ""[parameters('virtualnetworkname')]""}, 'virtualnetworkaddressrange': {'value': ""[parameters('virtualnetworkaddressrange')]""}, 'subnetname': {'value': ""[parameters('adsubnetname')]""}, 'subnetrange': {'value': ""[parameters('adsubnet')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'name': 'createadvm1', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': [""[resourceid('microsoft.resources/deployments','createvnet')]"", ""[resourceid('microsoft.compute/availabilitysets', variables('adavailabilitysetnameroot'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('firstvmtemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'virtualnetworkname': {'value': ""[parameters('virtualnetworkname')]""}, 'subnetname': {'value': ""[parameters('adsubnetname')]""}, 'adavailabilitysetname': {'value': ""[variables('adavailabilitysetnameroot')]""}, 'vmname': {'value': ""[parameters('rootdc1name')]""}, 'vmipaddress': {'value': ""[parameters('rootdc1ipaddress')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'vmsize': {'value': ""[parameters('vmsize')]""}, 'disktype': {'value': ""[parameters('disktype')]""}, 'imagesku': {'value': ""[parameters('imagesku')]""}, 'location': {'value': ""[parameters('location')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'name': 'createforest', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': ['microsoft.resources/deployments/createadvm1'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('createforesttemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vmname': {'value': ""[parameters('rootdc1name')]""}, 'location': {'value': ""[parameters('location')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'domainname': {'value': ""[parameters('domainname')]""}, 'dnsforwarder': {'value': ""[parameters('externaldnsforwarder')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'name': 'createadvm3', 'type': 'microsoft.resources/deployments', 'condition': ""[parameters('createchilddomain')]"", 'apiversion': '2020-06-01', 'dependson': [""[resourceid('microsoft.resources/deployments','createvnet')]"", ""[resourceid('microsoft.compute/availabilitysets', variables('adavailabilitysetnamechild'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('firstvmtemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'virtualnetworkname': {'value': ""[parameters('virtualnetworkname')]""}, 'subnetname': {'value': ""[parameters('adsubnetname')]""}, 'adavailabilitysetname': {'value': ""[variables('adavailabilitysetnamechild')]""}, 'vmname': {'value': ""[parameters('childdc3name')]""}, 'vmipaddress': {'value': ""[parameters('childdc3ipaddress')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'vmsize': {'value': ""[parameters('vmsize')]""}, 'disktype': {'value': ""[parameters('disktype')]""}, 'imagesku': {'value': ""[parameters('imagesku')]""}, 'location': {'value': ""[parameters('location')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'name': 'createchilddomain', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'condition': ""[parameters('createchilddomain')]"", 'dependson': ['microsoft.resources/deployments/createadvm3', 'microsoft.resources/deployments/createforest'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('createchilddomaintemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vmname': {'value': ""[parameters('childdc3name')]""}, 'location': {'value': ""[parameters('location')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'parentdomainname': {'value': ""[parameters('domainname')]""}, 'childdomainname': {'value': ""[parameters('childdomainname')]""}, 'dnsforwarder': {'value': ""[parameters('rootdc1ipaddress')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'name': 'createadvm2', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'condition': ""[parameters('createseconddc')]"", 'dependson': [""[resourceid('microsoft.resources/deployments','createvnet')]"", ""[resourceid('microsoft.compute/availabilitysets', variables('adavailabilitysetnameroot'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nextvmtemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'virtualnetworkname': {'value': ""[parameters('virtualnetworkname')]""}, 'subnetname': {'value': ""[parameters('adsubnetname')]""}, 'adavailabilitysetname': {'value': ""[variables('adavailabilitysetnameroot')]""}, 'vmname': {'value': ""[parameters('rootdc2name')]""}, 'vmipaddress': {'value': ""[parameters('rootdc2ipaddress')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'vmsize': {'value': ""[parameters('vmsize')]""}, 'disktype': {'value': ""[parameters('disktype')]""}, 'imagesku': {'value': ""[parameters('imagesku')]""}, 'location': {'value': ""[parameters('location')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'name': 'configuringrootdc2', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'condition': ""[parameters('createseconddc')]"", 'dependson': ['microsoft.resources/deployments/createadvm2', 'microsoft.resources/deployments/createchilddomain'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('configureadnextdctemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adnextdcvmname': {'value': ""[parameters('rootdc2name')]""}, 'location': {'value': ""[parameters('location')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'domainname': {'value': ""[parameters('domainname')]""}, 'dnsserver': {'value': ""[parameters('rootdc1ipaddress')]""}, 'adnextdcconfigurationfunction': {'value': ""[variables('nextdcconfigurationfunction')]""}, 'adnextdcconfigurationmodulesurl': {'value': ""[variables('nextdcconfigurationmodulesurl')]""}}}}{'name': 'createadvm4', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'condition': ""[and(parameters('createseconddc'), parameters('createchilddomain'))]"", 'dependson': [""[resourceid('microsoft.resources/deployments','createvnet')]"", ""[resourceid('microsoft.compute/availabilitysets', variables('adavailabilitysetnamechild'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nextvmtemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'virtualnetworkname': {'value': ""[parameters('virtualnetworkname')]""}, 'subnetname': {'value': ""[parameters('adsubnetname')]""}, 'adavailabilitysetname': {'value': ""[variables('adavailabilitysetnamechild')]""}, 'vmname': {'value': ""[parameters('childdc4name')]""}, 'vmipaddress': {'value': ""[parameters('childdc4ipaddress')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'vmsize': {'value': ""[parameters('vmsize')]""}, 'disktype': {'value': ""[parameters('disktype')]""}, 'imagesku': {'value': ""[parameters('imagesku')]""}, 'location': {'value': ""[parameters('location')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'name': 'configuringchilddc4', 'type': 'microsoft.resources/deployments', 'condition': ""[and(parameters('createseconddc'), parameters('createchilddomain'))]"", 'apiversion': '2020-06-01', 'dependson': ['microsoft.resources/deployments/createadvm4', 'microsoft.resources/deployments/createchilddomain'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('configureadnextdctemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adnextdcvmname': {'value': ""[parameters('childdc4name')]""}, 'location': {'value': ""[parameters('location')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'domainname': {'value': ""[concat(parameters('childdomainname'), '.', parameters('domainname'))]""}, 'dnsserver': {'value': ""[parameters('childdc3ipaddress')]""}, 'adnextdcconfigurationfunction': {'value': ""[variables('nextdcconfigurationfunction')]""}, 'adnextdcconfigurationmodulesurl': {'value': ""[variables('nextdcconfigurationmodulesurl')]""}}}}{'name': 'updatevnet', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': ['microsoft.resources/deployments/createchilddomain'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('vnetwithdnstemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'virtualnetworkname': {'value': ""[parameters('virtualnetworkname')]""}, 'virtualnetworkaddressrange': {'value': ""[parameters('virtualnetworkaddressrange')]""}, 'subnetname': {'value': ""[parameters('adsubnetname')]""}, 'subnetrange': {'value': ""[parameters('adsubnet')]""}, 'nsgname': {'value': ""[variables('adnsgname')]""}, 'dnsserveraddress': {'value': [""[parameters('rootdc1ipaddress')]"", ""[parameters('rootdc2ipaddress')]""]}, 'location': {'value': ""[parameters('location')]""}}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachinescalesets', 'name': ""[variables('naminginfix')]"", 'location': ""[parameters('location')]"", 'apiversion': '2017-03-30', 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/applicationgateways/', variables('appgwname'))]""], 'sku': {'name': ""[parameters('vmsku')]"", 'tier': 'standard', 'capacity': ""[parameters('instancecount')]""}, 'properties': {'overprovision': 'true', 'singleplacementgroup': 'false', 'upgradepolicy': {'mode': 'automatic'}, 'virtualmachineprofile': {'storageprofile': {'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}, 'imagereference': ""[variables('imagereference')]""}, 'osprofile': {'computernameprefix': ""[variables('naminginfix')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'networkprofile': {'networkinterfaceconfigurations': [{'name': ""[variables('nicname')]"", 'properties': {'primary': true, 'ipconfigurations': [{'name': ""[variables('ipconfigname')]"", 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets/', variables('virtualnetworkname'), variables('subnetname'))]""}, 'applicationgatewaybackendaddresspools': [{'id': ""[resourceid('microsoft.network/applicationgateways/backendaddresspools/', variables('appgwname'), variables('appgwbepoolname'))]""}]}}]}}]}}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[concat('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[concat('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[variables('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'customdata': ""[base64(variables('publicipaddressname'))]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2019-08-01', 'type': 'microsoft.network/publicipaddresses', 'name': 'publicip', 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('publicdnsname')]""}}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/publicipaddresses', 'name': 'vmsqlip', 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}}{'comments': 'simple network security group for subnet [subnet]', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-08-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/virtualnetworks', 'name': 'vnet', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('vnetaddressrange')]""]}, 'subnets': [{'name': 'subnet', 'properties': {'addressprefix': ""[variables('subnetaddressrange')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}}{'apiversion': '2018-10-01', 'name': 'loadbalancer', 'type': 'microsoft.network/loadbalancers', 'location': ""[parameters('location')]"", 'dependson': ['publicip'], 'properties': {'frontendipconfigurations': [{'name': 'lbfe', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses','publicip')]""}}}], 'backendaddresspools': [{'name': 'lbbap'}], 'inboundnatrules': [{'name': ""[concat('rdp','0')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations','loadbalancer','lbfe')]""}, 'protocol': 'tcp', 'frontendport': 6001, 'backendport': 22, 'enablefloatingip': false}}, {'name': ""[concat('rdp','1')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations','loadbalancer', 'lbfe')]""}, 'protocol': 'tcp', 'frontendport': 6002, 'backendport': 22, 'enablefloatingip': false}}], 'loadbalancingrules': [{'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', 'loadbalancer', 'lbfe')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', 'loadbalancer', 'lbbap')]""}, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', 'loadbalancer', 'lbprobe')]""}, 'protocol': 'tcp', 'frontendport': 80, 'backendport': 80, 'idletimeoutinminutes': 15}, 'name': 'lbrule'}], 'probes': [{'properties': {'protocol': 'tcp', 'port': 80, 'intervalinseconds': 15, 'numberofprobes': 2}, 'name': 'lbprobe'}]}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/networksecuritygroups', 'name': 'vmsql', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'default-allow-rdp', 'properties': {'description': 'allow rdp', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}]}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('vmname'),copyindex())]"", 'copy': {'name': 'netintloop', 'count': ""[variables('numberofinstances')]""}, 'location': ""[parameters('location')]"", 'dependson': ['vnet', 'loadbalancer'], 'properties': {'ipconfigurations': [{'name': 'ipconfig', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('subnet-id')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools','loadbalancer','lbbap')]""}], 'loadbalancerinboundnatrules': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatrules','loadbalancer', concat('rdp', copyindex()))]""}]}}]}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2019-12-01', 'type': 'microsoft.compute/proximityplacementgroups', 'name': ""[variables('ppg_name')]"", 'location': ""[parameters('location')]""}{'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-07-01', 'name': ""[variables('ansible_vm_name')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('ansible_nw_interface'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('diagnostic_storagegroup_name'))]"", ""[resourceid('microsoft.keyvault/vaults',variables('key_vault_name'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('ansiblevmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'redhat', 'offer': 'rhel', 'sku': '7.7', 'version': 'latest'}, 'osdisk': {'ostype': 'linux', 'name': ""[concat(variables('ansible_vm_name'),'-osdisk')]"", 'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': 'premium_lrs'}, 'disksizegb': 64}, 'datadisks': [{'name': ""[concat(variables('ansible_vm_name'),'-playbook')]"", 'disksizegb': 50, 'lun': 0, 'createoption': 'empty'}]}, 'osprofile': {'computername': ""[variables('ansible_vm_name')]"", 'adminusername': ""[parameters('primaryusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[concat('/home/', parameters('primaryusername'), '/.ssh/authorized_keys')]"", 'keydata': ""[parameters('sshpublickey')]""}]}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('ansible_nw_interface'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('diagnostic_storagegroup_name')).primaryendpoints.blob]""}}, 'proximityplacementgroup': {'id': ""[resourceid('microsoft.compute/proximityplacementgroups',variables('ppg_name'))]""}}} END" -"Create a Data Factory account, Provision SSIS runtime in Azure."," {'name': ""[parameters('datafactoryname')]"", 'apiversion': '2018-06-01', 'type': 'microsoft.datafactory/factories', 'location': ""[parameters('location')]"", 'properties': {}, 'resources': [{'name': ""[concat(parameters('datafactoryname'), '/spazuressisir')]"", 'type': 'microsoft.datafactory/factories/integrationruntimes', 'dependson': [""[parameters('datafactoryname')]""], 'apiversion': '2018-06-01', 'properties': {'type': 'managed', 'typeproperties': {'computeproperties': {'location': ""[parameters('location')]"", 'nodesize': ""[parameters('nodesize')]"", 'numberofnodes': ""[parameters('nodenumber')]"", 'maxparallelexecutionspernode': ""[parameters('maximumparallelexecutionspernode')]"", 'vnetproperties': {'vnetid': ""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]"", 'subnet': ""[parameters('subnetname')]""}}, 'ssisproperties': {'cataloginfo': {'catalogserverendpoint': ""[parameters('azuresqlservername')]"", 'catalogadminusername': ""[parameters('databaseadminusername')]"", 'catalogadminpassword': {'type': 'securestring', 'value': ""[parameters('databaseadminpassword')]""}, 'catalogpricingtier': ""[parameters('catalogpricingtier')]""}}}}}]} END" -Create a VM from a EfficientIP VHD and connect it to an existing virtual network," {'type': 'microsoft.compute/disks', 'apiversion': '2017-03-30', 'name': ""[concat(parameters('vmname'), '_osdisk')]"", 'location': ""[parameters('location')]"", 'properties': {'creationdata': {'createoption': 'import', 'sourceuri': ""[parameters('osdiskvhduri')]""}, 'ostype': ""[parameters('ostype')]""}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('vmname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'virtualmachine'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]"", ""[resourceid('microsoft.compute/disks', concat(parameters('vmname'), '_osdisk'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'storageprofile': {'osdisk': {'ostype': ""[parameters('ostype')]"", 'caching': 'readwrite', 'manageddisk': {'id': ""[resourceid('microsoft.compute/disks', concat(parameters('vmname'), '_osdisk'))]""}, 'createoption': 'attach', 'disksizegb': ""[parameters('vmdisksizegb')]""}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts', variables('diagstorageaccountname')), '2020-08-01-preview').primaryendpoints.blob]""}}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'properties': {'platformupdatedomaincount': 1, 'platformfaultdomaincount': 1}, 'sku': {'name': 'aligned'}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('mastername'), copyindex())]"", 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'copy': {'name': 'mastervmloop', 'count': 3}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', concat(variables('nicname'), copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/', variables('availabilitysetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('mastersize')]""}, 'osprofile': {'computername': ""[concat('master-vm', copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': ""[variables('storageaccounttype')]""}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('nicname'), copyindex()))]""}]}}, 'resources': [{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('mastername'), copyindex(), '/installelasticsearch')]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', concat(variables('mastername'), copyindex()))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('elasticsetupscripturl')]"", ""[parameters('disksetupscripturl')]""], 'commandtoexecute': ""[concat('bash install-elasticsearch.sh -m -n ', parameters('clustername'))]""}}}]} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'name': 'deploy-sql-injection-attack-oms-resource', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('omstemplateuri')]""}, 'parameters': {'omsworkspacename': {'value': ""[variables('omsworkspacename')]""}, 'omssolutionsname': {'value': ""[variables('omssolutions')]""}, 'sku': {'value': ""[parameters('omssku')]""}, 'location': {'value': ""[parameters('location')]""}, 'tags': {'value': ""[variables('tags')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'name': ""[concat(variables('vnetname'),'-resource')]"", 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('vnettemplateuri')]""}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'addressprefix': {'value': ""[variables('vnetaddressspace')]""}, 'subnets': {'value': ""[variables('subnets')]""}, 'location': {'value': ""[parameters('location')]""}, 'tags': {'value': ""[variables('tags')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'name': ""[concat(variables('applicationgateways')[copyindex()].name,'-pip','-resource')]"", 'copy': {'name': 'copy-appgateway-pip', 'count': 2}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('piptemplateuri')]""}, 'parameters': {'publicipaddressname': {'value': ""[concat(variables('applicationgateways')[copyindex()].name,'-pip')]""}, 'publicipaddresstype': {'value': ""[parameters('pipaddresstype')]""}, 'dnsnameforpublicip': {'value': ""[concat(variables('applicationgateways')[copyindex()].name,'-',uniquestring(resourcegroup().id, 'pip'),'-pip')]""}, 'location': {'value': ""[parameters('location')]""}, 'tags': {'value': ""[variables('tags')]""}}}}{'apiversion': '2020-06-01', 'name': ""[concat('deploy-',variables('applicationgateways')[copyindex()].name,'-applicationgateway')]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'copy-appgateway', 'count': 2}, 'dependson': ['copy-appgateway-pip', ""[resourceid('microsoft.resources/deployments',concat(variables('vnetname'),'-resource'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('appgwtemplateuri')]""}, 'parameters': {'applicationgatewayname': {'value': ""[variables('applicationgateways')[copyindex()].name]""}, 'publicipref': {'value': ""[reference(resourceid('microsoft.resources/deployments', concat(variables('applicationgateways')[copyindex()].name,'-pip','-resource'))).outputs.publicipref.value]""}, 'location': {'value': ""[parameters('location')]""}, 'frontendports': {'value': [{'name': 'appgatewayfrontendport', 'properties': {'port': 80}}]}, 'gatewayipconfigurations': {'value': [{'name': 'appgatewayipconfig', 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets',variables('vnetname'),variables('subnets')[0].name)]""}}}]}, 'backendaddresspools': {'value': [{'name': 'appgatewaybackendpool', 'properties': {'backendaddresses': [{'fqdn': ""[reference(resourceid('microsoft.resources/deployments', concat(variables('webappname'),'-resource'))).outputs.endpoint.value]""}]}}]}, 'backendhttpsettingscollection': {'value': [{'name': 'appgatewaybackendhttpsettings', 'properties': {'port': 80, 'protocol': 'http', 'cookiebasedaffinity': 'disabled', 'pickhostnamefrombackendaddress': 'true', 'probe': {'id': ""[resourceid('microsoft.network/applicationgateways/probes',variables('applicationgateways')[copyindex()].name,variables('httpprobename'))]""}}}]}, 'httplisteners': {'value': [{'name': 'appgatewayhttplistener', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/applicationgateways/frontendipconfigurations',variables('applicationgateways')[copyindex()].name, 'appgatewayfrontendip')]""}, 'frontendport': {'id': ""[resourceid('microsoft.network/applicationgateways/frontendports',variables('applicationgateways')[copyindex()].name, 'appgatewayfrontendport')]""}, 'protocol': 'http'}}]}, 'requestroutingrules': {'value': [{'name': 'rule1', 'properties': {'ruletype': 'basic', 'httplistener': {'id': ""[resourceid('microsoft.network/applicationgateways/httplisteners',variables('applicationgateways')[copyindex()].name, 'appgatewayhttplistener')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/applicationgateways/backendaddresspools',variables('applicationgateways')[copyindex()].name, 'appgatewaybackendpool')]""}, 'backendhttpsettings': {'id': ""[resourceid('microsoft.network/applicationgateways/backendhttpsettingscollection',variables('applicationgateways')[copyindex()].name, 'appgatewaybackendhttpsettings')]""}}}]}, 'probes': {'value': [{'name': ""[variables('httpprobename')]"", 'properties': {'protocol': 'http', 'host': ""[reference(resourceid('microsoft.resources/deployments', concat(variables('webappname'),'-resource'))).outputs.endpoint.value]"", 'path': '/', 'interval': 30, 'timeout': 30, 'unhealthythreshold': 8}}, {'name': ""[variables('httpsprobename')]"", 'properties': {'protocol': 'https', 'host': ""[reference(resourceid('microsoft.resources/deployments', concat(variables('webappname'),'-resource'))).outputs.endpoint.value]"", 'path': '/', 'interval': 30, 'timeout': 30, 'unhealthythreshold': 8}}]}, 'wafmode': {'value': ""[variables('applicationgateways')[copyindex()].wafmode]""}, 'omsworkspaceresourceid': {'value': ""[reference('deploy-sql-injection-attack-oms-resource').outputs.workspaceid.value]""}}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-12-01', 'name': ""[concat(variables('vmname'), copyindex())]"", 'location': ""[parameters('location')]"", 'plan': ""[if(equals(parameters('rheloslicensetype'),'payg'), json('null'), variables('plan'))]"", 'copy': {'name': 'virtualmachineloop', 'count': ""[parameters('numberofinstances')]""}, 'dependson': ['nicloop', ""[variables('storageaccountname')]"", ""[variables('asname')]"", ""[variables('bootstorageaccountname')]""], 'tags': {'quickstartname': 'jboss eap on rhel (clustered, multi-vm)'}, 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('asname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('nicname'), copyindex()))]""}]}, 'osprofile': {'computername': ""[concat(variables('vmname'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorsshkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'osdisk': {'createoption': 'fromimage'}, 'imagereference': ""[variables('imagereference')]""}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('bootstorageaccountname'), '2021-02-01').primaryendpoints['blob']]""}}}, 'resources': [{'type': 'extensions', 'apiversion': '2020-12-01', 'name': ""[concat('jbosseap-setup-extension-', copyindex())]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', concat(variables('vmname'), copyindex()))]""], 'tags': {'quickstartname': 'jboss eap on rhel (clustered, multi-vm)'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/jbosseap-setup-redhat.sh', parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[format('sh jbosseap-setup-redhat.sh {0} {1} ''{2}'' {3} {4} ''{5}'' {6} {7} {8} {9} {10} {11}', variables('scriptargs'), parameters('jbosseapusername'), parameters('jbosseappassword'), parameters('rheloslicensetype'), parameters('rhsmusername'), parameters('rhsmpassword'), parameters('rhsmpooleap'), variables('storageaccountname'), variables('containername'), base64(listkeys(resourceid('microsoft.storage/storageaccounts', variables('storageaccountname')), '2021-02-01').keys[0].value), parameters('eaponrhelversion'), parameters('rhsmpoolrhel'))]""}}}]}{'type': 'microsoft.compute/availabilitysets', 'apiversion': '2020-12-01', 'name': ""[variables('asname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('skuname')]""}, 'tags': {'quickstartname': 'jboss eap on rhel (clustered, multi-vm)'}, 'properties': {'platformupdatedomaincount': 2, 'platformfaultdomaincount': 2}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[parameters('newstorageaccountname')]"", 'apiversion': '2021-02-01', 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}} END" -Load balanced SUSE GlassFish cluster," {'apiversion': '2020-12-01', 'location': ""[variables('location')]"", 'name': ""[variables('availabilitysetname')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}, 'type': 'microsoft.compute/availabilitysets'}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('nameprefix'), 'vm-', copyindex())]"", 'copy': {'name': 'virtualmachineloop', 'count': ""[parameters('numberofinstances')]""}, 'location': ""[variables('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('nameprefix'),'nic-', copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/', variables('availabilitysetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat(variables('nameprefix'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[variables('sshkeypath')]"", 'keydata': ""[parameters('sshpublickey')]""}]}}}, 'storageprofile': {'imagereference': {'publisher': 'suse', 'offer': 'opensuse-leap', 'sku': '15-2', 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('nameprefix'), 'vm-', copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('nameprefix'), 'nic-', copyindex()))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('storageaccountname'),'2021-02-01').primaryendpoints['blob']]""}}}} END" -This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('storageaccountname')]"", 'apiversion': '2021-01-01', 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('storageaccounttype')]""}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnsnameforjumpbox')]""}}}{'comments': 'default network security group for template', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-05-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'default-allow-22', 'properties': {'priority': 1000, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('vnetname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('jumpboxnicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks', parameters('vnetname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetref')]""}}}]}} END" -Create a Site to Site VPN connection to any on premises or other cloud networks such as AWS Virtual Private Cloud," {'apiversion': '2020-08-01', 'type': 'microsoft.network/localnetworkgateways', 'name': ""[parameters('localgatewayname')]"", 'location': ""[parameters('location')]"", 'properties': {'localnetworkaddressspace': {'addressprefixes': ""[parameters('localaddressprefix')]""}, 'gatewayipaddress': ""[parameters('localgatewayipaddress')]""}}{'apiversion': '2020-07-01', 'name': ""[parameters('connectionname')]"", 'type': 'microsoft.network/connections', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworkgateways/', parameters('gatewayname'))]"", ""[resourceid('microsoft.network/localnetworkgateways/', parameters('localgatewayname'))]""], 'properties': {'virtualnetworkgateway1': {'id': ""[resourceid('microsoft.network/virtualnetworkgateways', parameters('gatewayname'))]""}, 'localnetworkgateway2': {'id': ""[resourceid('microsoft.network/localnetworkgateways', parameters('localgatewayname'))]""}, 'connectiontype': 'ipsec', 'routingweight': 10, 'sharedkey': ""[parameters('sharedkey')]""}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('azurevnetaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetprefix')]""}}, {'name': 'gatewaysubnet', 'properties': {'addressprefix': ""[parameters('gatewaysubnetprefix')]""}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[parameters('gatewaypublicipname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworkgateways', 'name': ""[parameters('gatewayname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', parameters('gatewaypublicipname'))]"", ""[resourceid('microsoft.network/virtualnetworks/', parameters('virtualnetworkname'))]""], 'properties': {'ipconfigurations': [{'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('gatewaysubnetref')]""}, 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',parameters('gatewaypublicipname'))]""}}, 'name': 'vnetgatewayconfig'}], 'sku': {'name': ""[parameters('gatewaysku')]"", 'tier': ""[parameters('gatewaysku')]""}, 'gatewaytype': 'vpn', 'vpntype': ""[parameters('vpntype')]"", 'enablebgp': 'false'}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('frontendnsgname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'custom network security group'}, 'properties': {'securityrules': [{'name': 'default-allow-ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}, {'name': 'default-allow-tomcat', 'properties': {'description': 'allow web/tomcat', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1010, 'direction': 'inbound'}}, {'name': 'default-allow-ftp', 'properties': {'description': 'allow ftp', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '21', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1020, 'direction': 'inbound'}}, {'name': 'default-allow-ftps', 'properties': {'description': 'allow ftps', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '13450-13454', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1030, 'direction': 'inbound'}}]}} END" -Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.," {'apiversion': '2020-12-01', 'name': ""[variables('hostingplanname')]"", 'type': 'microsoft.web/serverfarms', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'hostingplan', 'quickstartname': ""[variables('quickstarttags').name]""}, 'sku': {'name': ""[parameters('skuname')]"", 'capacity': ""[parameters('skucapacity')]""}, 'properties': {'name': ""[variables('hostingplanname')]""}}{'apiversion': '2020-12-01', 'name': ""[variables('websitename')]"", 'type': 'microsoft.web/sites', 'location': ""[parameters('location')]"", 'dependson': [""[variables('hostingplanname')]""], 'tags': {""[concat('hidden-related:', resourceid('microsoft.web/serverfarms', variables('hostingplanname')))]"": 'empty', 'displayname': 'website', 'quickstartname': ""[variables('quickstarttags').name]""}, 'properties': {'name': ""[variables('websitename')]"", 'serverfarmid': ""[resourceid('microsoft.web/serverfarms', variables('hostingplanname'))]""}, 'resources': [{'apiversion': '2020-12-01', 'name': 'web', 'type': 'config', 'dependson': [""[resourceid('microsoft.web/sites/', variables('websitename'))]"", ""[resourceid('microsoft.web/sites/extensions', variables('websitename'), 'msdeploy')]""], 'tags': {'displayname': 'webappconfig', 'quickstartname': ""[variables('quickstarttags').name]""}, 'properties': {'netframeworkversion': 'v4.6'}}, {'apiversion': '2020-12-01', 'type': 'config', 'name': 'connectionstrings', 'dependson': [""[variables('websitename')]"", ""[resourceid('microsoft.web/sites/extensions', variables('websitename'), 'msdeploy')]""], 'properties': {'defaultconnection': {'value': ""[concat('data source=tcp:', reference(resourceid('microsoft.sql/servers/', variables('sqlservername'))).fullyqualifieddomainname, ',1433;initial catalog=', variables('sqldatabasename'), ';user id=', parameters('sqladministratorlogin'), '@', variables('sqlservername'), ';password=', parameters('sqladministratorloginpassword'), ';', 'multipleactiveresultsets=true;encrypt=true;trustservercertificate=false;connection timeout=30;')]"", 'type': 'sqlserver'}, 'sqlconnstr_defaultconnection': {'value': ""[concat('data source=tcp:', reference(resourceid('microsoft.sql/servers/', variables('sqlservername'))).fullyqualifieddomainname, ',1433;initial catalog=', variables('sqldatabasename'), ';user id=', parameters('sqladministratorlogin'), '@', variables('sqlservername'), ';password=', parameters('sqladministratorloginpassword'), ';', 'multipleactiveresultsets=true;encrypt=true;trustservercertificate=false;connection timeout=30;')]"", 'type': 'sqlserver'}}}, {'name': 'msdeploy', 'type': 'extensions', 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.web/sites/', variables('websitename'))]""], 'tags': {'displayname': 'webappmsdeploy', 'quickstartname': ""[variables('quickstarttags').name]""}, 'properties': {'packageuri': ""[uri(parameters('_artifactslocation'), concat('artifacts/package.zip', parameters('_artifactslocationsastoken')))]""}}]} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'name': ""[variables('chefbeavailname')]"", 'type': 'microsoft.compute/availabilitysets', 'location': '[resourcegroup().location]', 'apiversion': '2017-12-01', 'dependson': [], 'tags': {'displayname': 'beavailset', 'provider': ""[variables('tagvalues').provider]""}, 'sku': {'name': 'aligned'}, 'properties': {'platformupdatedomaincount': 3, 'platformfaultdomaincount': 3}}{'name': ""[variables('cheffeavailname')]"", 'type': 'microsoft.compute/availabilitysets', 'location': '[resourcegroup().location]', 'apiversion': '2017-12-01', 'dependson': [], 'tags': {'displayname': 'feavailset', 'provider': ""[variables('tagvalues').provider]""}, 'sku': {'name': 'aligned'}, 'properties': {'platformupdatedomaincount': 3, 'platformfaultdomaincount': 3}}{'name': 'be0', 'type': 'microsoft.compute/virtualmachines', 'location': ""[variables('location')]"", 'apiversion': '2017-03-30', 'dependson': [""[concat('microsoft.storage/storageaccounts/', variables('chefbename'))]"", ""[concat('microsoft.network/networkinterfaces/', 'be0nic')]"", ""[concat('microsoft.compute/availabilitysets/',variables('chefbeavailname'))]""], 'tags': {'displayname': 'be0', 'provider': ""[variables('tagvalues').provider]""}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('chefbevmsize')]""}, 'osprofile': {'computername': 'be0', 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'keydata': ""[parameters('sshkeydata')]"", 'path': ""[variables('sshkeypath')]""}]}}}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': ""[concat('be0','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', 'be0nic')]""}]}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('chefbeavailname'))]""}}, 'resources': [{'name': 'be0setup', 'type': 'extensions', 'location': ""[variables('location')]"", 'apiversion': '2015-06-15', 'dependson': [""[concat('microsoft.compute/virtualmachines/', 'be0')]""], 'tags': {'displayname': 'be0setup'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[concat(parameters('_artifactslocation'), '/', variables('leadersetupscriptfilename'), parameters('_artifactslocationsastoken'))]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'sh \', variables(\'leadersetupscriptfilename\'), \' ""\', parameters(\'_secretslocation\'), \'"" ""\', parameters(\'_secretslocationsastoken\'), \'""\')]'}}}]}{'name': 'be1', 'type': 'microsoft.compute/virtualmachines', 'location': ""[variables('location')]"", 'apiversion': '2017-03-30', 'dependson': [""[concat('microsoft.storage/storageaccounts/', variables('chefbename'))]"", ""[concat('microsoft.network/networkinterfaces/', 'be1nic')]"", ""[concat('microsoft.compute/availabilitysets/',variables('chefbeavailname'))]""], 'tags': {'displayname': 'be1', 'provider': ""[variables('tagvalues').provider]""}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('chefbevmsize')]""}, 'osprofile': {'computername': 'be1', 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'keydata': ""[parameters('sshkeydata')]"", 'path': ""[variables('sshkeypath')]""}]}}}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': ""[concat('be1','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', 'be1nic')]""}]}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('chefbeavailname'))]""}}, 'resources': [{'name': 'be1setup', 'type': 'extensions', 'location': ""[variables('location')]"", 'apiversion': '2015-06-15', 'dependson': [""[concat('microsoft.compute/virtualmachines/', 'be1')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'be0', 'be0setup')]""], 'tags': {'displayname': 'be1setup'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[concat(parameters('_artifactslocation'), '/', variables('followersetupscriptfilename'), parameters('_artifactslocationsastoken'))]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'sh \', variables(\'followersetupscriptfilename\'), \' ""\', parameters(\'_secretslocation\'), \'"" ""\', parameters(\'_secretslocationsastoken\'), \'""\')]'}}}]}{'name': 'be2', 'type': 'microsoft.compute/virtualmachines', 'location': ""[variables('location')]"", 'apiversion': '2017-03-30', 'dependson': [""[concat('microsoft.storage/storageaccounts/', variables('chefbename'))]"", ""[concat('microsoft.network/networkinterfaces/', 'be2nic')]"", ""[concat('microsoft.compute/availabilitysets/',variables('chefbeavailname'))]""], 'tags': {'displayname': 'be2', 'provider': ""[variables('tagvalues').provider]""}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('chefbevmsize')]""}, 'osprofile': {'computername': 'be2', 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'keydata': ""[parameters('sshkeydata')]"", 'path': ""[variables('sshkeypath')]""}]}}}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': ""[concat('be2','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', 'be2nic')]""}]}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('chefbeavailname'))]""}}, 'resources': [{'name': 'be2setup', 'type': 'extensions', 'location': ""[variables('location')]"", 'apiversion': '2015-06-15', 'dependson': [""[concat('microsoft.compute/virtualmachines/', 'be2')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'be0', 'be0setup')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'be1', 'be1setup')]""], 'tags': {'displayname': 'be2setup'}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[concat(parameters('_artifactslocation'), '/', variables('followersetupscriptfilename'), parameters('_artifactslocationsastoken'))]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'sh \', variables(\'followersetupscriptfilename\'), \' ""\', parameters(\'_secretslocation\'), \'"" ""\', parameters(\'_secretslocationsastoken\'), \'""\')]'}}}]} END" -This module creates a storageAccount resource with apiVersion 2021-01-01.," {'apiversion': '2019-06-01', 'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('newstorageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storagev2', 'properties': {}} END" -Creates and optionally secures a Key Vault with logging linked to a storage account.," {'type': 'microsoft.keyvault/vaults', 'apiversion': '2021-04-01-preview', 'name': ""[parameters('keyvaultname')]"", 'location': ""[parameters('location')]"", 'properties': {'enabledfordeployment': ""[parameters('enabledfordeployment')]"", 'enabledfordiskencryption': ""[parameters('enabledfordiskencryption')]"", 'enabledfortemplatedeployment': ""[parameters('enabledfortemplatedeployment')]"", 'tenantid': '[subscription().tenantid]', 'accesspolicies': [{'objectid': ""[reference(resourceid('microsoft.compute/virtualmachinescalesets/', parameters('vmssname')), '2020-12-01', 'full').identity.principalid]"", 'tenantid': '[subscription().tenantid]', 'permissions': {'keys': ""[parameters('keyspermissions')]"", 'secrets': ""[parameters('secretspermissions')]""}}], 'sku': {'name': ""[parameters('skuname')]"", 'family': 'a'}, 'networkacls': {'defaultaction': 'allow', 'bypass': 'azureservices'}}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-04-01', 'name': ""[variables('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('storageaccounttype')]""}, 'kind': 'storagev2'} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2018-02-01', 'name': ""[concat(deployment().name, '-odbc')]"", 'type': 'microsoft.resources/deployments', 'condition': ""[equals(parameters('dbtype'), 'sql')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/extensions', variables('vmname'), variables('cseextname'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('nestedtemplates/runcommand.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vmname': {'value': ""[variables('vmname')]""}, 'command': {'value': '%systemroot%\\system32\\msiexec.exe /i msodbcsql.msi /quiet /norestart /log c:\\windows\\sql4sap.msi.log iacceptmsodbcsqllicenseterms=yes msirestartmanagercontrol=disable'}, 'files': {'value': [""[uri(parameters('sapartifactslocation'), concat(parameters('odbcdriverfilename'), parameters('sapartifactslocationsastoken')))]""]}, 'ostype': {'value': ""[variables('internalostype')]""}, 'location': {'value': ""[parameters('location')]""}}}} END" -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')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storagev2'} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('domainname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', 'nicapache')]"", ""[resourceid('microsoft.storage/storageaccounts/', parameters('newstorageaccountname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('apachevmsize')]""}, 'osprofile': {'computername': ""[parameters('domainname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': ""[concat(parameters('domainname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces','nicapache')]""}]}}}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('memcachedmachinenameprefix'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'memcachedvmloop', 'count': ""[parameters('numberofmemcachedinstances')]""}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', concat('nicmemcached', copyindex()))]"", ""[resourceid('microsoft.storage/storageaccounts/', parameters('newstorageaccountname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('memcachedvmsize')]""}, 'osprofile': {'computername': ""[concat(variables('memcachedmachinenameprefix'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': ""[variables('imagereference')]"", 'osdisk': {'name': 'osdisk', 'vhd': {'uri': ""[concat('http://', parameters('newstorageaccountname'), '.blob.', environment().suffixes.storage, '/vhds/', variables('memcachedmachinenameprefix'), copyindex(), '-osdisk.vhd')]""}, 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat('nicmemcached', copyindex()))]""}]}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2020-10-01', 'name': 'backup_jobs_non_log', 'type': 'microsoft.resources/deployments', 'resourcegroup': '[resourcegroup().name]', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').backup_jobs_non_log]"", 'contentversion': '1.0.0.0'}, 'parameters': {'workspacename': {'value': ""[parameters('workspacename')]""}}}}{'apiversion': '2020-10-01', 'name': 'backup_jobs_log', 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').backup_jobs_log]"", 'contentversion': '1.0.0.0'}, 'parameters': {'workspacename': {'value': ""[parameters('workspacename')]""}}}}{'apiversion': '2020-10-01', 'name': 'restore_jobs', 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').restore_jobs]"", 'contentversion': '1.0.0.0'}, 'parameters': {'workspacename': {'value': ""[parameters('workspacename')]""}}}}{'apiversion': '2020-10-01', 'name': 'azure_alerts', 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').azure_alerts]"", 'contentversion': '1.0.0.0'}, 'parameters': {'workspacename': {'value': ""[parameters('workspacename')]""}}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2021-04-01', 'name': ""[variables('nesteddeploymentnamevnet')]"", 'type': 'microsoft.resources/deployments', 'properties': {'hardwareprofile': {'vmsize': ""[variables('vmsize')]""}, 'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('shared/', parameters('neworexistingsubnet'), 'vnet.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'addressprefix': {'value': ""[variables('addressprefix')]""}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'subnetprefix': {'value': ""[variables('subnetprefix')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'apiversion': '2021-04-01', 'name': ""[variables('nesteddeploymentnamenic')]"", 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('shared/nic-config.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'publicipname': {'value': ""[variables('publicipname')]""}, 'nsgname': {'value': ""[variables('nsgname')]""}, 'neworexistingsubnet': {'value': ""[parameters('neworexistingsubnet')]""}, 'subnetid': {'value': ""[parameters('subnetid')]""}}}}{'apiversion': '2021-04-01', 'name': ""[variables('nesteddeploymentnameprof')]"", 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('shared/os-disk-parts.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'imagesku': {'value': ""[variables('imagesku')]""}, 'imagepublisher': {'value': ""[variables('imagepublisher')]""}, 'imageoffer': {'value': ""[variables('imageoffer')]""}, 'userimagevhduri': {'value': ''}, 'userimagestorageaccount': {'value': ''}, 'osdiskvhduri': {'value': ''}, 'osdisktype': {'value': ""[variables('osdisktype')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'sidlower': {'value': ""[variables('sidlower')]""}, 'vmname': {'value': ""[variables('vmname')]""}, 'storageaccounturi': {'value': ""[reference(variables('storageaccountname'), '2021-01-01').primaryendpoints['blob']]""}}}}{'apiversion': '2021-04-01', 'name': ""[variables('nesteddeploymentnamepip')]"", 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('shared/', parameters('neworexistingsubnet'), 'pip.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'publicipname': {'value': ""[variables('publicipname')]""}, 'publicipaddresstype': {'value': ""[variables('publicipaddresstype')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'apiversion': '2021-04-01', 'name': ""[variables('nesteddeploymentnamensg')]"", 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('shared/', parameters('neworexistingsubnet'), 'nsg.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'nsgname': {'value': ""[variables('nsgname')]""}, 'location': {'value': ""[parameters('location')]""}, 'ostype': {'value': ""[variables('internalostype')]""}}}}{'apiversion': '2021-04-01', 'name': ""[variables('nesteddeploymentname')]"", 'type': 'microsoft.resources/deployments', 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.resources/deployments/', variables('nesteddeploymentnameprof'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('shared/cs-server-', variables('vmsize'), '_multinic_no.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'imagereference': {'value': ""[reference(variables('nesteddeploymentnameprof')).outputs.imagereference.value]""}, 'osdisk': {'value': ""[reference(variables('nesteddeploymentnameprof')).outputs.osdisk.value]""}, 'osdisktype': {'value': ""[variables('osdisktype')]""}, 'sidlower': {'value': ""[variables('sidlower')]""}, 'vmname': {'value': ""[variables('vmname')]""}, 'vmsize': {'value': ""[variables('vmsize')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'storageaccounturi': {'value': ""[reference(variables('storageaccountname'), '2021-01-01').primaryendpoints['blob']]""}, 'nicname': {'value': ""[variables('nicname')]""}, 'location': {'value': ""[parameters('location')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-07-01', 'name': ""[parameters('filestorageaccountprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('filestorageaccountid')]"", ""[variables('fileshareid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('filestorageaccountprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('filestorageaccountid')]"", 'groupids': [""[variables('filestorageaccountprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('subnetid')]""}}}{'type': 'microsoft.network/privateendpoints/privatednszonegroups', 'apiversion': '2020-06-01', 'name': ""[variables('fileprivatednszonegroup')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('fileprivatednszoneid')]"", ""[variables('filestorageaccountprivateendpointid')]""], 'properties': {'privatednszoneconfigs': [{'name': 'dnsconfig', 'properties': {'privatednszoneid': ""[variables('fileprivatednszoneid')]""}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowsshinbound', 'properties': {'priority': 100, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}}{'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('nsgid')]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('virtualnetworkaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[variables('nsgid')]""}, 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('publicipid')]"", ""[variables('vnetid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetid')]""}}}]}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('fileprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-08-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow_tds_inbound', 'properties': {'description': 'allow access to data', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '1433', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}, {'name': 'allow_redirect_inbound', 'properties': {'description': 'allow inbound redirect traffic to managed instance inside the virtual network', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '11000-11999', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1100, 'direction': 'inbound'}}, {'name': 'deny_all_inbound', 'properties': {'description': 'deny all other inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 4096, 'direction': 'inbound'}}, {'name': 'allow_misubnet_outbound', 'properties': {'description': 'allow outbound traffic inside the subnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': ""[parameters('subnetprefix')]"", 'access': 'allow', 'priority': 200, 'direction': 'outbound'}}, {'name': 'deny_all_outbound', 'properties': {'description': 'deny all other outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 4096, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/routetables', 'name': ""[variables('routetablename')]"", 'apiversion': '2019-06-01', 'location': ""[parameters('location')]"", 'properties': {'disablebgproutepropagation': false}}{'name': ""[parameters('virtualnetworkname')]"", 'type': 'microsoft.network/virtualnetworks', 'apiversion': '2019-06-01', 'dependson': [""[variables('routetablename')]"", ""[variables('networksecuritygroupname')]""], 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('addressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetprefix')]"", 'routetable': {'id': ""[resourceid('microsoft.network/routetables', variables('routetablename'))]""}, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}, 'delegations': [{'name': 'midelegation', 'properties': {'servicename': 'microsoft.sql/managedinstances'}}]}}, {'name': ""[variables('gatewaysubnetname')]"", 'properties': {'addressprefix': ""[parameters('gatewaysubnetprefix')]""}}]}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'generate-customdata', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('defaultstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(variables('baseuriazurecloud'), concat('generate-customdata.json', parameters('_artifactslocationsastoken')))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'customdata': {'value': {'vnet_name': ""[variables('virtualnetworkname')]"", 'subnet_name_for_bosh': ""[variables('subnetnameforbosh')]"", 'subnet_address_range_for_bosh': ""[variables('subnetaddressrangeforbosh')]"", 'bosh_vm_size': ""[parameters('boshvmsize')]"", 'subnet_gateway_for_bosh': ""[variables('subnetgatewayforbosh')]"", 'internal_ip_for_bosh': ""[variables('internalipforbosh')]"", 'subnet_name_for_concourse': ""[variables('subnetnameforconcourse')]"", 'subnet_address_range_for_concourse': ""[variables('subnetaddressrangeforconcourse')]"", 'subnet_gateway_for_concourse': ""[variables('subnetgatewayforconcourse')]"", 'concourse_public_ip': ""[reference(resourceid('microsoft.network/publicipaddresses', concat(parameters('jumpboxvmname'),'-concourse'))).ipaddress]"", 'nsg_name_for_bosh': ""[variables('boshnetworksecuritygroup')]"", 'nsg_name_for_concourse': ""[variables('concoursenetworksecuritygroup')]"", 'subscription_id': '[subscription().subscriptionid]', 'resource_group_name': '[resourcegroup().name]', 'default_storage_account_name': ""[variables('defaultstorageaccountname')]"", 'storage_access_key': ""[listkeys(variables('storageid'), '2015-06-15').key1]"", 'admin_user_name': ""[parameters('jumpboxusername')]"", 'environment': ""[parameters('environment')]"", 'service_host_base': ""[variables('environmentvariable').servicehostbase]"", 'bosh_azure_cpi_release_url': ""[variables('environmentvariable').boshazurecpireleaseurl]"", 'bosh_azure_cpi_release_sha1': ""[variables('environmentvariable').boshazurecpireleasesha1]"", 'stemcell_url': ""[variables('environmentvariable').stemcellurl]"", 'stemcell_sha1': ""[variables('environmentvariable').stemcellsha1]"", 'bosh_cli_url': ""[variables('environmentvariable').boshcliurl]"", 'auto_deploy_bosh': ""[parameters('autodeploybosh')]"", 'auto_deploy_concourse': ""[parameters('autodeployconcourse')]"", 'concourse_username': ""[parameters('concourseusername')]"", 'concourse_password': ""[parameters('concoursepassword')]"", 'concourse_worker_disk_size': ""[parameters('concourseworkerdisksize')]""}}}}} END" -"This template takes a minimum amount of parameters and deploys a trusted launch capable Linux virtual machine, using the latest patched version."," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-12-01', 'name': ""[parameters('vmname')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', parameters('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'osdisk': {'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}}, 'imagereference': ""[variables('imagereference')[parameters('os')]]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', parameters('nicname'))]""}]}, 'securityprofile': {'uefisettings': {'securebootenabled': ""[parameters('secureboot')]"", 'vtpmenabled': ""[parameters('vtpm')]""}, 'securitytype': 'trustedlaunch'}}}{'condition': ""[and(equals(parameters('vtpm'), 'true'), equals(parameters('secureboot'), 'true'))]"", 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmname'), '/', variables('extensionname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', parameters('vmname'))]""], 'apiversion': '2020-06-01', 'properties': {'publisher': ""[variables('extensionpublisher')]"", 'type': ""[variables('extensionname')]"", 'typehandlerversion': ""[variables('extensionversion')]"", 'autoupgrademinorversion': true, 'settings': {'attestationendpointcfg': {'maaendpoint': ""[parameters('maaendpoint')]"", 'maatenantname': ""[variables('maatenantname')]"", 'ascreportingendpoint': ""[variables('ascreportingendpoint')]"", 'usealternatetoken': ""[variables('usealternatetoken')]"", 'disablealerts': ""[variables('disablealerts')]""}}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('toolvmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('toolstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('toolnicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('toolvmsize')]""}, 'osprofile': {'computername': ""[parameters('toolvmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}, 'datadisks': [{'disksizegb': 1023, 'lun': 0, 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('toolnicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('toolstorageaccountname'), '2021-04-01').primaryendpoints['blob']]""}}}}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('tapvmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('tapstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('tapnicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('tapvmsize')]""}, 'osprofile': {'computername': ""[parameters('tapvmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}, 'datadisks': [{'disksizegb': 1023, 'lun': 0, 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('tapnicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('tapstorageaccountname'), '2021-04-01').primaryendpoints['blob']]""}}}}{'name': ""[concat(parameters('toolvmname'), '/config')]"", 'type': 'microsoft.compute/virtualmachines/extensions', 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', parameters('toolvmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'skipdos2unix': false, 'timestamp': 123456789}, 'protectedsettings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/setup-moloch.sh', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': ""[concat('./setup-moloch.sh', ' ', parameters('cloudlensprojectkey'))]""}}} END" -Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.," {'type': 'microsoft.web/serverfarms', 'apiversion': '2020-06-01', 'name': ""[parameters('hostingplanlivesite')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'hostingplan'}, 'sku': {'name': ""[parameters('pricingtierlivesite')]"", 'capacity': 1}, 'properties': {'name': ""[parameters('hostingplanlivesite')]""}}{'type': 'microsoft.web/sites', 'apiversion': '2020-06-01', 'name': ""[parameters('livesitename')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.web/serverfarms', parameters('hostingplanlivesite'))]"", ""[resourceid('microsoft.insights/components', parameters('livesitename'))]""], 'tags': {""[format('{0}:{1}', 'hidden-related', resourceid('microsoft.web/serverfarms', parameters('hostingplanlivesite')))]"": 'empty', 'displayname': 'website'}, 'properties': {'name': ""[parameters('livesitename')]"", 'serverfarmid': ""[resourceid('microsoft.web/serverfarms', parameters('hostingplanlivesite'))]"", 'mintlsversion': '1.2', 'siteconfig': {'connectionstrings': [{'name': 'cmsconnectionstring', 'connectionstring': ""[if(empty(parameters('connectionstringdatabasename')),'',concat('data source=tcp:', reference(resourceid('microsoft.sql/servers', parameters('sqlservername'))).fullyqualifieddomainname, ',1433;initial catalog=', parameters('connectionstringdatabasename'), ';user id=', parameters('sqladministratorlogin'), '@', parameters('sqlservername'), ';password=', parameters('sqladministratorpassword'), ';'))]"", 'type': 'sqlserver'}], 'appsettings': [{'name': 'appinsights_instrumentationkey', 'value': ""[reference(variables('instrumentationkey')).instrumentationkey]""}]}}}{'type': 'microsoft.web/serverfarms', 'apiversion': '2020-06-01', 'name': ""[parameters('hostingplanadministration')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('pricingtieradministration')]"", 'capacity': 1}, 'tags': {'displayname': 'hostingplan'}, 'properties': {'name': ""[parameters('hostingplanadministration')]""}}{'type': 'microsoft.web/sites', 'apiversion': '2020-06-01', 'name': ""[parameters('administrationsitename')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.web/serverfarms', parameters('hostingplanadministration'))]""], 'tags': {""[format('{0}:{1}', 'hidden-related', resourceid('microsoft.web/serverfarms', parameters('hostingplanadministration')))]"": 'resource', 'displayname': 'administration'}, 'properties': {'name': ""[parameters('administrationsitename')]"", 'serverfarmid': ""[resourceid('microsoft.web/serverfarms', parameters('hostingplanadministration'))]"", 'mintlsversion': '1.2', 'siteconfig': {'connectionstrings': [{'name': 'cmsconnectionstring', 'connectionstring': ""[if(empty(parameters('connectionstringdatabasename')),'',concat('data source=tcp:', reference(resourceid('microsoft.sql/servers/', parameters('sqlservername'))).fullyqualifieddomainname, ',1433;initial catalog=', parameters('connectionstringdatabasename'), ';user id=', parameters('sqladministratorlogin'), '@', parameters('sqlservername'), ';password=', parameters('sqladministratorpassword'), ';'))]"", 'type': 'sqlserver'}]}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/virtualmachines', 'name': ""[concat('tableau', copyindex(1))]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'copy': {'name': 'virtualmachineloop', 'count': ""[variables('numberofinstances')]""}, 'dependson': ['nicloop'], 'properties': {'hardwareprofile': {'vmsize': ""[variables('virtualmachinesize')]""}, 'osprofile': {'computername': ""[concat('tableauvm', copyindex(1))]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': ""[variables('imagereference')[parameters('os')]]"", 'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}, 'copy': [{'name': 'datadisks', 'count': 1, 'input': {'disksizegb': 64, 'lun': ""[copyindex('datadisks')]"", 'createoption': 'empty'}}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat('tabnic', copyindex(1)))]""}]}}, 'resources': [{'condition': ""[equals(parameters('accept_eula'), 'yes')]"", 'name': ""[concat('tableau', copyindex(1),'/customscript')]"", 'type': 'microsoft.compute/virtualmachines/extensions', 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', concat('tableau', copyindex(1)))]""], 'tags': {'displayname': 'customscriptextension'}, 'properties': ""[if(variables('os_is_linux'),variables('lin_cse_properties'),variables('win_cse_properties'))]""}]} END" -This template creates a Service Bus Namespace and Topic with a Subscription that has a SQL Filter defined.," {'apiversion': '2018-01-01-preview', 'name': ""[parameters('servicebusnamespacename')]"", 'type': 'microsoft.servicebus/namespaces', 'location': ""[parameters('location')]"", 'resources': [{'apiversion': '2017-04-01', 'name': ""[parameters('servicebustopicname')]"", 'type': 'topics', 'dependson': [""[resourceid('microsoft.servicebus/namespaces/', parameters('servicebusnamespacename'))]""], 'properties': {'path': ""[parameters('servicebustopicname')]""}, 'resources': [{'apiversion': '2017-04-01', 'name': ""[parameters('servicebustopicsubscriptionname')]"", 'type': 'subscriptions', 'dependson': [""[parameters('servicebustopicname')]""], 'resources': [{'apiversion': '2017-04-01', 'name': ""[concat(parameters('servicebustopicsubscriptionname'), '-filter')]"", 'type': 'rules', 'dependson': [""[parameters('servicebustopicsubscriptionname')]""], 'properties': {'filter': {'sqlexpression': ""[parameters('servicebustopicsubscriptionsqlfilter')]""}}}]}]}]} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2021-07-01', 'name': 'dockerhost', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts', parameters('storagename'))]"", ""[resourceid('microsoft.network/networkinterfaces', 'nic')]""], 'tags': {'displayname': 'docker host with portainer and traefik'}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': 'dockerhost', 'adminusername': ""[parameters('adminuser')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': 'microsoftwindowsserver', 'offer': 'windowsserver', 'sku': '2022-datacenter-core-smalldisk-g2', 'version': 'latest'}, 'osdisk': {'name': 'osdisk', 'caching': 'readwrite', 'createoption': 'fromimage'}, 'datadisks': [{'disksizegb': ""[parameters('disksizegb')]"", 'lun': 0, 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', 'nic')]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts/', parameters('storagename'))).primaryendpoints.blob]""}}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'name': 'logicapppausedeployment', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[uri(parameters('_artifactslocation'), concat('nestedtemplates/pausetemplate.json', parameters('_artifactslocationsastoken')))]""}, 'parameters': {'logicappname': {'value': ""[variables('logicapps')[0]]""}, 'frequency': {'value': ""[parameters('frequency')]""}, 'companytla': {'value': ""[parameters('companytla')]""}, 'deploymenttype': {'value': ""[parameters('deploymenttype')]""}, 'time_zone': {'value': ""[parameters('time_zone')]""}, 'pausetime': {'value': ""[parameters('pausetime')]""}, 'location': {'value': ""[parameters('location')]""}}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')[copyindex(0)]]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'vmcopy', 'count': 2}, 'dependson': [""[concat(variables('vhdstorageaccountname'), copyindex(1))]"", 'niccopy'], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')[copyindex(0)]]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('osversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname')[copyindex(0)],'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('nicname'), copyindex(1)))]""}]}}, 'resources': [{'type': 'extensions', 'name': ""[concat('customscriptextension', copyindex(1))]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmname')[copyindex(0)]]""], 'properties': {'publisher': 'microsoft.compute', 'type': 'customscriptextension', 'typehandlerversion': '1.8', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/tptest.ps1', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': ""[concat('powershell -executionpolicy unrestricted -file scripts/tptest.ps1 -receiverip ', reference(variables('nicname2')).ipconfigurations[0].properties.privateipaddress, ' -mode ', variables('testmode')[copyindex(0)], ' -buffersize ', variables('testbuffersize')[copyindex(0)], ' -overlappedbuffers ', variables('testoverlappedbuffers')[copyindex(0)], ' -datatransfermode ', parameters('testdatatransfermode'), ' -threadnumber ', variables('testthreadnumber')[copyindex(0)], ' -duration ', parameters('testdurationseconds'))]""}}}]} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('haproxyavailabilitysetname')]"", 'location': ""[parameters('location')]"", 'properties': {'platformupdatedomaincount': 3, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('appavailabilitysetname')]"", 'location': ""[parameters('location')]"", 'properties': {'platformupdatedomaincount': 3, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(parameters('haproxyvmnameprefix'), copyindex())]"", 'copy': {'name': 'haproxyvmloop', 'count': ""[variables('numberofhaproxyinstances')]""}, 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(parameters('haproxyvmnameprefix'), variables('nicnameprefix'), copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/', variables('haproxyavailabilitysetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('haproxyavailabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat(parameters('haproxyvmnameprefix'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[variables('sshkeypath')]"", 'keydata': ""[parameters('sshkeydata')]""}]}}}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[parameters('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('haproxyvmnameprefix'), 'osdisk-', copyindex())]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[variables('storageaccounttype')]""}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(parameters('haproxyvmnameprefix'), variables('nicnameprefix'),copyindex()))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[concat(reference(resourceid('microsoft.storage/storageaccounts', variables('storageaccountname')), '2021-01-01').primaryendpoints.blob)]""}}}}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(parameters('appvmnameprefix'), copyindex())]"", 'copy': {'name': 'appvmloop', 'count': ""[variables('numberofappinstances')]""}, 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(parameters('appvmnameprefix'), variables('nicnameprefix'), copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/', variables('appavailabilitysetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('appavailabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat(parameters('appvmnameprefix'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[variables('sshkeypath')]"", 'keydata': ""[parameters('sshkeydata')]""}]}}}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[parameters('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('appvmnameprefix'), 'osdisk-', copyindex())]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[variables('storageaccounttype')]""}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(parameters('appvmnameprefix'), variables('nicnameprefix'),copyindex()))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[concat(reference(resourceid('microsoft.storage/storageaccounts', variables('storageaccountname')), '2021-01-01').primaryendpoints.blob)]""}}}}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('appvmnameprefix'), copyindex(), '/configureappvm')]"", 'copy': {'name': 'appvmextensionsloop', 'count': ""[variables('numberofappinstances')]""}, 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', concat(parameters('appvmnameprefix'), copyindex()))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': ""[variables('appvmscripts').fileuris]""}, 'protectedsettings': {'commandtoexecute': ""[variables('appvmscripts').commandtoexecute]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('apimnsgname')]"", 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'client_communication_to_api_management', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'secure_client_communication_to_api_management', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 110, 'direction': 'inbound'}}, {'name': 'management_endpoint_for_azure_portal_and_powershell', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3443', 'sourceaddressprefix': 'apimanagement', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 120, 'direction': 'inbound'}}, {'name': 'dependency_on_redis_cache', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '6381-6383', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 130, 'direction': 'inbound'}}, {'name': 'dependency_to_sync_rate_limit_inbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '4290', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 135, 'direction': 'inbound'}}, {'name': 'dependency_on_azure_sql', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '1433', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'sql', 'access': 'allow', 'priority': 140, 'direction': 'outbound'}}, {'name': 'dependency_for_log_to_event_hub_policy', 'properties': {'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '5671', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'eventhub', 'access': 'allow', 'priority': 150, 'direction': 'outbound'}}, {'name': 'dependency_on_redis_cache_outbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '6381-6383', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 160, 'direction': 'outbound'}}, {'name': 'depenedency_to_sync_ratelimit_outbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '4290', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 165, 'direction': 'outbound'}}, {'name': 'dependency_on_azure_file_share_for_git', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '445', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'storage', 'access': 'allow', 'priority': 170, 'direction': 'outbound'}}, {'name': 'azure_infrastructure_load_balancer', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '6390', 'sourceaddressprefix': 'azureloadbalancer', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 180, 'direction': 'inbound'}}, {'name': 'publish_diagnosticlogs_and_metrics', 'properties': {'description': 'apim logs and metrics for consumption by admins and your it team are all part of the management plane', 'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'azuremonitor', 'access': 'allow', 'priority': 185, 'direction': 'outbound', 'destinationportranges': ['443', '12000', '1886']}}, {'name': 'connect_to_smtp_relay_for_sendingemails', 'properties': {'description': 'apim features the ability to generate email traffic as part of the data plane and the management plane', 'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 190, 'direction': 'outbound', 'destinationportranges': ['25', '587', '25028']}}, {'name': 'authenticate_to_azure_active_directory', 'properties': {'description': 'connect to azure active directory for developer portal authentication or for oauth2 flow during any proxy authentication', 'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'azureactivedirectory', 'access': 'allow', 'priority': 200, 'direction': 'outbound', 'destinationportranges': ['80', '443']}}, {'name': 'dependency_on_azure_storage', 'properties': {'description': 'apim service dependency on azure blob and azure table storage', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'storage', 'access': 'allow', 'priority': 100, 'direction': 'outbound'}}, {'name': 'publish_monitoring_logs', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'azurecloud', 'access': 'allow', 'priority': 300, 'direction': 'outbound'}}, {'name': 'access_keyvault', 'properties': {'description': 'allow apim service control plane access to keyvault to refresh secrets', 'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'azurekeyvault', 'access': 'allow', 'priority': 350, 'direction': 'outbound', 'destinationportranges': ['443']}}, {'name': 'deny_all_internet_outbound', 'properties': {'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'internet', 'access': 'deny', 'priority': 999, 'direction': 'outbound'}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[parameters('publicipname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('publicipsku')]""}, 'properties': {'publicipallocationmethod': ""[parameters('publicipallocationmethod')]"", 'publicipaddressversion': 'ipv4', 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2020-06-01', 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'name': 'gw-availabilityset', 'properties': {'platformupdatedomaincount': 20, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}}{'apiversion': '2020-06-01', 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'name': 'cb-availabilityset', 'properties': {'platformupdatedomaincount': 20, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}}{'apiversion': '2020-06-01', 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'name': ""[concat(parameters('rdshnamingprefix'), 'availabilityset')]"", 'properties': {'platformupdatedomaincount': 20, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'condition': ""[contains(parameters('virtualmachinesize'), 'standard_nv')]"", 'name': 'nvidia-gpu-driver-linux', 'apiversion': '2021-04-01', 'type': 'microsoft.resources/deployments', 'dependson': [""[resourceid('microsoft.resources/deployments', concat(variables('virtualmachinename'), '-rosinstall'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nvidiagpudriverlinuxuri')]""}, 'parameters': {'vmname': {'value': ""[variables('virtualmachinename')]""}, 'location': {'value': ""[variables('location')]""}}}}{'name': ""[concat(variables('virtualmachinename'), '-rosinstall')]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('virtualmachinename'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('extensionurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[variables('location')]""}, 'extensionname': {'value': 'cse'}, 'vmname': {'value': ""[variables('virtualmachinename')]""}, 'fileuris': {'value': [""[variables('rosscriptfileuri')]""]}, 'commandtoexecute': {'value': ""[concat('bash ', 'install-ros.sh')]""}}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'shared-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('sharedtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'commonsettings': {'value': ""[variables('commonsettings')]""}, 'storagesettings': {'value': ""[variables('storagesettings')]""}, 'networksettings': {'value': ""[variables('networksettings')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'condition': ""[equals(parameters('jumpbox'), 'enabled')]"", 'name': 'jumpbox-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('jumpboxtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'storagesettings': {'value': {'vhdstorageaccountname': ""[concat(variables('storagesettings').vhdstorageaccountname, '0')]"", 'vhdcontainername': ""[variables('storagesettings').vhdcontainername]"", 'vmseries': ""[parameters('vmseries')]"", 'destinationvhdscontainer': ""[concat('https://', variables('storagesettings').vhdstorageaccountname, '0', environment().suffixes.storage, '/', variables('storagesettings').vhdcontainername, '/')]""}}, 'networksettings': {'value': ""[variables('networksettings')]""}, 'machinesettings': {'value': ""[variables('machinesettings')]""}, 'location': {'value': ""[parameters('location')]""}}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('toolvmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('toolstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('toolnicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('toolvmsize')]""}, 'osprofile': {'computername': ""[parameters('toolvmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}, 'datadisks': [{'disksizegb': 1023, 'lun': 0, 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('toolnicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('toolstorageaccountname'), '2021-04-01').primaryendpoints['blob']]""}}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'),'/newuserscript')]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/java-vstsbuild-install.sh', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': ""[concat('sh java-vstsbuild-install.sh',' ',variables('vstsaccounturl'),' ',parameters('vstspat'),' ',parameters('vstspoolname'),' ',parameters('vstsagentname'),' ',parameters('adminusername'))]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'name': ""[parameters('virtualnetworkname')]"", 'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-11-01', 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('addressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetprefix')]""}}]}}{'name': ""[parameters('networkinterfacename')]"", 'type': 'microsoft.network/networkinterfaces', 'apiversion': '2020-11-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses/', parameters('publicipaddressname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/', parameters('networksecuritygroupname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'subnet': {'id': ""[variables('subnetref')]""}, 'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', parameters('publicipaddressname'))]""}}}], 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', parameters('networksecuritygroupname'))]""}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('clustername'), '-dev')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces', concat(variables('clustername'), '-dev', '-vmnic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('infravmsize')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': ""[variables('standardstorageaccounttype')]""}}}, 'osprofile': {'computername': ""[concat(variables('clustername'), '-dev')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('clustername'), '-dev', '-vmnic'))]""}]}}}{'apiversion': '2017-12-01', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('clustername'), '-dev', '/setupdevbox')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', concat(variables('clustername'), '-dev'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('scriptfileuri')]""]}, 'protectedsettings': {'commandtoexecute': ""[concat('bash setupdevbox.sh ', parameters('adminusername'), ' --cluster_name ', variables('clustername'), ' --cluster_location ', parameters('location'), ' --worker_vm_size ', parameters('workervmsize'), ' --infra_vm_size ', parameters('infravmsize'), ' --worker_node_num ', parameters('numberofworkervm'), ' --infra_node_num ', parameters('numberofinfravm'), ' --password ', variables('adminpasswordq'), ' --users ', variables('dlwsadminsq'), ' --openid_name ', variables('openidproviderq'), ' --openid_tenant ', variables('openidtenantq'), ' --openid_clientid ', variables('openidclientidq'), ' --openid_clientsecret ', variables('openidclientsecretq'))]""}}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('clustername'), '-infra0', copyindex(1))]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'copy': {'name': 'infravmloop', 'count': ""[parameters('numberofinfravm')]""}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', concat(variables('clustername'), '-infra0', copyindex(1), '-vmnic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('infravmsize')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': ""[variables('standardstorageaccounttype')]""}}}, 'osprofile': {'computername': ""[concat(variables('clustername'), '-infra0', copyindex(1))]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('clustername'), '-infra0', copyindex(1), '-vmnic'))]""}]}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'comments': 'hub virtual network (vnet)', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('hubvnetname')]"", 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('hubvnetprefix')]""]}, 'enableddosprotection': false, 'enablevmprotection': false}}{'comments': 'management subnet', 'type': 'microsoft.network/virtualnetworks/subnets', 'name': ""[concat(variables('hubvnetname'), '/', variables('mgmtsubnetname'))]"", 'apiversion': '2019-11-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]""], 'properties': {'addressprefix': ""[variables('mgmtsubnetprefix')]""}}{'comments': 'shared subnet', 'type': 'microsoft.network/virtualnetworks/subnets', 'name': ""[concat(variables('hubvnetname'), '/', variables('sharedsubnetname'))]"", 'apiversion': '2019-11-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]""], 'properties': {'addressprefix': ""[variables('sharedsubnetprefix')]""}}{'comments': 'dmz subnet', 'type': 'microsoft.network/virtualnetworks/subnets', 'name': ""[concat(variables('hubvnetname'), '/', variables('dmzsubnetname'))]"", 'apiversion': '2019-11-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]""], 'properties': {'addressprefix': ""[variables('dmzsubnetprefix')]""}}{'condition': ""[equals(parameters('deployvpngateway'), 'yes')]"", 'comments': 'gateway subnet', 'type': 'microsoft.network/virtualnetworks/subnets', 'name': ""[concat(variables('hubvnetname'), '/', variables('gatewaysubnetname'))]"", 'apiversion': '2019-11-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('dmzsubnetname'))]""], 'properties': {'addressprefix': ""[variables('gatewaysubnetprefix')]""}}{'comments': 'development spoke virtual network (vnet)', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('devspokevnetname')]"", 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('devspokevnetprefix')]""]}, 'enableddosprotection': false, 'enablevmprotection': false}}{'comments': 'development workload subnet', 'type': 'microsoft.network/virtualnetworks/subnets', 'name': ""[concat(variables('devspokevnetname'), '/', variables('spokeworkloadsubnetname'))]"", 'apiversion': '2019-11-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('devspokevnetname'))]""], 'properties': {'addressprefix': ""[variables('devspokeworkloadsubnetprefix')]""}}{'comments': 'production spoke virtual network (vnet)', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('prodspokevnetname')]"", 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('prodspokevnetprefix')]""]}, 'enableddosprotection': false, 'enablevmprotection': false}}{'comments': 'production workload subnet', 'type': 'microsoft.network/virtualnetworks/subnets', 'name': ""[concat(variables('prodspokevnetname'), '/', variables('spokeworkloadsubnetname'))]"", 'apiversion': '2019-11-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('prodspokevnetname'))]""], 'properties': {'addressprefix': ""[variables('prodspokeworkloadsubnetprefix')]""}}{'condition': ""[equals(parameters('deployvpngateway'), 'yes')]"", 'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks/virtualnetworkpeerings', 'name': ""[concat(variables('hubvnetname'), '/gwpeering_', variables('hubvnetname'), '_', variables('devspokevnetname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('dmzsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('gatewaysubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('devspokevnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('devspokevnetname'), variables('spokeworkloadsubnetname'))]""], 'properties': {'allowvirtualnetworkaccess': true, 'allowforwardedtraffic': true, 'allowgatewaytransit': true, 'useremotegateways': false, 'remotevirtualnetwork': {'id': ""[variables('devspokeid')]""}}}{'condition': ""[equals(parameters('deployvpngateway'), 'no')]"", 'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks/virtualnetworkpeerings', 'name': ""[concat(variables('hubvnetname'), '/peering_', variables('hubvnetname'), '_', variables('devspokevnetname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('dmzsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('devspokevnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('devspokevnetname'), variables('spokeworkloadsubnetname'))]""], 'properties': {'allowvirtualnetworkaccess': true, 'allowforwardedtraffic': true, 'allowgatewaytransit': false, 'useremotegateways': false, 'remotevirtualnetwork': {'id': ""[variables('devspokeid')]""}}}{'condition': ""[equals(parameters('deployvpngateway'), 'yes')]"", 'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks/virtualnetworkpeerings', 'name': ""[concat(variables('hubvnetname'), '/gwpeering_', variables('hubvnetname'), '_', variables('prodspokevnetname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('dmzsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('gatewaysubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('prodspokevnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('prodspokevnetname'), variables('spokeworkloadsubnetname'))]""], 'properties': {'allowvirtualnetworkaccess': true, 'allowforwardedtraffic': true, 'allowgatewaytransit': true, 'useremotegateways': false, 'remotevirtualnetwork': {'id': ""[variables('prodspokeid')]""}}}{'condition': ""[equals(parameters('deployvpngateway'), 'no')]"", 'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks/virtualnetworkpeerings', 'name': ""[concat(variables('hubvnetname'), '/peering_', variables('hubvnetname'), '_', variables('prodspokevnetname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('dmzsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('prodspokevnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('prodspokevnetname'), variables('spokeworkloadsubnetname'))]""], 'properties': {'allowvirtualnetworkaccess': true, 'allowforwardedtraffic': true, 'allowgatewaytransit': false, 'useremotegateways': false, 'remotevirtualnetwork': {'id': ""[variables('prodspokeid')]""}}}{'condition': ""[equals(parameters('deployvpngateway'), 'yes')]"", 'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks/virtualnetworkpeerings', 'name': ""[concat(variables('devspokevnetname'), '/gwpeering_', variables('devspokevnetname'), '_', variables('hubvnetname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('dmzsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('gatewaysubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('devspokevnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('devspokevnetname'), variables('spokeworkloadsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworkgateways', variables('gatewayname'))]""], 'properties': {'allowvirtualnetworkaccess': true, 'allowforwardedtraffic': true, 'allowgatewaytransit': false, 'useremotegateways': true, 'remotevirtualnetwork': {'id': ""[variables('hubid')]""}}}{'condition': ""[equals(parameters('deployvpngateway'), 'no')]"", 'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks/virtualnetworkpeerings', 'name': ""[concat(variables('devspokevnetname'), '/peering_', variables('devspokevnetname'), '_', variables('hubvnetname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('dmzsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('devspokevnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('devspokevnetname'), variables('spokeworkloadsubnetname'))]""], 'properties': {'allowvirtualnetworkaccess': true, 'allowforwardedtraffic': true, 'allowgatewaytransit': false, 'useremotegateways': false, 'remotevirtualnetwork': {'id': ""[variables('hubid')]""}}}{'condition': ""[equals(parameters('deployvpngateway'), 'yes')]"", 'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks/virtualnetworkpeerings', 'name': ""[concat(variables('prodspokevnetname'), '/gwpeering_', variables('prodspokevnetname'), '_', variables('hubvnetname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('dmzsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('gatewaysubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('prodspokevnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('prodspokevnetname'), variables('spokeworkloadsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworkgateways', variables('gatewayname'))]""], 'properties': {'allowvirtualnetworkaccess': true, 'allowforwardedtraffic': true, 'allowgatewaytransit': false, 'useremotegateways': true, 'remotevirtualnetwork': {'id': ""[variables('hubid')]""}}}{'condition': ""[equals(parameters('deployvpngateway'), 'no')]"", 'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks/virtualnetworkpeerings', 'name': ""[concat(variables('prodspokevnetname'), '/peering_', variables('prodspokevnetname'), '_', variables('hubvnetname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('hubvnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('sharedsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('dmzsubnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('prodspokevnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('prodspokevnetname'), variables('spokeworkloadsubnetname'))]""], 'properties': {'allowvirtualnetworkaccess': true, 'allowforwardedtraffic': true, 'allowgatewaytransit': false, 'useremotegateways': false, 'remotevirtualnetwork': {'id': ""[variables('hubid')]""}}}{'comments': 'network interface card (nic) for win jump-host', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('winvmnicname')]"", 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('winjmphostpublicipname'))]"", ""[resourceid('microsoft.network/networksecuritygroups', variables('winnsgname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]""], 'properties': {'ipconfigurations': [{'name': 'winjmphostipconfig', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('winjmphostpublicipname'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('hubvnetname'), variables('mgmtsubnetname'))]""}, 'primary': true, 'privateipaddressversion': 'ipv4'}}], 'enableacceleratednetworking': false, 'enableipforwarding': false, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('winnsgname'))]""}, 'primary': true}}{'comments': 'nsg for windows jump host', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('winnsgname')]"", 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'nsg_rule_inbound_rdp', 'properties': {'description': 'allow inbound rdp', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}], 'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'allowazureloadbalancerinbound', 'properties': {'description': 'allow inbound traffic from azure load balancer', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'azureloadbalancer', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 65001, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'comments': 'public ip (pip) for windows jumphost', 'type': 'microsoft.network/publicipaddresses', 'sku': {'name': 'basic', 'tier': 'regional'}, 'name': ""[variables('winjmphostpublicipname')]"", 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'properties': {'publicipaddressversion': 'ipv4', 'publicipallocationmethod': 'static', 'idletimeoutinminutes': 4, 'dnssettings': {'domainnamelabel': ""[tolower(parameters('winvmdnsprefix'))]""}}}{'apiversion': '2019-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('gatewaypipname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'apiversion': '2019-06-01', 'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('newstorageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storagev2'} END" -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')]""}}}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('nameprefix')]""}}} END" -This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-04-01', 'name': ""[parameters('storageaccountname')]"", 'location': ""[parameters('location')]"", 'kind': 'storagev2', 'sku': {'name': 'standard_lrs'}, 'properties': {'accesstier': 'hot'}} END" -Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage," {'name': ""[parameters('dbservername')]"", 'type': 'microsoft.sql/servers', 'location': ""[parameters('location')]"", 'apiversion': '2014-04-01-preview', 'properties': {'administratorlogin': ""[parameters('dbadministratorlogin')]"", 'administratorloginpassword': ""[parameters('dbadministratorloginpassword')]"", 'version': '12.0'}, 'resources': [{'apiversion': '2014-04-01-preview', 'name': ""[parameters('dbname')]"", 'type': 'databases', 'location': ""[parameters('location')]"", 'dependson': [""[parameters('dbservername')]""], 'properties': {'edition': ""[parameters('dbedition')]"", 'collation': 'sql_latin1_general_cp1_ci_as', 'requestedserviceobjectiveid': 'f1173c43-91bd-4aaa-973c-54e79e15235b'}}, {'apiversion': '2021-02-01-preview', 'name': 'allowallwindowsazureips', 'type': 'firewallrules', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.sql/servers/', parameters('dbservername'))]""], 'properties': {'endipaddress': '0.0.0.0', 'startipaddress': '0.0.0.0'}}]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetdmzname')]"", 'properties': {'addressprefix': ""[parameters('subnetdmzprefix')]""}}, {'name': ""[variables('subnetmemcachedname')]"", 'properties': {'addressprefix': ""[parameters('subnetmemcachedprefix')]""}}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('publicipaddressname')]"", ""[variables('virtualnetworkname')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnetname'))]""}}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('frontendnsgname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'nsg'}, 'dependson': [""[variables('publicipaddressname')]""], 'properties': {'securityrules': [{'name': 'ssh-rule', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'name': 'master-publicip', 'type': 'microsoft.network/publicipaddresses', 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'publicipaddress'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('jenkins-dns')]""}}}{'name': 'master-nsg', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'nsgrule1', 'properties': {'description': 'ssh access to master', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'nsgrule2', 'properties': {'description': 'http access to master', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '8080', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}]}}{'name': 'jenkins-cluster-virtualnetwork', 'type': 'microsoft.network/virtualnetworks', 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', 'master-nsg')]""], 'tags': {'displayname': 'jenkins-virtualnetwork'}, 'properties': {'addressspace': {'addressprefixes': [""[variables('netiprange')]""]}, 'subnets': [{'name': 'jenkins-virtualnetwork-subnet', 'properties': {'addressprefix': ""[variables('subnetrange')]""}}]}}{'name': 'master-networkinterface', 'type': 'microsoft.network/networkinterfaces', 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', 'master-publicip')]"", ""[resourceid('microsoft.network/virtualnetworks', 'jenkins-cluster-virtualnetwork')]"", ""[resourceid('microsoft.network/networksecuritygroups','master-nsg')]""], 'tags': {'displayname': 'jenkins-master-networkinterface'}, 'properties': {'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups','master-nsg')]""}, 'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': '10.0.1.10', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', 'master-publicip')]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', 'jenkins-cluster-virtualnetwork', 'jenkins-virtualnetwork-subnet')]""}}}]}}{'name': 'node-1-publicip', 'type': 'microsoft.network/publicipaddresses', 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'publicipaddress'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[concat('node-1-',parameters('jenkins-dns'))]""}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2019-12-01', 'type': 'microsoft.compute/proximityplacementgroups', 'name': ""[variables('ppg_name')]"", 'location': ""[parameters('location')]""}{'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-07-01', 'name': ""[variables('ansible_vm_name')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('ansible_nw_interface'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('diagnostic_storagegroup_name'))]"", ""[resourceid('microsoft.keyvault/vaults',variables('key_vault_name'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('ansiblevmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'redhat', 'offer': 'rhel', 'sku': '7.7', 'version': 'latest'}, 'osdisk': {'ostype': 'linux', 'name': ""[concat(variables('ansible_vm_name'),'-osdisk')]"", 'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': 'premium_lrs'}, 'disksizegb': 64}, 'datadisks': [{'name': ""[concat(variables('ansible_vm_name'),'-playbook')]"", 'disksizegb': 50, 'lun': 0, 'createoption': 'empty'}]}, 'osprofile': {'computername': ""[variables('ansible_vm_name')]"", 'adminusername': ""[parameters('primaryusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[concat('/home/', parameters('primaryusername'), '/.ssh/authorized_keys')]"", 'keydata': ""[parameters('sshpublickey')]""}]}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('ansible_nw_interface'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('diagnostic_storagegroup_name')).primaryendpoints.blob]""}}, 'proximityplacementgroup': {'id': ""[resourceid('microsoft.compute/proximityplacementgroups',variables('ppg_name'))]""}}}{'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-07-01', 'name': ""[variables('rdp_vm_name')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('rdp_nw_interface'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('diagnostic_storagegroup_name'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('windowsrdpvmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'microsoftwindowsserver', 'offer': 'windowsserver', 'sku': ""[variables('rdp_os_version')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}}, 'osprofile': {'computername': ""[variables('rdp_vm_name')]"", 'adminusername': ""[parameters('primaryusername')]"", 'adminpassword': ""[parameters('sasexternalpassword')]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('rdp_nw_interface'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('diagnostic_storagegroup_name')).primaryendpoints.blob]""}}, 'proximityplacementgroup': {'id': ""[resourceid('microsoft.compute/proximityplacementgroups',variables('ppg_name'))]""}}}{'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-07-01', 'name': ""[variables('meta_vm_name')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('meta_nw_interface'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('diagnostic_storagegroup_name'))]""], 'tags': ""[variables('sas94vm_tags')]"", 'properties': {'hardwareprofile': {'vmsize': ""[parameters('sasmetavmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'redhat', 'offer': 'rhel', 'sku': '7.7', 'version': 'latest'}, 'osdisk': {'ostype': 'linux', 'name': ""[concat(variables('meta_vm_name'),'-osdisk')]"", 'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': 'premium_lrs'}, 'disksizegb': ""[variables('sas_osdisk_size')]""}, 'datadisks': [{'name': ""[concat(variables('meta_vm_name'),'-opt-sas')]"", 'disksizegb': ""[variables('sas_opt_sas_disk_size')]"", 'lun': 0, 'createoption': 'empty'}]}, 'osprofile': {'computername': ""[variables('meta_vm_name')]"", 'adminusername': ""[parameters('primaryusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[concat('/home/', parameters('primaryusername'), '/.ssh/authorized_keys')]"", 'keydata': ""[parameters('sshpublickey')]""}]}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('meta_nw_interface'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('diagnostic_storagegroup_name')).primaryendpoints.blob]""}}, 'proximityplacementgroup': {'id': ""[resourceid('microsoft.compute/proximityplacementgroups',variables('ppg_name'))]""}}}{'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-07-01', 'name': ""[variables('compute_vm_name')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('compute_nw_interface'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('diagnostic_storagegroup_name'))]""], 'tags': ""[variables('sas94vm_tags')]"", 'properties': {'hardwareprofile': {'vmsize': ""[parameters('sascomputevmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'redhat', 'offer': 'rhel', 'sku': '7.7', 'version': 'latest'}, 'osdisk': {'ostype': 'linux', 'name': ""[concat(variables('compute_vm_name'),'-osdisk')]"", 'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': 'premium_lrs'}, 'disksizegb': ""[variables('sas_osdisk_size')]""}, 'datadisks': [{'name': ""[concat(variables('compute_vm_name'),'-opt-sas')]"", 'disksizegb': ""[variables('sas_opt_sas_disk_size')]"", 'lun': 0, 'createoption': 'empty'}, {'name': ""[concat(variables('compute_vm_name'),'-sasdata')]"", 'disksizegb': ""[parameters('sasdatastorage')]"", 'lun': 1, 'createoption': 'empty'}]}, 'osprofile': {'computername': ""[variables('compute_vm_name')]"", 'adminusername': ""[parameters('primaryusername')]"", 'customdata': ""[base64(variables('custom_data_sas'))]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[concat('/home/', parameters('primaryusername'), '/.ssh/authorized_keys')]"", 'keydata': ""[parameters('sshpublickey')]""}]}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('compute_nw_interface'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('diagnostic_storagegroup_name')).primaryendpoints.blob]""}}, 'proximityplacementgroup': {'id': ""[resourceid('microsoft.compute/proximityplacementgroups',variables('ppg_name'))]""}}} END" -This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.," {'comments': 'user-defined managed identity defined for the aks cluster. used to access the virtual network and other resources.', 'type': 'microsoft.managedidentity/userassignedidentities', 'apiversion': '2018-11-30', 'name': ""[variables('aksclusteruserdefinedmanagedidentityname')]"", 'location': ""[parameters('location')]""}{'comments': 'user-defined managed identity used by the application gateway is assigned. used to access azure key vault.', 'type': 'microsoft.managedidentity/userassignedidentities', 'apiversion': '2018-11-30', 'name': ""[variables('applicationgatewayuserdefinedmanagedidentityname')]"", 'location': ""[parameters('location')]""}{'comments': 'user-defined managed identity used by an aad pod identity. used to access azure key vault.', 'type': 'microsoft.managedidentity/userassignedidentities', 'apiversion': '2018-11-30', 'name': ""[variables('aadpodidentityuserdefinedmanagedidentityname')]"", 'location': ""[parameters('location')]""} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetname')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat('myvm', copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'virtualmachineloop', 'count': ""[parameters('numberofinstances')]""}, 'dependson': [""[concat('microsoft.network/networkinterfaces/', 'nic1', copyindex())]"", ""[concat('microsoft.network/networkinterfaces/', 'nic2', copyindex())]"", ""[concat('microsoft.storage/storageaccounts/', parameters('newstorageaccountname'))]"", ""[concat('microsoft.compute/availabilitysets/', variables('availabilitysetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat('vm', copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat('myvm', copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'properties': {'primary': true}, 'id': ""[resourceid('microsoft.network/networkinterfaces',concat('nic1', copyindex()))]""}, {'properties': {'primary': false}, 'id': ""[resourceid('microsoft.network/networkinterfaces',concat('nic2', copyindex()))]""}]}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('vmdnsname')]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-06-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow_tds_inbound', 'properties': {'description': 'allow access to data', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '1433', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}, {'name': 'allow_redirect_inbound', 'properties': {'description': 'allow inbound redirect traffic to managed instance inside the virtual network', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '11000-11999', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1100, 'direction': 'inbound'}}, {'name': 'deny_all_inbound', 'properties': {'description': 'deny all other inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 4096, 'direction': 'inbound'}}, {'name': 'deny_all_outbound', 'properties': {'description': 'deny all other outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 4096, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/routetables', 'apiversion': '2020-06-01', 'name': ""[variables('routetablename')]"", 'location': ""[parameters('location')]"", 'properties': {'disablebgproutepropagation': false}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-04-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowsshinbound', 'properties': {'priority': 100, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}} END" -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')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storagev2'} END" -Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2019-06-01', 'location': ""[parameters('location')]"", 'name': ""[variables('storageaccountname')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storagev2'} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networkprofiles', 'apiversion': '2021-02-01', 'name': ""[variables('containergroupnetworkprofilename')]"", 'location': ""[parameters('location')]"", 'properties': {'containernetworkinterfaceconfigurations': [{'name': ""[variables('containergroupnetworkprofileinterfacename')]"", 'properties': {'ipconfigurations': [{'name': ""[variables('containergroupnetworkprofileinterfaceipconfigurationname')]"", 'properties': {'subnet': {'id': ""[reference(resourceid('microsoft.resources/deployments', 'network')).outputs.containergroupsubnetresourceid.value]""}}}]}}]}, 'dependson': [""[resourceid('microsoft.resources/deployments', 'network')]""]} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2016-02-01', 'name': 'omsworkspace', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').omsworkspace]"", 'contentversion': '1.0.0.0'}, 'parameters': {'omsworkspacename': {'value': ""[parameters('omsworkspacename')]""}, 'omsworkspaceregion': {'value': ""[parameters('omsworkspaceregion')]""}, 'omsworkspacesku': {'value': ""[parameters('omsworkspacesku')]""}, 'azuremonitorpricingmodel': {'value': ""[parameters('azuremonitorpricingmodel')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2016-02-01', 'name': 'omssavedsearches', 'dependson': [""[concat('microsoft.resources/deployments/', 'omsworkspace')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').omssavedsearches]"", 'contentversion': '1.0.0.0'}, 'parameters': {'omsworkspacename': {'value': ""[parameters('omsworkspacename')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2016-02-01', 'name': 'omscustomviews', 'dependson': [""[concat('microsoft.resources/deployments/', 'omsworkspace')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').omscustomviews]"", 'contentversion': '1.0.0.0'}, 'parameters': {'omsworkspacename': {'value': ""[parameters('omsworkspacename')]""}, 'omsworkspaceregion': {'value': ""[parameters('omsworkspaceregion')]""}, 'systemmetricsprovider': {'value': ""[parameters('systemmetricsprovider')]""}, 'cloudfoundryversion': {'value': ""[parameters('cloudfoundryversion')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2016-02-01', 'name': 'omsalerts', 'dependson': [""[concat('microsoft.resources/deployments/', 'omsworkspace')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').omsalerts]"", 'contentversion': '1.0.0.0'}, 'parameters': {'omsworkspacename': {'value': ""[parameters('omsworkspacename')]""}, 'actiongroupname': {'value': ""[parameters('actiongroupname')]""}}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[concat(variables('availsetname'), copyindex(1))]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'comments': 'these are the availability sets for web vms, app vms and database vms', 'tags': {'displayname': 'availability sets', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('redhattags').provider]""}, 'copy': {'name': 'availsetloop', 'count': 3}, 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('webtiervmname'),'-', copyindex(1))]"", 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'comments': ' web tier vms', 'tags': {'displayname': 'web tier vms', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('redhattags').provider]""}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', concat(variables('vmstorageaccountname'),'1'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('webtiervmnicname'), copyindex(1)))]"", ""[resourceid('microsoft.compute/availabilitysets/', concat(variables('availsetname'),'1'))]""], 'copy': {'name': 'webtiervmloop', 'count': ""[parameters('webtiervmcount')]""}, 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',concat(variables('availsetname'),'1'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat('webserver',copyindex(1))]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('publisher')]"", 'offer': ""[variables('offer')]"", 'sku': ""[variables('redhatsku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('webtiervmname'),'-', copyindex(1),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('webtiervmnicname'), copyindex(1)))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts/', variables('diagstorageaccountname'))).primaryendpoints.blob]""}}}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('apptiervmname'),'-', copyindex(1))]"", 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'comments': ' app tier vms', 'tags': {'displayname': 'app tier vms', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('redhattags').provider]""}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', concat(variables('vmstorageaccountname'),'2'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('apptiervmnicname'), copyindex(1)))]"", ""[resourceid('microsoft.compute/availabilitysets/',concat(variables('availsetname'),'2'))]""], 'copy': {'name': 'apptiervmloop', 'count': ""[parameters('apptiervmcount')]""}, 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',concat(variables('availsetname'),'2'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat('appserver',copyindex(1))]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('publisher')]"", 'offer': ""[variables('offer')]"", 'sku': ""[variables('redhatsku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('apptiervmname'),'-', copyindex(1),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('apptiervmnicname'), copyindex(1)))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts/', variables('diagstorageaccountname'))).primaryendpoints.blob]""}}}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('databasetiervmname'),'-', copyindex(1))]"", 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'comments': 'database tier vms', 'tags': {'displayname': 'database tier vms', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('redhattags').provider]""}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', concat(variables('vmstorageaccountname'),'3'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('databasetiervmnicname'), copyindex(1)))]"", ""[resourceid('microsoft.compute/availabilitysets/', concat(variables('availsetname'),'3'))]""], 'copy': {'name': 'databasetiervmloop', 'count': ""[parameters('databasetiervmcount')]""}, 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',concat(variables('availsetname'),'3'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat('databaseserver',copyindex(1))]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('publisher')]"", 'offer': ""[variables('offer')]"", 'sku': ""[variables('redhatsku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('databasetiervmname'),'-', copyindex(1),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('databasetiervmnicname'), copyindex(1)))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts/', variables('diagstorageaccountname'))).primaryendpoints.blob]""}}}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('jumpvmname')]"", 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'comments': 'jump vm', 'tags': {'displayname': 'jump vm', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('redhattags').provider]""}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', concat(variables('vmstorageaccountname'),'4'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('jumpvmnicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': 'jumpvm', 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('publisher')]"", 'offer': ""[variables('offer')]"", 'sku': ""[variables('redhatsku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('jumpvmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('jumpvmnicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts/', variables('diagstorageaccountname'))).primaryendpoints.blob]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-05-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat('nic', copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'nicloop', 'count': ""[variables('numberofmasterinstances')]""}, 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[concat(parameters('sparknodeipaddressprefix'), copyindex())]"", 'subnet': {'id': ""[variables('subnetref')]""}}}]}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'condition': ""[equals(parameters('neworexistingnetwork'), 'new')]"", 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'virtualnetwork', 'app': ""[variables('redhattags').app]"", 'version': ""[variables('redhattags').version]"", 'platform': ""[variables('redhattags').platform]""}, 'apiversion': '2019-09-01', 'properties': {'addressspace': {'addressprefixes': ""[parameters('virtualnetworkcidr')]""}, 'subnets': [{'name': ""[parameters('bastionsubnetname')]"", 'properties': {'addressprefix': ""[parameters('bastionsubnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups/', variables('bastionsecuritygroupname'))]""}}}, {'name': ""[parameters('mastersubnetname')]"", 'properties': {'addressprefix': ""[parameters('mastersubnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups/', variables('mastersecuritygroupname'))]""}}}, {'name': ""[parameters('workersubnetname')]"", 'properties': {'addressprefix': ""[parameters('workersubnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups/', variables('workersecuritygroupname'))]""}}}]}, 'dependson': [""[variables('bastionsecuritygroupname')]"", ""[variables('mastersecuritygroupname')]"", ""[variables('workersecuritygroupname')]""]}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('bastionpublicipdnslabel')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'apiversion': '2019-09-01', 'tags': {'displayname': 'bastionpublicip', 'app': ""[variables('redhattags').app]"", 'version': ""[variables('redhattags').version]"", 'platform': ""[variables('redhattags').platform]""}, 'properties': {'publicipallocationmethod': 'static', 'dnssettings': {'domainnamelabel': ""[variables('bastionpublicipdnslabel')]""}}}{'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('bastionhostname'), '-nic')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-09-01', 'tags': {'displayname': 'bastionnetworkinterface', 'app': ""[variables('redhattags').app]"", 'version': ""[variables('redhattags').version]"", 'platform': ""[variables('redhattags').platform]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/', variables('bastionsecuritygroupname'))]"", ""[resourceid('microsoft.network/publicipaddresses/', variables('bastionpublicipdnslabel'))]""], 'properties': {'ipconfigurations': [{'name': ""[concat(variables('bastionhostname'), 'ipconfig')]"", 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid(variables('networkresourcegroup'), 'microsoft.network/virtualnetworks/subnets', parameters('virtualnetworkname'), parameters('bastionsubnetname'))]""}, 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('bastionpublicipdnslabel'))]""}}}], 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('bastionsecuritygroupname'))]""}}}{'condition': ""[equals(parameters('storageoption'), 'nfs')]"", 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('nfshostname'), '-nic')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-09-01', 'tags': {'displayname': 'nfsnetworkinterface', 'app': ""[variables('redhattags').app]"", 'version': ""[variables('redhattags').version]"", 'platform': ""[variables('redhattags').platform]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/', variables('workersecuritygroupname'))]""], 'properties': {'ipconfigurations': [{'name': ""[concat(variables('nfshostname'), 'ipconfig')]"", 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid(variables('networkresourcegroup'), 'microsoft.network/virtualnetworks/subnets', parameters('virtualnetworkname'), parameters('workersubnetname'))]""}}}], 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('workersecuritygroupname'))]""}}}{'apiversion': '2019-09-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('bastionsecuritygroupname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'bastionnsg', 'app': ""[variables('redhattags').app]"", 'version': ""[variables('redhattags').version]"", 'platform': ""[variables('redhattags').platform]""}, 'properties': {'securityrules': [{'name': 'allowsshin_all', 'properties': {'description': 'allow ssh in from all locations', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}]}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', parameters('storageaccountnameprefix'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[parameters('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'),'/newuserscript')]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('install_lamp.sh', parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[concat('sh install_lamp.sh ', parameters('mysqlpassword'))]""}}} END" -Create an ExpressRoute Circuit," {'type': 'microsoft.network/expressroutecircuits', 'apiversion': '2021-02-01', 'name': ""[parameters('circuitname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[format('{0}_{1}', parameters('skutier'), parameters('skufamily'))]"", 'tier': ""[parameters('skutier')]"", 'family': ""[parameters('skufamily')]""}, 'properties': {'serviceproviderproperties': {'serviceprovidername': ""[parameters('serviceprovidername')]"", 'peeringlocation': ""[parameters('peeringlocation')]"", 'bandwidthinmbps': ""[parameters('bandwidthinmbps')]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-04-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowsshinbound', 'properties': {'priority': 100, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}}{'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('nsgid')]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('virtualnetworkaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[variables('nsgid')]""}, 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}}]}}{'apiversion': '2020-04-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('publicipid')]"", ""[variables('vnetid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetid')]""}}}]}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2018-09-01', 'name': ""[variables('eventhubsnamespaceprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2018-09-01', 'name': ""[variables('blobprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2018-09-01', 'name': ""[concat(variables('eventhubsnamespaceprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('eventhubsnamespaceprivatednszoneid')]"", ""[variables('vnetid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('vnetid')]""}}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2018-09-01', 'name': ""[concat(variables('blobprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('blobprivatednszoneid')]"", ""[variables('vnetid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('vnetid')]""}}}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-04-01', 'name': ""[parameters('eventhubsnamespaceprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vnetid')]"", ""[variables('eventhubsnamespaceid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('eventhubsnamespaceprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('eventhubsnamespaceid')]"", 'groupids': [""[variables('eventhubsnamespaceprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('subnetid')]""}, 'customdnsconfigs': [{'fqdn': ""[concat(parameters('eventhubsnamespacename'), variables('eventhubspublicdnszoneforwarder'))]""}]}}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-04-01', 'name': ""[parameters('blobstorageaccountprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vnetid')]"", ""[variables('blobstorageaccountid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('blobstorageaccountprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('blobstorageaccountid')]"", 'groupids': [""[variables('blobstorageaccountprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('subnetid')]""}, 'customdnsconfigs': [{'fqdn': ""[concat(parameters('blobstorageaccountname'), variables('blobpublicdnszoneforwarder'))]""}]}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2019-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('eventhubsnamespaceprivateendpointid')]"", ""[variables('blobstorageaccountprivateendpointid')]"", ""[variables('nicid')]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'disksizegb': ""[parameters('osdisksize')]"", 'manageddisk': {'storageaccounttype': ""[parameters('diskstorageaccountype')]""}}, 'copy': [{'name': 'datadisks', 'count': ""[parameters('numdatadisks')]"", 'input': {'caching': ""[parameters('datadiskcaching')]"", 'disksizegb': ""[parameters('datadisksize')]"", 'lun': ""[copyindex('datadisks')]"", 'name': ""[concat(parameters('vmname'),'-datadisk',copyindex('datadisks'))]"", 'createoption': 'empty', 'manageddisk': {'storageaccounttype': ""[parameters('diskstorageaccountype')]""}}}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('blobstorageaccountid')).primaryendpoints['blob']]""}}}}{'apiversion': '2019-12-01', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmname'), '/', variables('customscriptextensionname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmid')]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'skipdos2unix': false, 'timestamp': 123456789, 'fileuris': [""[variables('scriptfileuri')]""]}, 'protectedsettings': {'commandtoexecute': ""[concat('bash ', parameters('scriptfilename'), ' ', variables('eventhubsnamespaceendpoint'), ' ', variables('blobserviceprimaryendpoint'))]""}}}{'apiversion': '2019-12-01', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmname'),'/', variables('omsagentforlinuxname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmid')]"", ""[variables('workspaceid')]"", ""[variables('customscriptid')]""], 'properties': {'publisher': 'microsoft.enterprisecloud.monitoring', 'type': 'omsagentforlinux', 'typehandlerversion': '1.12', 'settings': {'workspaceid': ""[reference(variables('workspaceid'), '2020-03-01-preview').customerid]"", 'stoponmultipleconnections': false}, 'protectedsettings': {'workspacekey': ""[listkeys(variables('workspaceid'),'2020-03-01-preview').primarysharedkey]""}}}{'apiversion': '2019-12-01', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmname'),'/dependencyagent')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmid')]"", ""[variables('workspaceid')]"", ""[variables('customscriptid')]"", ""[variables('omsagentforlinuxid')]""], 'properties': {'publisher': 'microsoft.azure.monitoring.dependencyagent', 'type': 'dependencyagentlinux', 'typehandlerversion': '9.10', 'autoupgrademinorversion': true}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('nsgid')]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]"", 'networksecuritygroup': {'id': ""[variables('nsgid')]""}}}]}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'ansibleroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','ansibleaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('ansible_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'ansibleaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('ansible_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-ansiblehostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','ansibleaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./ansible_setup.sh',' ',parameters('storageaccountname'),' ',parameters('filesharename'),' ',parameters('viyarepofolder'),' ',parameters('sasapplicationname'),' ',variables('domain_name'),' ',variables('ansible_vm_name'),' ',variables('microservices_vm_name'),' ',variables('cascontroller_vm_name'),' ',variables('spre_vm_name'),' ',variables('casworker_vm_name'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',parameters('numberofviyacasnodes'),' ',variables('mid_vm_name'),' ',parameters('_artifactslocation'),' ',variables('compute_vm_name'),' ',variables('meta_vm_name'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/ansible_setup.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-ansiblesslcopy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase2-metainstall')]"", ""[resourceid('microsoft.resources/deployments','phase2-midinstall')]"", ""[resourceid('microsoft.resources/deployments','phase2-computeinstall')]"", ""[resourceid('microsoft.resources/deployments','phase4-viyainstallpart2')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;./ansible_ssl.sh 2>&1 | tee /var/log/sas/install/runphase2ansiblesslcopy.log;')]""}, 'filepath': {'value': 'scripts/ansible_ssl.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase3-viyainstallpart1', 'dependson': [""[resourceid('microsoft.resources/deployments', 'phase1-ansiblehostsetup')]"", ""[resourceid('microsoft.resources/deployments', 'phase2-microservicesviyaark')]"", ""[resourceid('microsoft.resources/deployments', 'phase2-spreviyaark')]"", ""[resourceid('microsoft.resources/deployments', 'phase2-cascontrollerviyaark')]"", 'casworkerviyaarkcopy'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viyainstall.sh',' ', '1',' ','2>&1 | tee /var/log/sas/install/runphase3_viyainstallpart1.log')]""}, 'filepath': {'value': 'scripts/viyainstall.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase4-viyainstallpart2', 'dependson': [""[resourceid('microsoft.resources/deployments', 'phase3-viyainstallpart1')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viyainstall.sh',' ', '2',' ','2>&1 | tee /var/log/sas/install/runphase4_viyainstallpart2.log')]""}, 'filepath': {'value': 'scripts/viyainstall.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase5-viyainstallpart3', 'dependson': [""[resourceid('microsoft.resources/deployments', 'phase2-ansiblesslcopy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viyainstall.sh',' ', '3',' ','2>&1 | tee /var/log/sas/install/runphase5_viyainstallpart3.log')]""}, 'filepath': {'value': 'scripts/viyainstall.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase6-viyapostinstall', 'dependson': [""[resourceid('microsoft.resources/deployments', 'phase5-viyainstallpart3')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('ansible_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viyainstall.sh',' ', '4',' ','2>&1 | tee /var/log/sas/install/runphase6_viyapostinstall.log')]""}, 'filepath': {'value': 'scripts/viyainstall.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'rdpcontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('rdp_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('windows_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('rdp_vm_name')]""}, 'commandtoexecute': {'value': 'powershell.exe expand-archive -literalpath client_install.zip -destination c:\\windowsazure\\client_install'}, 'filepath': {'value': 'client_install.zip'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-sasclientinstall', 'dependson': [""[resourceid('microsoft.resources/deployments', 'rdpcontentfiledownload')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('windows_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('rdp_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('powershell -executionpolicy unrestricted -file sas_client_install.ps1 ','-stg_acc_name ',parameters('storageaccountname'),' -stg_key ',parameters('storageaccountkey'),' -file_share_name ',parameters('filesharename'),' -depot_folder_name ',parameters('sasdepotfolder'),' -clients_sid ',parameters('sasserverlicensefile'),' -app_name ',parameters('sasapplicationname'),' -mid_name ',variables('mid_vm_name'),' -domain_name ',variables('domain_name'),' -artifact_loc ',parameters('_artifactslocation'),' -storageuri ',variables('storage_account_uri'))]""}, 'filepath': {'value': 'sas_client_install.ps1'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'metaroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('meta_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('meta_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'metaaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('meta_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]"", ""[resourceid('microsoft.resources/deployments','ansibleaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-metahostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','metaaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('meta_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./sasapp_prereq.sh',' ',parameters('sasapplicationname'),' ',parameters('sasdepotfolder'),' ',parameters('filesharename'),' ',parameters('storageaccountname'),' ',variables('domain_name'),' ',parameters('location'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',variables('mid_vm_name'),' ',variables('meta_vm_name'),' ',variables('compute_vm_name'),' ',parameters('sasserverlicensefile'),' ','meta',' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/sasapp_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'metacontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-metahostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('meta_vm_name')]""}, 'commandtoexecute': {'value': 'cp response-properties.tar.gz /tmp'}, 'filepath': {'value': 'properties/response-properties.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-metainstall', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','metacontentfiledownload')]"", ""[resourceid('microsoft.resources/deployments','phase1-ansiblehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('meta_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./meta_install.sh 2>&1 | tee /var/log/sas/install/meta_install.log')]""}, 'filepath': {'value': 'scripts/meta_install.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase3-metaconfig', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('meta_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase2-metainstall')]"", ""[resourceid('microsoft.resources/deployments','phase2-ansiblesslcopy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('meta_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./meta_config.sh 2>&1 | tee /var/log/sas/install/meta_config.log')]""}, 'filepath': {'value': 'scripts/meta_config.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'computeroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('compute_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('compute_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('compute_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'computeaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('compute_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','metaaccesspolicy')]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('compute_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-computehostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('compute_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','computeaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('compute_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./sasapp_prereq.sh',' ',parameters('sasapplicationname'),' ',parameters('sasdepotfolder'),' ',parameters('filesharename'),' ',parameters('storageaccountname'),' ',variables('domain_name'),' ',parameters('location'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',variables('mid_vm_name'),' ',variables('meta_vm_name'),' ',variables('compute_vm_name'),' ',parameters('sasserverlicensefile'),' ','compute',' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/sasapp_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'computecontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('compute_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-computehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('compute_vm_name')]""}, 'commandtoexecute': {'value': 'cp response-properties.tar.gz /tmp'}, 'filepath': {'value': 'properties/response-properties.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-computeinstall', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('compute_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','computecontentfiledownload')]"", ""[resourceid('microsoft.resources/deployments','phase1-ansiblehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('compute_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./compute_install.sh 2>&1 | tee /var/log/sas/install/compute_install.log')]""}, 'filepath': {'value': 'scripts/compute_install.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase3-computeconfig', 'dependson': [""[resourceid('microsoft.resources/deployments','phase2-computeinstall')]"", ""[resourceid('microsoft.resources/deployments','phase3-metaconfig')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('compute_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./compute_config.sh 2>&1 | tee /var/log/sas/install/compute_config.log')]""}, 'filepath': {'value': 'scripts/compute_config.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'midroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('mid_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('mid_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'midaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','computeaccesspolicy')]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-midhostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','midaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('mid_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./sasapp_prereq.sh',' ',parameters('sasapplicationname'),' ',parameters('sasdepotfolder'),' ',parameters('filesharename'),' ',parameters('storageaccountname'),' ',variables('domain_name'),' ',parameters('location'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',variables('mid_vm_name'),' ',variables('meta_vm_name'),' ',variables('compute_vm_name'),' ',parameters('sasserverlicensefile'),' ','mid',' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/sasapp_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'midcontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-midhostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('mid_vm_name')]""}, 'commandtoexecute': {'value': 'cp response-properties.tar.gz /tmp'}, 'filepath': {'value': 'properties/response-properties.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-midinstall', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','midcontentfiledownload')]"", ""[resourceid('microsoft.resources/deployments','phase1-ansiblehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('mid_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./mid_install.sh 2>&1 | tee /var/log/sas/install/mid-install.log')]""}, 'filepath': {'value': 'scripts/mid_install.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase3-midconfig', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('mid_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase2-midinstall')]"", ""[resourceid('microsoft.resources/deployments','phase3-computeconfig')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('mid_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./mid_config.sh 2>&1 | tee /var/log/sas/install/mid_config.log')]""}, 'filepath': {'value': 'scripts/mid_config.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'microservicesroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('microservices_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('microservices_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('microservices_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'microservicesaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('microservices_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]"", ""[resourceid('microsoft.resources/deployments','midaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('microservices_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-microserviceshostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('microservices_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','microservicesaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('microservices_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./viya_prereq.sh',' ',parameters('storageaccountname'),' ',parameters('filesharename'),' ',parameters('viyarepofolder'),' ',parameters('sasapplicationname'),' ',variables('domain_name'),' ',variables('ansible_vm_name'),' ',variables('microservices_vm_name'),' ',variables('cascontroller_vm_name'),' ',variables('spre_vm_name'),' ',variables('casworker_vm_name'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',parameters('numberofviyacasnodes'),' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/viya_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'microservicescontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('microservices_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-microserviceshostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('microservices_vm_name')]""}, 'commandtoexecute': {'value': 'cp viya-ark.tar.gz /tmp'}, 'filepath': {'value': 'properties/viya-ark.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-microservicesviyaark', 'dependson': [""[resourceid('microsoft.resources/deployments', 'microservicescontentfiledownload')]"", ""[resourceid('microsoft.resources/deployments', 'phase1-ansiblehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('microservices_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viya_ark.sh 2>&1 | tee /var/log/sas/install/runphase2_viyaark.log')]""}, 'filepath': {'value': 'scripts/viya_ark.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'spreroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('spre_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('spre_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('spre_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'spreaccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('spre_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]"", ""[resourceid('microsoft.resources/deployments','cascontrolleraccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('spre_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-sprehostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('spre_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','spreaccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('spre_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./viya_prereq.sh',' ',parameters('storageaccountname'),' ',parameters('filesharename'),' ',parameters('filesharename'),' ',parameters('sasapplicationname'),' ',variables('domain_name'),' ',variables('ansible_vm_name'),' ',variables('microservices_vm_name'),' ',variables('cascontroller_vm_name'),' ',variables('spre_vm_name'),' ',variables('casworker_vm_name'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',parameters('numberofviyacasnodes'),' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/viya_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'sprecontentfiledownload', 'dependson': [""[resourceid('microsoft.compute/virtualmachines',variables('spre_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','phase1-sprehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('spre_vm_name')]""}, 'commandtoexecute': {'value': 'cp viya-ark.tar.gz /tmp'}, 'filepath': {'value': 'properties/viya-ark.tar.gz'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase2-spreviyaark', 'dependson': [""[resourceid('microsoft.resources/deployments','sprecontentfiledownload')]"", ""[resourceid('microsoft.resources/deployments', 'phase1-ansiblehostsetup')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('spre_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('set -o pipefail;','./viya_ark.sh 2>&1 | tee /var/log/sas/install/runphase2_viyaark.log')]""}, 'filepath': {'value': 'scripts/viya_ark.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'cascontrollerroleassignment', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('cascontroller_vm_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('role_assignment_template')]""}, 'parameters': {'roleassignmentname': {'value': ""[guid(resourceid('microsoft.compute/virtualmachines', variables('cascontroller_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, 'roledefinitionid': {'value': ""[variables('reader_role')]""}, 'principalid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('cascontroller_vm_name')),'2019-07-01','full').identity.principalid]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'cascontrolleraccesspolicy', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('cascontroller_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','microservicesaccesspolicy')]"", ""[resourceid('microsoft.keyvault/vaults', variables('key_vault_name'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('access_policy_template')]""}, 'parameters': {'keyvaultname': {'value': ""[variables('key_vault_name')]""}, 'tenantid': {'value': ""[variables('tenantid')]""}, 'objectid': {'value': ""[reference(resourceid('microsoft.compute/virtualmachines',variables('cascontroller_vm_name')),'2019-12-01', 'full').identity.principalid]""}, 'secretspermissions': {'value': ""[variables('secretspermissions')]""}, 'keyspermissions': {'value': ""[variables('keyspermissions')]""}, 'certificatespermissions': {'value': ""[variables('certificatespermissions')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2019-10-01', 'name': 'phase1-cascontrollerhostsetup', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('cascontroller_vm_name'))]"", ""[resourceid('microsoft.resources/deployments','cascontrolleraccesspolicy')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('linux_extension_template')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmname': {'value': ""[variables('cascontroller_vm_name')]""}, 'commandtoexecute': {'value': ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./viya_prereq.sh',' ',parameters('storageaccountname'),' ',parameters('filesharename'),' ',parameters('filesharename'),' ',parameters('sasapplicationname'),' ',variables('domain_name'),' ',variables('ansible_vm_name'),' ',variables('microservices_vm_name'),' ',variables('cascontroller_vm_name'),' ',variables('spre_vm_name'),' ',variables('casworker_vm_name'),' ',variables('key_vault_secretname_sasinst'),' ',variables('key_vault_secretname_sasext'),' ',variables('key_vault_name'),' ',variables('key_vault_secretname_pvtkey'),' ',variables('key_vault_secretname_pubkey'),' ',parameters('numberofviyacasnodes'),' ',parameters('_artifactslocation'),' ',variables('key_vault_secretname_stgacc'),' ',variables('storage_account_uri'),' ','2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, 'filepath': {'value': 'scripts/viya_prereq.sh'}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetname')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}}{'name': ""[variables('vmname1')]"", 'type': 'microsoft.compute/virtualmachines', 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces', variables('nicname1'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname1')]"", 'adminusername': ""[parameters('username')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname1'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}, 'datadisks': [{'name': ""[concat(variables('vmname1'),'_datadisk1')]"", 'disksizegb': '1000', 'lun': 0, 'createoption': 'empty'}, {'name': ""[concat(variables('vmname1'),'_datadisk2')]"", 'disksizegb': '1000', 'lun': 1, 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[variables('nicid1')]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[variables('vmextensionname1')]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname1'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('azurepxc.sh', parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm1'))]""}}}{'name': ""[variables('vmname2')]"", 'type': 'microsoft.compute/virtualmachines', 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces', variables('nicname2'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname2')]"", 'adminusername': ""[parameters('username')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname2'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}, 'datadisks': [{'name': ""[concat(variables('vmname2'),'_datadisk1')]"", 'disksizegb': '1000', 'lun': 0, 'createoption': 'empty'}, {'name': ""[concat(variables('vmname2'),'_datadisk2')]"", 'disksizegb': '1000', 'lun': 1, 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[variables('nicid2')]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname2'),'/', variables('vmextensionname'))]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('vmname2'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions',variables('vmname1'), variables('vmextensionname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('azurepxc.sh', parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm2'))]""}}}{'name': ""[variables('vmname3')]"", 'type': 'microsoft.compute/virtualmachines', 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces', variables('nicname3'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname3')]"", 'adminusername': ""[parameters('username')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname3'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}, 'datadisks': [{'name': ""[concat(variables('vmname3'),'_datadisk1')]"", 'disksizegb': '1000', 'lun': 0, 'createoption': 'empty'}, {'name': ""[concat(variables('vmname3'),'_datadisk2')]"", 'disksizegb': '1000', 'lun': 1, 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[variables('nicid3')]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname3'),'/', variables('vmextensionname'))]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('vmname3'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions',variables('vmname1'), variables('vmextensionname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('azurepxc.sh', parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm3'))]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-08-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipprefixes', 'apiversion': '2021-03-01', 'name': ""[parameters('publicipprefixname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard', 'tier': 'regional'}, 'properties': {'prefixlength': ""[parameters('publicipprefixlength')]"", 'publicipaddressversion': 'ipv4'}}{'type': 'microsoft.network/natgateways', 'apiversion': '2020-06-01', 'name': ""[parameters('natgatewayname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'dependson': [""[variables('publicipprefixid')]""], 'properties': {'idletimeoutinminutes': 4, 'publicipprefixes': [{'id': ""[variables('publicipprefixid')]""}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('bastionpublicipaddressname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static'}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/bastionhosts', 'name': ""[parameters('bastionhostname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('bastionpublicipaddressid')]"", ""[variables('virtualnetworkid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconf', 'properties': {'subnet': {'id': ""[variables('bastionsubnetid')]""}, 'publicipaddress': {'id': ""[variables('bastionpublicipaddressid')]""}}}]}, 'resources': [{'type': 'providers/diagnosticsettings', 'apiversion': '2017-05-01-preview', 'name': 'microsoft.insights/default', 'location': ""[parameters('location')]"", 'dependson': [""[variables('bastionhostid')]"", ""[variables('workspaceid')]""], 'properties': {'workspaceid': ""[variables('workspaceid')]"", 'logs': [{'category': 'bastionauditlogs', 'enabled': true}]}}]}{'apiversion': '2020-04-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('vmnicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('virtualnetworkid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('vmsubnetid')]""}}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('vmsubnetnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowsshinbound', 'properties': {'priority': 100, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '22', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}, 'resources': [{'type': 'providers/diagnosticsettings', 'apiversion': '2017-05-01-preview', 'name': 'microsoft.insights/default', 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmsubnetnsgid')]"", ""[variables('workspaceid')]""], 'properties': {'workspaceid': ""[variables('workspaceid')]"", 'logs': [{'category': 'networksecuritygroupevent', 'enabled': true, 'retentionpolicy': {'enabled': false, 'days': 0}}, {'category': 'networksecuritygrouprulecounter', 'enabled': true, 'retentionpolicy': {'enabled': false, 'days': 0}}]}}]}{'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-05-01', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmsubnetnsgid')]"", ""[variables('publicipprefixid')]"", ""[variables('natgatewayid')]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('virtualnetworkaddressprefixes')]""]}, 'subnets': [{'name': ""[parameters('akssubnetname')]"", 'properties': {'addressprefix': ""[parameters('akssubnetaddressprefix')]"", 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled', 'natgateway': {'id': ""[variables('natgatewayid')]""}}}, {'name': ""[parameters('podsubnetname')]"", 'properties': {'addressprefix': ""[parameters('podsubnetaddressprefix')]"", 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled', 'natgateway': {'id': ""[variables('natgatewayid')]""}}}, {'name': ""[parameters('vmsubnetname')]"", 'properties': {'addressprefix': ""[parameters('vmsubnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[variables('vmsubnetnsgid')]""}, 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled', 'natgateway': {'id': ""[variables('natgatewayid')]""}}}, {'name': ""[parameters('applicationgatewaysubnetname')]"", 'properties': {'addressprefix': ""[parameters('applicationgatewaysubnetaddressprefix')]"", 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}}, {'name': ""[variables('bastionsubnetname')]"", 'properties': {'addressprefix': ""[parameters('bastionsubnetaddressprefix')]""}}], 'enableddosprotection': false, 'enablevmprotection': false}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('blobprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('keyvaultprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('acrprivatednszonename')]"", 'location': 'global', 'properties': {'maxnumberofrecordsets': 25000, 'maxnumberofvirtualnetworklinks': 1000, 'maxnumberofvirtualnetworklinkswithregistration': 100}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-06-01', 'name': ""[concat(variables('blobprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('blobprivatednszoneid')]"", ""[variables('virtualnetworkid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('virtualnetworkid')]""}}}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2018-09-01', 'name': ""[concat(variables('keyvaultprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('keyvaultprivatednszoneid')]"", ""[variables('virtualnetworkid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('virtualnetworkid')]""}}}{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-06-01', 'name': ""[concat(variables('acrprivatednszonename'), '/link_to_', tolower(parameters('virtualnetworkname')))]"", 'location': 'global', 'dependson': [""[variables('acrprivatednszoneid')]"", ""[variables('virtualnetworkid')]""], 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[variables('virtualnetworkid')]""}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2019-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', parameters('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',parameters('nicname'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmname'),'/installmongo')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', parameters('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('mongo-install-ubuntu.sh', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': 'sh mongo-install-ubuntu.sh'}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('networkinterfacename'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': 'microsoftwindowsserver', 'offer': 'windowsserver', 'sku': '2016-datacenter', 'version': 'latest'}, 'osdisk': {'name': 'tfsbasicmanagedosdisk', 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('networkinterfacename'))]""}]}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vm01name')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'iis01'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vm01name'), '_nic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vm01name')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('windowsosversion')]"", 'version': 'latest'}, 'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'properties': {'primary': true}, 'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('vm01name'), '_nic'))]""}]}}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vm02name')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'appvm01'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vm02name'), '_nic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vm02name')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('windowsosversion')]"", 'version': 'latest'}, 'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'properties': {'primary': true}, 'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('vm02name'), '_nic'))]""}]}}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vm03name')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'appvm02'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vm03name'), '_nic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vm03name')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('windowsosversion')]"", 'version': 'latest'}, 'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'properties': {'primary': true}, 'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('vm03name'), '_nic'))]""}]}}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vm04name')]"", 'apiversion': '2019-12-01', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'dns01'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vm04name'), '_nic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vm04name')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('windowsosversion')]"", 'version': 'latest'}, 'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'properties': {'primary': true}, 'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('vm04name'), '_nic'))]""}]}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/loadbalancers', 'apiversion': '2020-06-01', 'name': ""[variables('loadbalancername')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""], 'properties': {'frontendipconfigurations': [{'name': 'loadbalancerfrontend', 'properties': {'publicipaddress': {'id': ""[variables('publicipaddressid')]""}}}], 'backendaddresspools': [{'name': ""[variables('bepoolname')]""}], 'inboundnatpools': [{'name': ""[variables('natpoolname')]"", 'properties': {'frontendipconfiguration': {'id': ""[variables('frontendipconfigid')]""}, 'protocol': 'tcp', 'frontendportrangestart': ""[variables('natstartport')]"", 'frontendportrangeend': ""[variables('natendport')]"", 'backendport': ""[variables('natbackendport')]""}}], 'loadbalancingrules': [{'name': 'lbrule', 'properties': {'frontendipconfiguration': {'id': ""[variables('frontendipconfigid')]""}, 'backendaddresspool': {'id': ""[variables('lbpoolid')]""}, 'protocol': 'tcp', 'frontendport': 80, 'backendport': 80, 'enablefloatingip': false, 'idletimeoutinminutes': 5, 'probe': {'id': ""[variables('lbprobeid')]""}}}], 'probes': [{'name': 'tcpprobe', 'properties': {'protocol': 'tcp', 'port': 80, 'intervalinseconds': 5, 'numberofprobes': 2}}]}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-06-01', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'static', 'dnssettings': {'domainnamelabel': ""[variables('longnaminginfix')]""}}} END" -Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-12-01', 'name': ""[parameters('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('networkinterfacename'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'storageprofile': {'osdisk': {'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[variables('osdisktype')]""}}, 'imagereference': {'publisher': 'canonical', 'offer': 'ubuntuserver', 'sku': '18.04-lts', 'version': 'latest'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('networkinterfacename'))]""}]}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminkey')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[concat('/home/', parameters('adminusername'), '/.ssh/authorized_keys')]"", 'keydata': ""[parameters('adminkey')]""}]}}}}} END" -This template creates a data collection rule defining the data source (Syslog) and the destination workspace.," {'type': 'microsoft.insights/autoscalesettings', 'name': ""[variables('settingname')]"", 'dependson': [""[resourceid('microsoft.web/serverfarms', parameters('svcplanname'))]""], 'apiversion': '2014-04-01', 'location': ""[parameters('location')]"", 'properties': {'profiles': [{'name': 'defaultautoscaleprofile', 'capacity': {'minimum': ""[parameters('minimumcapacity')]"", 'maximum': ""[parameters('maximumcapacity')]"", 'default': ""[parameters('defaultcapacity')]""}, 'rules': [{'metrictrigger': {'metricname': ""[parameters('metricname')]"", 'metricresourceuri': ""[variables('targetresourceid')]"", 'timegrain': 'pt5m', 'statistic': 'average', 'timewindow': 'pt10m', 'timeaggregation': 'average', 'operator': 'greaterthan', 'threshold': ""[parameters('metricthresholdtoscaleout')]""}, 'scaleaction': {'direction': 'increase', 'type': 'percentchangecount', 'value': ""[parameters('changepercentscaleout')]"", 'cooldown': 'pt10m'}}, {'metrictrigger': {'metricname': ""[parameters('metricname')]"", 'metricresourceuri': ""[variables('targetresourceid')]"", 'timegrain': 'pt5m', 'statistic': 'average', 'timewindow': 'pt10m', 'timeaggregation': 'average', 'operator': 'lessthan', 'threshold': ""[parameters('metricthresholdtoscalein')]""}, 'scaleaction': {'direction': 'decrease', 'type': 'percentchangecount', 'value': ""[parameters('changepercentscalein')]"", 'cooldown': 'pt10m'}}]}], 'enabled': ""[parameters('autoscaleenabled')]"", 'targetresourceuri': ""[variables('targetresourceid')]""}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2019-06-01', 'name': ""[variables('vnet_name')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups',variables('pub_sub_nw_sg'))]"", ""[resourceid('microsoft.network/networksecuritygroups',variables('pvt_sub_nw_sg'))]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddresscidr')]""]}, 'subnets': [{'name': ""[variables('vnet_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('sasprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_viya_pvt_subnt')]"", 'properties': {'addressprefix': ""[parameters('viyaprivatesubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pvt_sub_nw_sg'))]""}}}, {'name': ""[variables('vnet_pub_subnt')]"", 'properties': {'addressprefix': ""[parameters('ansiblebastionpublicsubnetcidr')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('pub_sub_nw_sg'))]""}}}], 'enableddosprotection': false, 'enablevmprotection': false}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('pub_sub_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow-ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': ""[parameters('adminingresslocation')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}], 'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('pvt_sub_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('ansible_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allow-ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': ""[parameters('adminingresslocation')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}], 'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '80,443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('meta_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('mid_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('compute_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('rdp_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('microservices_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('spre_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-09-01', 'name': ""[variables('cascontroller_nw_sg')]"", 'location': ""[parameters('location')]"", 'properties': {'defaultsecurityrules': [{'name': 'allowvnetinbound', 'properties': {'description': 'allow inbound traffic from all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'inbound'}}, {'name': 'denyallinbound', 'properties': {'description': 'deny all inbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'inbound'}}, {'name': 'allowvnetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to all vms in vnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 65000, 'direction': 'outbound'}}, {'name': 'allowinternetoutbound', 'properties': {'description': 'allow outbound traffic from all vms to the internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'allow', 'priority': 65001, 'direction': 'outbound'}}, {'name': 'denyalloutbound', 'properties': {'description': 'deny all outbound traffic', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 65500, 'direction': 'outbound'}}]}} END" -Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.," {'type': 'microsoft.web/connections', 'apiversion': '2018-07-01-preview', 'name': ""[variables('office365connectionname')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('resourcetags')]"", 'properties': {'api': {'id': ""[subscriptionresourceid('microsoft.web/locations/managedapis', parameters('location'), 'office365')]""}, 'displayname': 'office365'}}{'type': 'microsoft.web/connections', 'apiversion': '2018-07-01-preview', 'name': ""[variables('azuremonitorlogsconnectionname')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('resourcetags')]"", 'properties': {'api': {'id': ""[subscriptionresourceid('microsoft.web/locations/managedapis', parameters('location'), 'azuremonitorlogs')]""}, 'displayname': 'azuremonitorlogs'}} END" -This template deploys 3 Nodetype Service Fabric Cluster. it also allows you to allows you to control the inbound and outbound network traffic using Network Security Groups," {'apiversion': '2018-02-01', 'type': 'microsoft.servicefabric/clusters', 'name': ""[parameters('clustername')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('supportlogstorageaccountname'))]""], 'properties': {'certificate': {'thumbprint': ""[parameters('certificatethumbprint')]"", 'x509storename': ""[parameters('certificatestorevalue')]""}, 'clusterstate': 'default', 'diagnosticsstorageaccountconfig': {'blobendpoint': ""[reference(resourceid('microsoft.storage/storageaccounts/', variables('supportlogstorageaccountname')), '2021-04-01').primaryendpoints.blob]"", 'protectedaccountkeyname': 'storageaccountkey1', 'queueendpoint': ""[reference(resourceid('microsoft.storage/storageaccounts/', variables('supportlogstorageaccountname')), '2021-04-01').primaryendpoints.queue]"", 'storageaccountname': ""[variables('supportlogstorageaccountname')]"", 'tableendpoint': ""[reference(resourceid('microsoft.storage/storageaccounts/', variables('supportlogstorageaccountname')), '2021-04-01').primaryendpoints.table]""}, 'fabricsettings': [{'parameters': [{'name': 'clusterprotectionlevel', 'value': ""[parameters('clusterprotectionlevel')]""}], 'name': 'security'}], 'managementendpoint': ""[concat('https://', reference(variables('lbipnameurl')).dnssettings.fqdn,':',variables('nodesettings')[0].fabrichttpgatewayport)]"", 'copy': [{'name': 'nodetypes', 'count': ""[length(variables('nodesettings'))]"", 'input': {'name': ""[variables('nodesettings')[copyindex('nodetypes')].vmnodetypename]"", 'applicationports': {'endport': ""[variables('nodesettings')[copyindex('nodetypes')].applicationendport]"", 'startport': ""[variables('nodesettings')[copyindex('nodetypes')].applicationstartport]""}, 'clientconnectionendpointport': ""[variables('nodesettings')[copyindex('nodetypes')].fabrictcpgatewayport]"", 'durabilitylevel': 'bronze', 'ephemeralports': {'endport': ""[variables('nodesettings')[copyindex('nodetypes')].ephemeralendport]"", 'startport': ""[variables('nodesettings')[copyindex('nodetypes')].ephemeralstartport]""}, 'httpgatewayendpointport': ""[variables('nodesettings')[copyindex('nodetypes')].fabrichttpgatewayport]"", 'isprimary': true, 'vminstancecount': ""[variables('nodesettings')[0].instancecount]""}}], 'provisioningstate': 'default', 'reliabilitylevel': 'silver', 'upgrademode': 'automatic', 'vmimage': 'windows'}, 'tags': {'resourcetype': 'service fabric', 'clustername': ""[parameters('clustername')]""}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2020-10-01', 'name': 'backup_jobs_non_log', 'type': 'microsoft.resources/deployments', 'resourcegroup': '[resourcegroup().name]', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').backup_jobs_non_log]"", 'contentversion': '1.0.0.0'}, 'parameters': {'workspacename': {'value': ""[parameters('workspacename')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2015-05-01-preview', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnet1name')]"", 'properties': {'addressprefix': ""[variables('subnet1prefix')]""}}, {'name': ""[variables('subnet2name')]"", 'properties': {'addressprefix': ""[variables('subnet2prefix')]""}}]}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': ""[format('nsg-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))]"", 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'location': {'value': ""[parameters('location')]""}, 'tags': {'value': ""[parameters('tags')]""}, 'nsgname': {'value': ""[format('nsg-{0}-{1}', variables('name'), variables('uniquesuffix'))]""}}, 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'metadata': {'_generator': {'name': 'bicep', 'version': '0.4.1124.51302', 'templatehash': '10817103010105652969'}}, 'parameters': {'location': {'type': 'string', 'metadata': {'description': 'azure region of the deployment'}}, 'tags': {'type': 'object', 'metadata': {'description': 'tags to add to the resources'}}, 'nsgname': {'type': 'string', 'metadata': {'description': 'name of the network security group'}}}, 'resources': [{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-07-01', 'name': ""[parameters('nsgname')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'properties': {'securityrules': [{'name': 'batchnodemanagement', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '29876-29877', 'sourceaddressprefix': 'batchnodemanagement', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 120, 'direction': 'inbound'}}, {'name': 'azuremachinelearning', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '44224', 'sourceaddressprefix': 'azuremachinelearning', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 130, 'direction': 'inbound'}}, {'name': 'azureactivedirectory', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'azureactivedirectory', 'access': 'allow', 'priority': 140, 'direction': 'outbound'}}, {'name': 'azuremachinelearningoutbound', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'azuremachinelearning', 'access': 'allow', 'priority': 150, 'direction': 'outbound'}}, {'name': 'azureresourcemanager', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'azureresourcemanager', 'access': 'allow', 'priority': 160, 'direction': 'outbound'}}, {'name': 'azurestorageaccount', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': ""[format('storage.{0}', parameters('location'))]"", 'access': 'allow', 'priority': 170, 'direction': 'outbound'}}, {'name': 'azurefrontdoor', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'azurefrontdoor.frontend', 'access': 'allow', 'priority': 180, 'direction': 'outbound'}}, {'name': 'azurecontainerregistry', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': ""[format('azurecontainerregistry.{0}', parameters('location'))]"", 'access': 'allow', 'priority': 190, 'direction': 'outbound'}}, {'name': 'microsoftcontainerregistry', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'microsoftcontainerregistry', 'access': 'allow', 'priority': 200, 'direction': 'outbound'}}]}}], 'outputs': {'networksecuritygroup': {'type': 'string', 'value': ""[resourceid('microsoft.network/networksecuritygroups', parameters('nsgname'))]""}}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': ""[format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))]"", 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'location': {'value': ""[parameters('location')]""}, 'virtualnetworkname': {'value': ""[format('vnet-{0}-{1}', variables('name'), variables('uniquesuffix'))]""}, 'networksecuritygroupid': {'value': ""[reference(resourceid('microsoft.resources/deployments', format('nsg-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))), '2020-10-01').outputs.networksecuritygroup.value]""}, 'vnetaddressprefix': {'value': ""[parameters('vnetaddressprefix')]""}, 'trainingsubnetprefix': {'value': ""[parameters('trainingsubnetprefix')]""}, 'scoringsubnetprefix': {'value': ""[parameters('scoringsubnetprefix')]""}, 'tags': {'value': ""[parameters('tags')]""}}, 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'metadata': {'_generator': {'name': 'bicep', 'version': '0.4.1124.51302', 'templatehash': '10626371512799024852'}}, 'parameters': {'location': {'type': 'string', 'defaultvalue': '[resourcegroup().location]', 'metadata': {'description': 'azure region of the deployment'}}, 'tags': {'type': 'object', 'defaultvalue': {}, 'metadata': {'description': 'tags to add to the resources'}}, 'virtualnetworkname': {'type': 'string', 'metadata': {'description': 'name of the virtual network resource'}}, 'networksecuritygroupid': {'type': 'string', 'metadata': {'description': 'group id of the network security group'}}, 'vnetaddressprefix': {'type': 'string', 'defaultvalue': '192.168.0.0/16', 'metadata': {'description': 'virtual network address prefix'}}, 'trainingsubnetprefix': {'type': 'string', 'defaultvalue': '192.168.0.0/24', 'metadata': {'description': 'training subnet address prefix'}}, 'scoringsubnetprefix': {'type': 'string', 'defaultvalue': '192.168.1.0/24', 'metadata': {'description': 'scoring subnet address prefix'}}}, 'resources': [{'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-07-01', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddressprefix')]""]}, 'subnets': [{'name': 'snet-training', 'properties': {'addressprefix': ""[parameters('trainingsubnetprefix')]"", 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'disabled', 'networksecuritygroup': {'id': ""[parameters('networksecuritygroupid')]""}}}, {'name': 'snet-scoring', 'properties': {'addressprefix': ""[parameters('scoringsubnetprefix')]"", 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'disabled', 'serviceendpoints': [{'service': 'microsoft.keyvault'}, {'service': 'microsoft.containerregistry'}, {'service': 'microsoft.storage'}], 'networksecuritygroup': {'id': ""[parameters('networksecuritygroupid')]""}}}]}}], 'outputs': {'id': {'type': 'string', 'value': ""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""}, 'name': {'type': 'string', 'value': ""[parameters('virtualnetworkname')]""}}}}, 'dependson': [""[resourceid('microsoft.resources/deployments', format('nsg-{0}-{1}-deployment', variables('name'), variables('uniquesuffix')))]""]}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': ""[format('kv-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))]"", 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'location': {'value': ""[parameters('location')]""}, 'keyvaultname': {'value': ""[format('kv-{0}-{1}', variables('name'), variables('uniquesuffix'))]""}, 'keyvaultplename': {'value': ""[format('ple-{0}-{1}-kv', variables('name'), variables('uniquesuffix'))]""}, 'subnetid': {'value': ""[format('{0}/subnets/snet-training', reference(resourceid('microsoft.resources/deployments', format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))), '2020-10-01').outputs.id.value)]""}, 'virtualnetworkid': {'value': ""[format('{0}', reference(resourceid('microsoft.resources/deployments', format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))), '2020-10-01').outputs.id.value)]""}, 'tags': {'value': ""[parameters('tags')]""}}, 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'metadata': {'_generator': {'name': 'bicep', 'version': '0.4.1124.51302', 'templatehash': '12942824693449975193'}}, 'parameters': {'location': {'type': 'string', 'defaultvalue': '[resourcegroup().location]', 'metadata': {'description': 'the azure region to deploy the resrouce group into'}}, 'tags': {'type': 'object', 'defaultvalue': {}, 'metadata': {'description': 'tags to apply to the key vault instance'}}, 'keyvaultname': {'type': 'string', 'metadata': {'description': 'the name of the key vault'}}, 'keyvaultplename': {'type': 'string', 'metadata': {'description': 'the name of the key vault private link endpoint'}}, 'subnetid': {'type': 'string', 'metadata': {'description': 'the subnet id where the key vault private link is to be created'}}, 'virtualnetworkid': {'type': 'string', 'metadata': {'description': 'the vnet id where the key vault private link is to be created'}}}, 'variables': {'privatednszonename': ""[format('privatelink{0}', environment().suffixes.keyvaultdns)]""}, 'resources': [{'type': 'microsoft.keyvault/vaults', 'apiversion': '2021-04-01-preview', 'name': ""[parameters('keyvaultname')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'properties': {'createmode': 'default', 'enabledfordeployment': false, 'enabledfordiskencryption': false, 'enabledfortemplatedeployment': false, 'enablesoftdelete': true, 'enablerbacauthorization': true, 'enablepurgeprotection': true, 'networkacls': {'bypass': 'azureservices', 'defaultaction': 'deny'}, 'sku': {'family': 'a', 'name': 'standard'}, 'softdeleteretentionindays': 7, 'tenantid': '[subscription().tenantid]'}}, {'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-11-01', 'name': ""[parameters('keyvaultplename')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('keyvaultplename')]"", 'properties': {'groupids': ['vault'], 'privatelinkserviceid': ""[resourceid('microsoft.keyvault/vaults', parameters('keyvaultname'))]""}}], 'subnet': {'id': ""[parameters('subnetid')]""}}, 'dependson': [""[resourceid('microsoft.keyvault/vaults', parameters('keyvaultname'))]""]}, {'type': 'microsoft.network/privatednszones', 'apiversion': '2020-01-01', 'name': ""[variables('privatednszonename')]"", 'location': 'global'}, {'type': 'microsoft.network/privateendpoints/privatednszonegroups', 'apiversion': '2020-06-01', 'name': ""[format('{0}/vault-privatednszonegroup', parameters('keyvaultplename'))]"", 'properties': {'privatednszoneconfigs': [{'name': ""[variables('privatednszonename')]"", 'properties': {'privatednszoneid': ""[resourceid('microsoft.network/privatednszones', variables('privatednszonename'))]""}}]}, 'dependson': [""[resourceid('microsoft.network/privatednszones', variables('privatednszonename'))]"", ""[resourceid('microsoft.network/privateendpoints', parameters('keyvaultplename'))]""]}, {'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-01-01', 'name': ""[format('{0}/{1}', variables('privatednszonename'), uniquestring(resourceid('microsoft.keyvault/vaults', parameters('keyvaultname'))))]"", 'location': 'global', 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[parameters('virtualnetworkid')]""}}, 'dependson': [""[resourceid('microsoft.keyvault/vaults', parameters('keyvaultname'))]"", ""[resourceid('microsoft.network/privatednszones', variables('privatednszonename'))]""]}], 'outputs': {'keyvaultid': {'type': 'string', 'value': ""[resourceid('microsoft.keyvault/vaults', parameters('keyvaultname'))]""}}}}, 'dependson': [""[resourceid('microsoft.resources/deployments', format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix')))]""]}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': ""[format('st{0}{1}-deployment', variables('name'), variables('uniquesuffix'))]"", 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'location': {'value': ""[parameters('location')]""}, 'storagename': {'value': ""[format('st{0}{1}', variables('name'), variables('uniquesuffix'))]""}, 'storagepleblobname': {'value': ""[format('ple-{0}-{1}-st-blob', variables('name'), variables('uniquesuffix'))]""}, 'storageplefilename': {'value': ""[format('ple-{0}-{1}-st-file', variables('name'), variables('uniquesuffix'))]""}, 'storageskuname': {'value': 'standard_lrs'}, 'subnetid': {'value': ""[format('{0}/subnets/snet-training', reference(resourceid('microsoft.resources/deployments', format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))), '2020-10-01').outputs.id.value)]""}, 'virtualnetworkid': {'value': ""[format('{0}', reference(resourceid('microsoft.resources/deployments', format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))), '2020-10-01').outputs.id.value)]""}, 'tags': {'value': ""[parameters('tags')]""}}, 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'metadata': {'_generator': {'name': 'bicep', 'version': '0.4.1124.51302', 'templatehash': '10314405918172506604'}}, 'parameters': {'location': {'type': 'string', 'metadata': {'description': 'azure region of the deployment'}}, 'tags': {'type': 'object', 'metadata': {'description': 'tags to add to the resources'}}, 'storagename': {'type': 'string', 'metadata': {'description': 'name of the storage account'}}, 'storagepleblobname': {'type': 'string', 'metadata': {'description': 'name of the storage blob private link endpoint'}}, 'storageplefilename': {'type': 'string', 'metadata': {'description': 'name of the storage file private link endpoint'}}, 'subnetid': {'type': 'string', 'metadata': {'description': 'resource id of the subnet'}}, 'virtualnetworkid': {'type': 'string', 'metadata': {'description': 'resource id of the virtual network'}}, 'storageskuname': {'type': 'string', 'defaultvalue': 'standard_lrs', 'metadata': {'description': 'storage sku'}, 'allowedvalues': ['standard_lrs', 'standard_zrs', 'standard_grs', 'standard_gzrs', 'standard_ragrs', 'standard_ragzrs', 'premium_lrs', 'premium_zrs']}}, 'variables': {'storagenamecleaned': ""[replace(parameters('storagename'), '-', '')]"", 'blobprivatednszonename': ""[format('privatelink.blob.{0}', environment().suffixes.storage)]"", 'fileprivatednszonename': ""[format('privatelink.file.{0}', environment().suffixes.storage)]""}, 'resources': [{'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-04-01', 'name': ""[variables('storagenamecleaned')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'sku': {'name': ""[parameters('storageskuname')]""}, 'kind': 'storagev2', 'properties': {'accesstier': 'hot', 'allowblobpublicaccess': false, 'allowcrosstenantreplication': false, 'allowsharedkeyaccess': true, 'encryption': {'keysource': 'microsoft.storage', 'requireinfrastructureencryption': false, 'services': {'blob': {'enabled': true, 'keytype': 'account'}, 'file': {'enabled': true, 'keytype': 'account'}, 'queue': {'enabled': true, 'keytype': 'service'}, 'table': {'enabled': true, 'keytype': 'service'}}}, 'ishnsenabled': false, 'isnfsv3enabled': false, 'keypolicy': {'keyexpirationperiodindays': 7}, 'largefilesharesstate': 'disabled', 'minimumtlsversion': 'tls1_2', 'networkacls': {'bypass': 'azureservices', 'defaultaction': 'deny'}, 'supportshttpstrafficonly': true}}, {'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-11-01', 'name': ""[parameters('storagepleblobname')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('storagepleblobname')]"", 'properties': {'groupids': ['blob'], 'privatelinkserviceid': ""[resourceid('microsoft.storage/storageaccounts', variables('storagenamecleaned'))]"", 'privatelinkserviceconnectionstate': {'status': 'approved', 'description': 'auto-approved', 'actionsrequired': 'none'}}}], 'subnet': {'id': ""[parameters('subnetid')]""}}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts', variables('storagenamecleaned'))]""]}, {'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-11-01', 'name': ""[parameters('storageplefilename')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('storageplefilename')]"", 'properties': {'groupids': ['file'], 'privatelinkserviceid': ""[resourceid('microsoft.storage/storageaccounts', variables('storagenamecleaned'))]"", 'privatelinkserviceconnectionstate': {'status': 'approved', 'description': 'auto-approved', 'actionsrequired': 'none'}}}], 'subnet': {'id': ""[parameters('subnetid')]""}}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts', variables('storagenamecleaned'))]""]}, {'type': 'microsoft.network/privatednszones', 'apiversion': '2020-01-01', 'name': ""[variables('blobprivatednszonename')]"", 'location': 'global'}, {'type': 'microsoft.network/privateendpoints/privatednszonegroups', 'apiversion': '2020-06-01', 'name': ""[format('{0}/blob-privatednszonegroup', parameters('storagepleblobname'))]"", 'properties': {'privatednszoneconfigs': [{'name': ""[variables('blobprivatednszonename')]"", 'properties': {'privatednszoneid': ""[resourceid('microsoft.network/privatednszones', variables('blobprivatednszonename'))]""}}]}, 'dependson': [""[resourceid('microsoft.network/privatednszones', variables('blobprivatednszonename'))]"", ""[resourceid('microsoft.network/privateendpoints', parameters('storagepleblobname'))]""]}, {'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-01-01', 'name': ""[format('{0}/{1}', variables('blobprivatednszonename'), uniquestring(resourceid('microsoft.storage/storageaccounts', variables('storagenamecleaned'))))]"", 'location': 'global', 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[parameters('virtualnetworkid')]""}}, 'dependson': [""[resourceid('microsoft.network/privatednszones', variables('blobprivatednszonename'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('storagenamecleaned'))]""]}, {'type': 'microsoft.network/privatednszones', 'apiversion': '2020-01-01', 'name': ""[variables('fileprivatednszonename')]"", 'location': 'global'}, {'type': 'microsoft.network/privateendpoints/privatednszonegroups', 'apiversion': '2020-06-01', 'name': ""[format('{0}/flie-privatednszonegroup', parameters('storageplefilename'))]"", 'properties': {'privatednszoneconfigs': [{'name': ""[variables('fileprivatednszonename')]"", 'properties': {'privatednszoneid': ""[resourceid('microsoft.network/privatednszones', variables('fileprivatednszonename'))]""}}]}, 'dependson': [""[resourceid('microsoft.network/privatednszones', variables('fileprivatednszonename'))]"", ""[resourceid('microsoft.network/privateendpoints', parameters('storageplefilename'))]""]}, {'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-01-01', 'name': ""[format('{0}/{1}', variables('fileprivatednszonename'), uniquestring(resourceid('microsoft.storage/storageaccounts', variables('storagenamecleaned'))))]"", 'location': 'global', 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[parameters('virtualnetworkid')]""}}, 'dependson': [""[resourceid('microsoft.network/privatednszones', variables('fileprivatednszonename'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('storagenamecleaned'))]""]}], 'outputs': {'storageid': {'type': 'string', 'value': ""[resourceid('microsoft.storage/storageaccounts', variables('storagenamecleaned'))]""}}}}, 'dependson': [""[resourceid('microsoft.resources/deployments', format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix')))]""]}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': ""[format('cr{0}{1}-deployment', variables('name'), variables('uniquesuffix'))]"", 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'location': {'value': ""[parameters('location')]""}, 'containerregistryname': {'value': ""[format('cr{0}{1}', variables('name'), variables('uniquesuffix'))]""}, 'containerregistryplename': {'value': ""[format('ple-{0}-{1}-cr', variables('name'), variables('uniquesuffix'))]""}, 'subnetid': {'value': ""[format('{0}/subnets/snet-training', reference(resourceid('microsoft.resources/deployments', format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))), '2020-10-01').outputs.id.value)]""}, 'virtualnetworkid': {'value': ""[format('{0}', reference(resourceid('microsoft.resources/deployments', format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))), '2020-10-01').outputs.id.value)]""}, 'tags': {'value': ""[parameters('tags')]""}}, 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'metadata': {'_generator': {'name': 'bicep', 'version': '0.4.1124.51302', 'templatehash': '10616715855710123481'}}, 'parameters': {'location': {'type': 'string', 'metadata': {'description': 'azure region of the deployment'}}, 'tags': {'type': 'object', 'metadata': {'description': 'tags to add to the resources'}}, 'containerregistryname': {'type': 'string', 'metadata': {'description': 'container registry name'}}, 'containerregistryplename': {'type': 'string', 'metadata': {'description': 'container registry private link endpoint name'}}, 'subnetid': {'type': 'string', 'metadata': {'description': 'resource id of the subnet'}}, 'virtualnetworkid': {'type': 'string', 'metadata': {'description': 'resource id of the virtual network'}}}, 'variables': {'containerregistrynamecleaned': ""[replace(parameters('containerregistryname'), '-', '')]"", 'privatednszonename': ""[format('privatelink{0}', environment().suffixes.acrloginserver)]"", 'groupname': 'registry'}, 'resources': [{'type': 'microsoft.containerregistry/registries', 'apiversion': '2020-11-01-preview', 'name': ""[variables('containerregistrynamecleaned')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'sku': {'name': 'premium'}, 'properties': {'adminuserenabled': true, 'anonymouspullenabled': false, 'dataendpointenabled': false, 'networkrulebypassoptions': 'azureservices', 'networkruleset': {'defaultaction': 'deny'}, 'policies': {'quarantinepolicy': {'status': 'enabled'}, 'retentionpolicy': {'status': 'enabled', 'days': 7}, 'trustpolicy': {'status': 'disabled', 'type': 'notary'}}, 'publicnetworkaccess': 'disabled', 'zoneredundancy': 'disabled'}}, {'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-11-01', 'name': ""[parameters('containerregistryplename')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('containerregistryplename')]"", 'properties': {'groupids': [""[variables('groupname')]""], 'privatelinkserviceid': ""[resourceid('microsoft.containerregistry/registries', variables('containerregistrynamecleaned'))]""}}], 'subnet': {'id': ""[parameters('subnetid')]""}}, 'dependson': [""[resourceid('microsoft.containerregistry/registries', variables('containerregistrynamecleaned'))]""]}, {'type': 'microsoft.network/privatednszones', 'apiversion': '2020-01-01', 'name': ""[variables('privatednszonename')]"", 'location': 'global'}, {'type': 'microsoft.network/privateendpoints/privatednszonegroups', 'apiversion': '2020-06-01', 'name': ""[format('{0}/{1}-privatednszonegroup', parameters('containerregistryplename'), variables('groupname'))]"", 'properties': {'privatednszoneconfigs': [{'name': ""[variables('privatednszonename')]"", 'properties': {'privatednszoneid': ""[resourceid('microsoft.network/privatednszones', variables('privatednszonename'))]""}}]}, 'dependson': [""[resourceid('microsoft.network/privatednszones', variables('privatednszonename'))]"", ""[resourceid('microsoft.network/privateendpoints', parameters('containerregistryplename'))]""]}, {'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-01-01', 'name': ""[format('{0}/{1}', variables('privatednszonename'), uniquestring(resourceid('microsoft.containerregistry/registries', variables('containerregistrynamecleaned'))))]"", 'location': 'global', 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[parameters('virtualnetworkid')]""}}, 'dependson': [""[resourceid('microsoft.network/privatednszones', variables('privatednszonename'))]"", ""[resourceid('microsoft.containerregistry/registries', variables('containerregistrynamecleaned'))]""]}], 'outputs': {'containerregistryid': {'type': 'string', 'value': ""[resourceid('microsoft.containerregistry/registries', variables('containerregistrynamecleaned'))]""}}}}, 'dependson': [""[resourceid('microsoft.resources/deployments', format('vnet-{0}-{1}-deployment', variables('name'), variables('uniquesuffix')))]""]}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': ""[format('appi-{0}-{1}-deployment', variables('name'), variables('uniquesuffix'))]"", 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'location': {'value': ""[parameters('location')]""}, 'applicationinsightsname': {'value': ""[format('appi-{0}-{1}', variables('name'), variables('uniquesuffix'))]""}, 'tags': {'value': ""[parameters('tags')]""}}, 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'metadata': {'_generator': {'name': 'bicep', 'version': '0.4.1124.51302', 'templatehash': '6767610316462092334'}}, 'parameters': {'location': {'type': 'string', 'defaultvalue': '[resourcegroup().location]', 'metadata': {'description': 'azure region of the deployment'}}, 'tags': {'type': 'object', 'defaultvalue': {}, 'metadata': {'description': 'tags to add to the resources'}}, 'applicationinsightsname': {'type': 'string', 'metadata': {'description': 'application insights resource name'}}}, 'resources': [{'type': 'microsoft.insights/components', 'apiversion': '2020-02-02', 'name': ""[parameters('applicationinsightsname')]"", 'location': ""[parameters('location')]"", 'tags': ""[parameters('tags')]"", 'kind': 'web', 'properties': {'application_type': 'web', 'disableipmasking': false, 'disablelocalauth': false, 'flow_type': 'bluefield', 'forcecustomerstorageforprofiler': false, 'immediatepurgedataon30days': true, 'ingestionmode': 'applicationinsights', 'publicnetworkaccessforingestion': 'enabled', 'publicnetworkaccessforquery': 'disabled', 'request_source': 'rest'}}], 'outputs': {'applicationinsightsid': {'type': 'string', 'value': ""[resourceid('microsoft.insights/components', parameters('applicationinsightsname'))]""}}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-05-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat('nic', copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'nicloop', 'count': ""[variables('numberofmasterinstances')]""}, 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[concat(parameters('sparknodeipaddressprefix'), copyindex())]"", 'subnet': {'id': ""[variables('subnetref')]""}}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat('nicsl', copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'nicslloop', 'count': ""[variables('numberofslavesinstances')]""}, 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[concat(parameters('sparkslavenodeipaddressprefix'), copyindex())]"", 'subnet': {'id': ""[variables('subnetref')]""}}}]}} END" -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'}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-12-01', 'name': ""[parameters('vmname')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', parameters('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': ""[variables('imagereference')[parameters('sku')]]"", 'osdisk': {'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', parameters('nicname'))]""}]}, 'securityprofile': {'uefisettings': {'securebootenabled': ""[parameters('secureboot')]"", 'vtpmenabled': ""[parameters('vtpm')]""}, 'securitytype': 'trustedlaunch'}}}{'condition': ""[and(equals(parameters('vtpm'), 'true'), equals(parameters('secureboot'), 'true'))]"", 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmname'), '/', variables('extensionname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', parameters('vmname'))]""], 'apiversion': '2020-06-01', 'properties': {'publisher': ""[variables('extensionpublisher')]"", 'type': ""[variables('extensionname')]"", 'typehandlerversion': ""[variables('extensionversion')]"", 'autoupgrademinorversion': true, 'settings': {'attestationendpointcfg': {'maaendpoint': ""[parameters('maaendpoint')]"", 'maatenantname': ""[variables('maatenantname')]"", 'ascreportingendpoint': ""[variables('ascreportingendpoint')]"", 'usealternatetoken': ""[variables('usealternatetoken')]"", 'disablealerts': ""[variables('disablealerts')]""}}}} END" -This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2017-05-10', 'name': ""[variables('nesteddeploymentnamensg')]"", 'type': 'microsoft.resources/deployments', 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/newnsg.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'nsgname': {'value': ""[variables('nsgname')]""}, 'ostype': {'value': ""[variables('internalostype')]""}}}}{'apiversion': '2017-05-10', 'name': ""[variables('nesteddeploymentnamevnet')]"", 'type': 'microsoft.resources/deployments', 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'dependson': [""[concat('microsoft.resources/deployments/', variables('nesteddeploymentnamensg'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/newvnetnsg.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'addressprefix': {'value': '10.0.0.0/16'}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'subnetprefix': {'value': '10.0.0.0/24'}, 'nsgname': {'value': ""[variables('nsgname')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnamepip'), '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'pipascsloop', 'count': ""[variables('ascsvmcount')]""}, 'condition': ""[equals(length(parameters('subnetid')), 0)]"", 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/newpip.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'publicipname': {'value': ""[concat(variables('publicipnameascs'), '-', copyindex())]""}, 'publicipaddresstype': {'value': 'dynamic'}}}}{'apiversion': '2017-05-10', 'name': ""[variables('nesteddeploymentnamelbascs')]"", 'type': 'microsoft.resources/deployments', 'dependson': [""[concat('microsoft.resources/deployments/', variables('nesteddeploymentnamevnet'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/loadbalancer.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'loadbalancername': {'value': ""[variables('loadbalancernameascs')]""}, 'sapsystemcount': {'value': 1}, 'stacktype': {'value': ""[parameters('stacktype')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'createxscs': {'value': true}, 'createdb': {'value': false}, 'subnetid': {'value': ""[variables('selectedsubnetid')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnamenicascs'), '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'nicconfigascsloop', 'count': ""[variables('ascsvmcount')]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/nic-config.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'publicipname': {'value': ""[concat(variables('publicipnameascs'), '-', copyindex())]""}, 'subnetid': {'value': ""[parameters('subnetid')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnameprof'), '-ascs-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'osdiskpartsascsloop', 'count': ""[variables('ascsvmcount')]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/os-disk-parts-md.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'imagesku': {'value': ''}, 'imagepublisher': {'value': ''}, 'imageoffer': {'value': ''}, 'imageversion': {'value': ''}, 'osdisktype': {'value': ""[variables('osdisktype')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'vmname': {'value': ""[concat(variables('vmnameascs'), '-', copyindex())]""}, 'storagetype': {'value': 'premium_lrs'}, 'manageddiskid': {'value': ""[parameters('userimageid')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnameascs'), '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'serverascsloop', 'count': ""[variables('ascsvmcount')]""}, 'dependson': ['nicascsloop', ""[concat('microsoft.compute/availabilitysets/', variables('avsetnameascs'))]"", 'osdiskpartsascsloop'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/server-md.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'imagereference': {'value': ""[reference(concat(variables('nesteddeploymentnameprof'), '-ascs-', copyindex())).outputs.imagereference.value]""}, 'osdisk': {'value': ""[reference(concat(variables('nesteddeploymentnameprof'), '-ascs-', copyindex())).outputs.osdisk.value]""}, 'osdisktype': {'value': ""[variables('osdisktype')]""}, 'vmname': {'value': ""[concat(variables('vmnameascs'), '-', copyindex())]""}, 'vmsize': {'value': ""[variables('vmsizes')[parameters('sapsystemsize')][parameters('systemavailability')].ascsserversize]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'csextensionscript': {'value': ""[variables('csextension')[variables('internalostype')].script]""}, 'csextensionscriptcall': {'value': ""[variables('csextension')[variables('internalostype')].scriptcall]""}, 'csextensionscriptargs': {'value': ''}, 'avsetobj': {'value': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('avsetnameascs'))]""}}, 'useavset': {'value': true}, 'nicname': {'value': ""[concat(variables('nicnameascs'), '-', copyindex())]""}, 'datadisksobj': {'value': {'datadisks': [{'lun': 0, 'createoption': 'empty', 'disksizegb': 128}]}}, 'ostype': {'value': ""[variables('internalostype')]""}}}}{'apiversion': '2017-05-10', 'name': ""[variables('nesteddeploymentnamelbdb')]"", 'type': 'microsoft.resources/deployments', 'dependson': [""[concat('microsoft.resources/deployments/', variables('nesteddeploymentnamevnet'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/loadbalancer.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'loadbalancername': {'value': ""[variables('loadbalancernamedb')]""}, 'sapsystemcount': {'value': 1}, 'stacktype': {'value': ""[parameters('stacktype')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'createxscs': {'value': false}, 'createdb': {'value': true}, 'dbtype': {'value': ""[parameters('dbtype')]""}, 'subnetid': {'value': ""[variables('selectedsubnetid')]""}, '_artifactslocation': {'value': ""[parameters('_artifactslocation')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnamenicdb'), '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'nicconfigdbloop', 'count': ""[variables('dbvmcount')]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/nic-config.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'publicipname': {'value': ''}, 'subnetid': {'value': ""[parameters('subnetid')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnameprof'), '-db-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'osdiskpartsdbloop', 'count': ""[variables('dbvmcount')]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/os-disk-parts-md.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'imagesku': {'value': ''}, 'imagepublisher': {'value': ''}, 'imageoffer': {'value': ''}, 'imageversion': {'value': ''}, 'osdisktype': {'value': ""[variables('osdisktype')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'sidlower': {'value': ""[variables('sidlower')]""}, 'vmname': {'value': ""[concat(variables('vmnamedb'), '-', copyindex())]""}, 'storagetype': {'value': 'premium_lrs'}, 'manageddiskid': {'value': ""[parameters('userimageid')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnamedb'), '-', copyindex())]"", 'copy': {'name': 'serverdbloop', 'count': ""[variables('dbvmcount')]""}, 'type': 'microsoft.resources/deployments', 'dependson': ['nicdbloop', ""[concat('microsoft.compute/availabilitysets/', variables('avsetnamedb'))]"", 'osdiskpartsdbloop'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/server-md.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'imagereference': {'value': ""[reference(concat(variables('nesteddeploymentnameprof'), '-db-', copyindex())).outputs.imagereference.value]""}, 'osdisk': {'value': ""[reference(concat(variables('nesteddeploymentnameprof'), '-db-', copyindex())).outputs.osdisk.value]""}, 'osdisktype': {'value': ""[variables('osdisktype')]""}, 'vmname': {'value': ""[concat(variables('vmnamedb'), '-', copyindex())]""}, 'vmsize': {'value': ""[variables('vmsizes')[parameters('sapsystemsize')][parameters('systemavailability')].dbserversize]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'csextensionscript': {'value': ""[variables('csextension')[variables('internalostype')].script]""}, 'csextensionscriptcall': {'value': ""[variables('csextension')[variables('internalostype')].scriptcall]""}, 'csextensionscriptargs': {'value': ''}, 'avsetobj': {'value': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('avsetnamedb'))]""}}, 'useavset': {'value': true}, 'nicname': {'value': ""[concat(variables('nicnamedb'), '-', copyindex())]""}, 'datadisksobj': {'value': {'copy': [{'name': 'datadisks', 'count': ""[length(variables('dbvmdatadisks'))]"", 'input': {'lun': ""[copyindex('datadisks')]"", 'createoption': 'empty', 'disksizegb': ""[variables('dbvmdatadisks')[copyindex('datadisks')].size]""}}]}}, 'ostype': {'value': ""[variables('internalostype')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnamenicdi'), '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'nicconfigdiloop', 'count': ""[variables('divmcount')]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/nic-config.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vnetname': {'value': ""[variables('vnetname')]""}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'publicipname': {'value': ''}, 'subnetid': {'value': ""[parameters('subnetid')]""}}}}{'apiversion': '2017-05-10', 'name': ""[concat(variables('nesteddeploymentnameprof'), '-di-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'copy': {'name': 'osdiskpartsdiloop', 'count': ""[variables('divmcount')]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(parameters('_artifactslocation'), '/shared/os-disk-parts-md.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'imagesku': {'value': ''}, 'imagepublisher': {'value': ''}, 'imageoffer': {'value': ''}, 'imageversion': {'value': ''}, 'osdisktype': {'value': ""[variables('osdisktype')]""}, 'ostype': {'value': ""[variables('internalostype')]""}, 'sidlower': {'value': ""[variables('sidlower')]""}, 'vmname': {'value': ""[concat(variables('vmnamedi'), '-', copyindex())]""}, 'storagetype': {'value': 'premium_lrs'}, 'manageddiskid': {'value': ""[parameters('userimageid')]""}}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2019-07-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'identity': {'type': 'systemassigned'}, 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('ossku')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}, 'datadisks': [{'disksizegb': 512, 'lun': 1, 'name': 'datadisk-01', 'createoption': 'empty', 'caching': 'none'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('vmname'),'/diskencryption')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.keyvault/vaults', parameters('keyvaultname'))]""], 'location': ""[parameters('location')]"", 'properties': {'publisher': 'microsoft.azure.security', 'type': 'azurediskencryption', 'typehandlerversion': '2.2', 'autoupgrademinorversion': true, 'settings': {'encryptionoperation': ""[variables('encryptionoperation')]"", 'keyvaulturl': ""[variables('keyvaulturl')]"", 'keyvaultresourceid': ""[variables('keyvaultresourceid')]"", 'volumetype': 'all'}}} END" -Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.," {'comments': ""generalized from resource: '/subscriptions/38ccde7a-8dbd-46b4-a0c6-71201ffab311/resourcegroups/autonub/providers/microsoft.web/serverfarms/uswestbasic'."", 'type': 'microsoft.web/serverfarms', 'sku': {'name': 'b1', 'tier': 'basic', 'size': 'b1', 'family': 'b', 'capacity': 1}, 'name': ""[parameters('azure service plan')]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'properties': {'name': ""[parameters('azure service plan')]"", 'numberofworkers': 1}}{'comments': ""generalized from resource: '/subscriptions/38ccde7a-8dbd-46b4-a0c6-71201ffab311/resourcegroups/autonub/providers/microsoft.web/sites/pnwebjob'."", 'type': 'microsoft.web/sites', 'name': ""[parameters('azure webjob name')]"", 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'properties': {'name': ""[parameters('azure webjob name')]"", 'hostnames': [""[concat(parameters('azure webjob name'), variables('endpoint'))]""], 'enabledhostnames': [""[concat(parameters('azure webjob name'), variables('endpoint'))]"", ""[concat(parameters('azure webjob name'),'.scm', variables('endpoint'))]""], 'hostnamesslstates': [{'name': ""[concat(parameters('azure webjob name'), variables('endpoint'))]"", 'sslstate': 0, 'ipbasedsslstate': 0}, {'name': ""[concat(parameters('azure webjob name'),'.scm', variables('endpoint'))]"", 'sslstate': 0, 'ipbasedsslstate': 0}], 'serverfarmid': ""[resourceid('microsoft.web/serverfarms', parameters('azure service plan'))]""}, 'resources': [{'apiversion': '2020-06-01', 'name': 'web', 'type': 'config', 'dependson': [""[resourceid('microsoft.web/sites', concat(parameters('azure webjob name')))]""], 'properties': {'alwayson': true}}, {'apiversion': '2020-06-01', 'name': 'web', 'type': 'sourcecontrols', 'dependson': [""[resourceid('microsoft.web/sites', parameters('azure webjob name'))]""], 'properties': {'repourl': 'https://github.com/pubnub/azureeventhubbridge.git', 'branch': 'master', 'ismanualintegration': true}}, {'apiversion': '2020-06-01', 'name': 'connectionstrings', 'type': 'config', 'dependson': [""[resourceid('microsoft.web/sites', concat(parameters('azure webjob name')))]"", ""[resourceid('microsoft.web/sites/sourcecontrols', concat(parameters('azure webjob name')), 'web')]""], 'properties': {'pnsubchannel': {'value': ""[parameters('pubnub ingress channel')]"", 'type': 'custom'}, 'pnpubchannel': {'value': ""[parameters('pubnub egress channel')]"", 'type': 'custom'}, 'pnannouncechannel': {'value': ""[parameters('pubnub announce channel')]"", 'type': 'custom'}, 'pnpublishkey': {'value': ""[parameters('pubnub publish key')]"", 'type': 'custom'}, 'pnsubscribekey': {'value': ""[parameters('pubnub subscribe key')]"", 'type': 'custom'}, 'ehinconnectionstring': {'value': ""[listkeys(variables('ehinauthorizationruleresourceid'), variables('sbversion')).primaryconnectionstring]"", 'type': 'custom'}, 'ehoutconnectionstring': {'value': ""[listkeys(variables('ehoutauthorizationruleresourceid'), variables('sbversion')).primaryconnectionstring]"", 'type': 'custom'}}}], 'dependson': [""[resourceid('microsoft.web/serverfarms', parameters('azure service plan'))]""]} END" -Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('bwafnsgname')]"", 'apiversion': '2016-03-30', 'location': ""[parameters('location')]"", 'comments': ' nsg for bwaf subnet', 'tags': {'displayname': 'bwaf nsg', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('barracudanetworkstags').provider]""}, 'properties': {'securityrules': [{'name': 'http-allow', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': ""[parameters('remoteallowedcidr')]"", 'destinationaddressprefix': '10.0.0.0/24', 'access': 'allow', 'priority': 110, 'direction': 'inbound'}}, {'name': 'https-allow', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': ""[parameters('remoteallowedcidr')]"", 'destinationaddressprefix': '10.0.0.0/24', 'access': 'allow', 'priority': 120, 'direction': 'inbound'}}, {'name': 'adminportal-allow', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '8000', 'sourceaddressprefix': ""[parameters('remoteallowedcidr')]"", 'destinationaddressprefix': '10.0.0.0/24', 'access': 'allow', 'priority': 130, 'direction': 'inbound'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('webnsgname')]"", 'apiversion': '2016-03-30', 'location': ""[parameters('location')]"", 'comments': ' nsg for web subnet', 'tags': {'displayname': 'web nsg', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('barracudanetworkstags').provider]""}, 'properties': {'securityrules': [{'name': 'rdp-allow', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefix': ""[parameters('remoteallowedcidr')]"", 'destinationaddressprefix': '10.0.1.0/24', 'access': 'allow', 'priority': 110, 'direction': 'inbound'}}]}}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('bwafvmipaddressname')]"", 'apiversion': '2016-03-30', 'location': ""[parameters('location')]"", 'comments': ' public ip used by the bwaf vm', 'tags': {'displayname': 'bwaf public ip', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('barracudanetworkstags').provider]""}, 'properties': {'publicipallocationmethod': 'static', 'idletimeoutinminutes': 4, 'dnssettings': {'domainnamelabel': ""[variables('bwafvmdnslabel')]""}}}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('lbipaddressname')]"", 'apiversion': '2016-03-30', 'location': ""[parameters('location')]"", 'comments': 'public ip used by the load balancer for rdp into web servers', 'tags': {'displayname': 'lb public ip', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('barracudanetworkstags').provider]""}, 'properties': {'publicipallocationmethod': 'static', 'idletimeoutinminutes': 4, 'dnssettings': {'domainnamelabel': ""[variables('lbdnslabel')]""}}}{'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'apiversion': '2016-03-30', 'location': ""[parameters('location')]"", 'comments': 'virtual network for overall solution', 'tags': {'displayname': 'bwaf virtual network', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('barracudanetworkstags').provider]""}, 'dependson': [""[resourceid('microsoft.network/networksecuritygroups/', variables('webnsgname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/', variables('bwafnsgname'))]""], 'properties': {'addressspace': {'addressprefixes': ['10.0.0.0/16']}, 'subnets': [{'name': ""[variables('bwafsubnetname')]"", 'properties': {'addressprefix': '10.0.0.0/24', 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('bwafnsgname'))]""}}}, {'name': ""[variables('websubnetname')]"", 'properties': {'addressprefix': '10.0.1.0/24', 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('webnsgname'))]""}}}]}}{'type': 'microsoft.network/loadbalancers', 'name': ""[variables('loadbalancername')]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'comments': 'this load balancer is used to allow rdp access to web vms', 'tags': {'displayname': 'web rdp load balancer', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('barracudanetworkstags').provider]""}, 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('lbipaddressname'))]""], 'properties': {'frontendipconfigurations': [{'name': 'loadbalancerfrontend', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('lbipaddressname'))]""}}}], 'backendaddresspools': [{'name': 'loadbalancerbackend'}]}}{'type': 'microsoft.network/loadbalancers/inboundnatrules', 'name': ""[concat(variables('loadbalancername'), '/', 'rdpvm', copyindex(1))]"", 'apiversion': '2016-03-30', 'location': ""[parameters('location')]"", 'comments': 'this resource adds all the nat rules needed to allow rdp access to web servers vms', 'tags': {'displayname': 'lb rdp nat rules', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('barracudanetworkstags').provider]""}, 'dependson': [""[resourceid('microsoft.network/loadbalancers/', variables('loadbalancername'))]""], 'copy': {'name': 'lbnatloop', 'count': ""[parameters('webvmcount')]""}, 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations',variables('loadbalancername'),'loadbalancerfrontend')]""}, 'protocol': 'tcp', 'frontendport': '[copyindex(5001)]', 'backendport': 3389, 'enablefloatingip': false}}{'name': ""[concat(variables('webvmnicname'), copyindex(1))]"", 'type': 'microsoft.network/networkinterfaces', 'apiversion': '2016-03-30', 'location': ""[parameters('location')]"", 'comments': 'nics for web servers', 'tags': {'displayname': 'web vm nics', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('barracudanetworkstags').provider]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/inboundnatrules',variables('loadbalancername'), concat('rdpvm', copyindex(1)))]""], 'copy': {'name': 'webnicloop', 'count': ""[parameters('webvmcount')]""}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('websubnetname'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools',variables('loadbalancername'), 'loadbalancerbackend')]""}], 'loadbalancerinboundnatrules': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatrules',variables('loadbalancername'),concat('rdpvm',copyindex(1)))]""}]}}]}}{'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('bwafvmnicname')]"", 'apiversion': '2016-03-30', 'location': ""[parameters('location')]"", 'comments': 'nic for bwaf vm', 'tags': {'displayname': 'bwaf vm nic', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('barracudanetworkstags').provider]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses', variables('bwafvmipaddressname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('bwafvmipaddressname'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('bwafsubnetname'))]""}}}]}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-06-01', 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'name': 'gw-availabilityset', 'properties': {'platformupdatedomaincount': 20, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}}{'apiversion': '2020-06-01', 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'name': 'cb-availabilityset', 'properties': {'platformupdatedomaincount': 20, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}}{'apiversion': '2020-06-01', 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'name': ""[concat(parameters('rdshnamingprefix'), 'availabilityset')]"", 'properties': {'platformupdatedomaincount': 20, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}}{'apiversion': '2020-06-01', 'type': 'microsoft.compute/virtualmachines', 'name': 'gw-vm', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/availabilitysets', 'gw-availabilityset')]"", ""[resourceid('microsoft.network/networkinterfaces', 'gw-nic')]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('rdshvmsize')]""}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', 'gw-availabilityset')]""}, 'osprofile': {'computername': 'gateway', 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': 'gw_osdisk', 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces','gw-nic')]""}]}}, 'resources': [{'apiversion': '2020-06-01', 'type': 'extensions', 'name': 'gateway', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', 'gw-vm')]""], 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.11', 'autoupgrademinorversion': true, 'settings': {'modulesurl': ""[uri(parameters('_artifactslocation'),concat('dsc/configuration.zip', parameters('_artifactslocationsastoken')))]"", 'configurationfunction': 'configuration.ps1\\gateway', 'properties': {'domainname': ""[parameters('addomainname')]"", 'admincreds': {'username': ""[parameters('adminusername')]"", 'password': 'privatesettingsref:adminpassword'}}}, 'protectedsettings': {'items': {'adminpassword': ""[parameters('adminpassword')]""}}}}]}{'apiversion': '2020-06-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(parameters('rdshnamingprefix'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'rdsh-vm-loop', 'count': ""[parameters('numberofrdshinstances')]""}, 'dependson': [""[resourceid('microsoft.compute/availabilitysets', concat(parameters('rdshnamingprefix'), 'availabilityset'))]"", ""[resourceid('microsoft.network/networkinterfaces', concat(parameters('rdshnamingprefix'), copyindex(), '-nic'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('rdshvmsize')]""}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', concat(parameters('rdshnamingprefix'), 'availabilityset'))]""}, 'osprofile': {'computername': ""[concat(parameters('rdshnamingprefix'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('rdshnamingprefix'), copyindex(),'-osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(parameters('rdshnamingprefix'), copyindex(), '-nic'))]""}]}}, 'resources': [{'apiversion': '2020-06-01', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(parameters('rdshnamingprefix'), copyindex(),'/sessionhost')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', concat(parameters('rdshnamingprefix'), copyindex()))]""], 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.11', 'autoupgrademinorversion': true, 'settings': {'modulesurl': ""[uri(parameters('_artifactslocation'),concat('dsc/configuration.zip', parameters('_artifactslocationsastoken')))]"", 'configurationfunction': 'configuration.ps1\\sessionhost', 'properties': {'domainname': ""[parameters('addomainname')]"", 'admincreds': {'username': ""[parameters('adminusername')]"", 'password': 'privatesettingsref:adminpassword'}}}, 'protectedsettings': {'items': {'adminpassword': ""[parameters('adminpassword')]""}}}}]}{'apiversion': '2020-06-01', 'type': 'microsoft.compute/virtualmachines', 'name': 'cb-vm', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/availabilitysets', 'cb-availabilityset')]"", ""[resourceid('microsoft.network/networkinterfaces', 'cb-nic')]"", 'rdsh-vm-loop'], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('rdshvmsize')]""}, 'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', 'cb-availabilityset')]""}, 'osprofile': {'computername': 'broker', 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': 'cb_osdisk', 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces','cb-nic')]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': 'cb-vm/rdsdeployment', 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', 'cb-vm')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', 'gw-vm', 'gateway')]"", 'rdsh-vm-loop'], 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.11', 'autoupgrademinorversion': true, 'settings': {'modulesurl': ""[uri(parameters('_artifactslocation'),concat('dsc/configuration.zip', parameters('_artifactslocationsastoken')))]"", 'configurationfunction': 'configuration.ps1\\rdsdeployment', 'properties': {'admincreds': {'username': ""[parameters('adminusername')]"", 'password': 'privatesettingsref:adminpassword'}, 'connectionbroker': ""[concat('broker.',parameters('addomainname'))]"", 'domainname': ""[parameters('addomainname')]"", 'externalfqdn': ""[reference(variables('gatewaypublicipaddressname')).dnssettings.fqdn]"", 'numberofrdshinstances': ""[parameters('numberofrdshinstances')]"", 'sessionhostnamingprefix': ""[parameters('rdshnamingprefix')]"", 'webaccessserver': ""[concat('gateway.',parameters('addomainname'))]""}}, 'protectedsettings': {'items': {'adminpassword': ""[parameters('adminpassword')]""}}}} END" -Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('uniquenameprefix')]""}}} END" -This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2021-07-01', 'name': ""[parameters('virtualmachinename')]"", 'location': ""[parameters('location')]"", 'properties': {'hardwareprofile': {'vmsize': ""[parameters('virtualmachinesize')]""}, 'osprofile': {'computername': ""[parameters('virtualmachinename')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'copy': [{'name': 'datadisks', 'count': ""[length(range(0, parameters('datadiskscount')))]"", 'input': {'name': ""[format('{0}-datadisk{1}', parameters('virtualmachinename'), range(0, parameters('datadiskscount'))[copyindex('datadisks')])]"", 'disksizegb': ""[parameters('datadisksize')]"", 'lun': ""[range(0, parameters('datadiskscount'))[copyindex('datadisks')]]"", 'createoption': 'empty', 'manageddisk': {'storageaccounttype': ""[parameters('disktype')]""}}}], 'osdisk': {'ostype': 'windows', 'name': ""[variables('osdiskname')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[parameters('disktype')]""}, 'disksizegb': 128}, 'imagereference': {'publisher': 'microsoftwindowsserver', 'offer': 'windowsserver', 'sku': ""[parameters('windowsosversion')]"", 'version': 'latest'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('networkinterfacename'))]""}]}}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('networkinterfacename'))]""]} END" +Enable Azure Sentinel,"{""name"": ""[variables('omssolutions').customsolution.solutionname]"", ""type"": ""microsoft.operationsmanagement/solutions"", ""apiversion"": ""2015-11-01-preview"", ""location"": ""[parameters('workspaceregionid')]"", ""dependson"": [""[resourceid('microsoft.operationalinsights/workspaces/"", parameters('workspacename'))]"", ""[resourceid('microsoft.operationalinsights/workspaces/views/"", parameters('workspacename'), variables('omssolutions').customsolution.name)]""], ""plan"": {""name"": ""[variables('omssolutions').customsolution.solutionname]"", ""product"": ""[variables('omssolutions').customsolution.name]"", ""publisher"": ""[variables('omssolutions').customsolution.publisher]"", ""promotioncode"": """"}, ""properties"": {""workspaceresourceid"": ""[resourceid('microsoft.operationalinsights/workspaces/"", parameters('workspacename'))]"", ""containedresources"": [""[resourceid('microsoft.operationalinsights/workspaces/views/"", parameters('workspacename'), variables('omssolutions').customsolution.name)]""]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachinescalesets"", ""apiversion"": ""2019-03-01"", ""name"": ""[parameters('vmssname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""vmsstag"": ""automaticrepairs""}, ""dependson"": [""[resourceid('microsoft.network/loadbalancers/"", variables('lbname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""sku"": {""name"": ""[parameters('vmsku')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('instancecount')]""}, ""properties"": {""upgradepolicy"": {""mode"": ""manual""}, ""automaticrepairspolicy"": {""enabled"": true, ""graceperiod"": ""pt30m""}, ""virtualmachineprofile"": {""storageprofile"": {""imagereference"": ""[variables('imagereference')]""}, ""osprofile"": {""computernameprefix"": ""vmss"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""extensionprofile"": {""extensions"": [{""name"": ""customscripttoinstallapache"", ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('install_apache.sh"", parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""sh install_apache.sh""}}}]}, ""networkprofile"": {""healthprobe"": {""id"": ""[resourceid('microsoft.network/loadbalancers/probes/"", variables('lbname'), variables('probename'))]""}, ""networkinterfaceconfigurations"": [{""name"": ""nic1"", ""properties"": {""primary"": true, ""ipconfigurations"": [{""name"": ""ip1"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[variables('bepoolid')]""}], ""publicipaddressconfiguration"": {""name"": ""pub1"", ""properties"": {""idletimeoutinminutes"": 15}}}}]}}]}}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""[parameters('windowsosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}, ""datadisks"": [{""disksizegb"": 1023, ""lun"": 0, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname'))).primaryendpoints.blob]""}}}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]"", ""[resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname'))]""]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""name"": ""[variables('chefbeavailname')]"", ""type"": ""microsoft.compute/availabilitysets"", ""location"": ""[resourcegroup().location]"", ""apiversion"": ""2017-12-01"", ""dependson"": [], ""tags"": {""displayname"": ""beavailset"", ""provider"": ""[variables('tagvalues').provider]""}, ""sku"": {""name"": ""aligned""}, ""properties"": {""platformupdatedomaincount"": 3, ""platformfaultdomaincount"": 3}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2019-06-01"", ""name"": ""[parameters('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs"", ""tier"": ""standard""}, ""kind"": ""storagev2"", ""properties"": {""accesstier"": ""hot""}}{""type"": ""microsoft.storage/storageaccounts/fileservices/shares"", ""apiversion"": ""2019-06-01"", ""name"": ""[concat(parameters('storageaccountname'), ""/default/"", parameters('filesharename'))]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname'))]""]} " +This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth,"{""type"": ""microsoft.authorization/roleassignments"", ""apiversion"": ""2020-04-01-preview"", ""scope"": ""[format('microsoft.network/networkprofiles/{0}"", variables('networkprofilename'))]"", ""name"": ""[guid(variables('networkroledefinitionid'), parameters('azurecontainerinstanceoid'), variables('networkprofilename'))]"", ""properties"": {""roledefinitionid"": ""[variables('networkroledefinitionid')]"", ""principalid"": ""[parameters('azurecontainerinstanceoid')]""}, ""dependson"": [""[resourceid('microsoft.network/networkprofiles"", variables('networkprofilename'))]""]}{""type"": ""microsoft.authorization/roleassignments"", ""apiversion"": ""2020-04-01-preview"", ""scope"": ""[format('microsoft.relay/namespaces/{0}"", parameters('relaynamespacename'))]"", ""name"": ""[guid(variables('contributorroledefinitionid'), parameters('azurecontainerinstanceoid'), parameters('relaynamespacename'))]"", ""properties"": {""roledefinitionid"": ""[variables('contributorroledefinitionid')]"", ""principalid"": ""[parameters('azurecontainerinstanceoid')]""}, ""dependson"": [""[resourceid('microsoft.relay/namespaces"", parameters('relaynamespacename'))]""]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/availabilitysets"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('gw-availabilityset')]"", ""properties"": {""platformupdatedomaincount"": 20, ""platformfaultdomaincount"": 2}, ""sku"": {""name"": ""aligned""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('frontendnsgname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""custom network security group""}, ""properties"": {""securityrules"": [{""name"": ""default-allow-ssh"", ""properties"": {""description"": ""allow ssh"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1000, ""direction"": ""inbound""}}, {""name"": ""default-allow-tomcat"", ""properties"": {""description"": ""allow web/tomcat"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1010, ""direction"": ""inbound""}}, {""name"": ""default-allow-ftp"", ""properties"": {""description"": ""allow ftp"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""21"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1020, ""direction"": ""inbound""}}, {""name"": ""default-allow-ftps"", ""properties"": {""description"": ""allow ftps"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""13450-13454"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1030, ""direction"": ""inbound""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups/"", variables('frontendnsgname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnet1name')]"", ""properties"": {""addressprefix"": ""[variables('subnet1prefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('frontendnsgname'))]""}}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", variables('frontendnsgname'))]""], ""properties"": {""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('frontendnsgname'))]""}, ""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnet1ref')]""}}}]}} " +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('keyvaultname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('applicationgatewayuserdefinedmanagedidentityid')]"", ""[variables('aadpodidentityuserdefinedmanagedidentityid')]""], ""properties"": {""accesspolicies"": [{""tenantid"": ""[reference(variables('applicationgatewayuserdefinedmanagedidentityid')).tenantid]"", ""objectid"": ""[reference(variables('applicationgatewayuserdefinedmanagedidentityid')).principalid]"", ""permissions"": {""secrets"": [""get"", ""list""], ""certificates"": [""get""]}}, {""tenantid"": ""[reference(variables('aadpodidentityuserdefinedmanagedidentityid')).tenantid]"", ""objectid"": ""[reference(variables('aadpodidentityuserdefinedmanagedidentityid')).principalid]"", ""permissions"": {""secrets"": [""get"", ""list""], ""certificates"": [""get""]}}], ""sku"": {""family"": ""a"", ""name"": ""standard""}, ""tenantid"": ""[subscription().tenantid]"", ""networkacls"": {""bypass"": ""azureservices"", ""defaultaction"": ""[parameters('keyvaultnetworkrulesetdefaultaction')]""}, ""enabledfordeployment"": false, ""enabledfordiskencryption"": false, ""enabledfortemplatedeployment"": false, ""enablesoftdelete"": false}, ""resources"": [{""type"": ""providers/diagnosticsettings"", ""apiversion"": ""2017-05-01-preview"", ""name"": ""microsoft.insights/default"", ""dependson"": [""[variables('keyvaultid')]"", ""[variables('workspaceid')]""], ""properties"": {""workspaceid"": ""[variables('workspaceid')]"", ""logs"": [{""category"": ""auditevent"", ""enabled"": true}], ""metrics"": [{""category"": ""allmetrics"", ""enabled"": true}]}}]} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nicname')]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2016-datacenter"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}, ""resources"": [{""type"": ""extensions"", ""name"": ""customscriptextension"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vmname')]""], ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.8"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat(variables('scriptfolder'),""/"",variables('scriptfilename'), parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""[concat('powershell -executionpolicy unrestricted -file "", variables('scriptfolder'), ""/"", variables('scriptfilename'), "" "", variables('scriptparameters'))]""}}}]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2016-04-30-preview"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('storageaccountname')]"", ""[variables('nicname')]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('osversion')]"", ""version"": ""latest""}, ""osdisk"": {""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""disksizegb"": ""[parameters('disksizegb')]"", ""lun"": 0, ""caching"": ""[parameters('datadiskhostcaching')]"", ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('storageaccountname'), ""2021-01-01').primaryendpoints.blob]""}}}, ""resources"": [{""type"": ""extensions"", ""name"": ""customscriptextension"", ""apiversion"": ""2015-06-15"", ""dependson"": [""[variables('vmname')]""], ""location"": ""[parameters('location')]"", ""properties"": {""publisher"": ""microsoft.ostcextensions"", ""type"": ""customscriptforlinux"", ""typehandlerversion"": ""1.5"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat(variables('scriptfolder'), ""/"", variables('testscriptfilename'), parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""[concat('sudo bash "", variables('testscriptfilename'), "" "", parameters('testsize'), "" "", parameters('testtype'), "" "", parameters('secondstoruntest'), "" "", parameters('threadstoruntest'), "" "", parameters('testblocksize'))]""}}}]} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""apiversion"": ""2021-01-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('newstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}}{""apiversion"": ""2017-06-01"", ""name"": ""[variables('applicationgatewayname')]"", ""type"": ""microsoft.network/applicationgateways"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]"", ""webserver1"", ""webserver2""], ""properties"": {""sku"": {""name"": ""[parameters('size')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('capacity')]""}, ""gatewayipconfigurations"": [{""name"": ""appgatewayipconfig"", ""properties"": {""subnet"": {""id"": ""[variables('subnetref')]""}}}], ""frontendipconfigurations"": [{""name"": ""appgatewayfrontendip"", ""properties"": {""publicipaddress"": {""id"": ""[variables('publicipref')]""}}}], ""frontendports"": [{""name"": ""appgatewayfrontendport"", ""properties"": {""port"": 80}}], ""backendaddresspools"": [{""name"": ""appgatewaybackendpool"", ""properties"": {""backendaddresses"": [{""ipaddress"": ""[reference('webserver1').outputs.fqdn.value]""}, {""ipaddress"": ""[reference('webserver2').outputs.fqdn.value]""}]}}], ""backendhttpsettingscollection"": [{""name"": ""appgatewaybackendhttpsettings"", ""properties"": {""port"": 80, ""protocol"": ""http"", ""cookiebasedaffinity"": ""[parameters('cookiebasedaffinity')]"", ""requesttimeout"": 30, ""requestroutingrules"": [{""id"": ""[resourceid('microsoft.network/applicationgateways/requestroutingrules/"",variables('applicationgatewayname'), ""rule1')]""}]}}], ""httplisteners"": [{""name"": ""appgatewayhttplistener"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/applicationgateways/frontendipconfigurations/"",variables('applicationgatewayname'), ""appgatewayfrontendip')]""}, ""frontendport"": {""id"": ""[resourceid('microsoft.network/applicationgateways/frontendports/"",variables('applicationgatewayname'), ""appgatewayfrontendport')]""}, ""protocol"": ""http""}}], ""requestroutingrules"": [{""name"": ""rule1"", ""properties"": {""ruletype"": ""basic"", ""httplistener"": {""id"": ""[resourceid('microsoft.network/applicationgateways/httplisteners/"",variables('applicationgatewayname'), ""appgatewayhttplistener')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/applicationgateways/backendaddresspools/"",variables('applicationgatewayname'), ""appgatewaybackendpool')]""}, ""backendhttpsettings"": {""id"": ""[resourceid('microsoft.network/applicationgateways/backendhttpsettingscollection/"",variables('applicationgatewayname'), ""appgatewaybackendhttpsettings')]""}}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-08-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""comments"": ""default network security group for template"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-08-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-3389"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""3389"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('domainnamelabel')]""}}}{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('avsetnameascs')]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""condition"": ""[equals(length(parameters('availabilityzones')), 0)]"", ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 10}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmnameascs'), ""-"", copyindex())]"", ""copy"": {""name"": ""xscsvmloop"", ""count"": ""[variables('ascsvmcount')]""}, ""dependson"": [""nicascsloop"", ""[resourceid('microsoft.compute/availabilitysets"", variables('avsetnameascs'))]""], ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""zones"": ""[if(equals(length(parameters('availabilityzones')), 0), json('null'), array(variables('azarray')[mod(copyindex(), variables('azarraylength'))]))]"", ""properties"": {""availabilityset"": ""[if(equals(variables('azarraylength'), 0), resourceid('microsoft.compute/availabilitysets"", variables('avsetnameascs')), json('null'))]"", ""hardwareprofile"": {""vmsize"": ""[variables('ascsvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmnameascs'), ""-"", copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('images')[parameters('ostype')].publisher]"", ""offer"": ""[variables('images')[parameters('ostype')].offer]"", ""sku"": ""[variables('images')[parameters('ostype')].sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnameascs'), ""-"", copyindex(), ""-osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}}, ""datadisks"": [{""lun"": 0, ""createoption"": ""empty"", ""disksizegb"": 128}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('nicnameascs'), ""-"", copyindex()))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmnameascs'), ""-"", copyindex(), ""/"", variables('csextension')[variables('internalostype')].name)]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""xscsvmloop""], ""copy"": {""name"": ""xscsextvmloop"", ""count"": ""[variables('ascsvmcount')]""}, ""properties"": {""publisher"": ""[variables('csextension')[variables('internalostype')].publisher]"", ""type"": ""[variables('csextension')[variables('internalostype')].name]"", ""typehandlerversion"": ""[variables('csextension')[variables('internalostype')].version]"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('csextension')[variables('internalostype')].script]""], ""commandtoexecute"": ""[concat(variables('csextension')[variables('internalostype')].scriptcall, "" "", variables('scriptargumentsascsdi')[variables('internalostype')])]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[concat(variables('nsgname'))]"", ""apiversion"": ""2020-07-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""properties"": {""securityrules"": ""[variables('selectedsecurityrules')]""}}{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('vnetname')]"", ""apiversion"": ""2020-07-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups/"", variables('nsgname'))]""], ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""properties"": {""addressspace"": {""addressprefixes"": [""10.0.0.0/16""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""10.0.0.0/24"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('nsgname'))]""}}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(variables('publicipnamedb'), ""-"", copyindex())]"", ""apiversion"": ""2020-07-01"", ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('vnetname'))]""], ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""dbpiploop"", ""count"": ""[variables('dbvmcount')]""}, ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""type"": ""microsoft.network/loadbalancers"", ""name"": ""[variables('loadbalancernamedb')]"", ""apiversion"": ""2020-07-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[greater(variables('dbvmcount') , 1)]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('vnetname'))]""], ""properties"": {""frontendipconfigurations"": ""[variables('lbfrontendconfigs')[parameters('dbtype')][variables('internalostype')]]"", ""backendaddresspools"": ""[variables('lbbackendpools')[parameters('dbtype')][variables('internalostype')]]"", ""loadbalancingrules"": ""[variables('lbrules')[parameters('dbtype')][variables('internalostype')]]"", ""probes"": ""[variables('lbprobes')[parameters('dbtype')][variables('internalostype')]]""}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('nicnamedb'), ""-"", copyindex())]"", ""apiversion"": ""2020-07-01"", ""copy"": {""name"": ""dbnicloop"", ""count"": ""[variables('dbvmcount')]""}, ""dependson"": [""dbpiploop"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('vnetname'))]"", ""[resourceid('microsoft.network/loadbalancers/"", variables('loadbalancernamedb'))]""], ""location"": ""[parameters('location')]"", ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": ""[if(equals(length(parameters(\""subnetid\')), 0), json(concat(\""{""id"": ""\"", resourceid(\""microsoft.network/publicipaddresses\"", concat(variables(\""publicipnamedb\'), \""-\"", copyindex())) ,\""""}\')), json(\""null\'))]"", ""subnet"": {""id"": ""[variables('selectedsubnetid')]""}, ""loadbalancerbackendaddresspools"": ""[if(greater(variables('dbvmcount') , 1), variables('nicbackaddresspools')[parameters('dbtype')][variables('internalostype')], json('null'))]""}}], ""enableacceleratednetworking"": ""[variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].usefastnetwork]""}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""name"": ""[concat(parameters('envprefixname'), ""sqlsrv14')]"", ""type"": ""microsoft.compute/virtualmachines"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('sqlsrvdbnicname'))]"", ""[resourceid('microsoft.network/publicipaddresses/"", variables('sqlpublicip'))]""], ""tags"": {""displayname"": ""sql-svr-db""}, ""properties"": {""hardwareprofile"": {""vmsize"": ""[variables('sqlvmsize')]""}, ""osprofile"": {""computername"": ""[variables('sqlsrvdbname')]"", ""adminusername"": ""[parameters('username')]"", ""adminpassword"": ""[parameters('password')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('sqlimagepublisher')]"", ""offer"": ""[variables('sqlimageoffer')]"", ""sku"": ""[variables('sqlimagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('sqlsrvdbname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[parameters('disktype')]""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('sqlsrvdbnicname'))]""}]}}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""location"": ""[parameters('location')]"", ""name"": ""[variables('websrvavailabilitysetname')]"", ""properties"": {""platformupdatedomaincount"": 20, ""platformfaultdomaincount"": 2}, ""tags"": {""displayname"": ""websrvavailabilityset""}, ""sku"": {""name"": ""aligned""}}{""name"": ""[concat(variables('websrvname'), copyindex())]"", ""type"": ""microsoft.compute/virtualmachines"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""copy"": {""name"": ""websrvmachineloop"", ""count"": ""[variables('websrvnumbofinstances')]""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('websrvnicname'), copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('websrvavailabilitysetname'))]""], ""tags"": {""displayname"": ""websrv""}, ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"",variables('websrvavailabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[variables('websrvvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('websrvname'),copyindex())]"", ""adminusername"": ""[parameters('username')]"", ""adminpassword"": ""[parameters('password')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2012-r2-datacenter"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(concat(variables('websrvname'),copyindex(),""_osdisk'))]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[parameters('disktype')]""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('websrvnicname'), copyindex()))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('vmdnsname')]""}}}{""comments"": ""default network security group for template"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-07-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-22"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('apppublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('mysqlpublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('mongopublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"",variables('nsgname'))]""}}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""ssh"", ""properties"": {""description"": ""ssh"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 200, ""direction"": ""inbound""}}, {""name"": ""lms"", ""properties"": {""description"": ""allow connection to open edx lms"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 201, ""direction"": ""inbound""}}, {""name"": ""cms"", ""properties"": {""description"": ""allow connection to open edx cms"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""18010"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 203, ""direction"": ""inbound""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('appvmname'), copyindex(), ""-nic')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/"",variables('lbname'))]"", ""[resourceid('microsoft.network/loadbalancers/inboundnatrules"",variables('lbname'),concat('ssh-vm"", copyindex()))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfignode"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"",variables('lbname'),""loadbalancerbackend')]""}], ""loadbalancerinboundnatrules"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/inboundnatrules"",variables('lbname'),concat('ssh-vm"", copyindex()))]""}]}}]}, ""copy"": {""name"": ""appnetworkinterfacescopy"", ""count"": ""[parameters('appvmcount')]""}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('mysqlvmname'), ""-nic')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('mysqlpublicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfignode"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('mysqlpublicipaddressname'))]""}, ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('mongovmname'), ""-nic')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('mongopublicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfignode"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('mongopublicipaddressname'))]""}, ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsnameforpublicip')]""}}}{""comments"": ""default network security group for template"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-07-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-22"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('apppublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('mysqlpublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('mongopublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"",variables('nsgname'))]""}}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""ssh"", ""properties"": {""description"": ""ssh"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 200, ""direction"": ""inbound""}}, {""name"": ""lms"", ""properties"": {""description"": ""allow connection to open edx lms"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 201, ""direction"": ""inbound""}}, {""name"": ""cms"", ""properties"": {""description"": ""allow connection to open edx cms"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""18010"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 203, ""direction"": ""inbound""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('appvmname'), copyindex(), ""-nic')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/"",variables('lbname'))]"", ""[resourceid('microsoft.network/loadbalancers/inboundnatrules"",variables('lbname'),concat('ssh-vm"", copyindex()))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfignode"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"",variables('lbname'),""loadbalancerbackend')]""}], ""loadbalancerinboundnatrules"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/inboundnatrules"",variables('lbname'),concat('ssh-vm"", copyindex()))]""}]}}]}, ""copy"": {""name"": ""appnetworkinterfacescopy"", ""count"": ""[parameters('appvmcount')]""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachinescalesets"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('vmssname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('vmsku')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('instancecount')]""}, ""dependson"": [""[resourceid('microsoft.network/loadbalancers"", variables('loadbalancername'))]"", ""[resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname'))]""], ""properties"": {""overprovision"": ""false"", ""upgradepolicy"": {""mode"": ""manual""}, ""virtualmachineprofile"": {""storageprofile"": {""osdisk"": {""createoption"": ""fromimage"", ""caching"": ""readwrite""}, ""imagereference"": ""[variables('imagereference')]""}, ""osprofile"": {""computernameprefix"": ""[parameters('vmssname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""[variables('nicname')]"", ""properties"": {""primary"": true, ""ipconfigurations"": [{""name"": ""[variables('ipconfigname')]"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('loadbalancername'), variables('bepoolname'))]""}], ""loadbalancerinboundnatpools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/inboundnatpools"", variables('loadbalancername'), variables('natpoolname'))]""}, {""id"": ""[resourceid('microsoft.network/loadbalancers/inboundnatpools"", variables('loadbalancername'), variables('natpool2name'))]""}]}}]}}]}, ""extensionprofile"": {""extensions"": [{""name"": ""lapextension"", ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('installserver.sh"", parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('workserver.py"", parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""bash installserver.sh""}}}]}}}} " +This template provides a easy way to deploy a puckel/docker-airflow image (latest tag) on a Linux Web App with Azure database for PostgreSQL.,"{""comments"": ""this is the airflow linux web app running puckel/docker-airflow docker image"", ""type"": ""microsoft.web/sites"", ""name"": ""[parameters('sitename')]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('hostingplanname')]"", ""[variables('databasename')]""], ""properties"": {""siteconfig"": {""linuxfxversion"": ""docker|puckel/docker-airflow:latest""}, ""name"": ""[parameters('sitename')]"", ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms"", variables('hostingplanname'))]""}, ""resources"": [{""name"": ""appsettings"", ""type"": ""config"", ""apiversion"": ""2020-06-01"", ""dependson"": [""[resourceid('microsoft.web/sites"", parameters('sitename'))]""], ""tags"": {""displayname"": ""airflowappsettings""}, ""comments"": ""this are the generated settings for the airflow sql alchemy connectionstring"", ""properties"": {""airflow__core__sql_alchemy_conn"": ""[concat('postgresql://"", variables('airflowusername'),"":"",parameters('administratorloginpassword'),""@"",reference(resourceid('microsoft.dbforpostgresql/servers"",variables('servername'))).fullyqualifieddomainname,"":5432/"",variables('databasename'))]"", ""airflow__core__load_examples"": ""true"", ""websites_enable_app_service_storage"": ""true""}}]}{""apiversion"": ""2020-06-01"", ""name"": ""[variables('hostingplanname')]"", ""type"": ""microsoft.web/serverfarms"", ""location"": ""[parameters('location')]"", ""properties"": {""name"": ""[variables('hostingplanname')]"", ""workersizeid"": ""1"", ""reserved"": true, ""numberofworkers"": ""1""}, ""sku"": {""tier"": ""[parameters('serviceplantier')]"", ""name"": ""[parameters('serviceplansku')]""}, ""kind"": ""linux""} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allowsshinbound"", ""properties"": {""priority"": 100, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('virtualnetworkaddressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetaddressprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}, ""privateendpointnetworkpolicies"": ""disabled"", ""privatelinkservicenetworkpolicies"": ""enabled""}}]}}{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('publicipid')]"", ""[variables('vnetid')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetid')]""}}}]}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2018-09-01"", ""name"": ""[variables('adlsprivatednszonename')]"", ""location"": ""global"", ""properties"": {""maxnumberofrecordsets"": 25000, ""maxnumberofvirtualnetworklinks"": 1000, ""maxnumberofvirtualnetworklinkswithregistration"": 100}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2018-09-01"", ""name"": ""[variables('blobprivatednszonename')]"", ""location"": ""global"", ""properties"": {""maxnumberofrecordsets"": 25000, ""maxnumberofvirtualnetworklinks"": 1000, ""maxnumberofvirtualnetworklinkswithregistration"": 100}}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2018-09-01"", ""name"": ""[concat(variables('adlsprivatednszonename'), ""/link_to_"", tolower(parameters('virtualnetworkname')))]"", ""location"": ""global"", ""dependson"": [""[variables('adlsprivatednszoneid')]"", ""[variables('vnetid')]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[variables('vnetid')]""}}}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2018-09-01"", ""name"": ""[concat(variables('blobprivatednszonename'), ""/link_to_"", tolower(parameters('virtualnetworkname')))]"", ""location"": ""global"", ""dependson"": [""[variables('blobprivatednszoneid')]"", ""[variables('vnetid')]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[variables('vnetid')]""}}}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-04-01"", ""name"": ""[parameters('adlsstorageaccountprivateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetid')]"", ""[variables('adlsstorageaccountid')]""], ""properties"": {""privatelinkserviceconnections"": [{""name"": ""[parameters('adlsstorageaccountprivateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[variables('adlsstorageaccountid')]"", ""groupids"": [""[variables('adlsstorageaccountprivateendpointgroupname')]""]}}], ""subnet"": {""id"": ""[variables('subnetid')]""}, ""customdnsconfigs"": [{""fqdn"": ""[concat(parameters('adlsstorageaccountname'), variables('adlspublicdnszoneforwarder'))]""}]}}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-04-01"", ""name"": ""[parameters('blobstorageaccountprivateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetid')]"", ""[variables('blobstorageaccountid')]""], ""properties"": {""privatelinkserviceconnections"": [{""name"": ""[parameters('blobstorageaccountprivateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[variables('blobstorageaccountid')]"", ""groupids"": [""[variables('blobstorageaccountprivateendpointgroupname')]""]}}], ""subnet"": {""id"": ""[variables('subnetid')]""}, ""customdnsconfigs"": [{""fqdn"": ""[concat(parameters('blobstorageaccountname'), variables('blobpublicdnszoneforwarder'))]""}]}} " +This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.,"{""comments"": ""user-defined managed identity defined for the aks cluster. used to access the virtual network and other resources."", ""type"": ""microsoft.managedidentity/userassignedidentities"", ""apiversion"": ""2018-11-30"", ""name"": ""[variables('aksclusteruserdefinedmanagedidentityname')]"", ""location"": ""[parameters('location')]""}{""comments"": ""user-defined managed identity used by the application gateway is assigned. used to access azure key vault."", ""type"": ""microsoft.managedidentity/userassignedidentities"", ""apiversion"": ""2018-11-30"", ""name"": ""[variables('applicationgatewayuserdefinedmanagedidentityname')]"", ""location"": ""[parameters('location')]""} " +"Create an Azure Automation account and create a new Azure Monitor Log Analytics workspace if it doesn't exist, and then link them together.","{""name"": ""[parameters('automationaccountname')]"", ""type"": ""microsoft.automation/automationaccounts"", ""apiversion"": ""2021-04-01"", ""location"": ""[parameters('automationregion')]"", ""properties"": {""sku"": {""name"": ""[parameters('automationpricingtier')]""}}, ""resources"": [{""name"": ""[variables('automation').runbook.publishomshypervreplica.name]"", ""type"": ""runbooks"", ""apiversion"": ""2015-10-31"", ""location"": ""[parameters('automationregion')]"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts/"", parameters('automationaccountname'))]""], ""properties"": {""runbooktype"": ""[variables('automation').runbook.publishomshypervreplica.type]"", ""logprogress"": false, ""logverbose"": false, ""description"": ""[variables('automation').runbook.publishomshypervreplica.description]"", ""publishcontentlink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('scripts/"", variables('automation').runbook.publishomshypervreplica.name, "".ps1"", parameters('_artifactslocationsastoken')))]"", ""version"": ""1.0.0.0""}}}, {""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('automation').asset.omshypervreplicarunnumber.name)]"", ""type"": ""microsoft.automation/automationaccounts/variables"", ""apiversion"": ""2021-04-01"", ""location"": ""[parameters('automationregion')]"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts/"", parameters('automationaccountname'))]""], ""properties"": {""description"": ""[variables('automation').asset.omshypervreplicarunnumber.description]"", ""isencrypted"": false, ""type"": ""[variables('automation').asset.omshypervreplicarunnumber.type]"", ""value"": ""[variables('automation').asset.omshypervreplicarunnumber.value]""}}, {""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('automation').asset.omshypervreplicarunasaccount.name)]"", ""type"": ""microsoft.automation/automationaccounts/credentials"", ""apiversion"": ""2021-04-01"", ""location"": ""[parameters('automationregion')]"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts/"", parameters('automationaccountname'))]""], ""properties"": {""username"": ""[parameters('onpremisesrunasusername')]"", ""password"": ""[parameters('onpremisesrunaspassword')]"", ""description"": ""[variables('automation').asset.omshypervreplicarunasaccount.description]""}}, {""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('automation').module.omsdatainjection.name)]"", ""type"": ""microsoft.automation/automationaccounts/modules"", ""apiversion"": ""2021-04-01"", ""location"": ""[parameters('automationregion')]"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts/"", parameters('automationaccountname'))]""], ""properties"": {""contentlink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('assets/"", variables('automation').module.omsdatainjection.name, "".zip"", parameters('_artifactslocationsastoken')))]""}}}, {""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('automation').connection.omsdatainjection.name)]"", ""type"": ""microsoft.automation/automationaccounts/connections"", ""apiversion"": ""2021-04-01"", ""location"": ""[parameters('automationregion')]"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts/"", parameters('automationaccountname'))]"", ""[resourceid('microsoft.automation/automationaccounts/modules"", parameters('automationaccountname'), variables('automation').module.omsdatainjection.name)]""], ""properties"": {""name"": ""[variables('automation').connection.omsdatainjection.name]"", ""description"": ""[variables('automation').connection.omsdatainjection.description]"", ""isglobal"": false, ""connectiontype"": {""name"": ""[variables('automation').connection.omsdatainjection.type]""}, ""fielddefinitionvalues"": {""omsworkspaceid"": ""[parameters('workspaceid')]"", ""primarykey"": ""[parameters('workspaceprimarykey')]""}}}]} " +Creates and optionally secures a Key Vault with logging linked to a storage account.,"{""type"": ""microsoft.keyvault/vaults"", ""apiversion"": ""2021-04-01-preview"", ""name"": ""[variables('keyvaultname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""tenantid"": ""[variables('tenantid')]"", ""sku"": {""name"": ""standard"", ""family"": ""a""}, ""accesspolicies"": [], ""enablesoftdelete"": true, ""enablepurgeprotection"": true}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-06-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}} " +"This template creates an App Service Plan, a Web App, a scheduler job collection and a job.","{""name"": ""[variables('schedulerjobcollectionname')]"", ""type"": ""microsoft.scheduler/jobcollections"", ""apiversion"": ""2016-03-01"", ""location"": ""[parameters('location')]"", ""properties"": {""sku"": {""name"": ""standard""}}, ""resources"": [{""type"": ""jobs"", ""name"": ""[variables('schedulerjobname')]"", ""apiversion"": ""2016-03-01"", ""dependson"": [""[resourceid('microsoft.scheduler/jobcollections"", variables('schedulerjobcollectionname'))]"", ""[variables('queuesendonlykeyname')]""], ""properties"": {""state"": ""enabled"", ""action"": {""type"": ""servicebusqueue"", ""servicebusqueuemessage"": {""namespace"": ""[variables('servicebusnamespacename')]"", ""queuename"": ""[parameters('queuename')]"", ""transporttype"": ""amqp"", ""authentication"": {""saskey"": ""[listkeys(variables('queuesendonlykeyname'), ""2018-01-01-preview').primarykey]"", ""saskeyname"": ""[listkeys(variables('queuesendonlykeyname'), ""2018-01-01-preview').keyname]"", ""type"": ""sharedaccesskey""}, ""message"": ""[parameters('messagecontents')]""}}, ""recurrence"": ""[parameters('postrecurrence')]""}}]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-07-01"", ""name"": ""[parameters('filestorageaccountprivateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('filestorageaccountid')]"", ""[variables('fileshareid')]""], ""properties"": {""privatelinkserviceconnections"": [{""name"": ""[parameters('filestorageaccountprivateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[variables('filestorageaccountid')]"", ""groupids"": [""[variables('filestorageaccountprivateendpointgroupname')]""]}}], ""subnet"": {""id"": ""[variables('subnetid')]""}}}{""type"": ""microsoft.network/privateendpoints/privatednszonegroups"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('fileprivatednszonegroup')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('fileprivatednszoneid')]"", ""[variables('filestorageaccountprivateendpointid')]""], ""properties"": {""privatednszoneconfigs"": [{""name"": ""dnsconfig"", ""properties"": {""privatednszoneid"": ""[variables('fileprivatednszoneid')]""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allowsshinbound"", ""properties"": {""priority"": 100, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('virtualnetworkaddressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetaddressprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}, ""privateendpointnetworkpolicies"": ""disabled"", ""privatelinkservicenetworkpolicies"": ""enabled""}}]}} " +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'))]""]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}} " +"This template will deploy RedHat (RHEL) VM, using the Pay-As-You-Go RHEL VM image. Additional charges apply.","{""apiversion"": ""2020-06-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""tag1"": ""managedvm""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('imagesku')]"", ""version"": ""latest""}, ""datadisks"": [{""name"": ""[variables('datadisk1name')]"", ""disksizegb"": 100, ""lun"": 0, ""createoption"": ""empty""}, {""name"": ""[variables('datadisk2name')]"", ""disksizegb"": 100, ""lun"": 1, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""}]}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""comments"": ""availability set for the web servers"", ""type"": ""microsoft.compute/availabilitysets"", ""sku"": {""name"": ""aligned""}, ""name"": ""[variables('webavailabilitysetname')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""properties"": {""platformupdatedomaincount"": 5, ""platformfaultdomaincount"": 2, ""virtualmachines"": [{""id"": ""[resourceid('microsoft.compute/virtualmachines"", variables('vm1name'))]""}, {""id"": ""[resourceid('microsoft.compute/virtualmachines"", variables('vm2name'))]""}]}, ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('vm1name'))]"", ""[resourceid('microsoft.compute/virtualmachines"", variables('vm2name'))]""]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[variables('computelocation')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnet0name')]"", ""properties"": {""addressprefix"": ""[variables('subnet0prefix')]""}}]}, ""tags"": {""resourcetype"": ""service fabric"", ""clustername"": ""[parameters('clustername')]""}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(variables('lbipname'),""-"",variables('vmnodetype0name'))]"", ""location"": ""[variables('computelocation')]"", ""properties"": {""dnssettings"": {""domainnamelabel"": ""[variables('dnsname')]""}, ""publicipallocationmethod"": ""dynamic""}, ""tags"": {""resourcetype"": ""service fabric"", ""clustername"": ""[parameters('clustername')]""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-11-01"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""10.0.0.0/16""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""10.0.0.0/24""}}]}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-11-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""remoteconnection"", ""properties"": {""description"": ""allow ssh traffic"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 101, ""direction"": ""inbound""}}, {""name"": ""webtraffic"", ""properties"": {""description"": ""allow web traffic"", ""protocol"": ""tcp"", ""sourceportrange"": ""80"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-11-01"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {""publicipallocationmethod"": ""static"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsname')]""}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2020-06-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vmnicid')]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('vmadminusername')]"", ""adminpassword"": ""[parameters('vmadminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""disksizegb"": ""[parameters('osdisksize')]"", ""manageddisk"": {""storageaccounttype"": ""[parameters('diskstorageaccountype')]""}}, ""copy"": [{""name"": ""datadisks"", ""count"": ""[parameters('numdatadisks')]"", ""input"": {""caching"": ""[parameters('datadiskcaching')]"", ""disksizegb"": ""[parameters('datadisksize')]"", ""lun"": ""[copyindex('datadisks')]"", ""name"": ""[concat(parameters('vmname'),""-datadisk"",copyindex('datadisks'))]"", ""createoption"": ""empty"", ""manageddisk"": {""storageaccounttype"": ""[parameters('diskstorageaccountype')]""}}}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('vmnicname'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('blobstorageaccountid')).primaryendpoints[""blob""]]""}}}}{""apiversion"": ""2020-06-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/"", variables('omsagentforlinuxname'))]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vmid')]"", ""[variables('workspaceid')]""], ""properties"": {""publisher"": ""microsoft.enterprisecloud.monitoring"", ""type"": ""omsagentforlinux"", ""typehandlerversion"": ""1.12"", ""settings"": {""workspaceid"": ""[reference(variables('workspaceid'), ""2020-03-01-preview').customerid]"", ""stoponmultipleconnections"": false}, ""protectedsettings"": {""workspacekey"": ""[listkeys(variables('workspaceid'),""2020-03-01-preview').primarysharedkey]""}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('vmadminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'),""/newuserscript')]"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat(variables('installscriptname'), parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('forcetls.ldif"", parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('settlsconfig.ldif"", parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[variables('installcommand')]""}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""[parameters('vm_name')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", parameters('nic_name'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('vmimagepublisher')]"", ""offer"": ""[variables('vmimageoffer')]"", ""sku"": ""[variables('sku')]"", ""version"": ""latest""}, ""osdisk"": {""ostype"": ""windows"", ""name"": ""[concat(parameters('vm_name'), ""_osdisk')]"", ""createoption"": ""fromimage"", ""caching"": ""readwrite""}}, ""osprofile"": {""computername"": ""[parameters('vm_name')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", parameters('nic_name'))]""}]}}}{""name"": ""[concat(parameters('vm_name'),""/gpudrivers')]"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-07-01"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", parameters('vm_name'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions"", parameters('vm_name'), ""setupchocolatey')]""], ""tags"": {""displayname"": ""gpu-nvidia-drivers""}, ""properties"": {""publisher"": ""microsoft.hpccompute"", ""type"": ""nvidiagpudriverwindows"", ""typehandlerversion"": ""1.2"", ""autoupgrademinorversion"": true}}{""name"": ""[concat(parameters('vm_name'),""/setupchocolatey')]"", ""apiversion"": ""2019-07-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", parameters('vm_name'))]""], ""tags"": {""displayname"": ""config-choco""}, ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.10"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('setupscriptlocation')]""], ""commandtoexecute"": ""[concat('powershell -executionpolicy bypass -file "", parameters('setupchocolateyscriptfilename'),"" -chocopackages "",parameters('chocopackages'))]""}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('networkinterfacename'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""osdisk"": {""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('osdisktype')]""}}, ""imagereference"": {""publisher"": ""canonical"", ""offer"": ""ubuntuserver"", ""sku"": ""18.04-lts"", ""version"": ""latest""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]""}]}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminkey')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[concat('/home/"", parameters('adminusername'), ""/.ssh/authorized_keys')]"", ""keydata"": ""[parameters('adminkey')]""}]}}}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/customscript')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", parameters('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""protectedsettings"": {""commandtoexecute"": ""[concat('bash "", variables('masterscriptfilename'), "" "", parameters('spclientid'), "" "", parameters('spclientsecret'), "" "", resourcegroup().name, "" "", variables('subscriptionid'), "" "", variables('tenantid'))]"", ""fileuris"": [""[uri(parameters('_artifactslocation'), concat(variables('scriptsdir'), ""/"", variables('masterscriptfilename'), parameters('_artifactslocationsastoken')))]""]}}}{""type"": ""microsoft.compute/virtualmachinescalesets"", ""apiversion"": ""2020-12-01"", ""name"": ""[parameters('vmssname')]"", ""tags"": {""cluster-autoscaler-enabled"": ""true"", ""cluster-autoscaler-name"": ""[resourcegroup().name]"", ""min"": ""[parameters('minnodecount')]"", ""max"": ""[parameters('maxnodecount')]"", ""poolname"": ""[parameters('vmssname')]""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('networkinterfacename'))]""], ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('vmsize')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('defaultnodecount')]""}, ""properties"": {""overprovision"": false, ""upgradepolicy"": {""mode"": ""manual""}, ""virtualmachineprofile"": {""storageprofile"": {""osdisk"": {""createoption"": ""fromimage"", ""caching"": ""readwrite""}, ""imagereference"": {""publisher"": ""canonical"", ""offer"": ""ubuntuserver"", ""sku"": ""18.04-lts"", ""version"": ""latest""}}, ""osprofile"": {""computernameprefix"": ""[parameters('vmssname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminkey')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[concat('/home/"", parameters('adminusername'), ""/.ssh/authorized_keys')]"", ""keydata"": ""[parameters('adminkey')]""}]}}}, ""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""[concat('nic"", parameters('vmssname'))]"", ""properties"": {""primary"": true, ""ipconfigurations"": [{""name"": ""[concat('ipconfigvmss"", parameters('vmssname'))]"", ""properties"": {""subnet"": {""id"": ""[variables('vmsssubnetref')]""}, ""publicipaddressconfiguration"": {""name"": ""[variables('vmsspublicipaddressname')]"", ""properties"": {""idletimeoutinminutes"": 10, ""dnssettings"": {""domainnamelabel"": ""[parameters('vmssdnslabelprefix')]""}}}}}]}}]}, ""extensionprofile"": {""extensions"": [{""name"": ""customvmssscript"", ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""protectedsettings"": {""commandtoexecute"": ""[concat('bash "", variables('vmssscriptfilename'), "" "", parameters('spclientid'), "" "", parameters('spclientsecret'), "" "", resourcegroup().name, "" "", variables('subscriptionid'), "" "", variables('tenantid'), "" "", parameters('location'), "" "", parameters('vmsssubnetname'), "" "", parameters('virtualnetworkname'))]"", ""fileuris"": [""[uri(parameters('_artifactslocation'), concat(variables('scriptsdir'), ""/"", variables('vmssscriptfilename'), parameters('_artifactslocationsastoken')))]""]}}}]}}}} " +Deploy an empty edge node and add it to an existing HDInsight cluster,"{""name"": ""[concat(parameters('clustername'),""/"", variables('applicationname'))]"", ""type"": ""microsoft.hdinsight/clusters/applications"", ""apiversion"": ""2021-06-01"", ""properties"": {""marketplaceidentifier"": ""emptynode"", ""computeprofile"": {""roles"": [{""name"": ""edgenode"", ""targetinstancecount"": 1, ""hardwareprofile"": {""vmsize"": ""[parameters('edgenodevirtualmachinesize')]""}}]}, ""installscriptactions"": [{""name"": ""[concat('emptynode"",""-"" ,uniquestring(variables('applicationname')))]"", ""uri"": ""[uri(parameters('_artifactslocation'), concat(parameters('installscriptactionfolder'), ""/"", parameters('installscriptaction'), parameters('_artifactslocationsastoken')))]"", ""roles"": [""edgenode""]}], ""sshendpoints"": [{""location"": ""[concat(variables('applicationname'),""."",parameters('clustername'),""-ssh.azurehdinsight.net')]"", ""destinationport"": 22, ""publicport"": 22}], ""applicationtype"": ""customapplication""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('vmname'), ""-nic'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('osimagepublisher')]"", ""offer"": ""[variables('osimageoffer')]"", ""sku"": ""[variables('osimagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(variables('vmname'), ""-nic'))]""}]}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'), ""/installscript')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[concat(variables('scriptdownloaduri'), variables('installscript'))]"", ""[concat(variables('scriptdownloaduri'), ""server-vars.yml')]""], ""commandtoexecute"": ""[variables('installcommand')]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-08-01"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}, {""name"": ""[variables('appgwsubnetname')]"", ""properties"": {""addressprefix"": ""[variables('appgwsubnetprefix')]""}}]}} " +This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.,"{""type"": ""microsoft.keyvault/vaults"", ""apiversion"": ""2021-04-01-preview"", ""name"": ""[parameters('keyvaultname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""enabledfordeployment"": ""[parameters('enabledfordeployment')]"", ""enabledfordiskencryption"": ""[parameters('enabledfordiskencryption')]"", ""enabledfortemplatedeployment"": ""[parameters('enabledfortemplatedeployment')]"", ""enablerbacauthorization"": true, ""tenantid"": ""[parameters('tenantid')]"", ""sku"": {""name"": ""[parameters('skuname')]"", ""family"": ""a""}, ""networkacls"": {""defaultaction"": ""allow"", ""bypass"": ""azureservices""}}}{""type"": ""microsoft.keyvault/vaults/secrets"", ""apiversion"": ""2021-04-01-preview"", ""name"": ""[format('{0}/{1}"", parameters('keyvaultname'), parameters('secretname'))]"", ""properties"": {""value"": ""[parameters('secretvalue')]""}, ""dependson"": [""[resourceid('microsoft.keyvault/vaults"", parameters('keyvaultname'))]""]} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""shared"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('sharedtemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""networksettings"": {""value"": ""[variables('networksettings')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""name"": ""haproxynode"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared')]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('haproxytemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""mysqlpassword"": {""value"": ""[parameters('mysqlpassword')]""}, ""namespace"": {""value"": ""[variables('namespace')]""}, ""vmbasename"": {""value"": ""haproxy""}, ""subnet"": {""value"": ""[variables('networksettings').subnet.dse]""}, ""dnsname"": {""value"": ""[parameters('dnsnameprefix')]""}, ""staticip"": {""value"": ""[variables('networksettings').statics.haproxyip]""}, ""vmsize"": {""value"": ""[parameters('haproxyvmsize')]""}, ""ossettings"": {""value"": ""[variables('haproxyossettings')]""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""name"": ""masternode"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared')]"", ""[resourceid('microsoft.resources/deployments/"", ""haproxynode')]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('mastertemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""mysqlpassword"": {""value"": ""[parameters('mysqlpassword')]""}, ""namespace"": {""value"": ""[variables('namespace')]""}, ""vmbasename"": {""value"": ""master""}, ""masternodeip"": {""value"": ""[variables('networksettings').statics.masterip]""}, ""subnet"": {""value"": ""[variables('networksettings').subnet.dse]""}, ""vmsize"": {""value"": ""[parameters('mysqlvmsize')]""}, ""ossettings"": {""value"": ""[variables('masterossettings')]""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""name"": ""slavenode01"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared')]"", ""[resourceid('microsoft.resources/deployments/"", ""haproxynode')]"", ""[resourceid('microsoft.resources/deployments/"", ""masternode')]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('slavetemplateurl01')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""mysqlpassword"": {""value"": ""[parameters('mysqlpassword')]""}, ""namespace"": {""value"": ""[variables('namespace')]""}, ""vmbasename"": {""value"": ""slave01""}, ""slavestaticip"": {""value"": ""[variables('networksettings').statics.slaveip01]""}, ""subnet"": {""value"": ""[variables('networksettings').subnet.dse]""}, ""vmsize"": {""value"": ""[parameters('mysqlvmsize')]""}, ""ossettings"": {""value"": ""[variables('slaveossettings01')]""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""name"": ""slavenode02"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared')]"", ""[resourceid('microsoft.resources/deployments/"", ""haproxynode')]"", ""[resourceid('microsoft.resources/deployments/"", ""masternode')]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('slavetemplateurl02')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""mysqlpassword"": {""value"": ""[parameters('mysqlpassword')]""}, ""namespace"": {""value"": ""[variables('namespace')]""}, ""vmbasename"": {""value"": ""slave02""}, ""slavestaticip"": {""value"": ""[variables('networksettings').statics.slaveip02]""}, ""subnet"": {""value"": ""[variables('networksettings').subnet.dse]""}, ""vmsize"": {""value"": ""[parameters('mysqlvmsize')]""}, ""ossettings"": {""value"": ""[variables('slaveossettings02')]""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}, ""location"": {""value"": ""[parameters('location')]""}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2021-05-01"", ""name"": ""[parameters('networksecuritygroupname')]"", ""location"": ""[parameters('location')]""}{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2021-05-01"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('addressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('addressprefix')]""}}]}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""apiversion"": ""2021-08-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[parameters('blobstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storagev2""} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-04-01"", ""name"": ""[parameters('virtualnetwork_name')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('virtualnetwork_cidr')]""]}}}{""type"": ""microsoft.network/virtualnetworks/subnets"", ""apiversion"": ""2020-04-01"", ""name"": ""[concat(parameters('virtualnetwork_name'),""/"", parameters('subnet1_name'))]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetwork_name'))]""], ""properties"": {""addressprefix"": ""[parameters('subnet1_cidr')]"", ""privateendpointnetworkpolicies"": ""disabled""}}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2019-04-01"", ""name"": ""[parameters('privateendpoint_name')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.web/sites"", parameters('site_name'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('virtualnetwork_name'), parameters('subnet1_name'))]""], ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('virtualnetwork_name'), parameters('subnet1_name'))]""}, ""privatelinkserviceconnections"": [{""name"": ""[parameters('privatelinkconnection_name')]"", ""properties"": {""privatelinkserviceid"": ""[resourceid('microsoft.web/sites"", parameters('site_name'))]"", ""groupids"": [""sites""]}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""publicip"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('publicdnsname')]""}}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""vmsqlip"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""comments"": ""simple network security group for subnet [subnet]"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2019-08-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('networksettings').virtualnetworkaddressprefix]""]}, ""subnets"": [{""name"": ""default"", ""properties"": {""addressprefix"": ""[variables('networksettings').subnetaddressprefix]""}}]}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))), ""-ni')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicopy"", ""count"": ""[add(add(length(variables('vminfo')),length(variables('siteinfo'))),length(variables('clientrole')))]""}, ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses/"", concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))), ""-ip'))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", concat(tolower(tolower(parameters('prefix'))), ""-nsg'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""subnet"": {""id"": ""[variables('networksettings').subnetref]""}, ""privateipallocationmethod"": ""[variables('networksettings').privateipallocationmethod]"", ""privateipaddress"": ""[concat(variables('networksettings').virtualmachinesipaddress,add(copyindex(),int('4')))]"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))), ""-ip'))]""}}}], ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", concat(tolower(parameters('prefix')), ""-nsg'))]""}}}{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-05-01"", ""name"": ""[concat(tolower(parameters('prefix')),tolower(if(less(copyindex(),length(variables('vminfo'))),variables('vminfo')[variables('vmrole')[copyindex()]].name,if(greaterorequals(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo')))),variables('clientinfo')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))][variables('clientrole')[sub(copyindex(),add(length(variables('vminfo')),length(variables('siteinfo'))))]].name,variables('siteinfo')[variables('siterole')[sub(copyindex(),length(variables('vminfo')))]].name))), ""-ip')]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""ipcopy"", ""count"": ""[add(add(length(variables('vminfo')),length(variables('siteinfo'))),length(variables('clientrole')))]""}, ""properties"": {""publicipallocationmethod"": ""[variables('networksettings').publicipallocationmethod]""}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-05-01"", ""name"": ""[concat(tolower(parameters('prefix')), ""-nsg')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""[variables('securitygrouprulename')]"", ""properties"": ""[variables('securitygrouprule')]""}]}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""name"": ""[concat(variables('storageaccountnameprefix')[copyindex()],uniquestring(resourcegroup().id))]"", ""type"": ""microsoft.storage/storageaccounts"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2021-01-01"", ""copy"": {""count"": ""[length(variables('storageaccounttype'))]"", ""name"": ""storageaccountcopy""}, ""tags"": {""displayname"": ""[concat(variables('storageaccountnameprefix')[copyindex()],uniquestring(resourcegroup().id))]""}, ""sku"": {""name"": ""[variables('storageaccounttype')[copyindex()]]""}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2019-06-01"", ""name"": ""[parameters('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storagev2"", ""properties"": {""encryption"": {""services"": {""blob"": {""enabled"": true}, ""file"": {""enabled"": true}}, ""keysource"": ""microsoft.storage""}, ""supportshttpstrafficonly"": true}} " +"Deploy an Azure SQL Server with Threat Detection enabled and a user-defined number of Azure SQL Databases with Threat Detection enabled, with an email address to receive alerts for each database.","{""type"": ""microsoft.sql/servers"", ""apiversion"": ""2020-02-02-preview"", ""location"": ""[variables('databaseserverlocation')]"", ""name"": ""[variables('databaseservername')]"", ""properties"": {""administratorlogin"": ""[variables('databaseserveradminlogin')]"", ""administratorloginpassword"": ""[variables('databaseserveradminloginpassword')]"", ""version"": ""12.0""}, ""tags"": {""displayname"": ""[variables('databaseservername')]""}}{""apiversion"": ""2020-02-02-preview"", ""type"": ""microsoft.sql/servers/databases"", ""sku"": {""name"": ""s0"", ""tier"": ""standard""}, ""kind"": ""v12.0,user"", ""location"": ""[variables('databaseserverlocation')]"", ""name"": ""[concat(string(variables('databaseservername')), ""/"", string(variables('databasenames')[copyindex()]))]"", ""dependson"": [""[resourceid('microsoft.sql/servers"", variables('databaseservername'))]""], ""tags"": {""displayname"": ""[variables('databaseservername')]""}, ""copy"": {""name"": ""databasecopy"", ""count"": ""[length(variables('databasenames'))]""}, ""properties"": {}, ""resources"": [{""apiversion"": ""2020-02-02-preview"", ""type"": ""securityalertpolicies"", ""name"": ""default"", ""dependson"": [""[resourceid('microsoft.sql/servers/databases"", variables('databaseservername'), variables('databasenames')[copyindex()])]""], ""properties"": {""state"": ""enabled""}}]} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('vhdstoragenamers')]"", ""apiversion"": ""2021-01-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""tags"": {""displayname"": ""datastorageaccountrs""}, ""properties"": {}}{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('vhdstoragenamecatalog')]"", ""apiversion"": ""2021-01-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""tags"": {""displayname"": ""datastorageaccountcatalog""}, ""properties"": {}}{""name"": ""[variables('diagnosticsstorageaccountname')]"", ""type"": ""microsoft.storage/storageaccounts"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2021-01-01"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""tags"": {""displayname"": ""diagnosticsstorageaccount""}, ""properties"": {}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat('tableau"", copyindex(1))]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[variables('numberofinstances')]""}, ""dependson"": [""nicloop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[variables('virtualmachinesize')]""}, ""osprofile"": {""computername"": ""[concat('tableauvm"", copyindex(1))]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": ""[variables('imagereference')[parameters('os')]]"", ""osdisk"": {""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""copy"": [{""name"": ""datadisks"", ""count"": 1, ""input"": {""disksizegb"": 64, ""lun"": ""[copyindex('datadisks')]"", ""createoption"": ""empty""}}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat('tabnic"", copyindex(1)))]""}]}}, ""resources"": [{""condition"": ""[equals(parameters('accept_eula'), ""yes')]"", ""name"": ""[concat('tableau"", copyindex(1),""/customscript')]"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", concat('tableau"", copyindex(1)))]""], ""tags"": {""displayname"": ""customscriptextension""}, ""properties"": ""[if(variables('os_is_linux'),variables('lin_cse_properties'),variables('win_cse_properties'))]""}]} " +Create an Azure Security Center Automation which will be triggered by any Security Center Recommendation and state,"{""apiversion"": ""2019-01-01-preview"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('automationname')]"", ""type"": ""microsoft.security/automations"", ""properties"": {""description"": ""[format(variables('automationdescription'),""{0}"", parameters('subscriptionid'))]"", ""isenabled"": true, ""actions"": [{""actiontype"": ""logicapp"", ""logicappresourceid"": ""[resourceid('microsoft.logic/workflows"", parameters('logicappname'))]"", ""uri"": ""[listcallbackurl(resourceid(parameters('subscriptionid'), parameters('logicappresourcegroupname'), ""microsoft.logic/workflows/triggers"", parameters('logicappname'), ""manual'), ""2019-05-01').value]""}], ""scopes"": [{""description"": ""[format(variables('scopedescription'),""{0}"", parameters('subscriptionid'))]"", ""scopepath"": ""[subscription().id]""}], ""sources"": [{""eventsource"": ""assessments"", ""eventversiontype"": ""api"", ""copy"": [{""name"": ""rulesets"", ""count"": ""[length(parameters('assessmentsettings').assessmentseveritymapping)]"", ""input"": {""rules"": [{""propertyjpath"": ""[parameters('assessmentsettings').assessmentseveritymapping[copyindex('rulesets')].jpath]"", ""propertytype"": ""string"", ""expectedvalue"": ""[parameters('assessmentsettings').assessmentseveritymapping[copyindex('rulesets')].assessmentname]"", ""operator"": ""[parameters('assessmentsettings').assessmentseveritymapping[copyindex('rulesets')].operator]""}, {""propertyjpath"": ""properties.status.code"", ""propertytype"": ""string"", ""expectedvalue"": ""[parameters('assessmentsettings').assessmentseveritymapping[copyindex('rulesets')].state]"", ""operator"": ""contains""}]}}]}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2019-06-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""basic""}, ""properties"": {""publicipallocationmethod"": ""dynamic""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('appgatewaypubipname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[parameters('publicipaddresstype')]""}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(parameters('appserverspublicipprefix'), copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""foo"", ""count"": ""[variables('appscalecount')]""}, ""properties"": {""publicipallocationmethod"": ""[parameters('publicipaddresstype')]""}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('vnetname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups/"", variables('fensgname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", variables('appnsgname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", variables('bensgname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetaddressprefix')]""]}, ""subnets"": [{""name"": ""[variables('fesubnetname')]"", ""properties"": {""addressprefix"": ""[variables('frontendprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('fensgname'))]""}}}, {""name"": ""[variables('appsubnetname')]"", ""properties"": {""addressprefix"": ""[variables('appprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('appnsgname'))]""}}}, {""name"": ""[variables('besubnetname')]"", ""properties"": {""addressprefix"": ""[variables('backendprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('bensgname'))]""}}}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('fensgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""rdp_rule"", ""properties"": {""description"": ""allow rdp"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3389"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}, {""name"": ""web_rule"", ""properties"": {""description"": ""allow website"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 200, ""direction"": ""inbound""}}, {""name"": ""app_subnet_rule"", ""properties"": {""description"": ""outbound to app"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""[variables('appprefix')]"", ""access"": ""allow"", ""priority"": 1000, ""direction"": ""outbound""}}, {""name"": ""block_internal_network"", ""properties"": {""description"": ""outbound to internal network"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""virtualnetwork"", ""access"": ""deny"", ""priority"": 2000, ""direction"": ""outbound""}}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('appnsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""fe_rule"", ""properties"": {""description"": ""allow frontend"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""[variables('frontendprefix')]"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}, {""name"": ""rdp_rule"", ""properties"": {""description"": ""allow rdp"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3389"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 200, ""direction"": ""inbound""}}, {""name"": ""vnet_rule"", ""properties"": {""description"": ""block internal network"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""*"", ""access"": ""deny"", ""priority"": 300, ""direction"": ""inbound""}}, {""name"": ""db_outbound_rule"", ""properties"": {""description"": ""allow outbound db"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""[variables('backendprefix')]"", ""access"": ""allow"", ""priority"": 1000, ""direction"": ""outbound""}}, {""name"": ""deny_internet"", ""properties"": {""description"": ""deny_internet"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""internet"", ""access"": ""deny"", ""priority"": 2000, ""direction"": ""outbound""}}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('bensgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""app_rule"", ""properties"": {""description"": ""allow app servers"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""[variables('appprefix')]"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}, {""name"": ""vnet_rule"", ""properties"": {""description"": ""block internal network"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""*"", ""access"": ""deny"", ""priority"": 200, ""direction"": ""inbound""}}, {""name"": ""deny_internet"", ""properties"": {""description"": ""deny_internet"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""internet"", ""access"": ""deny"", ""priority"": 1000, ""direction"": ""outbound""}}]}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-02-01"", ""name"": ""[variables('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""properties"": {}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]""}}{""comments"": ""default network security group for template"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-22"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""name"": ""[tolower(parameters('storageaccountname'))]"", ""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2019-06-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storagev2""} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('storageaccountname')]"", ""apiversion"": ""2016-01-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storage"", ""properties"": {}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[parameters('newstorageaccountname')]"", ""apiversion"": ""2019-06-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storagev2""} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2021-07-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('vmname'), ""-nic'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('osimagepublisher')]"", ""offer"": ""[variables('osimageoffer')]"", ""sku"": ""[variables('osimagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(variables('vmname'), ""-nic'))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-04-01"", ""location"": ""[variables('location')]"", ""name"": ""[variables('agentipaddressname')]"", ""properties"": {""dnssettings"": {""domainnamelabel"": ""[variables('agentendpointdnsnameprefix')]""}, ""publicipallocationmethod"": ""dynamic""}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""nodes"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2016-02-01"", ""dependson"": [""[concat('microsoft.network/virtualnetworks/"", variables('vnetname'))]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('nodestemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""location"": {""value"": ""[variables('location')]""}, ""uniquestring"": {""value"": ""[variables('uniquestring')]""}, ""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""nodecount"": {""value"": ""[parameters('nodecount')]""}, ""vmsize"": {""value"": ""[parameters('vmsize')]""}, ""ossettings"": {""value"": ""[variables('ossettings')]""}, ""vnetname"": {""value"": ""[variables('vnetname')]""}, ""subnetname"": {""value"": ""[variables('subnetname')]""}, ""namespace"": {""value"": ""dc0""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""microsoft.resources/deployments/networktemplate""], ""name"": ""dbtemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""maharacommon"": {""value"": ""[variables('maharacommon')]""}, ""lbpubip"": {""value"": ""[reference('networktemplate').outputs.lbpubip.value]""}, ""ctlrpubip"": {""value"": ""[reference('networktemplate').outputs.ctlrpubip.value]""}, ""dbloginpassword"": {""value"": ""[parameters('dbloginpassword')]""}}, ""templatelink"": {""uri"": ""[concat(variables('maharacommon').basetemplateurl, parameters('dbservertype'), "".json"", parameters('_artifactslocationsastoken'))]""}}}{""condition"": ""[parameters('azurebackupswitch')]"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""recoverytemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""maharacommon"": {""value"": ""[variables('maharacommon')]""}}, ""templatelink"": {""uri"": ""[concat(variables('maharacommon').basetemplateurl,""recoveryservices.json"",parameters('_artifactslocationsastoken'))]""}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""networktemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""maharacommon"": {""value"": ""[variables('maharacommon')]""}}, ""templatelink"": {""uri"": ""[concat(variables('maharacommon').basetemplateurl,""network.json"",parameters('_artifactslocationsastoken'))]""}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""microsoft.resources/deployments/networktemplate"", ""microsoft.resources/deployments/recoverytemplate""], ""name"": ""searchtemplate"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[concat(variables('maharacommon').basetemplateurl, parameters('searchtype'), ""-search.json"", parameters('_artifactslocationsastoken'))]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2021-02-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('lbpublicipname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""static"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsname')]""}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('vnetaddressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('dbsubnetname')]"", ""properties"": {""addressprefix"": ""[parameters('dbsubnetaddressprefix')]""}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname1')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/"", variables('lbname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[parameters('vmip1')]"", ""subnet"": {""id"": ""[variables('dbsubnetref')]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[variables('ilbbackendaddresspoolid')]""}], ""loadbalancerinboundnatrules"": [{""id"": ""[variables('sshnatruleid1')]""}]}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname2')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/"", variables('lbname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[parameters('vmip2')]"", ""subnet"": {""id"": ""[variables('dbsubnetref')]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[variables('ilbbackendaddresspoolid')]""}], ""loadbalancerinboundnatrules"": [{""id"": ""[variables('sshnatruleid2')]""}]}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname3')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/"", variables('lbname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[parameters('vmip3')]"", ""subnet"": {""id"": ""[variables('dbsubnetref')]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[variables('ilbbackendaddresspoolid')]""}], ""loadbalancerinboundnatrules"": [{""id"": ""[variables('sshnatruleid3')]""}]}}]}} " +Template for deploying VMSS with Public IP Prefix,"{""type"": ""microsoft.compute/virtualmachinescalesets"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('vmssname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('vmsku')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('instancecount')]""}, ""properties"": {""overprovision"": false, ""upgradepolicy"": {""mode"": ""manual""}, ""virtualmachineprofile"": {""storageprofile"": {""osdisk"": {""caching"": ""readonly"", ""createoption"": ""fromimage""}, ""imagereference"": ""[variables('imagereference')]""}, ""osprofile"": {""computernameprefix"": ""[parameters('vmssname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""[variables('nicname')]"", ""properties"": {""primary"": true, ""ipconfigurations"": [{""name"": ""[variables('ipconfigname')]"", ""properties"": {""subnet"": {""id"": ""[format('{0}/subnets/{1}"", resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname')), variables('subnetname'))]""}, ""publicipaddressconfiguration"": {""name"": ""pub1"", ""properties"": {""idletimeoutinminutes"": 15, ""publicipprefix"": {""id"": ""[resourceid('microsoft.network/publicipprefixes"", variables('publicipprefixname'))]""}}}, ""loadbalancerbackendaddresspools"": [{""id"": ""[format('{0}/backendaddresspools/{1}"", resourceid('microsoft.network/loadbalancers"", variables('loadbalancername')), variables('bepoolname'))]""}], ""loadbalancerinboundnatpools"": [{""id"": ""[format('{0}/inboundnatpools/{1}"", resourceid('microsoft.network/loadbalancers"", variables('loadbalancername')), variables('natpoolname'))]""}]}}]}}]}}}, ""dependson"": [""[resourceid('microsoft.network/loadbalancers"", variables('loadbalancername'))]"", ""[resourceid('microsoft.network/publicipprefixes"", variables('publicipprefixname'))]"", ""[resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname'))]""]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetname')]"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 2}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmname'), copyindex())]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[variables('numberofinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('newstorageaccountname'))]"", ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('windowsvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmname'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('windowsvmsku')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('vmname'),copyindex()))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('newstorageaccountname')).primaryendpoints.blob]""}}}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""vmsql"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicsql'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('sqlvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmname'), ""sql')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('sqlimagepublisher')]"", ""offer"": ""[parameters('sqlvmoffer')]"", ""sku"": ""[parameters('sqlvmsku')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicsql'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('newstorageaccountname')).primaryendpoints.blob]""}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""name"": ""[variables('virtualnetworkname')]"", ""type"": ""microsoft.network/virtualnetworks"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-11-01"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups/"", variables('networksecuritygroupname'))]""], ""tags"": {""displayname"": ""[variables('virtualnetworkname')]""}, ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('virtualnetworkprefix')]""]}, ""subnets"": [{""name"": ""[variables('virtualnetworksubnetname')]"", ""properties"": {""addressprefix"": ""[variables('virtualnetworksubnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}}{""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('networksecuritygroupname')]"", ""apiversion"": ""2020-11-01"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-ssh"", ""properties"": {""description"": ""allow secure shell connections"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1000, ""direction"": ""inbound""}}, {""name"": ""neo4j-allow-bolt"", ""properties"": {""description"": ""allow bolt protocol connections"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""7687"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1010, ""direction"": ""inbound""}}, {""name"": ""neo4j-allow-http"", ""properties"": {""description"": ""allow http connections"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""7474"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1020, ""direction"": ""inbound""}}, {""name"": ""neo4j-allow-https"", ""properties"": {""description"": ""allow https connections"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""7473"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1030, ""direction"": ""inbound""}}]}}{""name"": ""[variables('networkinterfacename')]"", ""type"": ""microsoft.network/networkinterfaces"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-11-01"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressname'))]""], ""tags"": {""displayname"": ""[variables('networkinterfacename')]""}, ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('networkinterfacesubnetref')]""}, ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressname'))]""}}}]}}{""name"": ""[variables('publicipaddressname')]"", ""type"": ""microsoft.network/publicipaddresses"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-11-01"", ""tags"": {""displayname"": ""[variables('publicipaddressname')]""}, ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('publicipaddressdns')]""}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('vnetaddressprefix')]""]}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('haproxyavailabilitysetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""platformupdatedomaincount"": 3, ""platformfaultdomaincount"": 2}, ""sku"": {""name"": ""aligned""}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('appavailabilitysetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""platformupdatedomaincount"": 3, ""platformfaultdomaincount"": 2}, ""sku"": {""name"": ""aligned""}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(parameters('haproxyvmnameprefix'), copyindex())]"", ""copy"": {""name"": ""haproxyvmloop"", ""count"": ""[variables('numberofhaproxyinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(parameters('haproxyvmnameprefix'), variables('nicnameprefix'), copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('haproxyavailabilitysetname'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"",variables('haproxyavailabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[concat(parameters('haproxyvmnameprefix'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[variables('sshkeypath')]"", ""keydata"": ""[parameters('sshkeydata')]""}]}}}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('haproxyvmnameprefix'), ""osdisk-"", copyindex())]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('storageaccounttype')]""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(parameters('haproxyvmnameprefix'), variables('nicnameprefix'),copyindex()))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[concat(reference(resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname')), ""2021-01-01').primaryendpoints.blob)]""}}}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(parameters('appvmnameprefix'), copyindex())]"", ""copy"": {""name"": ""appvmloop"", ""count"": ""[variables('numberofappinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(parameters('appvmnameprefix'), variables('nicnameprefix'), copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('appavailabilitysetname'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"",variables('appavailabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[concat(parameters('appvmnameprefix'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[variables('sshkeypath')]"", ""keydata"": ""[parameters('sshkeydata')]""}]}}}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('appvmnameprefix'), ""osdisk-"", copyindex())]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('storageaccounttype')]""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(parameters('appvmnameprefix'), variables('nicnameprefix'),copyindex()))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[concat(reference(resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname')), ""2021-01-01').primaryendpoints.blob)]""}}}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('appvmnameprefix'), copyindex(), ""/configureappvm')]"", ""copy"": {""name"": ""appvmextensionsloop"", ""count"": ""[variables('numberofappinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", concat(parameters('appvmnameprefix'), copyindex()))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": ""[variables('appvmscripts').fileuris]""}, ""protectedsettings"": {""commandtoexecute"": ""[variables('appvmscripts').commandtoexecute]""}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""shared"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('sharedtemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""networksettings"": {""value"": ""[variables('networksettings')]""}, ""namespace"": {""value"": ""[variables('namespace')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""name"": ""[concat('webnode"", copyindex())]"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared')]""], ""copy"": {""name"": ""vmloop"", ""count"": ""[parameters('webnodecount')]""}, ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('webtemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""mysqlpassword"": {""value"": ""[parameters('mysqlpassword')]""}, ""namespace"": {""value"": ""[variables('namespace')]""}, ""vmbasename"": {""value"": ""[concat('web"", copyindex())]""}, ""subnet"": {""value"": ""[variables('networksettings').subnet.web]""}, ""sizeofdatadiskingb"": {""value"": ""[variables('sizeofdatadiskingb')]""}, ""vmsize"": {""value"": ""[parameters('webnodevmsize')]""}, ""zabbixserveripaddress"": {""value"": ""[parameters('zabbixserveripaddress')]""}, ""ossettings"": {""value"": ""[variables('webossettings')]""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}, ""location"": {""value"": ""[parameters('location')]""}}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""apiversion"": ""2020-06-01"", ""name"": ""deploy"", ""type"": ""microsoft.resources/deployments"", ""resourcegroup"": ""[parameters('virtualnetworkresourcegroupname')]"", ""dependson"": [""new-nsg""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('nested/updatesubnet.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""virtualnetworkname"": {""value"": ""[parameters('virtualnetworkname')]""}, ""subnetname"": {""value"": ""[parameters('subnetname')]""}, ""subnetaddressprefix"": {""value"": ""[reference(resourceid(parameters('virtualnetworkresourcegroupname'), ""microsoft.network/virtualnetworks/subnets"", parameters('virtualnetworkname'), parameters('subnetname')), ""2020-08-01').addressprefix]""}, ""nsgid"": {""value"": ""[resourceid('microsoft.network/networksecuritygroups"", ""new-nsg')]""}, ""location"": {""value"": ""[parameters('location')]""}}}} " +This template creates a metric alert rule that monitors the CPU Percentage metric of a virtual machine using a static threshold condition type.,"{""name"": ""[parameters('alertname')]"", ""type"": ""microsoft.insights/metricalerts"", ""location"": ""global"", ""apiversion"": ""2018-03-01"", ""properties"": {""description"": ""[parameters('alertdescription')]"", ""severity"": ""[parameters('alertseverity')]"", ""enabled"": ""[parameters('isenabled')]"", ""scopes"": [""[parameters('resourceid')]""], ""evaluationfrequency"": ""[parameters('evaluationfrequency')]"", ""windowsize"": ""[parameters('windowsize')]"", ""criteria"": {""odata.type"": ""microsoft.azure.monitor.singleresourcemultiplemetriccriteria"", ""allof"": [{""name"": ""1st criterion"", ""metricname"": ""[parameters('metricname')]"", ""operator"": ""[parameters('operator')]"", ""threshold"": ""[parameters('threshold')]"", ""timeaggregation"": ""[parameters('timeaggregation')]""}]}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""apiversion"": ""2018-05-01"", ""name"": ""deploy-ddos-attack-oms-resource"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('omstemplateuri')]""}, ""parameters"": {""omsworkspacename"": {""value"": ""[variables('omsworkspacename')]""}, ""omssolutionsname"": {""value"": ""[variables('omssolutions')]""}, ""sku"": {""value"": ""[parameters('omssku')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2018-05-01"", ""name"": ""[concat(parameters('vnetname'),""-"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('vnettemplateuri')]""}, ""parameters"": {""vnetname"": {""value"": ""[parameters('vnetname')]""}, ""addressprefix"": {""value"": ""[parameters('vnetaddressspace')]""}, ""subnets"": {""value"": ""[variables('subnets')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2018-05-01"", ""name"": ""[concat(variables('nsgname'),""-"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('nsgtemplateuri')]""}, ""parameters"": {""nsgname"": {""value"": ""[variables('nsgname')]""}, ""securityrules"": {""value"": ""[variables('nsgsecurityrules')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2018-05-01"", ""name"": ""[concat(variables('vmname'),""-pip"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('piptemplateuri')]""}, ""parameters"": {""publicipaddressname"": {""value"": ""[concat(variables('vmname'),""-pip')]""}, ""publicipaddresstype"": {""value"": ""[parameters('pipaddresstype')]""}, ""dnsnameforpublicip"": {""value"": ""[concat(variables('vmname'),uniquestring(resourcegroup().id, ""pip'),""-pip')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""condition"": ""[parameters('rebuildvnet')]"", ""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('vnetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('vnetaddressprefix')]""]}}, ""resources"": [{""condition"": ""[parameters('rebuildvnet')]"", ""apiversion"": ""2020-05-01"", ""type"": ""subnets"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('subnet1name')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", parameters('vnetname'))]""], ""properties"": {""addressprefix"": ""[parameters('subnet1prefix')]"", ""delegations"": [{""name"": ""integrationserviceenvironments"", ""properties"": {""servicename"": ""microsoft.logic/integrationserviceenvironments""}}]}}, {""condition"": ""[parameters('rebuildvnet')]"", ""apiversion"": ""2020-05-01"", ""type"": ""subnets"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('subnet2name')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('vnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('vnetname'), parameters('subnet1name'))]""], ""properties"": {""addressprefix"": ""[parameters('subnet2prefix')]""}}, {""condition"": ""[parameters('rebuildvnet')]"", ""apiversion"": ""2020-05-01"", ""type"": ""subnets"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('subnet3name')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('vnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('vnetname'), parameters('subnet2name'))]""], ""properties"": {""addressprefix"": ""[parameters('subnet3prefix')]""}}, {""condition"": ""[parameters('rebuildvnet')]"", ""apiversion"": ""2020-05-01"", ""type"": ""subnets"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('subnet4name')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('vnetname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('vnetname'), parameters('subnet3name'))]""], ""properties"": {""addressprefix"": ""[parameters('subnet4prefix')]""}}]} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-03-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmname'), copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""vmloop"", ""count"": ""[parameters('numberofvms')]""}, ""dependson"": [""[variables('storageaccountname')]"", ""nicloop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmname'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""[parameters('windowsosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'), copyindex(),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""copy"": [{""name"": ""datadisks"", ""count"": ""[parameters('numdatadisks')]"", ""input"": {""caching"": ""readwrite"", ""disksizegb"": ""[parameters('sizeofdatadisksingb')]"", ""lun"": ""[copyindex('datadisks')]"", ""name"": ""[concat(variables('vmname'), ""-datadisk"",copyindex(), copyindex('datadisks'))]"", ""createoption"": ""empty""}}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('nicname'), copyindex()))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('storageaccountname')).primaryendpoints.blob]""}}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('ossavailabilitysetsettings').name]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": ""[variables('ossavailabilitysetsettings').faultdomaincount]"", ""platformupdatedomaincount"": ""[variables('ossavailabilitysetsettings').updatedomaincount]""}}{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(parameters('vmnameprefix'),""mgs')]"", ""plan"": {""publisher"": ""intel"", ""product"": ""lustre-cloud-edition-gs-image"", ""name"": ""eval-lustre-2-7""}, ""location"": ""[parameters('location')]"", ""dependson"": [""storageaccountscopy"", ""[concat('microsoft.network/networkinterfaces/"", parameters('vmnameprefix'), ""mgs')]""], ""tags"": {""lustretype"": ""mgt""}, ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('mgsvmsize')]""}, ""osprofile"": {""computername"": ""[concat(parameters('vmnameprefix'),""mgs')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]"", ""linuxconfiguration"": ""[variables('linuxconfiguration')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagereferencelustre').publisher]"", ""offer"": ""[variables('imagereferencelustre').offer]"", ""sku"": ""[variables('imagereferencelustre').sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmnameprefix'),""mgs"",""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""name"": ""[concat(parameters('vmnameprefix'),""mgs"",""_datadisk1')]"", ""disksizegb"": 5, ""lun"": 0, ""caching"": ""none"", ""createoption"": ""empty""}, {""name"": ""[concat(parameters('vmnameprefix'),""mgs"",""_datadisk2')]"", ""disksizegb"": 16, ""lun"": 1, ""caching"": ""none"", ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(parameters('vmnameprefix'),""mgs'))]""}]}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmnameprefix'), ""mgs"", ""/init')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[concat('microsoft.compute/virtualmachines/"", concat(parameters('vmnameprefix'), ""mgs'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('scripturllustre')]""], ""commandtoexecute"": ""[concat('sh lustre.sh"", "" -n mgs"", "" -i 0"", "" -d "", variables('mgsdiskcount'), "" -m "", reference(resourceid('microsoft.network/networkinterfaces"", concat(parameters('vmnameprefix'), ""mgs'))).ipconfigurations[0].properties.privateipaddress, "" -l "", reference(resourceid('microsoft.network/networkinterfaces"", concat(parameters('vmnameprefix'), ""mgs'))).ipconfigurations[0].properties.privateipaddress, "" -f "", parameters('filesystemname'))]""}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2019-06-01"", ""name"": ""[variables('storageaccountname')]"", ""location"": ""[parameters('existingvnetlocation')]"", ""dependson"": [""[resourceid(parameters('existingdatafactoryresourcegroup'), ""microsoft.resources/deployments"", ""nestedtemplate')]""], ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""properties"": {}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('avsetnameascs')]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""condition"": ""[equals(length(parameters('availabilityzones')), 0)]"", ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 10}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmnameascs'), ""-"", copyindex())]"", ""copy"": {""name"": ""xscsvmloop"", ""count"": ""[variables('ascsvmcount')]""}, ""dependson"": [""nicascsloop"", ""[resourceid('microsoft.compute/availabilitysets"", variables('avsetnameascs'))]""], ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""zones"": ""[if(equals(length(parameters('availabilityzones')), 0), json('null'), array(variables('azarray')[mod(copyindex(), variables('azarraylength'))]))]"", ""properties"": {""availabilityset"": ""[if(equals(variables('azarraylength'), 0), resourceid('microsoft.compute/availabilitysets"", variables('avsetnameascs')), json('null'))]"", ""hardwareprofile"": {""vmsize"": ""[variables('ascsvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmnameascs'), ""-"", copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('images')[parameters('ostype')].publisher]"", ""offer"": ""[variables('images')[parameters('ostype')].offer]"", ""sku"": ""[variables('images')[parameters('ostype')].sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnameascs'), ""-"", copyindex(), ""-osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}}, ""datadisks"": [{""lun"": 0, ""createoption"": ""empty"", ""disksizegb"": 128}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('nicnameascs'), ""-"", copyindex()))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmnameascs'), ""-"", copyindex(), ""/"", variables('csextension')[variables('internalostype')].name)]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""xscsvmloop""], ""copy"": {""name"": ""xscsextvmloop"", ""count"": ""[variables('ascsvmcount')]""}, ""properties"": {""publisher"": ""[variables('csextension')[variables('internalostype')].publisher]"", ""type"": ""[variables('csextension')[variables('internalostype')].name]"", ""typehandlerversion"": ""[variables('csextension')[variables('internalostype')].version]"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('csextension')[variables('internalostype')].script]""], ""commandtoexecute"": ""[concat(variables('csextension')[variables('internalostype')].scriptcall, "" "", variables('scriptargumentsascsdi')[variables('internalostype')])]""}}}{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('avsetnamedb')]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""condition"": ""[equals(length(parameters('availabilityzones')), 0)]"", ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 10}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex())]"", ""copy"": {""name"": ""dbvmloop"", ""count"": ""[variables('dbvmcount')]""}, ""dependson"": [""nicdbloop"", ""[resourceid('microsoft.compute/availabilitysets"", variables('avsetnamedb'))]""], ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""zones"": ""[if(equals(length(parameters('availabilityzones')), 0), json('null'), array(variables('azarray')[mod(copyindex(), variables('azarraylength'))]))]"", ""properties"": {""availabilityset"": ""[if(equals(variables('azarraylength'), 0), resourceid('microsoft.compute/availabilitysets"", variables('avsetnamedb')), json('null'))]"", ""hardwareprofile"": {""vmsize"": ""[variables('dbvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmnamedb'), ""-"", copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('images')[parameters('ostype')].publisher]"", ""offer"": ""[variables('images')[parameters('ostype')].offer]"", ""sku"": ""[variables('images')[parameters('ostype')].sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex(), ""-osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}}, ""datadisks"": ""[variables('dbdisks')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('nicnamedb'), ""-"", copyindex()))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex(), ""/"", variables('csextension')[variables('internalostype')].name)]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""dbvmloop""], ""copy"": {""name"": ""dbextvmloop"", ""count"": ""[variables('dbvmcount')]""}, ""properties"": {""publisher"": ""[variables('csextension')[variables('internalostype')].publisher]"", ""type"": ""[variables('csextension')[variables('internalostype')].name]"", ""typehandlerversion"": ""[variables('csextension')[variables('internalostype')].version]"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('csextension')[variables('internalostype')].script]""], ""commandtoexecute"": ""[concat(variables('csextension')[variables('internalostype')].scriptcall, "" "", variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].scriptarguments[variables('internalostype')])]""}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""vslab"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('storagename'))]"", ""[resourceid('microsoft.network/networkinterfaces"", ""vslab-nic')]""], ""tags"": {""displayname"": ""vs2019 lab vm""}, ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""labvm"", ""adminusername"": ""[parameters('adminuser')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftvisualstudio"", ""offer"": ""visualstudio"", ""sku"": ""vs-2017-comm-latest-ws2016"", ""version"": ""latest""}, ""osdisk"": {""name"": ""labvmosdisk"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", ""vslab-nic')]""}]}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-04-01"", ""name"": ""[variables('supportlogstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""tags"": {""resourcetype"": ""service fabric"", ""clustername"": ""[parameters('clustername')]""}, ""properties"": {}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('avsetnamedb')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 20}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex())]"", ""copy"": {""name"": ""dbvmloop"", ""count"": ""[variables('dbvmcount')]""}, ""dependson"": [""dbnicloop"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('avsetnamedb'))]""], ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('avsetnamedb'))]""}, ""hardwareprofile"": {""vmsize"": ""[variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].vmsize]""}, ""osprofile"": {""computername"": ""[concat(variables('vmnamedb'), ""-"", copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('images')[parameters('ostype')].publisher]"", ""offer"": ""[variables('images')[parameters('ostype')].offer]"", ""sku"": ""[variables('images')[parameters('ostype')].sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex(), ""-osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""disksizegb"": ""[variables('images')[parameters('ostype')].osdisksize]"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}}, ""datadisks"": ""[variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].disks]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('nicnamedb'), ""-"", copyindex()))]""}]}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('storageaccountname')]"", ""apiversion"": ""2021-02-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('defaultstorageaccount').name]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2021-04-01"", ""sku"": {""name"": ""[variables('defaultstorageaccount').type]""}, ""kind"": ""storage"", ""properties"": {}} " +This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.,"{""type"": ""microsoft.keyvault/vaults"", ""apiversion"": ""2019-09-01"", ""name"": ""[variables('key_vault_name')]"", ""location"": ""[parameters('location')]"", ""properties"": {""enabledfordeployment"": true, ""enabledfordiskencryption"": false, ""enabledfortemplatedeployment"": true, ""enablesoftdelete"": false, ""tenantid"": ""[variables('tenantid')]"", ""accesspolicies"": [{""objectid"": ""[parameters('keyvaultownerid')]"", ""tenantid"": ""[variables('tenantid')]"", ""permissions"": {""keys"": ""[variables('keyspermissions')]"", ""secrets"": ""[variables('secretspermissions')]""}}], ""sku"": {""name"": ""[variables('skuname')]"", ""family"": ""a""}, ""networkacls"": {""defaultaction"": ""allow"", ""bypass"": ""azureservices""}}}{""type"": ""microsoft.keyvault/vaults/secrets"", ""apiversion"": ""2019-09-01"", ""name"": ""[concat(variables('key_vault_name'), ""/"", variables('key_vault_secretname_sasinst'))]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.keyvault/vaults"", variables('key_vault_name'))]""], ""properties"": {""value"": ""[parameters('sasinternalpassword')]""}}{""type"": ""microsoft.keyvault/vaults/secrets"", ""apiversion"": ""2019-09-01"", ""name"": ""[concat(variables('key_vault_name'), ""/"", variables('key_vault_secretname_sasext'))]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.keyvault/vaults"", variables('key_vault_name'))]""], ""properties"": {""value"": ""[parameters('sasexternalpassword')]""}} " +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'))]""]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {""publicipallocationmethod"": ""static"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsname')]""}}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""remoteconnection"", ""properties"": {""description"": ""allow rdp/ssh"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""[if(equals(parameters('windowsorubuntu'), ""windows'), 3389, 22)]"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}} " +This template disables data disk encryption on a running Linux VM which was encrypted without AAD,"{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/"",""azurediskencryptionforlinux')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""properties"": {""publisher"": ""microsoft.azure.security"", ""type"": ""azurediskencryptionforlinux"", ""typehandlerversion"": ""1.1"", ""autoupgrademinorversion"": true, ""forceupdatetag"": ""[parameters('forceupdatetag')]"", ""settings"": {""encryptionoperation"": ""disableencryption"", ""volumetype"": ""[parameters('volumetype')]""}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('storageaccountname')]"", ""apiversion"": ""2017-06-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('vnetname'))]""], ""sku"": {""name"": ""[parameters('storageaccounttype')]""}, ""kind"": ""storage"", ""properties"": {""networkacls"": {""bypass"": ""none"", ""virtualnetworkrules"": [{""id"": ""[variables('subnetid')[0]]"", ""action"": ""allow""}], ""defaultaction"": ""deny""}}} " +This template creates a Front Door Standard/Premium including a web application firewall with a custom rule.,"{""type"": ""microsoft.cdn/profiles"", ""apiversion"": ""2021-06-01"", ""name"": ""[variables('profilename')]"", ""location"": ""global"", ""sku"": {""name"": ""[parameters('frontdoorskuname')]""}}{""type"": ""microsoft.cdn/profiles/afdendpoints"", ""apiversion"": ""2021-06-01"", ""name"": ""[format('{0}/{1}"", variables('profilename'), parameters('endpointname'))]"", ""location"": ""global"", ""properties"": {""enabledstate"": ""enabled""}, ""dependson"": [""[resourceid('microsoft.cdn/profiles"", variables('profilename'))]""]}{""type"": ""microsoft.cdn/profiles/origingroups"", ""apiversion"": ""2021-06-01"", ""name"": ""[format('{0}/{1}"", variables('profilename'), variables('origingroupname'))]"", ""properties"": {""loadbalancingsettings"": {""samplesize"": 4, ""successfulsamplesrequired"": 3}, ""healthprobesettings"": {""probepath"": ""/"", ""proberequesttype"": ""head"", ""probeprotocol"": ""http"", ""probeintervalinseconds"": 100}}, ""dependson"": [""[resourceid('microsoft.cdn/profiles"", variables('profilename'))]""]}{""type"": ""microsoft.cdn/profiles/origingroups/origins"", ""apiversion"": ""2021-06-01"", ""name"": ""[format('{0}/{1}/{2}"", variables('profilename'), variables('origingroupname'), variables('originname'))]"", ""properties"": {""hostname"": ""[parameters('originhostname')]"", ""httpport"": 80, ""httpsport"": 443, ""originhostheader"": ""[parameters('originhostname')]"", ""priority"": 1, ""weight"": 1000}, ""dependson"": [""[resourceid('microsoft.cdn/profiles/origingroups"", variables('profilename'), variables('origingroupname'))]"", ""[resourceid('microsoft.cdn/profiles"", variables('profilename'))]""]}{""type"": ""microsoft.cdn/profiles/afdendpoints/routes"", ""apiversion"": ""2021-06-01"", ""name"": ""[format('{0}/{1}/{2}"", variables('profilename'), parameters('endpointname'), variables('routename'))]"", ""properties"": {""origingroup"": {""id"": ""[resourceid('microsoft.cdn/profiles/origingroups"", variables('profilename'), variables('origingroupname'))]""}, ""supportedprotocols"": [""http"", ""https""], ""patternstomatch"": [""/*""], ""forwardingprotocol"": ""httpsonly"", ""linktodefaultdomain"": ""enabled"", ""httpsredirect"": ""enabled""}, ""dependson"": [""[resourceid('microsoft.cdn/profiles/afdendpoints"", variables('profilename'), parameters('endpointname'))]"", ""[resourceid('microsoft.cdn/profiles/origingroups/origins"", variables('profilename'), variables('origingroupname'), variables('originname'))]"", ""[resourceid('microsoft.cdn/profiles/origingroups"", variables('profilename'), variables('origingroupname'))]"", ""[resourceid('microsoft.cdn/profiles"", variables('profilename'))]""]}{""type"": ""microsoft.cdn/profiles/securitypolicies"", ""apiversion"": ""2021-06-01"", ""name"": ""[format('{0}/{1}"", variables('profilename'), variables('securitypolicyname'))]"", ""properties"": {""parameters"": {""type"": ""webapplicationfirewall"", ""wafpolicy"": {""id"": ""[resourceid('microsoft.network/frontdoorwebapplicationfirewallpolicies"", variables('wafpolicyname'))]""}, ""associations"": [{""domains"": [{""id"": ""[resourceid('microsoft.cdn/profiles/afdendpoints"", variables('profilename'), parameters('endpointname'))]""}], ""patternstomatch"": [""/*""]}]}}, ""dependson"": [""[resourceid('microsoft.cdn/profiles/afdendpoints"", variables('profilename'), parameters('endpointname'))]"", ""[resourceid('microsoft.cdn/profiles"", variables('profilename'))]"", ""[resourceid('microsoft.network/frontdoorwebapplicationfirewallpolicies"", variables('wafpolicyname'))]""]} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""pid-738e3eec-68d4-4667-8377-c05c77c21f1b"", ""properties"": {""mode"": ""incremental"", ""template"": {""$schema"": ""https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#"", ""contentversion"": ""1.0.0.0"", ""resources"": []}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""dbtemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""moodlecommon"": {""value"": ""[variables('moodlecommon')]""}, ""location"": {""value"": ""[parameters('location')]""}}, ""templatelink"": {""uri"": ""[concat(variables('moodlecommon').basetemplateurl, parameters('dbservertype'), "".json"", parameters('_artifactslocationsastoken'))]""}}}{""condition"": ""[parameters('azurebackupswitch')]"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""recoverytemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""moodlecommon"": {""value"": ""[variables('moodlecommon')]""}, ""location"": {""value"": ""[parameters('location')]""}}, ""templatelink"": {""uri"": ""[concat(variables('moodlecommon').basetemplateurl,""recoveryservices.json"",parameters('_artifactslocationsastoken'))]""}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""redistemplate"", ""dependson"": [""microsoft.resources/deployments/networktemplate""], ""properties"": {""mode"": ""incremental"", ""parameters"": {""moodlecommon"": {""value"": ""[variables('moodlecommon')]""}, ""location"": {""value"": ""[parameters('location')]""}}, ""templatelink"": {""uri"": ""[concat(variables('moodlecommon').basetemplateurl,""redis.json"",parameters('_artifactslocationsastoken'))]""}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""networktemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""moodlecommon"": {""value"": ""[variables('moodlecommon')]""}, ""location"": {""value"": ""[parameters('location')]""}}, ""templatelink"": {""uri"": ""[concat(variables('moodlecommon').basetemplateurl,""network.json"",parameters('_artifactslocationsastoken'))]""}}}{""condition"": ""[parameters('installelasticsearchswitch')]"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""microsoft.resources/deployments/networktemplate"", ""microsoft.resources/deployments/recoverytemplate""], ""name"": ""elastictemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""moodlecommon"": {""value"": ""[variables('moodlecommon')]""}, ""location"": {""value"": ""[parameters('location')]""}}, ""templatelink"": {""uri"": ""[concat(variables('moodlecommon').basetemplateurl,""elastic.json"",parameters('_artifactslocationsastoken'))]""}}}{""condition"": ""[equals(parameters('fileservertype'),""gluster')]"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""microsoft.resources/deployments/networktemplate"", ""microsoft.resources/deployments/recoverytemplate""], ""name"": ""glustertemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""moodlecommon"": {""value"": ""[variables('moodlecommon')]""}, ""location"": {""value"": ""[parameters('location')]""}}, ""templatelink"": {""uri"": ""[concat(variables('moodlecommon').basetemplateurl,""gluster.json"",parameters('_artifactslocationsastoken'))]""}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""microsoft.resources/deployments/elastictemplate"", ""microsoft.resources/deployments/glustertemplate"", ""microsoft.resources/deployments/recoverytemplate"", ""microsoft.resources/deployments/redistemplate"", ""microsoft.resources/deployments/storageaccounttemplate""], ""name"": ""controllertemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""moodlecommon"": {""value"": ""[variables('moodlecommon')]""}, ""location"": {""value"": ""[parameters('location')]""}}, ""templatelink"": {""uri"": ""[concat(variables('moodlecommon').basetemplateurl,""controller.json"",parameters('_artifactslocationsastoken'))]""}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""microsoft.resources/deployments/controllertemplate"", ""microsoft.resources/deployments/redistemplate"", ""microsoft.resources/deployments/dbtemplate""], ""name"": ""scalesettemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""moodlecommon"": {""value"": ""[variables('moodlecommon')]""}, ""location"": {""value"": ""[parameters('location')]""}}, ""templatelink"": {""uri"": ""[concat(variables('moodlecommon').basetemplateurl,""webvmss.json"",parameters('_artifactslocationsastoken'))]""}}} " +Deploy an Azure Databricks workspace with a custom virtual network.,"{""comments"": ""the resource group specified will be locked after deployment."", ""type"": ""microsoft.databricks/workspaces"", ""apiversion"": ""2018-04-01"", ""name"": ""[parameters('workspacename')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('pricingtier')]""}, ""properties"": {""managedresourcegroupid"": ""[variables('managedresourcegroupid')]"", ""parameters"": {""customvirtualnetworkid"": {""value"": ""[parameters('customvirtualnetworkid')]""}, ""custompublicsubnetname"": {""value"": ""[parameters('custompublicsubnetname')]""}, ""customprivatesubnetname"": {""value"": ""[parameters('customprivatesubnetname')]""}, ""enablenopublicip"": {""value"": ""[parameters('disablepublicip')]""}}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[parameters('vmdiagnosticsstorageaccountname')]"", ""apiversion"": ""2021-01-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storatetype')]""}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[parameters('storagename')]"", ""apiversion"": ""2021-01-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('storagetype')]""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-08-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('securitygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""ssh"", ""properties"": {""description"": ""allows ssh traffic"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('addressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnet1name')]"", ""properties"": {""addressprefix"": ""[parameters('subnet1prefix')]""}}]}}{""apiversion"": ""2020-08-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""publicip"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsname')]""}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""nic"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses/"", ""publicip')]"", ""[resourceid('microsoft.network/networksecuritygroups/"", variables('securitygroupname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", ""publicip')]""}, ""subnet"": {""id"": ""[variables('subnet1ref')]""}}}], ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('securitygroupname'))]""}}} " +This template deploys a Disk pool into an exsisting vnet.,"{""type"": ""microsoft.storagepool/diskpools"", ""apiversion"": ""2021-08-01"", ""name"": ""[parameters('diskpoolname')]"", ""sku"": {""name"": ""[parameters('diskpoolsku')]""}, ""location"": ""[parameters('diskpoollocation')]"", ""properties"": {""availabilityzones"": [""[parameters('diskpoolavailabilityzone')]""], ""subnetid"": ""[variables('subnetid')]"", ""disks"": [{""id"": ""[variables('diskid')]""}]}}{""type"": ""microsoft.storagepool/diskpools/iscsitargets"", ""apiversion"": ""2021-08-01"", ""name"": ""[format('{0}/{1}"", parameters('diskpoolname'), parameters('targetname'))]"", ""properties"": {""targetiqn"": ""iqn.2021-04.org.microsoft.com:target"", ""aclmode"": ""dynamic"", ""luns"": [{""manageddiskazureresourceid"": ""[variables('diskid')]"", ""name"": ""lun0""}]}, ""dependson"": [""[resourceid('microsoft.storagepool/diskpools"", parameters('diskpoolname'))]""]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2019-11-01"", ""name"": ""vslab-publicip"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""publicipaddress""}, ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[variables('vm-dns')]""}}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-04-01"", ""name"": ""vslab-nsg"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""nsgrule1"", ""properties"": {""description"": ""description"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3389"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}}{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-04-01"", ""name"": ""vslab-virtualnetwork"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", ""vslab-nsg')]""], ""tags"": {""displayname"": ""vslab-virtualnetwork""}, ""properties"": {""addressspace"": {""addressprefixes"": [""10.0.0.0/16""]}, ""subnets"": [{""name"": ""vslab-vnet-subnet"", ""properties"": {""addressprefix"": ""10.0.0.0/24"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", ""vslab-nsg')]""}}}]}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""[parameters('vm_name')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", parameters('nic_name'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('vmimagepublisher')]"", ""offer"": ""[variables('vmimageoffer')]"", ""sku"": ""[variables('sku')]"", ""version"": ""latest""}, ""osdisk"": {""ostype"": ""windows"", ""name"": ""[concat(parameters('vm_name'), ""_osdisk')]"", ""createoption"": ""fromimage"", ""caching"": ""readwrite""}}, ""osprofile"": {""computername"": ""[parameters('vm_name')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", parameters('nic_name'))]""}]}}}{""name"": ""[concat(parameters('vm_name'),""/gpudrivers')]"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-07-01"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", parameters('vm_name'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions"", parameters('vm_name'), ""setupchocolatey')]""], ""tags"": {""displayname"": ""gpu-nvidia-drivers""}, ""properties"": {""publisher"": ""microsoft.hpccompute"", ""type"": ""nvidiagpudriverwindows"", ""typehandlerversion"": ""1.2"", ""autoupgrademinorversion"": true}}{""name"": ""[concat(parameters('vm_name'),""/setupchocolatey')]"", ""apiversion"": ""2019-07-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", parameters('vm_name'))]""], ""tags"": {""displayname"": ""config-choco""}, ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.10"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('setupscriptlocation')]""], ""commandtoexecute"": ""[concat('powershell -executionpolicy bypass -file "", parameters('setupchocolateyscriptfilename'),"" -chocopackages "",parameters('chocopackages'))]""}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""provisionconfiguration"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2018-02-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('provisionconfigurationurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""_artifactslocation"": {""value"": ""[parameters('_artifactslocation')]""}, ""_artifactslocationsastoken"": {""value"": ""[parameters('_artifactslocationsastoken')]""}, ""automationaccountname"": {""value"": ""[variables('automationaccountname')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""compilename"": {""value"": ""[parameters('compilename')]""}}}}{""name"": ""provisionnetwork"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2018-02-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('provisionnetworkurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""virtualnetworkname"": {""value"": ""[variables('virtualnetworkname')]""}, ""virtualnetworkaddressrange"": {""value"": ""[parameters('virtualnetworkaddressrange')]""}, ""virtualnetworksubnets"": {""value"": ""[variables('virtualnetworksubnets')]""}, ""publicipaddressname"": {""value"": ""[variables('publicipaddressname')]""}, ""publicipaddresstype"": {""value"": ""[variables('publicipaddresstype')]""}, ""loadbalancername"": {""value"": ""[variables('loadbalancername')]""}}}}{""name"": ""provisionserver"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2018-02-01"", ""dependson"": [""provisionnetwork"", ""provisionconfiguration""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('provisionserverurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""vmssname"": {""value"": ""[parameters('vmssname')]""}, ""instancecount"": {""value"": ""[parameters('instancecount')]""}, ""vmsize"": {""value"": ""[parameters('vmsize')]""}, ""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""adminpassword"": {""value"": ""[parameters('adminpassword')]""}, ""nicname"": {""value"": ""[variables('nicname')]""}, ""virtualnetworkname"": {""value"": ""[variables('virtualnetworkname')]""}, ""subnetname"": {""value"": ""[variables('virtualnetworksubnetname')]""}, ""loadbalancername"": {""value"": ""[variables('loadbalancername')]""}, ""automationaccountname"": {""value"": ""[variables('automationaccountname')]""}}}} " +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""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'),""/newuserscript')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/install_postgresql.sh"", parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""bash install_postgresql.sh""}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""microsoft.resources/deployments/networktemplate""], ""name"": ""dbtemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""maharacommon"": {""value"": ""[variables('maharacommon')]""}, ""lbpubip"": {""value"": ""[reference('networktemplate').outputs.lbpubip.value]""}, ""ctlrpubip"": {""value"": ""[reference('networktemplate').outputs.ctlrpubip.value]""}, ""dbloginpassword"": {""value"": ""[parameters('dbloginpassword')]""}}, ""templatelink"": {""uri"": ""[concat(variables('maharacommon').basetemplateurl, parameters('dbservertype'), "".json"", parameters('_artifactslocationsastoken'))]""}}}{""condition"": ""[parameters('azurebackupswitch')]"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""recoverytemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""maharacommon"": {""value"": ""[variables('maharacommon')]""}}, ""templatelink"": {""uri"": ""[concat(variables('maharacommon').basetemplateurl,""recoveryservices.json"",parameters('_artifactslocationsastoken'))]""}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""networktemplate"", ""properties"": {""mode"": ""incremental"", ""parameters"": {""maharacommon"": {""value"": ""[variables('maharacommon')]""}}, ""templatelink"": {""uri"": ""[concat(variables('maharacommon').basetemplateurl,""network.json"",parameters('_artifactslocationsastoken'))]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""comments"": ""default network security group for template"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2019-08-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-22"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnet1name')]"", ""properties"": {""addressprefix"": ""[variables('subnet1prefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}} " +Create a SQL Server Virtual Machine with performance optimized storage settings on PremiumSSD,"{""type"": ""microsoft.sqlvirtualmachine/sqlvirtualmachines"", ""apiversion"": ""2017-03-01-preview"", ""name"": ""[parameters('virtualmachinename')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", parameters('virtualmachinename'))]""], ""properties"": {""virtualmachineresourceid"": ""[resourceid('microsoft.compute/virtualmachines"", parameters('virtualmachinename'))]"", ""sqlmanagement"": ""full"", ""sqlserverlicensetype"": ""payg"", ""storageconfigurationsettings"": {""diskconfigurationtype"": ""[variables('diskconfigurationtype')]"", ""storageworkloadtype"": ""[parameters('storageworkloadtype')]"", ""sqldatasettings"": {""luns"": ""[variables('datadisksluns')]"", ""defaultfilepath"": ""[parameters('datapath')]""}, ""sqllogsettings"": {""luns"": ""[variables('logdisksluns')]"", ""defaultfilepath"": ""[parameters('logpath')]""}, ""sqltempdbsettings"": {""defaultfilepath"": ""[variables('tempdbpath')]""}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networkinterfaces"", ""apiversion"": ""2020-08-01"", ""name"": ""[variables('networkinterfacename')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressename'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('privatesubnet'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('publicsubnet'))]"", ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""tags"": {""name"": ""vns3 controller""}, ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[variables('vnsstaticip')]"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressename'))]""}, ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('publicsubnet'))]""}, ""privateipaddressversion"": ""ipv4""}}], ""enableacceleratednetworking"": false, ""enableipforwarding"": true, ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-08-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""name"": ""vns3 controller""}, ""properties"": {""securityrules"": [{""name"": ""vns3_web_api_port"", ""properties"": {""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""8000"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}, {""name"": ""vns3_udp_1194"", ""properties"": {""protocol"": ""udp"", ""sourceportrange"": ""1194"", ""destinationportrange"": ""1194"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""virtualnetwork"", ""access"": ""allow"", ""priority"": 200, ""direction"": ""inbound""}}, {""name"": ""vns3_udp_500"", ""properties"": {""protocol"": ""udp"", ""sourceportrange"": ""500"", ""destinationportrange"": ""500"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 300, ""direction"": ""inbound""}}, {""name"": ""vns3_nat_t"", ""properties"": {""protocol"": ""udp"", ""sourceportrange"": ""4500"", ""destinationportrange"": ""4500"", ""sourceaddressprefix"": ""1.2.3.4/32"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 400, ""direction"": ""inbound""}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-08-01"", ""name"": ""[variables('publicipaddressename')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""basic"", ""tier"": ""regional""}, ""tags"": {""name"": ""vns3 controller""}, ""properties"": {""publicipaddressversion"": ""ipv4"", ""publicipallocationmethod"": ""static"", ""idletimeoutinminutes"": 4}}{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-08-01"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetsubnet')]""]}, ""subnets"": [{""name"": ""[variables('publicsubnet')]"", ""properties"": {""addressprefix"": ""[variables('vnetpublicsubnet')]""}}, {""name"": ""[variables('privatesubnet')]"", ""properties"": {""addressprefix"": ""[variables('vnetprivatesubnet')]""}}], ""enableddosprotection"": false, ""enablevmprotection"": false}}{""type"": ""microsoft.network/virtualnetworks/subnets"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('virtualnetworkname'), ""/"", variables('publicsubnet'))]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname'))]""], ""properties"": {""addressprefix"": ""[variables('vnetpublicsubnet')]""}}{""type"": ""microsoft.network/virtualnetworks/subnets"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('virtualnetworkname'), ""/"", variables('privatesubnet'))]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname'))]""], ""properties"": {""addressprefix"": ""[variables('vnetprivatesubnet')]"", ""routetable"": {""id"": ""[resourceid('microsoft.network/routetables"", variables('routetablename'))]""}}}{""type"": ""microsoft.network/routetables"", ""apiversion"": ""2020-11-01"", ""name"": ""[variables('routetablename')]"", ""location"": ""[parameters('location')]"", ""properties"": {""disablebgproutepropagation"": false, ""routes"": [{""name"": ""natgateway"", ""properties"": {""addressprefix"": ""0.0.0.0/0"", ""nexthoptype"": ""virtualappliance"", ""nexthopipaddress"": ""10.10.10.10"", ""hasbgpoverride"": false}}]}}{""type"": ""microsoft.network/routetables/routes"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('routetablename'),""/"",""natgateway')]"", ""dependson"": [""[resourceid('microsoft.network/routetables"", variables('routetablename'))]"", ""[resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname'))]""], ""properties"": {""addressprefix"": ""0.0.0.0/0"", ""nexthoptype"": ""internet"", ""hasbgpoverride"": false}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allowsshinbound"", ""properties"": {""priority"": 100, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('virtualnetworkaddressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetaddressprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}, ""privateendpointnetworkpolicies"": ""disabled"", ""privatelinkservicenetworkpolicies"": ""enabled""}}]}}{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('publicipid')]"", ""[variables('vnetid')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetid')]""}}}]}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2018-09-01"", ""name"": ""[variables('servicebusnamespaceprivatednszonename')]"", ""location"": ""global"", ""properties"": {""maxnumberofrecordsets"": 25000, ""maxnumberofvirtualnetworklinks"": 1000, ""maxnumberofvirtualnetworklinkswithregistration"": 100}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2018-09-01"", ""name"": ""[variables('blobprivatednszonename')]"", ""location"": ""global"", ""properties"": {""maxnumberofrecordsets"": 25000, ""maxnumberofvirtualnetworklinks"": 1000, ""maxnumberofvirtualnetworklinkswithregistration"": 100}}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2018-09-01"", ""name"": ""[concat(variables('servicebusnamespaceprivatednszonename'), ""/link_to_"", tolower(parameters('virtualnetworkname')))]"", ""location"": ""global"", ""dependson"": [""[variables('servicebusnamespaceprivatednszoneid')]"", ""[variables('vnetid')]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[variables('vnetid')]""}}}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2018-09-01"", ""name"": ""[concat(variables('blobprivatednszonename'), ""/link_to_"", tolower(parameters('virtualnetworkname')))]"", ""location"": ""global"", ""dependson"": [""[variables('blobprivatednszoneid')]"", ""[variables('vnetid')]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[variables('vnetid')]""}}}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-04-01"", ""name"": ""[parameters('servicebusnamespaceprivateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetid')]"", ""[variables('servicebusnamespaceid')]""], ""properties"": {""privatelinkserviceconnections"": [{""name"": ""[parameters('servicebusnamespaceprivateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[variables('servicebusnamespaceid')]"", ""groupids"": [""[variables('servicebusnamespaceprivateendpointgroupname')]""]}}], ""subnet"": {""id"": ""[variables('subnetid')]""}, ""customdnsconfigs"": [{""fqdn"": ""[concat(parameters('servicebusnamespacename'), variables('servicebuspublicdnszoneforwarder'))]""}]}}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-04-01"", ""name"": ""[parameters('blobstorageaccountprivateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetid')]"", ""[variables('blobstorageaccountid')]""], ""properties"": {""privatelinkserviceconnections"": [{""name"": ""[parameters('blobstorageaccountprivateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[variables('blobstorageaccountid')]"", ""groupids"": [""[variables('blobstorageaccountprivateendpointgroupname')]""]}}], ""subnet"": {""id"": ""[variables('subnetid')]""}, ""customdnsconfigs"": [{""fqdn"": ""[concat(parameters('blobstorageaccountname'), variables('blobpublicdnszoneforwarder'))]""}]}}{""type"": ""microsoft.network/privateendpoints/privatednszonegroups"", ""apiversion"": ""2020-03-01"", ""name"": ""[variables('servicebusnamespaceprivatednszonegroup')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('servicebusnamespaceprivatednszoneid')]"", ""[variables('servicebusnamespaceprivateendpointid')]""], ""properties"": {""privatednszoneconfigs"": [{""name"": ""dnsconfig"", ""properties"": {""privatednszoneid"": ""[variables('servicebusnamespaceprivatednszoneid')]""}}]}}{""type"": ""microsoft.network/privateendpoints/privatednszonegroups"", ""apiversion"": ""2020-03-01"", ""name"": ""[variables('blobprivatednszonegroup')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('blobprivatednszoneid')]"", ""[variables('blobstorageaccountprivateendpointid')]""], ""properties"": {""privatednszoneconfigs"": [{""name"": ""dnsconfig"", ""properties"": {""privatednszoneid"": ""[variables('blobprivatednszoneid')]""}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachinescalesets"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('vmnodetype0name')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('vmnodetype0size')]"", ""capacity"": ""[parameters('nt0instancecount')]"", ""tier"": ""standard""}, ""dependson"": [""[variables('virtualnetworkname')]"", ""[variables('lbname')]"", ""[variables('supportlogstorageaccountname')]"", ""[variables('applicationdiagnosticsstorageaccountname')]""], ""tags"": {""resourcetype"": ""service fabric"", ""clustername"": ""[parameters('clustername')]""}, ""properties"": {""overprovision"": ""[variables('overprovision')]"", ""upgradepolicy"": {""mode"": ""automatic""}, ""virtualmachineprofile"": {""extensionprofile"": {""extensions"": [{""name"": ""[concat('servicefabricnodevmext"",""_vmnodetype0name')]"", ""properties"": {""type"": ""servicefabricnode"", ""autoupgrademinorversion"": true, ""protectedsettings"": {""storageaccountkey1"": ""[listkeys(resourceid('microsoft.storage/storageaccounts"", variables('supportlogstorageaccountname')),""2021-01-01').keys[0].value]"", ""storageaccountkey2"": ""[listkeys(resourceid('microsoft.storage/storageaccounts"", variables('supportlogstorageaccountname')),""2021-01-01').keys[1].value]""}, ""publisher"": ""microsoft.azure.servicefabric"", ""settings"": {""clusterendpoint"": ""[reference(parameters('clustername')).clusterendpoint]"", ""nodetyperef"": ""[variables('vmnodetype0name')]"", ""datapath"": ""[concat(if(equals(parameters('nodedatadrive'), ""os'), ""c"", ""d'), "":\\\\svcfab')]"", ""durabilitylevel"": ""silver"", ""nicprefixoverride"": ""[variables('subnet0prefix')]"", ""certificate"": {""thumbprint"": ""[parameters('certificatethumbprint')]"", ""x509storename"": ""[parameters('certificatestorevalue')]""}}, ""typehandlerversion"": ""1.0""}}, {""name"": ""[concat('vmdiagnosticsvmext"",""_vmnodetype0name')]"", ""properties"": {""type"": ""iaasdiagnostics"", ""autoupgrademinorversion"": true, ""protectedsettings"": {""storageaccountname"": ""[variables('applicationdiagnosticsstorageaccountname')]"", ""storageaccountkey"": ""[listkeys(resourceid('microsoft.storage/storageaccounts"", variables('applicationdiagnosticsstorageaccountname')),""2021-01-01').keys[0].value]"", ""storageaccountendpoint"": ""[concat('https://"", environment().suffixes.storage)]""}, ""publisher"": ""microsoft.azure.diagnostics"", ""settings"": {""wadcfg"": {""diagnosticmonitorconfiguration"": {""overallquotainmb"": ""50000"", ""etwproviders"": {""etweventsourceproviderconfiguration"": [{""provider"": ""microsoft-servicefabric-actors"", ""scheduledtransferkeywordfilter"": ""1"", ""scheduledtransferperiod"": ""pt5m"", ""defaultevents"": {""eventdestination"": ""servicefabricreliableactoreventtable""}}, {""provider"": ""microsoft-servicefabric-services"", ""scheduledtransferperiod"": ""pt5m"", ""defaultevents"": {""eventdestination"": ""servicefabricreliableserviceeventtable""}}], ""etwmanifestproviderconfiguration"": [{""provider"": ""cbd93bc2-71e5-4566-b3a7-595d8eeca6e8"", ""scheduledtransferloglevelfilter"": ""information"", ""scheduledtransferkeywordfilter"": ""4611686018427387904"", ""scheduledtransferperiod"": ""pt5m"", ""defaultevents"": {""eventdestination"": ""servicefabricsystemeventtable""}}]}}}, ""storageaccount"": ""[variables('applicationdiagnosticsstorageaccountname')]""}, ""typehandlerversion"": ""1.5""}}]}, ""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""[concat(variables('nicname'), ""-0')]"", ""properties"": {""ipconfigurations"": [{""name"": ""[concat(variables('nicname'),""-"",0)]"", ""properties"": {""loadbalancerbackendaddresspools"": [{""id"": ""[variables('lbpoolid0')]""}], ""loadbalancerinboundnatpools"": [{""id"": ""[variables('lbnatpoolid0')]""}], ""subnet"": {""id"": ""[variables('subnet0ref')]""}}}], ""primary"": true}}]}, ""osprofile"": {""adminpassword"": ""[parameters('adminpassword')]"", ""adminusername"": ""[parameters('adminusername')]"", ""computernameprefix"": ""[variables('vmnodetype0name')]"", ""secrets"": [{""sourcevault"": {""id"": ""[parameters('sourcevaultresourceid')]""}, ""vaultcertificates"": [{""certificatestore"": ""[parameters('certificatestorevalue')]"", ""certificateurl"": ""[parameters('certificateurlvalue')]""}]}]}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('vmimagepublisher')]"", ""offer"": ""[parameters('vmimageoffer')]"", ""sku"": ""[parameters('vmimagesku')]"", ""version"": ""[parameters('vmimageversion')]""}, ""osdisk"": {""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}, ""caching"": ""readonly"", ""createoption"": ""fromimage""}}}}} " +This template deploys a Custom Linux Image behind a load balancer with HTTP load balancing rules and an update script for deploying and updating an app.,"{""type"": ""microsoft.compute/images"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('imagename')]"", ""location"": ""[parameters('location')]"", ""properties"": {""hypervgeneration"": ""v1"", ""storageprofile"": {""osdisk"": {""ostype"": ""linux"", ""osstate"": ""generalized"", ""bloburi"": ""[parameters('sourceimagevhduri')]"", ""storageaccounttype"": ""standard_lrs""}}}}{""type"": ""microsoft.compute/virtualmachinescalesets"", ""name"": ""[variables('vmssuniquename')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-06-01"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.compute/images"",variables('imagename'))]""], ""sku"": {""name"": ""[parameters('vmsku')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('capacity')]""}, ""properties"": {""upgradepolicy"": {""mode"": ""manual""}, ""virtualmachineprofile"": {""storageprofile"": {""imagereference"": {""id"": ""[resourceid('microsoft.compute/images"", variables('imagename'))]""}}, ""osprofile"": {""computernameprefix"": ""[variables('vmssuniquename')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""[variables('nicname')]"", ""properties"": {""primary"": true, ""ipconfigurations"": [{""name"": ""[variables('ipconfigname')]"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('lbname'), variables('bepoolname'))]""}], ""loadbalancerinboundnatpools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/inboundnatpools"", variables('lbname'), variables('natpoolname'))]""}]}}]}}]}, ""extensionprofile"": {""extensions"": [{""name"": ""updatescriptextension"", ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/updateapp.sh"", parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('app/package.tar.gz"", parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""[format(\""sudo bash {0} ""{1}"" {2} {3}\"", \""updateapp.sh\"", \""package.tar.gz\"", \""/nodeserver\"", \""mainsite.service\')]""}}}]}}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-02-01"", ""name"": ""[parameters('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('storageskuname')]"", ""tier"": ""[parameters('storageskutier')]""}, ""kind"": ""[parameters('storagekind')]"", ""properties"": {""accesstier"": ""[parameters('accesstier')]"", ""allowsharedkeyaccess"": false, ""supportshttpstrafficonly"": true, ""allowblobpublicaccess"": false, ""minimumtlsversion"": ""tls1_2""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2016-03-30"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('vmnsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""ssh"", ""properties"": {""description"": ""allows ssh traffic"", ""protocol"": ""tcp"", ""sourceportrange"": ""22"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}}{""apiversion"": ""2016-03-30"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('vmpipname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""static""}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[parameters('newstorageaccountname')]"", ""apiversion"": ""2021-02-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""name"": ""[variables('chefbeavailname')]"", ""type"": ""microsoft.compute/availabilitysets"", ""location"": ""[resourcegroup().location]"", ""apiversion"": ""2017-12-01"", ""dependson"": [], ""tags"": {""displayname"": ""beavailset"", ""provider"": ""[variables('tagvalues').provider]""}, ""sku"": {""name"": ""aligned""}, ""properties"": {""platformupdatedomaincount"": 3, ""platformfaultdomaincount"": 3}}{""name"": ""[variables('cheffeavailname')]"", ""type"": ""microsoft.compute/availabilitysets"", ""location"": ""[resourcegroup().location]"", ""apiversion"": ""2017-12-01"", ""dependson"": [], ""tags"": {""displayname"": ""feavailset"", ""provider"": ""[variables('tagvalues').provider]""}, ""sku"": {""name"": ""aligned""}, ""properties"": {""platformupdatedomaincount"": 3, ""platformfaultdomaincount"": 3}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(variables('publicipaddressname'), copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""publiciploop"", ""count"": 1}, ""tags"": {""displayname"": ""publicipaddress""}, ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(variables('dnsname'), copyindex())]""}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""virtualnetwork""}, ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('nicname'), copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicloop"", ""count"": 1}, ""tags"": {""displayname"": ""networkinterface""}, ""dependson"": [""publiciploop"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", concat(variables('publicipaddressname'), copyindex()))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}}{""name"": ""[variables('nicname')]"", ""type"": ""microsoft.network/networkinterfaces"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2015-06-15"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]""], ""tags"": {""displayname"": ""rsnetworkinterface""}, ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('subnetref')]""}, ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressname'))]""}}}]}}{""name"": ""[variables('publicipaddressname')]"", ""type"": ""microsoft.network/publicipaddresses"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2015-06-15"", ""tags"": {""displayname"": ""publicrsipaddress""}, ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[variables('dnsname')]""}}} " +Deploy SQL Always ON setup with existing SQL Virtual Machines.,"{""type"": ""microsoft.sqlvirtualmachine/sqlvirtualmachines"", ""apiversion"": ""2017-03-01-preview"", ""name"": ""[trim(variables('existingvmlistarray')[copyindex()])]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""sqlvirtualmachineloop"", ""count"": ""[length(variables('existingvmlistarray'))]""}, ""properties"": {""virtualmachineresourceid"": ""[resourceid(parameters('existingvmresourcegroup'), ""microsoft.compute/virtualmachines"", trim(variables('existingvmlistarray')[copyindex()]))]"", ""sqlserverlicensetype"": ""[parameters('sqlserverlicensetype')]""}}{""type"": ""microsoft.sqlvirtualmachine/sqlvirtualmachinegroups"", ""apiversion"": ""2017-03-01-preview"", ""name"": ""[parameters('failoverclustername')]"", ""location"": ""[parameters('location')]"", ""properties"": {""sqlimageoffer"": ""[parameters('sqlserverimagetype')]"", ""sqlimagesku"": ""enterprise"", ""wsfcdomainprofile"": {""domainfqdn"": ""[parameters('existingfullyqualifieddomainname')]"", ""oupath"": ""[parameters('existingoupath')]"", ""clusterbootstrapaccount"": ""[parameters('existingdomainaccount')]"", ""clusteroperatoraccount"": ""[parameters('existingdomainaccount')]"", ""sqlserviceaccount"": ""[parameters('existingsqlserviceaccount')]"", ""storageaccounturl"": ""[reference(resourceid('microsoft.storage/storageaccounts"", parameters('cloudwitnessname')), ""2018-07-01').primaryendpoints[""blob""]]"", ""storageaccountprimarykey"": ""[listkeys(resourceid('microsoft.storage/storageaccounts"", parameters('cloudwitnessname')), ""2018-07-01').keys[0].value]""}}} " +Create an Application Gateway with Public IP,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetprefix')]""}}]}}{""apiversion"": ""2020-05-01"", ""name"": ""[variables('applicationgatewayname')]"", ""type"": ""microsoft.network/applicationgateways"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]""], ""properties"": {""sku"": {""name"": ""[parameters('skuname')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('capacity')]""}, ""sslcertificates"": [{""name"": ""appgatewaysslcert"", ""properties"": {""data"": ""[parameters('certdata')]"", ""password"": ""[parameters('certpassword')]""}}], ""gatewayipconfigurations"": [{""name"": ""appgatewayipconfig"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}}}], ""frontendipconfigurations"": [{""name"": ""appgatewayfrontendip"", ""properties"": {""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}}}], ""frontendports"": [{""name"": ""appgatewayfrontendport"", ""properties"": {""port"": 443}}], ""backendaddresspools"": [{""name"": ""appgatewaybackendpool"", ""properties"": {""backendaddresses"": [{""ipaddress"": ""[parameters('backendipaddress1')]""}, {""ipaddress"": ""[parameters('backendipaddress2')]""}]}}], ""backendhttpsettingscollection"": [{""name"": ""appgatewaybackendhttpsettings"", ""properties"": {""port"": 80, ""protocol"": ""http"", ""cookiebasedaffinity"": ""disabled""}}], ""httplisteners"": [{""name"": ""appgatewayhttplistener"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/applicationgateways/frontendipconfigurations"",variables('applicationgatewayname'), ""appgatewayfrontendip')]""}, ""frontendport"": {""id"": ""[resourceid('microsoft.network/applicationgateways/frontendports"",variables('applicationgatewayname'), ""appgatewayfrontendport')]""}, ""protocol"": ""https"", ""sslcertificate"": {""id"": ""[resourceid('microsoft.network/applicationgateways/sslcertificates"",variables('applicationgatewayname'), ""appgatewaysslcert')]""}}}], ""requestroutingrules"": [{""name"": ""rule1"", ""properties"": {""ruletype"": ""basic"", ""httplistener"": {""id"": ""[resourceid('microsoft.network/applicationgateways/httplisteners"",variables('applicationgatewayname'), ""appgatewayhttplistener')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/applicationgateways/backendaddresspools"",variables('applicationgatewayname'), ""appgatewaybackendpool')]""}, ""backendhttpsettings"": {""id"": ""[resourceid('microsoft.network/applicationgateways/backendhttpsettingscollection"",variables('applicationgatewayname'), ""appgatewaybackendhttpsettings')]""}}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[variables('vmname')[copyindex()]]"", ""location"": ""[parameters('location')]"", ""zones"": [""[copyindex(1)]""], ""dependson"": [""nicloop""], ""copy"": {""name"": ""vmloop"", ""count"": 2}, ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')[copyindex()]]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""caching"": ""readonly"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}}, ""datadisks"": [{""disksizegb"": 64, ""lun"": 0, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname')[copyindex()])]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2020-12-01"", ""name"": ""[concat(variables('vmname')[0], ""/createadforest')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""vmloop""], ""properties"": {""publisher"": ""microsoft.powershell"", ""type"": ""dsc"", ""typehandlerversion"": ""2.24"", ""autoupgrademinorversion"": true, ""settings"": {""configuration"": {""url"": ""[uri(parameters('_artifactslocation'), ""dsc/createadpdc.ps1.zip')]"", ""script"": ""createadpdc.ps1"", ""function"": ""createadpdc""}, ""configurationarguments"": {""domainname"": ""[parameters('domainname')]""}}, ""protectedsettings"": {""configurationurlsastoken"": ""[parameters('_artifactslocationsastoken')]"", ""configurationarguments"": {""admincreds"": {""username"": ""[parameters('adminusername')]"", ""password"": ""[parameters('adminpassword')]""}}}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[concat('/home/"",parameters('adminusername'),""/.ssh/authorized_keys')]"", ""keydata"": ""[parameters('sshpublickey')]""}]}}}, ""storageprofile"": {""imagereference"": {""publisher"": ""canonical"", ""offer"": ""ubuntuserver"", ""sku"": ""18.04-lts"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[concat(reference(resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname')), ""2020-08-01-preview').primaryendpoints.blob)]""}}}, ""resources"": [{""type"": ""extensions"", ""name"": ""[variables('vmextensionname')]"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/"", variables('_extensionscript'), parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('sh tigscript.sh"", "" "", variables('_configfilelocation'))]""}}}]} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[concat(variables('availabilitysetname'), ""-"", copyindex())]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""asloop"", ""count"": 2}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 2}, ""sku"": {""name"": ""aligned""}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat('myvm"", copyindex())]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[parameters('numberofinstances')]""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", concat('nic"", copyindex()))]"", ""asloop""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", concat(variables('availabilitysetname'), ""-"", mod(copyindex(),2)))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[concat('vm"", copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": ""[variables('imagereference')[parameters('os')]]"", ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat('nic"", copyindex()))]""}]}}} " +"This template creates an automation rule that triggers on incident creation (with certain conditions), executes a playbook and modifies two incident properies","{""type"": ""microsoft.securityinsights/automationrules"", ""name"": ""[variables('automationruleguid')]"", ""scope"": ""[concat('microsoft.operationalinsights/workspaces/"", parameters('existingworkspacename'))]"", ""apiversion"": ""2019-01-01-preview"", ""properties"": {""displayname"": ""[parameters('automationrulename')]"", ""order"": 2, ""triggeringlogic"": {""isenabled"": true, ""expirationtimeutc"": none, ""triggerson"": ""incidents"", ""triggerswhen"": ""created"", ""conditions"": [{""conditiontype"": ""property"", ""conditionproperties"": {""propertyname"": ""incidentrelatedanalyticruleids"", ""operator"": ""contains"", ""propertyvalues"": [""[resourceid('microsoft.operationalinsights/workspaces/providers/alertrules"",parameters('existingworkspacename'),""microsoft.securityinsights"",parameters('existingruleid'))]""]}}, {""conditiontype"": ""property"", ""conditionproperties"": {""propertyname"": ""incidentseverity"", ""operator"": ""equals"", ""propertyvalues"": [""high""]}}, {""conditiontype"": ""property"", ""conditionproperties"": {""propertyname"": ""incidenttactics"", ""operator"": ""contains"", ""propertyvalues"": [""initialaccess"", ""execution""]}}, {""conditiontype"": ""property"", ""conditionproperties"": {""propertyname"": ""incidenttitle"", ""operator"": ""contains"", ""propertyvalues"": [""urgent""]}}]}, ""actions"": [{""order"": 2, ""actiontype"": ""modifyproperties"", ""actionconfiguration"": {""status"": ""closed"", ""classification"": ""undetermined"", ""classificationreason"": none}}, {""order"": 3, ""actiontype"": ""modifyproperties"", ""actionconfiguration"": {""labels"": [{""labelname"": ""tag""}]}}]}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""apiversion"": ""2021-04-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('storageaccountname')]"", ""location"": ""[variables('location')]"", ""sku"": {""name"": ""standard_ragrs""}, ""kind"": ""storagev2"", ""properties"": {""supportshttpstrafficonly"": false, ""accesstier"": ""hot"", ""encryption"": {""services"": {""blob"": {""enabled"": true}, ""file"": {""enabled"": true}}, ""keysource"": ""microsoft.storage""}}} " +Creates a new VM with two NICs which connect to two different subnets within the same VNet.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('virtualmachinename')]"", ""location"": ""[parameters('location')]"", ""properties"": {""osprofile"": {""computername"": ""[variables('virtualmachinename')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]"", ""windowsconfiguration"": {""provisionvmagent"": true}}, ""hardwareprofile"": {""vmsize"": ""[parameters('virtualmachinesize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2019-datacenter"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""properties"": {""primary"": true}, ""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nic1name'))]""}, {""properties"": {""primary"": false}, ""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nic2name'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts"", variables('diagstorageaccountname'))).primaryendpoints.blob]""}}}, ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('diagstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nic1name'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nic2name'))]""]} " +Provision an Azure Cognitive Search service,"{""type"": ""microsoft.search/searchservices"", ""apiversion"": ""2020-08-01"", ""name"": ""[parameters('name')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('sku')]""}, ""properties"": {""replicacount"": ""[parameters('replicacount')]"", ""partitioncount"": ""[parameters('partitioncount')]"", ""hostingmode"": ""[parameters('hostingmode')]""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[variables('vns3controllername')]"", ""location"": ""[parameters('location')]"", ""plan"": {""name"": ""cohesive-vns3-4_11_x-free"", ""product"": ""vns3_4x_network_security"", ""publisher"": ""cohesive""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]"", ""[resourceid('microsoft.storage/storageaccounts"", variables('storageaccount'))]""], ""tags"": {""name"": ""vns3 controller""}, ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('instancesize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""cohesive"", ""offer"": ""vns3_4x_network_security"", ""sku"": ""cohesive-vns3-4_11_x-free"", ""version"": ""latest""}, ""osdisk"": {""ostype"": ""linux"", ""name"": ""[concat(variables('vns3controllername'), ""-disc')]"", ""createoption"": ""fromimage"", ""caching"": ""readwrite"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}, ""disksizegb"": 30}}, ""osprofile"": {""computername"": ""[variables('vns3controllername')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": false, ""provisionvmagent"": true}, ""allowextensionoperations"": true}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('storageaccount'),""2021-01-01').primaryendpoints[""blob""]]""}}}}{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[concat('ubuntuvm"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[parameters('numberofinstances')]""}, ""dependson"": [""nicloop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('instancesize')]""}, ""osprofile"": {""computername"": ""[concat('ubuntuvm"", copyindex())]"", ""adminusername"": ""[parameters('adminusernameubuntu')]"", ""adminpassword"": ""[parameters('adminpasswordubuntu')]""}, ""storageprofile"": {""imagereference"": ""[variables('ubuntu')]"", ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat('nic-ubuntuvm"", copyindex()))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2020-12-01"", ""name"": ""[concat('ubuntuvm"", copyindex(), ""/"", variables('customscriptforlinux'))]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""customscriploop"", ""count"": ""[parameters('numberofinstances')]""}, ""dependson"": [""virtualmachineloop""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""[variables('customscriptforlinux')]"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('scriptfileuri')]""], ""commandtoexecute"": ""[variables('customscriptcommandtoexecute')]""}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('virtualmachines_myvm_name'), copyindex(1))]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""vm-loop"", ""count"": 2}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", concat(variables('net_interface'), copyindex(1)))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2016-datacenter"", ""version"": ""latest""}, ""osdisk"": {""ostype"": ""windows"", ""createoption"": ""fromimage"", ""caching"": ""readwrite"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}, ""disksizegb"": 127}}, ""osprofile"": {""computername"": ""[concat(variables('virtualmachines_myvm_name'), copyindex(1))]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]"", ""windowsconfiguration"": {""provisionvmagent"": true, ""enableautomaticupdates"": true}, ""allowextensionoperations"": true}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('net_interface'), copyindex(1)))]""}]}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('newstorageaccount')]"", ""apiversion"": ""2021-02-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('imagesku')]"", ""version"": ""[variables('imageversion')]""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'),""/newuserscript')]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('configure-eth-cpp.sh"", parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""[concat('sh configure-eth-cpp.sh "", parameters('adminusername'))]""}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""apiversion"": ""2019-10-01"", ""type"": ""microsoft.resources/deployments"", ""name"": ""[variables('solacesecuritytemplatename')]"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('securitysharedtemplateuri')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""securitygroupname"": {""value"": ""[parameters('securitygroupname')]""}, ""subnetprefix"": {""value"": ""[parameters('subnetprefix')]""}, ""location"": {""value"": ""[parameters('location')]""}}}} " +This template creates a Service Bus namespace and 2 queues and sets auto forwarding.,"{""apiversion"": ""2017-04-01"", ""name"": ""[parameters('servicebusnamespacename')]"", ""type"": ""microsoft.servicebus/namespaces"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {}, ""resources"": [{""apiversion"": ""2017-04-01"", ""name"": ""[parameters('servicebusqueuename1')]"", ""type"": ""queues"", ""dependson"": [""[resourceid('microsoft.servicebus/namespaces"", parameters('servicebusnamespacename'))]""], ""properties"": {""lockduration"": ""pt5m"", ""maxsizeinmegabytes"": ""1024"", ""requiresduplicatedetection"": ""false"", ""requiressession"": ""false"", ""defaultmessagetimetolive"": ""p10675199dt2h48m5.4775807s"", ""deadletteringonmessageexpiration"": ""false"", ""duplicatedetectionhistorytimewindow"": ""pt10m"", ""maxdeliverycount"": ""10"", ""autodeleteonidle"": ""p10675199dt2h48m5.4775807s"", ""enablepartitioning"": ""false"", ""enableexpress"": ""false""}}, {""apiversion"": ""2017-04-01"", ""name"": ""[parameters('servicebusqueuename2')]"", ""type"": ""queues"", ""dependson"": [""[resourceid('microsoft.servicebus/namespaces"", parameters('servicebusnamespacename'))]"", ""[resourceid('microsoft.servicebus/namespaces/queues/"", parameters('servicebusnamespacename'),parameters('servicebusqueuename1'))]""], ""properties"": {""lockduration"": ""pt5m"", ""maxsizeinmegabytes"": ""1024"", ""requiresduplicatedetection"": ""false"", ""requiressession"": ""false"", ""defaultmessagetimetolive"": ""p10675199dt2h48m5.4775807s"", ""deadletteringonmessageexpiration"": ""false"", ""duplicatedetectionhistorytimewindow"": ""pt10m"", ""maxdeliverycount"": ""10"", ""autodeleteonidle"": ""p10675199dt2h48m5.4775807s"", ""enablepartitioning"": ""false"", ""enableexpress"": ""false"", ""forwardto"": ""[parameters('servicebusqueuename1')]"", ""forwarddeadletteredmessagesto"": ""[parameters('servicebusqueuename1')]""}}]} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""apiversion"": ""2021-04-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('newstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""name"": ""[variables('lbname')]"", ""type"": ""microsoft.network/loadbalancers"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""loadbalancerfrontend"", ""properties"": {""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressname'))]""}}}], ""backendaddresspools"": [{""name"": ""backendpool1""}], ""inboundnatrules"": [{""name"": ""rdp-vm0"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", variables('lbname'), ""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 50001, ""backendport"": 3389, ""enablefloatingip"": false}}]}} " +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"": ""[variables('applicationinsightsname')]"", ""location"": ""[if(or(equals(parameters('location'),""eastus2'), equals(parameters('location'),""westcentralus')),""southcentralus"",parameters('location'))]"", ""kind"": ""web"", ""properties"": {""application_type"": ""web""}} " +which shows how we can correlate messages over Logic Apps using Azure Service Bus,"{""type"": ""microsoft.logic/workflows"", ""apiversion"": ""2019-05-01"", ""name"": ""[parameters('logicappname')]"", ""dependson"": [""[resourceid('microsoft.web/connections"", parameters('slackconnectionname'))]""], ""location"": ""[parameters('location')]"", ""properties"": {""definition"": {""$schema"": ""https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#"", ""contentversion"": ""1.0.0.0"", ""parameters"": {""$connections"": {""defaultvalue"": {}, ""type"": ""object""}}, ""triggers"": {""manual"": {""type"": ""request"", ""kind"": ""http"", ""inputs"": {""schema"": {""$schema"": ""http://json-schema.org/draft-04/schema#"", ""properties"": {""context"": {""properties"": {""name"": {""type"": ""string""}, ""portallink"": {""type"": ""string""}, ""resourcename"": {""type"": ""string""}}, ""required"": [""name"", ""portallink"", ""resourcename""], ""type"": ""object""}, ""status"": {""type"": ""string""}}, ""required"": [""status"", ""context""], ""type"": ""object""}}}}, ""actions"": {""http"": {""type"": ""http"", ""inputs"": {""body"": {""longurl"": ""@{triggerbody()[""context""][""portallink""]}""}, ""headers"": {""content-type"": ""application/json""}, ""method"": ""post"", ""uri"": ""https://www.googleapis.com/urlshortener/v1/url?key=aizasybkt1brba-uulhz8hmuai0ywjtpnlxhshi""}}, ""post_message"": {""type"": ""apiconnection"", ""inputs"": {""host"": {""connection"": {""name"": ""@parameters('$connections')[""slack""][""connectionid""]""}}, ""method"": ""post"", ""path"": ""/chat.postmessage"", ""queries"": {""channel"": ""[parameters('slackchannel')]"", ""text"": ""azure alert - ""@{triggerbody()[""context""][""name""]}"" @{triggerbody()[""status""]} on ""@{triggerbody()[""context""][""resourcename""]}"". details: @{body('http')[""id""]}""}}, ""runafter"": {""http"": [""succeeded""]}}}, ""outputs"": {}}, ""parameters"": {""$connections"": {""value"": {""slack"": {""id"": ""[subscriptionresourceid('microsoft.web/locations/managedapis"", parameters('location'), ""slack')]"", ""connectionid"": ""[resourceid('microsoft.web/connections"", parameters('slackconnectionname'))]""}}}}}} " +Create and assign a standard App Service Certificate,"{""type"": ""microsoft.web/sites/domainownershipidentifiers"", ""name"": ""[concat(parameters('existingappname'), concat('/"", parameters('certificateordername')))]"", ""apiversion"": ""2016-08-01"", ""location"": ""[parameters('existingapplocation')]"", ""dependson"": [""[resourceid('microsoft.certificateregistration/certificateorders"", parameters('certificateordername'))]""], ""properties"": {""id"": ""[reference(resourceid('microsoft.certificateregistration/certificateorders"", parameters('certificateordername'))).domainverificationtoken]""}}{""type"": ""microsoft.web/certificates"", ""name"": ""[parameters('certificateordername')]"", ""apiversion"": ""2015-08-01"", ""location"": ""[parameters('existingapplocation')]"", ""dependson"": [""[resourceid('microsoft.certificateregistration/certificateorders/certificates"", parameters('certificateordername'), parameters('certificateordername'))]""], ""properties"": {""keyvaultid"": ""[parameters('existingkeyvaultid')]"", ""keyvaultsecretname"": ""[parameters('certificateordername')]""}}{""type"": ""microsoft.web/sites"", ""name"": ""[parameters('existingappname')]"", ""apiversion"": ""2015-08-01"", ""location"": ""[parameters('existingapplocation')]"", ""dependson"": [""[resourceid('microsoft.web/certificates"", parameters('certificateordername'))]""], ""properties"": {""name"": ""[parameters('existingappname')]"", ""hostnamesslstates"": [{""name"": ""[parameters('roothostname')]"", ""sslstate"": 1, ""thumbprint"": ""[reference(resourceid('microsoft.certificateregistration/certificateorders"", parameters('certificateordername'))).signedcertificate.thumbprint]"", ""toupdate"": true}, {""name"": ""[variables('wwwhostname')]"", ""sslstate"": 1, ""thumbprint"": ""[reference(resourceid('microsoft.certificateregistration/certificateorders"", parameters('certificateordername'))).signedcertificate.thumbprint]"", ""toupdate"": true}]}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""name"": ""[variables('blobstorageaccountname')]"", ""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2019-06-01"", ""tags"": {""displayname"": ""[variables('blobstorageaccountname')]""}, ""location"": ""[parameters('location')]"", ""kind"": ""storagev2"", ""sku"": {""name"": ""standard_lrs"", ""tier"": ""standard""}, ""properties"": {""networkacls"": {""bypass"": ""azureservices"", ""defaultaction"": ""deny""}}, ""resources"": [{""type"": ""blobservices/containers"", ""apiversion"": ""2019-06-01"", ""name"": ""default/defaultcontainer"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('blobstorageaccountname'))]""]}]} " +This template creates a data collection rule defining the data source (Syslog) and the destination workspace.,"{""type"": ""microsoft.insights/actiongroups"", ""apiversion"": ""2019-06-01"", ""name"": ""[parameters('actiongroupname')]"", ""location"": ""global"", ""properties"": {""groupshortname"": ""[parameters('actiongroupshortname')]"", ""enabled"": true, ""emailreceivers"": [{""name"": ""emailreceiver"", ""emailaddress"": ""[parameters('emailaddress')]""}]}} " +This template creates a Service Bus namespace and a queue.,"{""type"": ""microsoft.servicebus/namespaces"", ""apiversion"": ""2017-04-01"", ""name"": ""[parameters('servicebusnamespacename')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {}}{""type"": ""microsoft.servicebus/namespaces/queues"", ""apiversion"": ""2017-04-01"", ""name"": ""[format('{0}/{1}"", parameters('servicebusnamespacename'), parameters('servicebusqueuename'))]"", ""properties"": {""lockduration"": ""pt5m"", ""maxsizeinmegabytes"": 1024, ""requiresduplicatedetection"": false, ""requiressession"": false, ""defaultmessagetimetolive"": ""p10675199dt2h48m5.4775807s"", ""deadletteringonmessageexpiration"": false, ""duplicatedetectionhistorytimewindow"": ""pt10m"", ""maxdeliverycount"": 10, ""autodeleteonidle"": ""p10675199dt2h48m5.4775807s"", ""enablepartitioning"": false, ""enableexpress"": false}, ""dependson"": [""[resourceid('microsoft.servicebus/namespaces"", parameters('servicebusnamespacename'))]""]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-05-01-preview"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[variables('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[variables('uniquednsnameforpublicip')]""}}}{""apiversion"": ""2015-05-01-preview"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[variables('location')]"", ""properties"": {""securityrules"": [{""name"": ""nsgsrule"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 101, ""direction"": ""inbound""}}]}}{""apiversion"": ""2015-05-01-preview"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[variables('location')]"", ""dependson"": [""[concat('microsoft.network/networksecuritygroups/"", variables('nsgname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}}}]}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""type"": ""microsoft.resources/deployments"", ""name"": ""storageaccount"", ""apiversion"": ""2021-01-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'),concat('nested/storageaccount.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""storageaccountname"": {""value"": ""[variables('storageaccountname')]""}, ""storageaccounttype"": {""value"": ""[variables('storageaccounttype')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""type"": ""microsoft.resources/deployments"", ""name"": ""datafactory"", ""apiversion"": ""2021-01-01"", ""dependson"": [""kibanaesdeployedvm""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'),concat('nested/datafactory.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""kibanaesdeployedvmip"": {""value"": ""[reference('kibanaesdeployedvm').outputs.publicipaddress.value]""}, ""storageaccountname"": {""value"": ""[variables('storageaccountname')]""}, ""_artifactslocation"": {""value"": ""[variables('artloc')]""}, ""_artifactslocationsastoken"": {""value"": ""[parameters('_artifactslocationsastoken')]""}, ""datafactoryname"": {""value"": ""[parameters('datafactoryname')]""}, ""datafactorylocation"": {""value"": ""[parameters('location')]""}, ""blobcontainer"": {""value"": ""[variables('blobcontainer')]""}, ""serviceprincipalid"": {""value"": ""[parameters('serviceprincipalid')]""}, ""serviceprincipalkey"": {""value"": ""[parameters('serviceprincipalkey')]""}}}}{""type"": ""microsoft.resources/deployments"", ""name"": ""datalakeanalytics"", ""apiversion"": ""2021-01-01"", ""dependson"": [""storageaccount""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'),concat('nested/datalakeanalytics.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adlanalyticsname"": {""value"": ""[parameters('adlanalyticsname')]""}, ""adlstorename"": {""value"": ""[parameters('adlstorename')]""}, ""storageaccountname"": {""value"": ""[variables('storageaccountname')]""}, ""datalakeanalyticslocation"": {""value"": ""[parameters('datalakeanalyticslocation')]""}}}}{""type"": ""microsoft.resources/deployments"", ""name"": ""eventhubtemplate"", ""apiversion"": ""2021-01-01"", ""dependson"": [""datalakeanalytics""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'),concat('nested/eventhub.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""eventhubnamespacename"": {""value"": ""[parameters('eventhubnamespacename')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""eventhubsku"": {""value"": ""[parameters('eventhubsku')]""}, ""skucapacity"": {""value"": ""[parameters('skucapacity')]""}, ""isautoinflateenabled"": {""value"": ""[parameters('isautoinflateenabled')]""}, ""maximumthroughputunits"": {""value"": ""[variables('maximumthroughputunits')]""}, ""datacleaninginputstream"": {""value"": ""[variables('datacleaninginputstream')]""}, ""datacleaningoutputstream"": {""value"": ""[variables('datacleaningoutputstream')]""}, ""messageretentionindays"": {""value"": ""[parameters('messageretentionindays')]""}, ""partitioncount"": {""value"": ""[parameters('partitioncount')]""}, ""captureencodingformat"": {""value"": ""[parameters('captureencodingformat')]""}, ""capturetime"": {""value"": ""[parameters('capturetime')]""}, ""capturesize"": {""value"": ""[parameters('capturesize')]""}, ""storageaccountname"": {""value"": ""[variables('storageaccountname')]""}, ""capturenameformat"": {""value"": ""[variables('capturenameformat')]""}}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetnodes')]"", ""location"": ""[parameters('location')]"", ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 5}, ""sku"": {""name"": ""aligned""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2021-03-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""apiversion"": ""2021-03-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}}}]}}{""apiversion"": ""2021-03-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""ssh"", ""properties"": {""description"": ""ssh"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 200, ""direction"": ""inbound""}}, {""name"": ""lms"", ""properties"": {""description"": ""http for open edx lms"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 201, ""direction"": ""inbound""}}, {""name"": ""cms"", ""properties"": {""description"": ""http for open edx cms"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""18010"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 203, ""direction"": ""inbound""}}, {""name"": ""port_8080"", ""properties"": {""description"": ""https"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 213, ""direction"": ""inbound""}}]}}{""apiversion"": ""2021-03-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('vmname'), ""-nic')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfignodenam2"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.,"{""type"": ""microsoft.web/serverfarms"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('hostingplanlivesite')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""hostingplan""}, ""sku"": {""name"": ""[parameters('pricingtierlivesite')]"", ""capacity"": 1}, ""properties"": {""name"": ""[parameters('hostingplanlivesite')]""}}{""type"": ""microsoft.web/sites"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('livesitename')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.web/serverfarms"", parameters('hostingplanlivesite'))]"", ""[resourceid('microsoft.insights/components"", parameters('livesitename'))]""], ""tags"": {""[format('{0}:{1}"", ""hidden-related"", resourceid('microsoft.web/serverfarms"", parameters('hostingplanlivesite')))]"": ""empty"", ""displayname"": ""website""}, ""properties"": {""name"": ""[parameters('livesitename')]"", ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms"", parameters('hostingplanlivesite'))]"", ""mintlsversion"": ""1.2"", ""siteconfig"": {""connectionstrings"": [{""name"": ""cmsconnectionstring"", ""connectionstring"": ""[if(empty(parameters('connectionstringdatabasename')),"""",concat('data source=tcp:"", reference(resourceid('microsoft.sql/servers"", parameters('sqlservername'))).fullyqualifieddomainname, "",1433;initial catalog="", parameters('connectionstringdatabasename'), "";user id="", parameters('sqladministratorlogin'), ""@"", parameters('sqlservername'), "";password="", parameters('sqladministratorpassword'), "";'))]"", ""type"": ""sqlserver""}], ""appsettings"": [{""name"": ""appinsights_instrumentationkey"", ""value"": ""[reference(variables('instrumentationkey')).instrumentationkey]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(variables('publicipname'), copyindex())]"", ""copy"": {""name"": ""publiciploop"", ""count"": ""[variables('numberofinstances')]""}, ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""lbpublicip"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""lbpublicip-v6"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""publicipaddressversion"": ""ipv6""}}{""apiversion"": ""2020-05-01"", ""name"": ""loadbalancer"", ""type"": ""microsoft.network/loadbalancers"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"",""lbpublicip')]"", ""[resourceid('microsoft.network/publicipaddresses"",""lbpublicip-v6')]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""lbfe"", ""properties"": {""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", ""lbpublicip')]""}}}, {""name"": ""lbfe-v6"", ""properties"": {""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",""lbpublicip-v6')]""}}}], ""backendaddresspools"": [{""name"": ""lbbap""}, {""name"": ""lbbap-v6""}], ""loadbalancingrules"": [{""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", ""loadbalancer"", ""lbfe')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", ""loadbalancer"", ""lbbap')]""}, ""protocol"": ""tcp"", ""frontendport"": 80, ""backendport"": 80, ""idletimeoutinminutes"": 15}, ""name"": ""lbrule""}, {""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", ""loadbalancer"", ""lbfe-v6')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", ""loadbalancer"", ""lbbap-v6')]""}, ""protocol"": ""tcp"", ""frontendport"": 80, ""backendport"": 80}, ""name"": ""lbrule-v6""}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""vnet"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetv4addressrange')]"", ""[variables('vnetv6addressrange')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefixes"": [""[variables('subnetv4addressrange')]"", ""[variables('subnetv6addressrange')]""]}}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""dsnsg"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allow-http-in"", ""properties"": {""description"": ""allow http"", ""protocol"": ""tcp"", ""sourceportrange"": ""80"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1001, ""direction"": ""inbound""}}, {""name"": ""allow-all-out"", ""properties"": {""description"": ""allow out all"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1002, ""direction"": ""outbound""}}, {""name"": ""allow-rdp-in"", ""properties"": {""description"": ""allow rdp"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3389"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1003, ""direction"": ""inbound""}}, {""name"": ""allow-myipv6app-out"", ""properties"": {""description"": ""allow my ipv6 app"", ""protocol"": ""tcp"", ""sourceportrange"": ""33819-33829"", ""destinationportrange"": ""5000-6000"", ""sourceaddressprefix"": ""ace:cab:deca:deed::/64"", ""destinationaddressprefixes"": [""cab:cab:aaaa:bbbb::/64"", ""cab:cab:1111:2222::/64""], ""access"": ""allow"", ""priority"": 1004, ""direction"": ""outbound""}}]}}{""type"": ""microsoft.network/routetables"", ""name"": ""v6routetable"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""properties"": {""routes"": [{""name"": ""v6route"", ""properties"": {""addressprefix"": ""cab:cab::/96"", ""nexthoptype"": ""virtualappliance"", ""nexthopipaddress"": ""ace:cab:deca:f00d::1""}}]}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vm01name')]"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""iis01""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('vm01name'), ""_nic'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vm01name')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('windowsosversion')]"", ""version"": ""latest""}, ""osdisk"": {""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""properties"": {""primary"": true}, ""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('vm01name'), ""_nic'))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allowsshinbound"", ""properties"": {""priority"": 100, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('virtualnetworkaddressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetaddressprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}, ""privateendpointnetworkpolicies"": ""disabled"", ""privatelinkservicenetworkpolicies"": ""enabled""}}]}}{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('publicipid')]"", ""[variables('vnetid')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetid')]""}}}]}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2018-09-01"", ""name"": ""[variables('servicebusnamespaceprivatednszonename')]"", ""location"": ""global"", ""properties"": {""maxnumberofrecordsets"": 25000, ""maxnumberofvirtualnetworklinks"": 1000, ""maxnumberofvirtualnetworklinkswithregistration"": 100}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2018-09-01"", ""name"": ""[variables('blobprivatednszonename')]"", ""location"": ""global"", ""properties"": {""maxnumberofrecordsets"": 25000, ""maxnumberofvirtualnetworklinks"": 1000, ""maxnumberofvirtualnetworklinkswithregistration"": 100}}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2018-09-01"", ""name"": ""[concat(variables('servicebusnamespaceprivatednszonename'), ""/link_to_"", tolower(parameters('virtualnetworkname')))]"", ""location"": ""global"", ""dependson"": [""[variables('servicebusnamespaceprivatednszoneid')]"", ""[variables('vnetid')]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[variables('vnetid')]""}}}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2018-09-01"", ""name"": ""[concat(variables('blobprivatednszonename'), ""/link_to_"", tolower(parameters('virtualnetworkname')))]"", ""location"": ""global"", ""dependson"": [""[variables('blobprivatednszoneid')]"", ""[variables('vnetid')]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[variables('vnetid')]""}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""apiversion"": ""2015-01-01"", ""name"": ""[variables('nesteddeploymentnamevnet')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[concat(variables('github'), parameters('neworexistingsubnet'), ""vnet.json')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""vnetname"": {""value"": ""[variables('vnetname')]""}, ""addressprefix"": {""value"": ""[variables('addressprefix')]""}, ""subnetname"": {""value"": ""[variables('subnetname')]""}, ""subnetprefix"": {""value"": ""[variables('subnetprefix')]""}}}}{""apiversion"": ""2015-01-01"", ""name"": ""[variables('nesteddeploymentnamenic')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[concat(variables('github'), ""nic-config.json')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""vnetname"": {""value"": ""[variables('vnetname')]""}, ""subnetname"": {""value"": ""[variables('subnetname')]""}, ""publicipname"": {""value"": ""[variables('publicipname')]""}, ""nsgname"": {""value"": ""[variables('nsgname')]""}, ""neworexistingsubnet"": {""value"": ""[parameters('neworexistingsubnet')]""}, ""subnetid"": {""value"": ""[parameters('subnetid')]""}}}}{""apiversion"": ""2015-01-01"", ""name"": ""[variables('nesteddeploymentnameprof')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[concat(variables('github'), ""os-disk-parts-md.json')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""imagesku"": {""value"": """"}, ""imagepublisher"": {""value"": """"}, ""imageoffer"": {""value"": """"}, ""osdisktype"": {""value"": ""[variables('osdisktype')]""}, ""ostype"": {""value"": ""[variables('internalostype')]""}, ""sidlower"": {""value"": ""[variables('sidlower')]""}, ""vmname"": {""value"": ""[variables('vmname')]""}, ""storagetype"": {""value"": ""[variables('internalstoragetype')]""}, ""manageddiskid"": {""value"": ""[parameters('userimageid')]""}}}}{""apiversion"": ""2015-01-01"", ""name"": ""[variables('nesteddeploymentnamepip')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[concat(variables('github'), parameters('neworexistingsubnet'), ""pip.json')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""publicipname"": {""value"": ""[variables('publicipname')]""}, ""publicipaddresstype"": {""value"": ""[variables('publicipaddresstype')]""}}}}{""apiversion"": ""2015-01-01"", ""name"": ""[variables('nesteddeploymentnamensg')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[concat(variables('github'), parameters('neworexistingsubnet'), ""nsg.json')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""nsgname"": {""value"": ""[variables('nsgname')]""}, ""ostype"": {""value"": ""[variables('internalostype')]""}}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-10-01"", ""name"": ""ansibleroleassignment"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments"",""ansibleaccesspolicy')]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('role_assignment_template')]""}, ""parameters"": {""roleassignmentname"": {""value"": ""[guid(resourceid('microsoft.compute/virtualmachines"", variables('ansible_vm_name')), variables('reader_role'), variables('rbacprincipalid'))]""}, ""roledefinitionid"": {""value"": ""[variables('reader_role')]""}, ""principalid"": {""value"": ""[reference(resourceid('microsoft.compute/virtualmachines"",variables('ansible_vm_name')),""2019-07-01"",""full').identity.principalid]""}}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-10-01"", ""name"": ""ansibleaccesspolicy"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('ansible_vm_name'))]"", ""[resourceid('microsoft.keyvault/vaults"", variables('key_vault_name'))]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('access_policy_template')]""}, ""parameters"": {""keyvaultname"": {""value"": ""[variables('key_vault_name')]""}, ""tenantid"": {""value"": ""[variables('tenantid')]""}, ""objectid"": {""value"": ""[reference(resourceid('microsoft.compute/virtualmachines"",variables('ansible_vm_name')),""2019-12-01"", ""full').identity.principalid]""}, ""secretspermissions"": {""value"": ""[variables('secretspermissions')]""}, ""keyspermissions"": {""value"": ""[variables('keyspermissions')]""}, ""certificatespermissions"": {""value"": ""[variables('certificatespermissions')]""}}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-10-01"", ""name"": ""phase1-ansiblehostsetup"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments"",""ansibleaccesspolicy')]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('linux_extension_template')]""}, ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""vmname"": {""value"": ""[variables('ansible_vm_name')]""}, ""commandtoexecute"": {""value"": ""[concat('mkdir -p /var/log/sas/install && set -o pipefail; ./ansible_setup.sh"","" "",parameters('storageaccountname'),"" "",parameters('filesharename'),"" "",parameters('viyarepofolder'),"" "",parameters('sasapplicationname'),"" "",variables('domain_name'),"" "",variables('ansible_vm_name'),"" "",variables('microservices_vm_name'),"" "",variables('cascontroller_vm_name'),"" "",variables('spre_vm_name'),"" "",variables('casworker_vm_name'),"" "",variables('key_vault_secretname_sasinst'),"" "",variables('key_vault_secretname_sasext'),"" "",variables('key_vault_name'),"" "",variables('key_vault_secretname_pvtkey'),"" "",variables('key_vault_secretname_pubkey'),"" "",parameters('numberofviyacasnodes'),"" "",variables('mid_vm_name'),"" "",parameters('_artifactslocation'),"" "",variables('compute_vm_name'),"" "",variables('meta_vm_name'),"" "",variables('key_vault_secretname_stgacc'),"" "",variables('storage_account_uri'),"" "",""2>&1 | tee /var/log/sas/install/runphase1_hostsetup.log')]""}, ""filepath"": {""value"": ""scripts/ansible_setup.sh""}, ""_artifactslocation"": {""value"": ""[parameters('_artifactslocation')]""}, ""_artifactslocationsastoken"": {""value"": ""[parameters('_artifactslocationsastoken')]""}}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-10-01"", ""name"": ""phase2-ansiblesslcopy"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('ansible_vm_name'))]"", ""[resourceid('microsoft.resources/deployments"",""phase2-metainstall')]"", ""[resourceid('microsoft.resources/deployments"",""phase2-midinstall')]"", ""[resourceid('microsoft.resources/deployments"",""phase2-computeinstall')]"", ""[resourceid('microsoft.resources/deployments"",""phase4-viyainstallpart2')]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('linux_extension_template')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""vmname"": {""value"": ""[variables('ansible_vm_name')]""}, ""commandtoexecute"": {""value"": ""[concat('set -o pipefail;./ansible_ssl.sh 2>&1 | tee /var/log/sas/install/runphase2ansiblesslcopy.log;')]""}, ""filepath"": {""value"": ""scripts/ansible_ssl.sh""}, ""_artifactslocation"": {""value"": ""[parameters('_artifactslocation')]""}, ""_artifactslocationsastoken"": {""value"": ""[parameters('_artifactslocationsastoken')]""}}}}{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-10-01"", ""name"": ""phase3-viyainstallpart1"", ""dependson"": [""[resourceid('microsoft.resources/deployments"", ""phase1-ansiblehostsetup')]"", ""[resourceid('microsoft.resources/deployments"", ""phase2-microservicesviyaark')]"", ""[resourceid('microsoft.resources/deployments"", ""phase2-spreviyaark')]"", ""[resourceid('microsoft.resources/deployments"", ""phase2-cascontrollerviyaark')]"", ""casworkerviyaarkcopy""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('linux_extension_template')]""}, ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""vmname"": {""value"": ""[variables('ansible_vm_name')]""}, ""commandtoexecute"": {""value"": ""[concat('set -o pipefail;"",""./viyainstall.sh"","" "", ""1"","" "",""2>&1 | tee /var/log/sas/install/runphase3_viyainstallpart1.log')]""}, ""filepath"": {""value"": ""scripts/viyainstall.sh""}, ""_artifactslocation"": {""value"": ""[parameters('_artifactslocation')]""}, ""_artifactslocationsastoken"": {""value"": ""[parameters('_artifactslocationsastoken')]""}}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""shared-resources"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-08-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat(variables('sharedtemplatename'), "".json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""storageaccountname"": {""value"": ""[parameters('storageaccountname')]""}, ""virtualnetworkname"": {""value"": ""[parameters('virtualnetworkname')]""}, ""addressprefix"": {""value"": ""[parameters('addressprefix')]""}, ""subnetname"": {""value"": ""[parameters('subnetname')]""}, ""subnetprefix"": {""value"": ""[parameters('subnetprefix')]""}}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('clusterstorageaccountname')]"", ""apiversion"": ""2021-04-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storagev2""} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""identity"": {""type"": ""systemassigned""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", parameters('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""osdisk"": {""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}}, ""imagereference"": ""[variables('imagereference')[parameters('os')]]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", parameters('nicname'))]""}]}, ""securityprofile"": {""uefisettings"": {""securebootenabled"": ""[parameters('secureboot')]"", ""vtpmenabled"": ""[parameters('vtpm')]""}, ""securitytype"": ""trustedlaunch""}}}{""condition"": ""[and(equals(parameters('vtpm'), ""true'), equals(parameters('secureboot'), ""true'))]"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'), ""/"", variables('extensionname'))]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", parameters('vmname'))]""], ""apiversion"": ""2020-06-01"", ""properties"": {""publisher"": ""[variables('extensionpublisher')]"", ""type"": ""[variables('extensionname')]"", ""typehandlerversion"": ""[variables('extensionversion')]"", ""autoupgrademinorversion"": true, ""settings"": {""attestationendpointcfg"": {""maaendpoint"": ""[parameters('maaendpoint')]"", ""maatenantname"": ""[variables('maatenantname')]"", ""ascreportingendpoint"": ""[variables('ascreportingendpoint')]"", ""usealternatetoken"": ""[variables('usealternatetoken')]"", ""disablealerts"": ""[variables('disablealerts')]""}}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", parameters('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",parameters('nicname'))]""}]}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2019-06-01"", ""name"": ""[parameters('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs"", ""tier"": ""standard""}, ""kind"": ""storagev2"", ""properties"": {""networkacls"": {""bypass"": ""none"", ""virtualnetworkrules"": [{""id"": ""[variables('containersubnetref')]"", ""action"": ""allow""}, {""id"": ""[variables('storagesubnetref')]"", ""action"": ""allow""}], ""defaultaction"": ""deny""}, ""supportshttpstrafficonly"": true, ""encryption"": {""services"": {""file"": {""keytype"": ""account"", ""enabled"": true}, ""blob"": {""keytype"": ""account"", ""enabled"": true}}, ""keysource"": ""microsoft.storage""}, ""accesstier"": ""cool""}}{""type"": ""microsoft.storage/storageaccounts/blobservices"", ""apiversion"": ""2019-06-01"", ""name"": ""[concat(parameters('storageaccountname'), ""/default')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname'))]""], ""sku"": {""name"": ""standard_lrs"", ""tier"": ""standard""}, ""properties"": {""deleteretentionpolicy"": {""enabled"": false}}}{""type"": ""microsoft.storage/storageaccounts/fileservices"", ""apiversion"": ""2019-06-01"", ""name"": ""[concat(parameters('storageaccountname'), ""/default')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname'))]""], ""sku"": {""name"": ""standard_lrs"", ""tier"": ""standard""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", parameters('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",parameters('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/installmongo')]"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", parameters('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('mongo-install-ubuntu.sh"", parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""sh mongo-install-ubuntu.sh""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-08-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""comments"": ""default network security group for template"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-08-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-3389"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""3389"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allow_tds_inbound"", ""properties"": {""description"": ""allow access to data"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""1433"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1000, ""direction"": ""inbound""}}, {""name"": ""allow_redirect_inbound"", ""properties"": {""description"": ""allow inbound redirect traffic to managed instance inside the virtual network"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""11000-11999"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1100, ""direction"": ""inbound""}}, {""name"": ""deny_all_inbound"", ""properties"": {""description"": ""deny all other inbound traffic"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""deny"", ""priority"": 4096, ""direction"": ""inbound""}}, {""name"": ""deny_all_outbound"", ""properties"": {""description"": ""deny all other outbound traffic"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""deny"", ""priority"": 4096, ""direction"": ""outbound""}}]}}{""type"": ""microsoft.network/routetables"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('routetablename')]"", ""location"": ""[parameters('location')]"", ""properties"": {""disablebgproutepropagation"": false}}{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('addressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetprefix')]"", ""routetable"": {""id"": ""[resourceid('microsoft.network/routetables"", variables('routetablename'))]""}, ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}, ""delegations"": [{""name"": ""managedinstancedelegation"", ""properties"": {""servicename"": ""microsoft.sql/managedinstances""}}]}}]}, ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]"", ""[resourceid('microsoft.network/routetables"", variables('routetablename'))]""]} " +"Create a Data Factory account, Provision SSIS runtime in Azure.","{""name"": ""[parameters('datafactoryname')]"", ""apiversion"": ""2018-06-01"", ""type"": ""microsoft.datafactory/factories"", ""location"": ""[parameters('location')]"", ""properties"": {}, ""resources"": [{""name"": ""[concat(parameters('datafactoryname'), ""/spazuressisir')]"", ""type"": ""microsoft.datafactory/factories/integrationruntimes"", ""dependson"": [""[parameters('datafactoryname')]""], ""apiversion"": ""2018-06-01"", ""properties"": {""type"": ""managed"", ""typeproperties"": {""computeproperties"": {""location"": ""[parameters('location')]"", ""nodesize"": ""[parameters('nodesize')]"", ""numberofnodes"": ""[parameters('nodenumber')]"", ""maxparallelexecutionspernode"": ""[parameters('maximumparallelexecutionspernode')]"", ""vnetproperties"": {""vnetid"": ""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetworkname'))]"", ""subnet"": ""[parameters('subnetname')]""}}, ""ssisproperties"": {""cataloginfo"": {""catalogserverendpoint"": ""[parameters('azuresqlservername')]"", ""catalogadminusername"": ""[parameters('databaseadminusername')]"", ""catalogadminpassword"": {""type"": ""securestring"", ""value"": ""[parameters('databaseadminpassword')]""}, ""catalogpricingtier"": ""[parameters('catalogpricingtier')]""}}}}}]} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""[variables('vmnames')[copyindex()]]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""vmloop"", ""count"": 3}, ""dependson"": [""nicloop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmnames')[copyindex()]]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('freebsdosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicconfig')[mul(copyindex(),2)].name)]"", ""properties"": {""primary"": true}}, {""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicconfig')[add(mul(copyindex(),2),1)].name)]"", ""properties"": {""primary"": false}}]}}}{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""[variables('vmnamesql')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""nicloop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('postgresqlvmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmnamesql')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('freebsdosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}, ""copy"": [{""name"": ""datadisks"", ""count"": ""[parameters('numberofdatadisks')]"", ""input"": {""disksizegb"": ""[parameters('sizeofdatadisksingb')]"", ""lun"": ""[copyindex('datadisks')]"", ""caching"": ""[parameters('diskcaching')]"", ""createoption"": ""empty""}}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('vmnamesql'))]""}]}}} " +This template creates a Machine Learning Service ADLA Compute.,"{""type"": ""microsoft.machinelearningservices/workspaces"", ""apiversion"": ""2020-08-01"", ""name"": ""[parameters('workspacename')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.insights/components"", parameters('applicationinsightsname'))]"", ""[resourceid('microsoft.keyvault/vaults"", parameters('keyvaultname'))]"", ""[resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname'))]""], ""identity"": {""type"": ""systemassigned""}, ""properties"": {""friendlyname"": ""[parameters('workspacename')]"", ""storageaccount"": ""[resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname'))]"", ""keyvault"": ""[resourceid('microsoft.keyvault/vaults"", parameters('keyvaultname'))]"", ""applicationinsights"": ""[resourceid('microsoft.insights/components"", parameters('applicationinsightsname'))]""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""condition"": ""[equals(parameters('neworexistingnetwork'), ""new')]"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""virtualnetwork"", ""app"": ""[variables('redhattags').app]"", ""version"": ""[variables('redhattags').version]"", ""platform"": ""[variables('redhattags').platform]""}, ""apiversion"": ""2019-09-01"", ""properties"": {""addressspace"": {""addressprefixes"": ""[parameters('virtualnetworkcidr')]""}, ""subnets"": [{""name"": ""[parameters('bastionsubnetname')]"", ""properties"": {""addressprefix"": ""[parameters('bastionsubnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups/"", variables('bastionsecuritygroupname'))]""}}}, {""name"": ""[parameters('mastersubnetname')]"", ""properties"": {""addressprefix"": ""[parameters('mastersubnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups/"", variables('mastersecuritygroupname'))]""}}}, {""name"": ""[parameters('workersubnetname')]"", ""properties"": {""addressprefix"": ""[parameters('workersubnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups/"", variables('workersecuritygroupname'))]""}}}]}, ""dependson"": [""[variables('bastionsecuritygroupname')]"", ""[variables('mastersecuritygroupname')]"", ""[variables('workersecuritygroupname')]""]}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('bastionpublicipdnslabel')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""apiversion"": ""2019-09-01"", ""tags"": {""displayname"": ""bastionpublicip"", ""app"": ""[variables('redhattags').app]"", ""version"": ""[variables('redhattags').version]"", ""platform"": ""[variables('redhattags').platform]""}, ""properties"": {""publicipallocationmethod"": ""static"", ""dnssettings"": {""domainnamelabel"": ""[variables('bastionpublicipdnslabel')]""}}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('bastionhostname'), ""-nic')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-09-01"", ""tags"": {""displayname"": ""bastionnetworkinterface"", ""app"": ""[variables('redhattags').app]"", ""version"": ""[variables('redhattags').version]"", ""platform"": ""[variables('redhattags').platform]""}, ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", variables('bastionsecuritygroupname'))]"", ""[resourceid('microsoft.network/publicipaddresses/"", variables('bastionpublicipdnslabel'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""[concat(variables('bastionhostname'), ""ipconfig')]"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[resourceid(variables('networkresourcegroup'), ""microsoft.network/virtualnetworks/subnets"", parameters('virtualnetworkname'), parameters('bastionsubnetname'))]""}, ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('bastionpublicipdnslabel'))]""}}}], ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('bastionsecuritygroupname'))]""}}}{""condition"": ""[equals(parameters('storageoption'), ""nfs')]"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('nfshostname'), ""-nic')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-09-01"", ""tags"": {""displayname"": ""nfsnetworkinterface"", ""app"": ""[variables('redhattags').app]"", ""version"": ""[variables('redhattags').version]"", ""platform"": ""[variables('redhattags').platform]""}, ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", variables('workersecuritygroupname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""[concat(variables('nfshostname'), ""ipconfig')]"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[resourceid(variables('networkresourcegroup'), ""microsoft.network/virtualnetworks/subnets"", parameters('virtualnetworkname'), parameters('workersubnetname'))]""}}}], ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('workersecuritygroupname'))]""}}}{""apiversion"": ""2019-09-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('bastionsecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""bastionnsg"", ""app"": ""[variables('redhattags').app]"", ""version"": ""[variables('redhattags').version]"", ""platform"": ""[variables('redhattags').platform]""}, ""properties"": {""securityrules"": [{""name"": ""allowsshin_all"", ""properties"": {""description"": ""allow ssh in from all locations"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}}{""apiversion"": ""2019-09-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('mastersecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""masternsg"", ""app"": ""[variables('redhattags').app]"", ""version"": ""[variables('redhattags').version]"", ""platform"": ""[variables('redhattags').platform]""}, ""properties"": {""securityrules"": [{""name"": ""allowhttps_all"", ""properties"": {""description"": ""allow https connections from all locations"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""6443"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 200, ""direction"": ""inbound""}}]}}{""apiversion"": ""2019-09-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('workersecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""workernsg"", ""app"": ""[variables('redhattags').app]"", ""version"": ""[variables('redhattags').version]"", ""platform"": ""[variables('redhattags').platform]""}, ""properties"": {""securityrules"": [{""name"": ""allowhttps_all"", ""properties"": {""description"": ""allow https connections from all locations"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 200, ""direction"": ""inbound""}}, {""name"": ""allowhttpin_all"", ""properties"": {""description"": ""allow http connections from all locations"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 300, ""direction"": ""inbound""}}]}} " +This template creates a lab in Azure DevTest Labs with a Windows Server 2019 Datacenter VM,"{""type"": ""microsoft.devtestlab/labs"", ""apiversion"": ""2018-10-15-preview"", ""name"": ""[parameters('labname')]"", ""location"": ""[parameters('location')]"", ""resources"": [{""type"": ""virtualnetworks"", ""apiversion"": ""2018-10-15-preview"", ""name"": ""[variables('labvirtualnetworkname')]"", ""dependson"": [""[resourceid('microsoft.devtestlab/labs"", parameters('labname'))]""]}, {""type"": ""virtualmachines"", ""apiversion"": ""2018-10-15-preview"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.devtestlab/labs"", parameters('labname'))]"", ""[resourceid('microsoft.devtestlab/labs/virtualnetworks"", parameters('labname'), variables('labvirtualnetworkname'))]""], ""properties"": {""username"": ""[parameters('username')]"", ""password"": ""[parameters('password')]"", ""labvirtualnetworkid"": ""[variables('labvirtualnetworkid')]"", ""labsubnetname"": ""[variables('labsubnetname')]"", ""size"": ""[parameters('vmsize')]"", ""allowclaim"": ""true"", ""galleryimagereference"": {""offer"": ""windowsserver"", ""publisher"": ""microsoftwindowsserver"", ""sku"": ""2019-datacenter"", ""ostype"": ""windows"", ""version"": ""latest""}}}]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/disks"", ""apiversion"": ""2019-11-01"", ""name"": ""[concat(parameters('virtualmachinename'),""-datadisk-ultrassd-"",copyindex())]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""ultrassd_lrs""}, ""zones"": [""[parameters('zone')]""], ""properties"": {""creationdata"": {""createoption"": ""empty""}, ""disksizegb"": ""[parameters('sqllogultrassddisksizeingb')]"", ""diskiopsreadwrite"": ""[parameters('sqllogultrassddiskiopsreadwrite')]"", ""diskmbpsreadwrite"": ""[parameters('sqllogultrassddiskmbpsreadwrite')]""}, ""copy"": {""name"": ""ultrassdloop"", ""count"": 1}}{""type"": ""microsoft.compute/disks"", ""apiversion"": ""2019-11-01"", ""name"": ""[concat(parameters('virtualmachinename'),""-datadisk-"",copyindex())]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""premium_lrs""}, ""zones"": [""[parameters('zone')]""], ""properties"": {""creationdata"": {""createoption"": ""empty""}, ""disksizegb"": ""[variables('datadisks').disksizegb]""}, ""copy"": {""name"": ""premiumssdloop"", ""count"": ""[parameters('sqldatadiskscount')]""}} " +Deploy a new SQL Elastic Pool.,"{""type"": ""microsoft.sql/servers"", ""apiversion"": ""2020-02-02-preview"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('servername')]"", ""properties"": {""administratorlogin"": ""[parameters('administratorlogin')]"", ""administratorloginpassword"": ""[parameters('administratorloginpassword')]"", ""version"": ""12.0""}}{""type"": ""microsoft.sql/servers/elasticpools"", ""apiversion"": ""2020-02-02-preview"", ""dependson"": [""[resourceid('microsoft.sql/servers/"", parameters('servername'))]""], ""location"": ""[parameters('location')]"", ""name"": ""[concat(parameters('servername'), ""/"", parameters('elasticpoolname'))]"", ""sku"": {""name"": ""[variables('skuname')]"", ""tier"": ""[variables('skutier')]"", ""capacity"": ""[parameters('capacity')]""}, ""properties"": {""perdatabasesettings"": {""mincapacity"": ""[parameters('databasecapacitymin')]"", ""maxcapacity"": ""[parameters('databasecapacitymax')]""}}}{""type"": ""microsoft.sql/servers/databases"", ""name"": ""[concat(parameters('servername'), ""/"", parameters('databasesnames')[copyindex()])]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-02-02-preview"", ""dependson"": [""[resourceid('microsoft.sql/servers/"", parameters('servername'))]"", ""[resourceid('microsoft.sql/servers/elasticpools"", parameters('servername'), parameters('elasticpoolname'))]""], ""sku"": {""name"": ""elasticpool"", ""tier"": ""[variables('skutier')]"", ""capacity"": 0}, ""properties"": {""collation"": ""[parameters('databasecollation')]"", ""elasticpoolid"": ""[resourceid('microsoft.sql/servers/elasticpools"", parameters('servername'), parameters('elasticpoolname'))]""}, ""copy"": {""name"": ""adddatabasesinelasticpool"", ""count"": ""[length(parameters('databasesnames'))]""}}{""apiversion"": ""2020-02-02-preview"", ""dependson"": [""[resourceid('microsoft.sql/servers/"", parameters('servername'))]""], ""location"": ""[parameters('location')]"", ""name"": ""[concat(parameters('servername'), ""/"", ""allowallwindowsazureips')]"", ""properties"": {""endipaddress"": ""0.0.0.0"", ""startipaddress"": ""0.0.0.0""}, ""type"": ""microsoft.sql/servers/firewallrules""} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('webavailsetname')]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""comments"": ""this is the availability set for all web vms"", ""tags"": {""displayname"": ""web avail set"", ""quickstartname"": ""[variables('quickstarttags').name]"", ""provider"": ""[variables('barracudanetworkstags').provider]""}, ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 2}} " +Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.,"{""type"": ""microsoft.web/serverfarms"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('hostingplanlivesite')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""hostingplan""}, ""sku"": {""name"": ""[parameters('pricingtierlivesite')]"", ""capacity"": 1}, ""properties"": {""name"": ""[parameters('hostingplanlivesite')]""}}{""type"": ""microsoft.web/sites"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('livesitename')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.web/serverfarms"", parameters('hostingplanlivesite'))]"", ""[resourceid('microsoft.insights/components"", parameters('livesitename'))]""], ""tags"": {""[format('{0}:{1}"", ""hidden-related"", resourceid('microsoft.web/serverfarms"", parameters('hostingplanlivesite')))]"": ""empty"", ""displayname"": ""website""}, ""properties"": {""name"": ""[parameters('livesitename')]"", ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms"", parameters('hostingplanlivesite'))]"", ""mintlsversion"": ""1.2"", ""siteconfig"": {""connectionstrings"": [{""name"": ""cmsconnectionstring"", ""connectionstring"": ""[if(empty(parameters('connectionstringdatabasename')),"""",concat('data source=tcp:"", reference(resourceid('microsoft.sql/servers"", parameters('sqlservername'))).fullyqualifieddomainname, "",1433;initial catalog="", parameters('connectionstringdatabasename'), "";user id="", parameters('sqladministratorlogin'), ""@"", parameters('sqlservername'), "";password="", parameters('sqladministratorpassword'), "";'))]"", ""type"": ""sqlserver""}], ""appsettings"": [{""name"": ""appinsights_instrumentationkey"", ""value"": ""[reference(variables('instrumentationkey')).instrumentationkey]""}]}}}{""type"": ""microsoft.web/serverfarms"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('hostingplanadministration')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('pricingtieradministration')]"", ""capacity"": 1}, ""tags"": {""displayname"": ""hostingplan""}, ""properties"": {""name"": ""[parameters('hostingplanadministration')]""}}{""type"": ""microsoft.web/sites"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('administrationsitename')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.web/serverfarms"", parameters('hostingplanadministration'))]""], ""tags"": {""[format('{0}:{1}"", ""hidden-related"", resourceid('microsoft.web/serverfarms"", parameters('hostingplanadministration')))]"": ""resource"", ""displayname"": ""administration""}, ""properties"": {""name"": ""[parameters('administrationsitename')]"", ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms"", parameters('hostingplanadministration'))]"", ""mintlsversion"": ""1.2"", ""siteconfig"": {""connectionstrings"": [{""name"": ""cmsconnectionstring"", ""connectionstring"": ""[if(empty(parameters('connectionstringdatabasename')),"""",concat('data source=tcp:"", reference(resourceid('microsoft.sql/servers/"", parameters('sqlservername'))).fullyqualifieddomainname, "",1433;initial catalog="", parameters('connectionstringdatabasename'), "";user id="", parameters('sqladministratorlogin'), ""@"", parameters('sqlservername'), "";password="", parameters('sqladministratorpassword'), "";'))]"", ""type"": ""sqlserver""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-05-01"", ""name"": ""[parameters('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""microsoft.databricks-workspaces_useonly_databricks-worker-to-worker-inbound"", ""properties"": {""description"": ""required for worker nodes communication within a cluster."", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""virtualnetwork"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}, {""name"": ""microsoft.databricks-workspaces_useonly_databricks-worker-to-databricks-webapp"", ""properties"": {""description"": ""required for workers communication with databricks webapp."", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""azuredatabricks"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""outbound""}}, {""name"": ""microsoft.databricks-workspaces_useonly_databricks-worker-to-sql"", ""properties"": {""description"": ""required for workers communication with azure sql services."", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3306"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""sql"", ""access"": ""allow"", ""priority"": 101, ""direction"": ""outbound""}}, {""name"": ""microsoft.databricks-workspaces_useonly_databricks-worker-to-storage"", ""properties"": {""description"": ""required for workers communication with azure storage services."", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""storage"", ""access"": ""allow"", ""priority"": 102, ""direction"": ""outbound""}}, {""name"": ""microsoft.databricks-workspaces_useonly_databricks-worker-to-worker-outbound"", ""properties"": {""description"": ""required for worker nodes communication within a cluster."", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""virtualnetwork"", ""access"": ""allow"", ""priority"": 103, ""direction"": ""outbound""}}, {""name"": ""microsoft.databricks-workspaces_useonly_databricks-worker-to-eventhub"", ""properties"": {""description"": ""required for worker communication with azure eventhub services."", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""9093"", ""sourceaddressprefix"": ""virtualnetwork"", ""destinationaddressprefix"": ""eventhub"", ""access"": ""allow"", ""priority"": 104, ""direction"": ""outbound""}}]}} " +This template creates a standard internal Azure Load Balancer with a HA ports load-balancing rule,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('vnetaddressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetprefix')]""}}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/loadbalancers/"", variables('loadbalancername'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('subnetref')]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('loadbalancername'), ""loadbalancerbackend')]""}]}}]}}{""apiversion"": ""2020-05-01"", ""name"": ""[variables('loadbalancername')]"", ""type"": ""microsoft.network/loadbalancers"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('lbsku')]""}, ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""loadbalancerfrontend"", ""properties"": {""subnet"": {""id"": ""[variables('subnetref')]""}}}], ""backendaddresspools"": [{""name"": ""loadbalancerbackend""}], ""loadbalancingrules"": [{""name"": ""[variables('lbrulename')]"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", variables('loadbalancername'), ""loadbalancerfrontend')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('loadbalancername'), ""loadbalancerbackend')]""}, ""probe"": {""id"": ""[resourceid('microsoft.network/loadbalancers/probes"", variables('loadbalancername'), variables('lbprobename'))]""}, ""protocol"": ""all"", ""frontendport"": 0, ""backendport"": 0, ""enablefloatingip"": false, ""enabletcpreset"": true, ""loaddistribution"": ""default"", ""disableoutboundsnat"": true, ""idletimeoutinminutes"": 15}}], ""probes"": [{""name"": ""[variables('lbprobename')]"", ""properties"": {""protocol"": ""tcp"", ""port"": 80, ""intervalinseconds"": 15, ""numberofprobes"": 2}}]}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetname')]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 5}}{""name"": ""[variables('vmname1')]"", ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname1'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname1')]"", ""adminusername"": ""[parameters('username')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname1'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""name"": ""[concat(variables('vmname1'),""_datadisk1')]"", ""disksizegb"": ""1000"", ""lun"": 0, ""createoption"": ""empty""}, {""name"": ""[concat(variables('vmname1'),""_datadisk2')]"", ""disksizegb"": ""1000"", ""lun"": 1, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[variables('nicid1')]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[variables('vmextensionname1')]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname1'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('azurepxc.sh"", parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm1'))]""}}}{""name"": ""[variables('vmname2')]"", ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname2'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname2')]"", ""adminusername"": ""[parameters('username')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname2'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""name"": ""[concat(variables('vmname2'),""_datadisk1')]"", ""disksizegb"": ""1000"", ""lun"": 0, ""createoption"": ""empty""}, {""name"": ""[concat(variables('vmname2'),""_datadisk2')]"", ""disksizegb"": ""1000"", ""lun"": 1, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[variables('nicid2')]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname2'),""/"", variables('vmextensionname'))]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('vmname2'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions"",variables('vmname1'), variables('vmextensionname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('azurepxc.sh"", parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm2'))]""}}}{""name"": ""[variables('vmname3')]"", ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname3'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname3')]"", ""adminusername"": ""[parameters('username')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname3'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""name"": ""[concat(variables('vmname3'),""_datadisk1')]"", ""disksizegb"": ""1000"", ""lun"": 0, ""createoption"": ""empty""}, {""name"": ""[concat(variables('vmname3'),""_datadisk2')]"", ""disksizegb"": ""1000"", ""lun"": 1, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[variables('nicid3')]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname3'),""/"", variables('vmextensionname'))]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('vmname3'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions"",variables('vmname1'), variables('vmextensionname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('azurepxc.sh"", parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm3'))]""}}} " +"This template creates a EventHubs namespace, an Event Hub, a consumer group and authorizationRules","{""apiversion"": ""2018-01-01-preview"", ""name"": ""[parameters('namespacename')]"", ""type"": ""microsoft.eventhub/namespaces"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {""isautoinflateenabled"": true, ""maximumthroughputunits"": 7}, ""resources"": [{""apiversion"": ""2017-04-01"", ""name"": ""[parameters('eventhubname')]"", ""type"": ""eventhubs"", ""dependson"": [""[resourceid('microsoft.eventhub/namespaces/"", parameters('namespacename'))]""], ""properties"": {""messageretentionindays"": 4, ""partitioncount"": 4}, ""resources"": [{""apiversion"": ""2017-04-01"", ""name"": ""[parameters('consumergroupname')]"", ""type"": ""consumergroups"", ""dependson"": [""[resourceid('microsoft.eventhub/namespaces/eventhubs/"", parameters('namespacename'),parameters('eventhubname'))]""], ""properties"": {""usermetadata"": ""user metadata""}}, {""apiversion"": ""2017-04-01"", ""name"": ""[parameters('eventhubauthorizationrulename')]"", ""type"": ""authorizationrules"", ""dependson"": [""[resourceid('microsoft.eventhub/namespaces/eventhubs/"", parameters('namespacename'),parameters('eventhubname'))]""], ""properties"": {""rights"": [""send"", ""listen"", ""manage""]}}, {""apiversion"": ""2017-04-01"", ""name"": ""[parameters('eventhubauthorizationrulename1')]"", ""type"": ""authorizationrules"", ""dependson"": [""[resourceid('microsoft.eventhub/namespaces/eventhubs/"", parameters('namespacename'),parameters('eventhubname'))]""], ""properties"": {""rights"": [""send""]}}]}]}{""apiversion"": ""2017-04-01"", ""name"": ""[concat(parameters('namespacename'), ""/"", parameters('namespaceauthorizationrulename'))]"", ""type"": ""microsoft.eventhub/namespaces/authorizationrules"", ""dependson"": [""[resourceid('microsoft.eventhub/namespaces/"", parameters('namespacename'))]""], ""properties"": {""rights"": [""send"", ""listen"", ""manage""]}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""name"": ""[parameters('storageaccountname')]"", ""type"": ""microsoft.storage/storageaccounts"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2015-06-15"", ""tags"": {""displayname"": ""storageaccount""}, ""properties"": {""accounttype"": ""[parameters('storageaccounttype')]""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-05-01"", ""name"": ""[parameters('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""ssh"", ""properties"": {""priority"": 1000, ""protocol"": ""tcp"", ""access"": ""allow"", ""direction"": ""inbound"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*"", ""destinationportrange"": ""22""}}]}}{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-05-01"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetaddressprefix')]"", ""privateendpointnetworkpolicies"": ""enabled"", ""privatelinkservicenetworkpolicies"": ""enabled""}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(parameters('dnsname'), copyindex())]"", ""zones"": ""[split(string(add(mod(copyindex(),3),1)), "",')]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[parameters('numberofvms')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""nicloop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[concat(parameters('dnsname'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": ""[if(equals(parameters('windowsorubuntu'), ""windows'), variables('windowsimage'), variables('linuximage'))]"", ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(variables('nicname'),copyindex()))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))).primaryendpoints.blob]""}}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('images')[parameters('ostype')].publisher]"", ""offer"": ""[variables('images')[parameters('ostype')].offer]"", ""sku"": ""[variables('images')[parameters('ostype')].sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'),""/"", variables('vmextensionname'))]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""chef.bootstrap.windowsazure"", ""type"": ""linuxchefclient"", ""typehandlerversion"": ""1210.12"", ""autoupgrademinorversion"": true, ""settings"": {""bootstrap_options"": {""chef_node_name"": ""[parameters('chef_node_name')]"", ""chef_server_url"": ""[parameters('chef_server_url')]"", ""validation_client_name"": ""[parameters('validation_client_name')]""}, ""runlist"": ""[parameters('runlist')]"", ""validation_key_format"": ""[parameters('validation_key_format')]"", ""chef_service_interval"": ""[parameters('chef_service_interval')]"", ""bootstrap_version"": ""[parameters('bootstrap_version')]"", ""bootstrap_channel"": ""[parameters('bootstrap_channel')]"", ""daemon"": ""[parameters('daemon')]""}, ""protectedsettings"": {""validation_key"": ""[parameters('validation_key')]"", ""secret"": ""[parameters('secret')]""}}} " +Deploy an App Service that supports Python. It gives you the support to deploy your own Flask app.,"{""apiversion"": ""2020-06-01"", ""name"": ""[parameters('webappname')]"", ""type"": ""microsoft.web/sites"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.web/serverfarms/"", variables('hostingplanname'))]""], ""properties"": {""name"": ""[parameters('webappname')]"", ""siteconfig"": {""linuxfxversion"": ""[variables('linuxfxversion')]"", ""alwayson"": ""[variables('alwayson')]""}, ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms"", variables('hostingplanname'))]"", ""clientaffinityenabled"": false}}{""apiversion"": ""2020-06-01"", ""name"": ""[variables('hostingplanname')]"", ""type"": ""microsoft.web/serverfarms"", ""location"": ""[parameters('location')]"", ""kind"": ""linux"", ""properties"": {""name"": ""[variables('hostingplanname')]"", ""workersize"": ""[variables('workersize')]"", ""workersizeid"": ""[variables('workersizeid')]"", ""numberofworkers"": ""[variables('numberofworkers')]"", ""reserved"": true}, ""sku"": {""tier"": ""[variables('sku')]"", ""name"": ""[variables('skucode')]""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-11-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat('publicip"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""foo"", ""count"": ""[parameters('scalenumber')]""}, ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]""}}{""comments"": ""default network security group for template"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-11-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-22"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2020-11-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnet1name')]"", ""properties"": {""addressprefix"": ""[variables('subnet1prefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}}{""apiversion"": ""2020-11-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('nicname'), 0)]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", ""publicip0')]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", ""publicip0')]""}, ""subnet"": {""id"": ""[variables('subnet1ref')]""}}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[concat('microsoft.storage/storageaccounts/"", parameters('newstorageaccountname'))]"", ""[concat('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[variables('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('jumpboxname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('jumpboxsaname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('jumpboxnicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsku')]""}, ""osprofile"": {""computername"": ""[variables('jumpboxname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": ""[variables('imagereference')]"", ""osdisk"": {""name"": ""[variables('jumpboxosdiskname')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('jumpboxnicname'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts"", variables('jumpboxsaname')), ""2019-06-01').primaryendpoints[""blob""]]""}}}}{""type"": ""microsoft.compute/virtualmachinescalesets"", ""name"": ""[variables('naminginfix')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname'))]""], ""sku"": {""name"": ""[parameters('vmsku')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('instancecount')]""}, ""properties"": {""overprovision"": ""true"", ""upgradepolicy"": {""mode"": ""manual""}, ""virtualmachineprofile"": {""storageprofile"": {""osdisk"": {""createoption"": ""fromimage"", ""caching"": ""readwrite""}, ""imagereference"": ""[variables('imagereference')]""}, ""osprofile"": {""computernameprefix"": ""[variables('naminginfix')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""[variables('nicname')]"", ""properties"": {""primary"": true, ""ipconfigurations"": [{""name"": ""[variables('ipconfigname')]"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}}}]}}]}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('nameprefix')]""}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}, {""name"": ""[variables('subnetnamedb')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefixdb')]""}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('nicname'),copyindex())]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"",variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/"",variables('lbname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"",variables('lbname'),""loadbalancerbackend')]""}], ""loadbalancerinboundnatrules"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/inboundnatrules"",variables('lbname'),concat('web-vm"",copyindex()))]""}, {""id"": ""[resourceid('microsoft.network/loadbalancers/inboundnatrules"",variables('lbname'),concat('ssh-vm"",copyindex()))]""}]}}]}, ""copy"": {""name"": ""networkinterfacescopy"", ""count"": ""[parameters('webvmcount')]""}}{""apiversion"": ""2015-06-15"", ""name"": ""[variables('lbname')]"", ""type"": ""microsoft.network/loadbalancers"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"",variables('publicipaddressname'))]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""loadbalancerfrontend"", ""properties"": {""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}}}], ""backendaddresspools"": [{""name"": ""loadbalancerbackend""}], ""inboundnatrules"": [{""name"": ""web-vm0"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 8080, ""backendport"": 8080, ""enablefloatingip"": false}}, {""name"": ""ssh-vm0"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 2200, ""backendport"": 22, ""enablefloatingip"": false}}, {""name"": ""web-vm1"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 8081, ""backendport"": 8080, ""enablefloatingip"": false}}, {""name"": ""ssh-vm1"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 2201, ""backendport"": 22, ""enablefloatingip"": false}}, {""name"": ""web-vm2"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 8082, ""backendport"": 8080, ""enablefloatingip"": false}}, {""name"": ""ssh-vm2"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 2202, ""backendport"": 22, ""enablefloatingip"": false}}, {""name"": ""web-vm3"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 8083, ""backendport"": 8080, ""enablefloatingip"": false}}, {""name"": ""ssh-vm3"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 2203, ""backendport"": 22, ""enablefloatingip"": false}}, {""name"": ""web-vm4"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 8084, ""backendport"": 8080, ""enablefloatingip"": false}}, {""name"": ""ssh-vm4"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""protocol"": ""tcp"", ""frontendport"": 2204, ""backendport"": 22, ""enablefloatingip"": false}}], ""loadbalancingrules"": [{""name"": ""lbrule"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"",variables('lbname'),""loadbalancerfrontend')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"",variables('lbname'),""loadbalancerbackend')]""}, ""protocol"": ""tcp"", ""frontendport"": 80, ""backendport"": 80, ""enablefloatingip"": false, ""idletimeoutinminutes"": 5, ""loaddistribution"": ""sourceip"", ""probe"": {""id"": ""[resourceid('microsoft.network/loadbalancers/probes"",variables('lbname'),""tcpprobe')]""}}}], ""probes"": [{""name"": ""tcpprobe"", ""properties"": {""protocol"": ""tcp"", ""port"": 80, ""intervalinseconds"": ""5"", ""numberofprobes"": ""2""}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicdbipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(parameters('nameprefix'),""db')]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnet1name')]"", ""properties"": {""addressprefix"": ""[variables('subnet1prefix')]""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"",variables('virtualnetworkname'), variables('subnet1name'))]""}}}]}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('primarystorageaccountname')]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('primarylocation')]"", ""properties"": {""accounttype"": ""[variables('storageaccounttype')]""}}{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('defaultprimarystorageaccountname')]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('primarylocation')]"", ""properties"": {""accounttype"": ""[variables('defaultstorageaccounttype')]""}}{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('secondarystorageaccountname')]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('secondarylocation')]"", ""properties"": {""accounttype"": ""[variables('storageaccounttype')]""}}{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('defaultsecondarystorageaccountname')]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('secondarylocation')]"", ""properties"": {""accounttype"": ""[variables('defaultstorageaccounttype')]""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[parameters('publicipname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[parameters('publicipaddresstype')]""}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[parameters('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", parameters('publicipname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", parameters('publicipname'))]""}, ""subnet"": {""id"": ""[resourceid(parameters('virtualnetworkresourcegroup'), ""microsoft.network/virtualnetworks/subnets"", parameters('virtualnetworkname'), parameters('subnet1name'))]""}}}]}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-08-01"", ""name"": ""[variables('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage""} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""apiversion"": ""2020-06-01"", ""name"": ""deploy-virus-attack-oms-resource"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('omstemplateuri')]""}, ""parameters"": {""omsworkspacename"": {""value"": ""[variables('omsworkspacename')]""}, ""omssolutionsname"": {""value"": ""[variables('omssolutions')]""}, ""sku"": {""value"": ""[parameters('omssku')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2020-06-01"", ""name"": ""[concat(parameters('vnetname'),""-"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('vnettemplateuri')]""}, ""parameters"": {""vnetname"": {""value"": ""[parameters('vnetname')]""}, ""addressprefix"": {""value"": ""[parameters('vnetaddressspace')]""}, ""subnets"": {""value"": ""[variables('subnets')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('nsgname'),""-"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('nsgtemplateuri')]""}, ""parameters"": {""nsgname"": {""value"": ""[variables('nsgname')]""}, ""securityrules"": {""value"": ""[variables('nsgsecurityrules')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('vmnames')[copyindex()],""-pip"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""copy"": {""name"": ""copy-pip"", ""count"": 2}, ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('piptemplateuri')]""}, ""parameters"": {""publicipaddressname"": {""value"": ""[concat(variables('vmnames')[copyindex()],""-pip')]""}, ""publicipaddresstype"": {""value"": ""[parameters('pipaddresstype')]""}, ""dnsnameforpublicip"": {""value"": ""[concat(variables('vmnames')[copyindex()],uniquestring(resourcegroup().id, ""pip'),""-pip')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}} " +Creates and optionally secures a Key Vault with logging linked to a storage account.,"{""type"": ""microsoft.keyvault/vaults"", ""apiversion"": ""2019-09-01"", ""name"": ""[parameters('keyvaultname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('aadpodidentityuserdefinedmanagedidentityid')]""], ""properties"": {""accesspolicies"": [{""tenantid"": ""[reference(variables('aadpodidentityuserdefinedmanagedidentityid')).tenantid]"", ""objectid"": ""[reference(variables('aadpodidentityuserdefinedmanagedidentityid')).principalid]"", ""permissions"": {""secrets"": [""get"", ""list""], ""certificates"": [""get""]}}], ""sku"": {""family"": ""a"", ""name"": ""standard""}, ""tenantid"": ""[subscription().tenantid]"", ""networkacls"": {""bypass"": ""azureservices"", ""defaultaction"": ""[parameters('keyvaultnetworkrulesetdefaultaction')]""}, ""enabledfordeployment"": false, ""enabledfordiskencryption"": false, ""enabledfortemplatedeployment"": false, ""enablesoftdelete"": false}, ""resources"": [{""name"": ""microsoft.insights/default"", ""type"": ""providers/diagnosticsettings"", ""apiversion"": ""2017-05-01-preview"", ""dependson"": [""[variables('keyvaultid')]"", ""[variables('workspaceid')]""], ""properties"": {""workspaceid"": ""[variables('workspaceid')]"", ""logs"": [{""category"": ""auditevent"", ""enabled"": true}], ""metrics"": [{""category"": ""allmetrics"", ""enabled"": true}]}}]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-08-01"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2017-09-01"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[variables('longnaminginfix')]""}}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('jumpboxnicname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2017-09-01"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""[variables('jumpboxipconfigname')]"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +Deploy a Linux-based HBase cluster in Azure HDInsight,"{""type"": ""microsoft.hdinsight/clusters"", ""apiversion"": ""2021-06-01"", ""name"": ""[parameters('clustername')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('defaultstorageaccount').name)]""], ""properties"": {""clusterversion"": ""4.0"", ""ostype"": ""linux"", ""clusterdefinition"": {""kind"": ""hbase"", ""configurations"": {""gateway"": {""restauthcredential.isenabled"": true, ""restauthcredential.username"": ""[parameters('clusterloginusername')]"", ""restauthcredential.password"": ""[parameters('clusterloginpassword')]""}}}, ""storageprofile"": {""storageaccounts"": [{""name"": ""[replace(replace(reference(resourceid('microsoft.storage/storageaccounts"", variables('defaultstorageaccount').name), ""2019-06-01').primaryendpoints.blob,""https://"",""'),""/"",""')]"", ""isdefault"": true, ""container"": ""[parameters('clustername')]"", ""key"": ""[listkeys(resourceid('microsoft.storage/storageaccounts"", variables('defaultstorageaccount').name), ""2019-06-01').keys[0].value]""}]}, ""computeprofile"": {""roles"": [{""name"": ""headnode"", ""targetinstancecount"": 2, ""hardwareprofile"": {""vmsize"": ""[parameters('headnodevirtualmachinesize')]""}, ""osprofile"": {""linuxoperatingsystemprofile"": {""username"": ""[parameters('sshusername')]"", ""password"": ""[parameters('sshpassword')]""}}}, {""name"": ""workernode"", ""targetinstancecount"": 2, ""hardwareprofile"": {""vmsize"": ""[parameters('workernodevirtualmachinesize')]""}, ""osprofile"": {""linuxoperatingsystemprofile"": {""username"": ""[parameters('sshusername')]"", ""password"": ""[parameters('sshpassword')]""}}}, {""name"": ""zookeepernode"", ""targetinstancecount"": 3, ""hardwareprofile"": {""vmsize"": ""[parameters('zookeepernodevirtualmachinesize')]""}, ""osprofile"": {""linuxoperatingsystemprofile"": {""username"": ""[parameters('sshusername')]"", ""password"": ""[parameters('sshpassword')]""}}}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-07-01"", ""name"": ""[parameters('filestorageaccountprivateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('filestorageaccountid')]"", ""[variables('fileshareid')]""], ""properties"": {""privatelinkserviceconnections"": [{""name"": ""[parameters('filestorageaccountprivateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[variables('filestorageaccountid')]"", ""groupids"": [""[variables('filestorageaccountprivateendpointgroupname')]""]}}], ""subnet"": {""id"": ""[variables('subnetid')]""}}}{""type"": ""microsoft.network/privateendpoints/privatednszonegroups"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('fileprivatednszonegroup')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('fileprivatednszoneid')]"", ""[variables('filestorageaccountprivateendpointid')]""], ""properties"": {""privatednszoneconfigs"": [{""name"": ""dnsconfig"", ""properties"": {""privatednszoneid"": ""[variables('fileprivatednszoneid')]""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allowsshinbound"", ""properties"": {""priority"": 100, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('virtualnetworkaddressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetaddressprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}, ""privateendpointnetworkpolicies"": ""disabled"", ""privatelinkservicenetworkpolicies"": ""enabled""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('publicipid')]"", ""[variables('vnetid')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetid')]""}}}]}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('fileprivatednszonename')]"", ""location"": ""global"", ""properties"": {""maxnumberofrecordsets"": 25000, ""maxnumberofvirtualnetworklinks"": 1000, ""maxnumberofvirtualnetworklinkswithregistration"": 100}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('blobprivatednszonename')]"", ""location"": ""global"", ""properties"": {""maxnumberofrecordsets"": 25000, ""maxnumberofvirtualnetworklinks"": 1000, ""maxnumberofvirtualnetworklinkswithregistration"": 100}}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('fileprivatednszonename'), ""/link_to_"", tolower(parameters('virtualnetworkname')))]"", ""location"": ""global"", ""dependson"": [""[variables('fileprivatednszoneid')]"", ""[variables('vnetid')]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[variables('vnetid')]""}}}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('blobprivatednszonename'), ""/link_to_"", tolower(parameters('virtualnetworkname')))]"", ""location"": ""global"", ""dependson"": [""[variables('blobprivatednszoneid')]"", ""[variables('vnetid')]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[variables('vnetid')]""}}}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-07-01"", ""name"": ""[parameters('blobstorageaccountprivateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetid')]"", ""[variables('blobstorageaccountid')]""], ""properties"": {""privatelinkserviceconnections"": [{""name"": ""[parameters('blobstorageaccountprivateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[variables('blobstorageaccountid')]"", ""groupids"": [""[variables('blobstorageaccountprivateendpointgroupname')]""]}}], ""subnet"": {""id"": ""[variables('subnetid')]""}}}{""type"": ""microsoft.network/privateendpoints/privatednszonegroups"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('blobprivatednszonegroup')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('blobprivatednszoneid')]"", ""[variables('blobstorageaccountprivateendpointid')]""], ""properties"": {""privatednszoneconfigs"": [{""name"": ""dnsconfig"", ""properties"": {""privatednszoneid"": ""[variables('blobprivatednszoneid')]""}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""comments"": ""default network security group for template"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""[concat('default-allow-"", variables('nsgosport')[parameters('os')])]"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""[variables('nsgosport')[parameters('os')]]"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""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')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat('nic"", copyindex())]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicloop"", ""count"": ""[parameters('numberofinstances')]""}, ""dependson"": [""[variables('virtualnetworkname')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[if(equals(mod(copyindex(), 2),0), variables('subnet1ref'), variables('subnet2ref'))]""}}}]}} " +This template creates a data collection rule defining the data source (Syslog) and the destination workspace.,"{""scope"": ""[format('microsoft.apimanagement/service/{0}"", variables('apim-name'))]"", ""type"": ""microsoft.insights/diagnosticsettings"", ""apiversion"": ""2017-05-01-preview"", ""name"": ""logtoanalytics"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.apimanagement/service"", variables('apim-name'))]""], ""properties"": {""workspaceid"": ""[parameters('log-analytics-workspace-id')]"", ""logs"": [{""category"": ""gatewaylogs"", ""enabled"": true}], ""metrics"": [{""category"": ""allmetrics"", ""enabled"": true}]}}{""scope"": ""[format('microsoft.network/applicationgateways/{0}"", variables('app-gateway-name'))]"", ""type"": ""microsoft.insights/diagnosticsettings"", ""apiversion"": ""2017-05-01-preview"", ""name"": ""logtoanalytics"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/applicationgateways"", variables('app-gateway-name'))]""], ""properties"": {""workspaceid"": ""[parameters('log-analytics-workspace-id')]"", ""logs"": [{""category"": ""applicationgatewayaccesslog"", ""enabled"": true}, {""category"": ""applicationgatewayperformancelog"", ""enabled"": true}, {""category"": ""applicationgatewayfirewalllog"", ""enabled"": true}], ""metrics"": [{""category"": ""allmetrics"", ""enabled"": true}]}}{""type"": ""microsoft.insights/components"", ""apiversion"": ""2020-02-02-preview"", ""name"": ""[variables('app-insights-name')]"", ""location"": ""[parameters('location')]"", ""kind"": ""web"", ""properties"": {""application_type"": ""web"", ""workspaceresourceid"": ""[parameters('log-analytics-workspace-id')]""}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('haproxyavailabilitysetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""platformupdatedomaincount"": 3, ""platformfaultdomaincount"": 2}, ""sku"": {""name"": ""aligned""}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('appavailabilitysetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""platformupdatedomaincount"": 3, ""platformfaultdomaincount"": 2}, ""sku"": {""name"": ""aligned""}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(parameters('haproxyvmnameprefix'), copyindex())]"", ""copy"": {""name"": ""haproxyvmloop"", ""count"": ""[variables('numberofhaproxyinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(parameters('haproxyvmnameprefix'), variables('nicnameprefix'), copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('haproxyavailabilitysetname'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"",variables('haproxyavailabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[concat(parameters('haproxyvmnameprefix'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[variables('sshkeypath')]"", ""keydata"": ""[parameters('sshkeydata')]""}]}}}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('haproxyvmnameprefix'), ""osdisk-"", copyindex())]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('storageaccounttype')]""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(parameters('haproxyvmnameprefix'), variables('nicnameprefix'),copyindex()))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[concat(reference(resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname')), ""2021-01-01').primaryendpoints.blob)]""}}}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(parameters('appvmnameprefix'), copyindex())]"", ""copy"": {""name"": ""appvmloop"", ""count"": ""[variables('numberofappinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(parameters('appvmnameprefix'), variables('nicnameprefix'), copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('appavailabilitysetname'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"",variables('appavailabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[concat(parameters('appvmnameprefix'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[variables('sshkeypath')]"", ""keydata"": ""[parameters('sshkeydata')]""}]}}}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('appvmnameprefix'), ""osdisk-"", copyindex())]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('storageaccounttype')]""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(parameters('appvmnameprefix'), variables('nicnameprefix'),copyindex()))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[concat(reference(resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname')), ""2021-01-01').primaryendpoints.blob)]""}}}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('appvmnameprefix'), copyindex(), ""/configureappvm')]"", ""copy"": {""name"": ""appvmextensionsloop"", ""count"": ""[variables('numberofappinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", concat(parameters('appvmnameprefix'), copyindex()))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": ""[variables('appvmscripts').fileuris]""}, ""protectedsettings"": {""commandtoexecute"": ""[variables('appvmscripts').commandtoexecute]""}}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('haproxyvmnameprefix'), copyindex(), ""/configurehaproxyvm')]"", ""copy"": {""name"": ""haproxyvmextensionsloop"", ""count"": ""[variables('numberofhaproxyinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", concat(parameters('haproxyvmnameprefix'), copyindex()))]"", ""appvmextensionsloop""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": ""[variables('haproxyvmscripts').fileuris]"", ""commandtoexecute"": ""[variables('haproxyvmscripts').commandtoexecute]""}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('networkinterfacename'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2016-datacenter"", ""version"": ""latest""}, ""osdisk"": {""name"": ""tfsbasicmanagedosdisk"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('networkinterfacename'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/createdc')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", parameters('vmname'))]""], ""properties"": {""publisher"": ""microsoft.powershell"", ""type"": ""dsc"", ""typehandlerversion"": ""2.19"", ""autoupgrademinorversion"": true, ""settings"": {""modulesurl"": ""[uri(parameters('_artifactslocation'), concat('dsc/createdc.ps1.zip"", parameters('_artifactslocationsastoken')))]"", ""configurationfunction"": ""createdc.ps1\\createdc"", ""properties"": {""domainname"": ""[parameters('domainname')]"", ""admincreds"": {""username"": ""[parameters('adminusername')]"", ""password"": ""privatesettingsref:adminpassword""}}}, ""protectedsettings"": {""items"": {""adminpassword"": ""[parameters('adminpassword')]""}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""name"": ""[variables('nsgname')]"", ""type"": ""microsoft.network/networksecuritygroups"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-08-01"", ""properties"": {""securityrules"": [{""name"": ""rule1"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 101, ""direction"": ""inbound""}}]}}{""name"": ""[variables('advnetname')]"", ""type"": ""microsoft.network/virtualnetworks"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-08-01"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetaddressrange')]""]}, ""subnets"": [{""name"": ""[variables('adsubnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetaddressrange')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}}}]}}{""name"": ""[variables('publicipaddressname')]"", ""type"": ""microsoft.network/publicipaddresses"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-08-01"", ""dependson"": [""[variables('advnetname')]""], ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[variables('dnslabelprefix')]""}}}{""name"": ""[parameters('gwpublicipaddressname')]"", ""type"": ""microsoft.network/publicipaddresses"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-08-01"", ""dependson"": [""[variables('deployprimaryadid')]""], ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('gwdnslabelprefix')]""}}}{""name"": ""[variables('publiclbname')]"", ""type"": ""microsoft.network/loadbalancers"", ""apiversion"": ""2020-08-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('publicipaddressid')]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""[variables('lbfe')]"", ""properties"": {""publicipaddress"": {""id"": ""[variables('publicipaddressid')]""}}}], ""backendaddresspools"": [{""name"": ""[variables('lbbe')]""}], ""inboundnatrules"": [{""name"": ""[variables('rdpnat')]"", ""properties"": {""frontendipconfiguration"": {""id"": ""[variables('publiclbfeconfigid')]""}, ""protocol"": ""tcp"", ""frontendport"": ""[variables('rdpport')]"", ""backendport"": 3389, ""enablefloatingip"": false}}]}} " +Showcase a Virus attack on a Virtual Machine detection & prevention.,"{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmnames')[copyindex(1)],""/malware')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""omsextension""], ""copy"": {""name"": ""copy-extension-malware"", ""count"": 1}, ""properties"": {""publisher"": ""microsoft.azure.security"", ""type"": ""iaasantimalware"", ""typehandlerversion"": ""1.1"", ""autoupgrademinorversion"": true, ""settings"": {""antimalwareenabled"": true, ""exclusions"": {""processes"": ""taskmgr.exe""}, ""realtimeprotectionenabled"": ""true"", ""scheduledscansettings"": {""isenabled"": ""true"", ""scantype"": ""quick"", ""day"": ""7"", ""time"": ""120""}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-08-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsnameforpublicip')]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('vnetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetaddressprefix')]""]}}, ""resources"": [{""type"": ""subnets"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('subnet1name')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetname')]""], ""properties"": {""addressprefix"": ""[variables('subnet1prefix')]"", ""privateendpointnetworkpolicies"": ""disabled""}}]}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('privateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetname')]"", ""[variables('sqlservername')]""], ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('vnetname'), variables('subnet1name'))]""}, ""privatelinkserviceconnections"": [{""name"": ""[variables('privateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[resourceid('microsoft.sql/servers"",variables('sqlservername'))]"", ""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""}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""identity"": {""type"": ""systemassigned""}, ""dependson"": [""[variables('blobstorageaccountprivateendpointid')]"", ""[variables('nicid')]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""disksizegb"": ""[parameters('osdisksize')]"", ""manageddisk"": {""storageaccounttype"": ""[parameters('diskstorageaccountype')]""}}, ""copy"": [{""name"": ""datadisks"", ""count"": ""[parameters('numdatadisks')]"", ""input"": {""caching"": ""[parameters('datadiskcaching')]"", ""disksizegb"": ""[parameters('datadisksize')]"", ""lun"": ""[copyindex('datadisks')]"", ""name"": ""[concat(parameters('vmname'),""-datadisk"",copyindex('datadisks'))]"", ""createoption"": ""empty"", ""manageddisk"": {""storageaccounttype"": ""[parameters('diskstorageaccountype')]""}}}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('blobstorageaccountid')).primaryendpoints[""blob""]]""}}}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'), ""/customscript')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vmid')]"", ""[variables('keyvaultid')]"", ""[variables('keyvaultprivateendpointid')]"", ""[variables('keyvaultprivatednszonegroupid')]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""skipdos2unix"": false, ""timestamp"": 123456789, ""fileuris"": [""[variables('scriptfileuri')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('bash "", parameters('scriptfilename'), "" "", variables('keyvaultserviceendpoint'), "" "", variables('blobserviceprimaryendpoint'), "" "", variables('azureenvironment'))]""}}}{""condition"": ""[parameters('deployloganalytics')]"", ""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/loganalytics')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vmid')]"", ""[variables('workspaceid')]"", ""[variables('customscriptid')]""], ""properties"": {""publisher"": ""microsoft.enterprisecloud.monitoring"", ""type"": ""omsagentforlinux"", ""typehandlerversion"": ""1.12"", ""settings"": {""workspaceid"": ""[reference(variables('workspaceid'), ""2020-03-01-preview').customerid]"", ""stoponmultipleconnections"": false}, ""protectedsettings"": {""workspacekey"": ""[listkeys(variables('workspaceid'),""2020-03-01-preview').primarysharedkey]""}}}{""condition"": ""[parameters('deployloganalytics')]"", ""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/dependencyagent')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vmid')]"", ""[variables('workspaceid')]"", ""[variables('customscriptid')]"", ""[variables('omsagentforlinuxid')]""], ""properties"": {""publisher"": ""microsoft.azure.monitoring.dependencyagent"", ""type"": ""dependencyagentlinux"", ""typehandlerversion"": ""9.10"", ""autoupgrademinorversion"": true}} " +Setup or Update Existing SQL Server with Auto Backup,"{""apiversion"": ""2021-07-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('existingvirtualmachinename'), ""/sqliaasextension')]"", ""location"": ""[parameters('location')]"", ""properties"": {""type"": ""sqliaasagent"", ""publisher"": ""microsoft.sqlserver.management"", ""typehandlerversion"": ""1.2"", ""autoupgrademinorversion"": true, ""settings"": {""autobackupsettings"": {""enable"": true, ""retentionperiod"": ""[parameters('sqlautobackupretentionperiod')]"", ""enableencryption"": true}}, ""protectedsettings"": {""storageurl"": ""[reference(resourceid('microsoft.storage/storageaccounts"", parameters('sqlautobackupstorageaccountname')), ""2021-04-01').primaryendpoints[""blob""]]"", ""storageaccesskey"": ""[listkeys(resourceid('microsoft.storage/storageaccounts"", parameters('sqlautobackupstorageaccountname')), ""2021-04-01').keys[0].value]"", ""password"": ""[parameters('sqlautobackupencryptionpassword')]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2021-03-01"", ""name"": ""[variables('publicipaddressname')]"", ""sku"": {""name"": ""basic""}, ""location"": ""[parameters('location')]"", ""properties"": {""publicipaddressversion"": ""ipv4"", ""publicipallocationmethod"": ""[variables('publicipaddresstype')]""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""vslab"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", parameters('storagename'))]"", ""[resourceid('microsoft.network/networkinterfaces"", ""vslab-nic')]""], ""tags"": {""displayname"": ""vs2019 lab vm""}, ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""labvm"", ""adminusername"": ""[parameters('adminuser')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftvisualstudio"", ""offer"": ""visualstudio2019latest"", ""sku"": ""vs-2019-comm-latest-ws2019"", ""version"": ""latest""}, ""osdisk"": {""name"": ""labvmosdisk"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", ""vslab-nic')]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts/"", parameters('storagename'))).primaryendpoints.blob]""}}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2019-07-01"", ""name"": ""vslab/installscript1"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""install script for labvm""}, ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", ""vslab')]""], ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.10"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('scripturl')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('powershell -executionpolicy bypass -file installscript.ps1 -username "",parameters('adminuser'))]""}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat('vm-r1"",""-"",copyindex(1),""/"",""installwebserver')]"", ""location"": ""[parameters('location-r1')]"", ""copy"": {""name"": ""extensioncopy"", ""count"": 3}, ""dependson"": [""vmcopy""], ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.7"", ""autoupgrademinorversion"": true, ""settings"": {""commandtoexecute"": ""powershell.exe install-windowsfeature -name web-server -includemanagementtools && powershell.exe remove-item ""c:\\inetpub\\wwwroot\\iisstart.htm"" && powershell.exe add-content -path ""c:\\inetpub\\wwwroot\\iisstart.htm"" -value $('hello world from "" + $env:computername)""}}}{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat('vm-r1"",""-"",copyindex(1))]"", ""location"": ""[parameters('location-r1')]"", ""zones"": [""[copyindex(1)]""], ""copy"": {""name"": ""vmcopy"", ""count"": 3}, ""dependson"": [""networkinterfacecopy""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2019-datacenter"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('vmstorageaccounttype')]""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat('vm-r1"",""-"", copyindex(1), ""-networkinterface'))]""}]}, ""osprofile"": {""computername"": ""[concat('vm-r1"",""-"",copyindex(1))]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]"", ""windowsconfiguration"": {""enableautomaticupdates"": true, ""provisionvmagent"": true}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""publicipaddress""}, ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsnameforpublicip')]""}}}{""apiversion"": ""2017-03-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]""], ""tags"": {""displayname"": ""networkinterface""}, ""properties"": {""networksecuritygroup"": {""id"": ""[resourceid(parameters('existingvirtualnetworkresourcegroup'), ""microsoft.network/networksecuritygroups"", parameters('existingsecuritygroupname'))]""}, ""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": ""[variables('platformfaultdomaincount')]"", ""platformupdatedomaincount"": ""[variables('platformupdatedomaincount')]""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/availabilitysets"", ""apiversion"": ""2019-03-01"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('availabilitysetname')]"", ""properties"": {""platformupdatedomaincount"": 20, ""platformfaultdomaincount"": 2}, ""sku"": {""name"": ""aligned""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2021-02-01"", ""name"": ""[parameters('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""type"": ""microsoft.network/networkinterfaces"", ""apiversion"": ""2021-02-01"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", parameters('publicipaddressname'))]""}, ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('existingvnetname'), parameters('existingsubnetname'))]""}}}]}, ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", parameters('publicipaddressname'))]""]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('jumpboxvmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('jumpboxnicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmmastersku')]""}, ""osprofile"": {""computername"": ""[variables('jumpboxvmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": ""[parameters('vmimagereference')]"", ""osdisk"": {""createoption"": ""fromimage""}, ""datadisks"": [{""lun"": 0, ""name"": ""jumpboxdatadisk"", ""disksizegb"": ""[parameters('vmmasterdisksize')]"", ""caching"": ""none"", ""createoption"": ""empty"", ""manageddisk"": {""storageaccounttype"": ""[parameters('vmmasterdisktype')]""}}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('jumpboxnicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('jumpboxvmname'),""/nfinit')]"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('jumpboxvmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""forceupdatetag"": ""[parameters('forceupdatetag')]"", ""settings"": {""fileuris"": [""[variables('nextflowinitscript')]"", ""[parameters('_diskinitscripturi')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[format(\""bash init.sh {0} ""{1}"" {2} {3} {4} {5} {6} {7} {8} {9} {10}\"", variables(\""storageaccountname\'), listkeys(resourceid(\""microsoft.storage/storageaccounts\"", variables(\""storageaccountname\')), \""2019-06-01\').keys[0].value, parameters(\""sharename\'), variables(\""storagesuffix\'), parameters(\""mountpointpath\'), \""false\"", parameters(\""adminusername\'), \""0\"", parameters(\""nextflowinstallurl\'), parameters(\""vmadditionalinstallscripturl\'), parameters(\""vmadditionalinstallscriptargument\'))]""}}}{""type"": ""microsoft.compute/virtualmachinescalesets"", ""name"": ""[variables('vmssname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-12-01"", ""sku"": {""name"": ""[parameters('vmnodesku')]"", ""capacity"": ""[parameters('instancecount')]""}, ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", parameters('vnetname'))]"", ""[resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname'))]""], ""properties"": {""overprovision"": true, ""upgradepolicy"": {""mode"": ""manual""}, ""virtualmachineprofile"": {""storageprofile"": {""osdisk"": {""createoption"": ""fromimage"", ""caching"": ""readwrite""}, ""imagereference"": ""[parameters('vmimagereference')]""}, ""osprofile"": {""computernameprefix"": ""[variables('vmssname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""nic"", ""properties"": {""primary"": true, ""ipconfigurations"": [{""name"": ""ipconfig"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('vnetname'), parameters('subnetname'))]""}}}]}}]}, ""extensionprofile"": {""extensions"": [{""name"": ""filesextension"", ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""forceupdatetag"": ""[parameters('forceupdatetag')]"", ""settings"": {""fileuris"": [""[variables('nextflowinitscript')]"", ""[parameters('_diskinitscripturi')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[format(\""bash init.sh {0} ""{1}"" {2} {3} {4} {5} {6} {7} {8} {9} {10}\"", variables(\""storageaccountname\'), listkeys(resourceid(\""microsoft.storage/storageaccounts\"", variables(\""storageaccountname\')), \""2019-06-01\').keys[0].value, parameters(\""sharename\'), variables(\""storagesuffix\'), parameters(\""mountpointpath\'), \""true\"", parameters(\""adminusername\'), parameters(\""nodemaxcpus\'), parameters(\""nextflowinstallurl\'), parameters(\""vmadditionalinstallscripturl\'), parameters(\""vmadditionalinstallscriptargument\'))]""}}}]}}}} " +This template creates a data collection rule defining the data source (Syslog) and the destination workspace.,"{""type"": ""microsoft.insights/autoscalesettings"", ""name"": ""[variables('settingname')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachinescalesets"", variables('naminginfix'))]""], ""apiversion"": ""2015-04-01"", ""location"": ""[parameters('location')]"", ""properties"": {""profiles"": [{""name"": ""defaultautoscaleprofile"", ""capacity"": {""minimum"": ""[parameters('minimumcapacity')]"", ""maximum"": ""[parameters('maximumcapacity')]"", ""default"": ""[parameters('defaultcapacity')]""}, ""rules"": [{""metrictrigger"": {""metricname"": ""[parameters('metricname')]"", ""metricresourceuri"": ""[resourceid('microsoft.compute/virtualmachinescalesets"", variables('naminginfix'))]"", ""timegrain"": ""pt5m"", ""statistic"": ""average"", ""timewindow"": ""pt10m"", ""timeaggregation"": ""average"", ""operator"": ""greaterthan"", ""threshold"": ""[parameters('metricthresholdtoscaleout')]""}, ""scaleaction"": {""direction"": ""increase"", ""type"": ""percentchangecount"", ""value"": ""[parameters('changepercentscaleout')]"", ""cooldown"": ""pt10m""}}, {""metrictrigger"": {""metricname"": ""[parameters('metricname')]"", ""metricresourceuri"": ""[resourceid('microsoft.compute/virtualmachinescalesets"", variables('naminginfix'))]"", ""timegrain"": ""pt5m"", ""statistic"": ""average"", ""timewindow"": ""pt10m"", ""timeaggregation"": ""average"", ""operator"": ""lessthan"", ""threshold"": ""[parameters('metricthresholdtoscalein')]""}, ""scaleaction"": {""direction"": ""decrease"", ""type"": ""percentchangecount"", ""value"": ""[parameters('changepercentscalein')]"", ""cooldown"": ""pt10m""}}]}], ""enabled"": ""[parameters('autoscaleenabled')]"", ""targetresourceuri"": ""[resourceid('microsoft.compute/virtualmachinescalesets"", variables('naminginfix'))]""}} " +This template allows you to deploy an AKS cluster can be easily integrated with entreprise-grade devops process and fullfil the condition to be attached with Azure ML as compute target resources,"{""type"": ""microsoft.containerinstance/containergroups"", ""apiversion"": ""2021-03-01"", ""name"": ""[variables('containergroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""containers"": [{""name"": ""[variables('containername')]"", ""properties"": {""image"": ""[variables('containerimageuri')]"", ""ports"": [{""port"": 80}], ""resources"": {""requests"": {""cpu"": 1, ""memoryingb"": 4}}}}], ""restartpolicy"": ""onfailure"", ""ostype"": ""linux"", ""networkprofile"": {""id"": ""[resourceid('microsoft.network/networkprofiles"", variables('containergroupnetworkprofilename'))]""}}, ""dependson"": [""[resourceid('microsoft.network/networkprofiles"", variables('containergroupnetworkprofilename'))]""]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""comments"": ""simple network security group for subnet [variables('subnetname')]"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-22"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-05-01"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('jumpboxnicname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-05-01"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""[variables('jumpboxipconfigname')]"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.,"{""type"": ""microsoft.keyvault/vaults"", ""apiversion"": ""2021-06-01-preview"", ""name"": ""[parameters('keyvaultname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""sku"": {""name"": ""standard"", ""family"": ""a""}, ""tenantid"": ""[reference(resourceid('microsoft.managedidentity/userassignedidentities"", variables('identityname'))).tenantid]"", ""enablerbacauthorization"": true, ""enablesoftdelete"": true}, ""dependson"": [""[resourceid('microsoft.managedidentity/userassignedidentities"", variables('identityname'))]""]}{""type"": ""microsoft.keyvault/vaults/secrets"", ""apiversion"": ""2019-09-01"", ""name"": ""[format('{0}/sslcert"", parameters('keyvaultname'))]"", ""properties"": {""value"": ""[parameters('sslcertvalue')]"", ""contenttype"": ""application/x-pkcs12"", ""attributes"": {""enabled"": true}}, ""dependson"": [""[resourceid('microsoft.keyvault/vaults"", parameters('keyvaultname'))]""]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('vmname'), ""-nic'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('osimagepublisher')]"", ""offer"": ""[variables('osimageoffer')]"", ""sku"": ""[variables('osimagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""-osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(variables('vmname'), ""-nic'))]""}]}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'), ""/installscript')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('scriptdownloaduri')]""], ""commandtoexecute"": ""[variables('installcommand')]""}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""apiversion"": ""2021-01-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[parameters('adlsstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_ragrs""}, ""kind"": ""storagev2"", ""properties"": {""networkacls"": {""defaultaction"": ""[parameters('adlsstorageaccountnetworkaclsdefaultaction')]"", ""bypass"": ""azureservices""}, ""allowblobpublicaccess"": ""[parameters('adlsstorageaccountallowblobpublicaccess')]""}}{""apiversion"": ""2021-01-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[parameters('blobstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storagev2"", ""properties"": {""networkacls"": {""defaultaction"": ""[parameters('blobstorageaccountnetworkaclsdefaultaction')]"", ""bypass"": ""azureservices""}, ""allowblobpublicaccess"": ""[parameters('blobstorageaccountallowblobpublicaccess')]""}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('region-tm-test-vm'),copyindex())]"", ""location"": ""[variables('region')[copyindex()]]"", ""tags"": {""displayname"": ""regions-test-vms""}, ""comments"": ""test vms to test traffic manager scenario from each region!"", ""dependson"": [""region-tm-vm-pips-loop"", ""region-tm-vm-nics-loop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2012-r2-datacenter"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage"", ""caching"": ""readwrite""}}, ""osprofile"": {""computername"": ""[replace(replace(concat(variables('region-tm-test-vm'),copyindex()),""_"",""'),""-"",""')]"", ""adminusername"": ""[parameters('adminuser')]"", ""windowsconfiguration"": {""provisionvmagent"": true, ""enableautomaticupdates"": true}, ""adminpassword"": ""[parameters('adminuserpassword')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('region-tm-vm-nic'), copyindex()))]""}]}}, ""copy"": {""name"": ""test-vms-loop"", ""count"": 2}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('eventhubsnamespaceprivateendpointid')]"", ""[variables('blobstorageaccountprivateendpointid')]"", ""[variables('nicid')]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""disksizegb"": ""[parameters('osdisksize')]"", ""manageddisk"": {""storageaccounttype"": ""[parameters('diskstorageaccountype')]""}}, ""copy"": [{""name"": ""datadisks"", ""count"": ""[parameters('numdatadisks')]"", ""input"": {""caching"": ""[parameters('datadiskcaching')]"", ""disksizegb"": ""[parameters('datadisksize')]"", ""lun"": ""[copyindex('datadisks')]"", ""name"": ""[concat(parameters('vmname'),""-datadisk"",copyindex('datadisks'))]"", ""createoption"": ""empty"", ""manageddisk"": {""storageaccounttype"": ""[parameters('diskstorageaccountype')]""}}}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('blobstorageaccountid')).primaryendpoints[""blob""]]""}}}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'), ""/"", variables('customscriptextensionname'))]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vmid')]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""skipdos2unix"": false, ""timestamp"": 123456789, ""fileuris"": [""[variables('scriptfileuri')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('bash "", parameters('scriptfilename'), "" "", variables('eventhubsnamespaceendpoint'), "" "", variables('blobserviceprimaryendpoint'))]""}}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/"", variables('omsagentforlinuxname'))]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vmid')]"", ""[variables('workspaceid')]"", ""[variables('customscriptid')]""], ""properties"": {""publisher"": ""microsoft.enterprisecloud.monitoring"", ""type"": ""omsagentforlinux"", ""typehandlerversion"": ""1.12"", ""settings"": {""workspaceid"": ""[reference(variables('workspaceid'), ""2020-03-01-preview').customerid]"", ""stoponmultipleconnections"": false}, ""protectedsettings"": {""workspacekey"": ""[listkeys(variables('workspaceid'),""2020-03-01-preview').primarysharedkey]""}}} " +This template enables encryption on a running linux vm using AAD client secret.,"{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""name"": ""[concat(parameters('vmname'),""/diskencryption')]"", ""properties"": {""publisher"": ""microsoft.azure.security"", ""type"": ""[variables('extensionname')]"", ""typehandlerversion"": ""[variables('extensionversion')]"", ""autoupgrademinorversion"": true, ""forceupdatetag"": ""[parameters('forceupdatetag')]"", ""settings"": {""encryptionoperation"": ""[variables('encryptionoperation')]"", ""keyvaulturl"": ""[variables('keyvaulturl')]"", ""keyvaultresourceid"": ""[variables('keyvaultresourceid')]"", ""keyencryptionkeyurl"": ""[parameters('keyencryptionkeyurl')]"", ""kekvaultresourceid"": ""[if(empty(parameters('keyencryptionkeyurl')),"""",variables('keyvaultresourceid'))]"", ""keyencryptionalgorithm"": ""[parameters('keyencryptionalgorithm')]"", ""volumetype"": ""[parameters('volumetype')]""}}} " +This template deploys a VM Scale Set of Ubuntu VMs with incoming web connections balanced by the Azure Application Gateway,"{""type"": ""microsoft.compute/virtualmachinescalesets"", ""name"": ""[variables('naminginfix')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2017-03-30"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/applicationgateways/"", variables('appgwname'))]""], ""sku"": {""name"": ""[parameters('vmsku')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('instancecount')]""}, ""properties"": {""overprovision"": ""true"", ""singleplacementgroup"": ""false"", ""upgradepolicy"": {""mode"": ""automatic""}, ""virtualmachineprofile"": {""storageprofile"": {""osdisk"": {""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""imagereference"": ""[variables('imagereference')]""}, ""osprofile"": {""computernameprefix"": ""[variables('naminginfix')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""[variables('nicname')]"", ""properties"": {""primary"": true, ""ipconfigurations"": [{""name"": ""[variables('ipconfigname')]"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets/"", variables('virtualnetworkname'), variables('subnetname'))]""}, ""applicationgatewaybackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/applicationgateways/backendaddresspools/"", variables('appgwname'), variables('appgwbepoolname'))]""}]}}]}}]}}}} " +This template deploys 3 Nodetype Service Fabric Cluster. it also allows you to allows you to control the inbound and outbound network traffic using Network Security Groups,"{""apiversion"": ""2018-02-01"", ""type"": ""microsoft.servicefabric/clusters"", ""name"": ""[parameters('clustername')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('supportlogstorageaccountname'))]""], ""properties"": {""certificate"": {""thumbprint"": ""[parameters('certificatethumbprint')]"", ""x509storename"": ""[parameters('certificatestorevalue')]""}, ""clusterstate"": ""default"", ""diagnosticsstorageaccountconfig"": {""blobendpoint"": ""[reference(resourceid('microsoft.storage/storageaccounts/"", variables('supportlogstorageaccountname')), ""2021-04-01').primaryendpoints.blob]"", ""protectedaccountkeyname"": ""storageaccountkey1"", ""queueendpoint"": ""[reference(resourceid('microsoft.storage/storageaccounts/"", variables('supportlogstorageaccountname')), ""2021-04-01').primaryendpoints.queue]"", ""storageaccountname"": ""[variables('supportlogstorageaccountname')]"", ""tableendpoint"": ""[reference(resourceid('microsoft.storage/storageaccounts/"", variables('supportlogstorageaccountname')), ""2021-04-01').primaryendpoints.table]""}, ""fabricsettings"": [{""parameters"": [{""name"": ""clusterprotectionlevel"", ""value"": ""[parameters('clusterprotectionlevel')]""}], ""name"": ""security""}], ""managementendpoint"": ""[concat('https://"", reference(variables('lbipnameurl')).dnssettings.fqdn,"":"",variables('nodesettings')[0].fabrichttpgatewayport)]"", ""copy"": [{""name"": ""nodetypes"", ""count"": ""[length(variables('nodesettings'))]"", ""input"": {""name"": ""[variables('nodesettings')[copyindex('nodetypes')].vmnodetypename]"", ""applicationports"": {""endport"": ""[variables('nodesettings')[copyindex('nodetypes')].applicationendport]"", ""startport"": ""[variables('nodesettings')[copyindex('nodetypes')].applicationstartport]""}, ""clientconnectionendpointport"": ""[variables('nodesettings')[copyindex('nodetypes')].fabrictcpgatewayport]"", ""durabilitylevel"": ""bronze"", ""ephemeralports"": {""endport"": ""[variables('nodesettings')[copyindex('nodetypes')].ephemeralendport]"", ""startport"": ""[variables('nodesettings')[copyindex('nodetypes')].ephemeralstartport]""}, ""httpgatewayendpointport"": ""[variables('nodesettings')[copyindex('nodetypes')].fabrichttpgatewayport]"", ""isprimary"": true, ""vminstancecount"": ""[variables('nodesettings')[0].instancecount]""}}], ""provisioningstate"": ""default"", ""reliabilitylevel"": ""silver"", ""upgrademode"": ""automatic"", ""vmimage"": ""windows""}, ""tags"": {""resourcetype"": ""service fabric"", ""clustername"": ""[parameters('clustername')]""}} " +Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.,"{""apiversion"": ""2019-08-01"", ""name"": ""[variables('hostingplanname')]"", ""type"": ""microsoft.web/serverfarms"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""hostingplan""}, ""sku"": {""name"": ""s1"", ""capacity"": ""1""}, ""properties"": {""name"": ""[variables('hostingplanname')]""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2019-12-01"", ""name"": ""[parameters('backendnetworksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/proximityplacementgroups"", parameters('proximityplacementgroupname'))]""], ""properties"": {}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2019-12-01"", ""name"": ""[parameters('midtiernetworksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/proximityplacementgroups"", parameters('proximityplacementgroupname'))]""], ""properties"": {}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2019-12-01"", ""name"": ""[parameters('frontendnetworksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/proximityplacementgroups"", parameters('proximityplacementgroupname'))]""], ""properties"": {""securityrules"": [{""name"": ""allow_http_from_ip_or_range_forwebhttp"", ""type"": ""microsoft.network/networksecuritygroups/securityrules"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""[parameters('allowfrontendconnectionfromiporcidrblock')]"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 500, ""direction"": ""inbound""}}, {""name"": ""allow_ssh_from_ip_or_range_for_jumpboxssh"", ""type"": ""microsoft.network/networksecuritygroups/securityrules"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""[parameters('allowfrontendconnectionfromiporcidrblock')]"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 510, ""direction"": ""inbound""}}, {""name"": ""allow_https_from_ip_or_range_for_bastion"", ""type"": ""microsoft.network/networksecuritygroups/securityrules"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""[parameters('allowfrontendconnectionfromiporcidrblock')]"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 520, ""direction"": ""inbound""}}, {""name"": ""allow_ssh_to_vnet_for_bastion"", ""type"": ""microsoft.network/networksecuritygroups/securityrules"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""virtualnetwork"", ""access"": ""allow"", ""priority"": 530, ""direction"": ""outbound""}}, {""name"": ""allow_rdp_to_vnet_for_bastion"", ""type"": ""microsoft.network/networksecuritygroups/securityrules"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3389"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""virtualnetwork"", ""access"": ""allow"", ""priority"": 540, ""direction"": ""outbound""}}, {""name"": ""allow_https_to_azurecloud_for_bastion"", ""type"": ""microsoft.network/networksecuritygroups/securityrules"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""azurecloud"", ""access"": ""allow"", ""priority"": 550, ""direction"": ""outbound""}}, {""name"": ""allow_management_from_gateway_manager_for_appgateway"", ""type"": ""microsoft.network/networksecuritygroups/securityrules"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""65200-65535"", ""sourceaddressprefix"": ""gatewaymanager"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 560, ""direction"": ""inbound""}}, {""name"": ""allow_https_from_gateway_manager_for_appgateway"", ""type"": ""microsoft.network/networksecuritygroups/securityrules"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""gatewaymanager"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 570, ""direction"": ""inbound""}}]}}{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2019-12-01"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", parameters('backendnetworksecuritygroupname'))]"", ""[resourceid('microsoft.network/networksecuritygroups"", parameters('midtiernetworksecuritygroupname'))]"", ""[resourceid('microsoft.compute/proximityplacementgroups"", parameters('proximityplacementgroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""10.2.0.0/16""]}, ""subnets"": [{""name"": ""gatewaysubnet"", ""properties"": {""addressprefix"": ""10.2.0.224/27""}}, {""name"": ""azurebastionsubnet"", ""properties"": {""addressprefix"": ""10.2.0.192/27"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", parameters('frontendnetworksecuritygroupname'))]""}}}, {""name"": ""frontendsubnet"", ""properties"": {""addressprefix"": ""10.2.0.160/27"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", parameters('frontendnetworksecuritygroupname'))]""}}}, {""name"": ""appgatewaysubnet"", ""properties"": {""addressprefix"": ""10.2.0.128/27"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", parameters('frontendnetworksecuritygroupname'))]""}}}, {""name"": ""backendsubnet"", ""properties"": {""addressprefix"": ""10.2.1.0/24"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", parameters('backendnetworksecuritygroupname'))]""}}}, {""name"": ""midtiersubnet"", ""properties"": {""addressprefix"": ""10.2.0.0/28"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", parameters('midtiernetworksecuritygroupname'))]""}}}]}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""apiversion"": ""2021-02-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('supportlogstorageaccountname')]"", ""location"": ""[variables('computelocation')]"", ""properties"": {}, ""kind"": ""storage"", ""sku"": {""name"": ""[parameters('supportlogstorageaccounttype')]""}, ""tags"": {""resourcetype"": ""service fabric"", ""clustername"": ""[parameters('clustername')]""}}{""apiversion"": ""2021-02-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('applicationdiagnosticsstorageaccountname')]"", ""location"": ""[variables('computelocation')]"", ""properties"": {}, ""kind"": ""storage"", ""sku"": {""name"": ""[parameters('applicationdiagnosticsstorageaccounttype')]""}, ""tags"": {""resourcetype"": ""service fabric"", ""clustername"": ""[parameters('clustername')]""}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 5}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('appvmname'),copyindex())]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('appvmname'), copyindex(), ""-nic'))]"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('availabilitysetname'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"",variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('appvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('appvmname'),copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('osimagepublisher')]"", ""offer"": ""[variables('osimageoffer')]"", ""sku"": ""[variables('osimagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('appvmname'),copyindex(),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(variables('appvmname'), copyindex(), ""-nic'))]""}]}}, ""copy"": {""name"": ""appvmcopy"", ""count"": ""[parameters('appvmcount')]""}} "