diff --git "a/validation.csv" "b/validation.csv" new file mode 100644--- /dev/null +++ "b/validation.csv" @@ -0,0 +1,259 @@ +Description,IaC +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')]""}}}} 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': ""[variables('dnsnameforpublicip')]""}}} END" +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}}]}}{'name': ""[variables('gwlbname')]"", 'type': 'microsoft.network/loadbalancers', 'apiversion': '2020-08-01', 'location': ""[parameters('location')]"", 'dependson': [""[variables('gwipaddressid')]""], 'properties': {'frontendipconfigurations': [{'name': ""[variables('gwlbfe')]"", 'properties': {'publicipaddress': {'id': ""[variables('gwipaddressid')]""}}}], 'backendaddresspools': [{'name': ""[variables('gwlbbe')]""}], 'loadbalancingrules': [{'name': 'lbrule01', 'properties': {'frontendipconfiguration': {'id': ""[variables('gwlbfeconfigid')]""}, 'backendaddresspool': {'id': ""[variables('gwbeaddresspoolid')]""}, 'protocol': 'tcp', 'frontendport': 443, 'backendport': 443, 'enablefloatingip': false, 'idletimeoutinminutes': 5, 'loaddistribution': 'sourceipprotocol', 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes/',variables('gwlbname'),'tcpprobe')]""}}}, {'name': 'lbrule02', 'properties': {'frontendipconfiguration': {'id': ""[variables('gwlbfeconfigid')]""}, 'backendaddresspool': {'id': ""[variables('gwbeaddresspoolid')]""}, 'protocol': 'udp', 'frontendport': 3391, 'backendport': 3391, 'enablefloatingip': false, 'idletimeoutinminutes': 5, 'loaddistribution': 'sourceipprotocol', 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes/',variables('gwlbname'),'tcpprobe01')]""}}}], 'probes': [{'name': 'tcpprobe', 'properties': {'protocol': 'tcp', 'port': 443, 'intervalinseconds': 5, 'numberofprobes': 2}}, {'name': 'tcpprobe01', 'properties': {'protocol': 'tcp', 'port': 3391, 'intervalinseconds': 5, 'numberofprobes': 2}}], 'inboundnatrules': [{'name': 'rdp', 'properties': {'frontendipconfiguration': {'id': ""[variables('gwlbfeconfigid')]""}, 'protocol': 'tcp', 'frontendport': 3389, 'backendport': 3389, 'enablefloatingip': false}}]}}{'apiversion': '2020-08-01', 'type': 'microsoft.network/networkinterfaces', 'name': 'gw-nic', 'location': ""[parameters('location')]"", 'dependson': [""[variables('gwlbid')]"", ""[variables('advmdeploymentid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('subnet-id')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[variables('gwbeaddresspoolid')]""}], 'loadbalancerinboundnatrules': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatrules',variables('gwlbname'),'rdp')]""}]}}], 'dnssettings': {'dnsservers': [""[variables('dnsserverprivateip')]""]}}} 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': {}}{'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('vnet1').name]"", 'apiversion': '2020-04-01', 'location': ""[variables('vnet1').location]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('vnet1').addressspaceprefix]""]}, 'dhcpoptions': {'dnsservers': [""[variables('vnet1').dnsipaddress]""]}, 'subnets': [{'name': ""[variables('vnet1').subnetname]"", 'properties': {'addressprefix': ""[variables('vnet1').subnetprefix]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}, {'name': ""[variables('vnet1').gatewaysubnetname]"", 'properties': {'addressprefix': ""[variables('vnet1').gatewaysubnetprefix]""}}]}}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('vnet1').vpngatewayip]"", 'location': ""[variables('vnet1').location]"", 'apiversion': '2020-04-01', 'properties': {'publicipallocationmethod': 'dynamic'}}{'type': 'microsoft.network/virtualnetworkgateways', 'name': ""[variables('vnet1').vpngatewayname]"", 'location': ""[variables('vnet1').location]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('vnet1').vpngatewayip)]"", ""[resourceid('microsoft.network/virtualnetworks', variables('vnet1').name)]""], 'apiversion': '2020-04-01', 'properties': {'gatewaytype': 'vpn', 'vpntype': 'routebased', 'sku': {'name': 'basic', 'tier': 'basic'}, 'ipconfigurations': [{'name': 'default', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnet1').name, variables('vnet1').gatewaysubnetname)]""}, 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('vnet1').vpngatewayip)]""}}}]}}{'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('vnet2').name]"", 'apiversion': '2020-04-01', 'location': ""[variables('vnet2').location]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname2'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('vnet2').addressspaceprefix]""]}, 'dhcpoptions': {'dnsservers': [""[variables('vnet2').dnsipaddress]""]}, 'subnets': [{'name': ""[variables('vnet2').subnetname]"", 'properties': {'addressprefix': ""[variables('vnet2').subnetprefix]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname2'))]""}}}, {'name': ""[variables('vnet2').gatewaysubnetname]"", 'properties': {'addressprefix': ""[variables('vnet2').gatewaysubnetprefix]""}}]}} END" +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': 'storage', 'properties': {}} END" +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/', parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('username')]"", '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" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipaddresses', 'apiversion': '2021-05-01', 'name': ""[parameters('publicipname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('publicipsku')]""}, 'properties': {'publicipallocationmethod': ""[parameters('publicipallocationmethod')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2021-05-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'default-allow-3389', 'properties': {'priority': 1000, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '3389', 'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*'}}, {'name': 'default-allow-admincenter', 'properties': {'priority': 1001, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': ""[string(variables('windowsadmincenterport'))]"", 'protocol': 'tcp', 'sourceportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*'}}]}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-12-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': {'autopatchingsettings': {'patchcategory': 'windowsmandatoryupdates', 'enable': true, 'dayofweek': ""[parameters('sqlautopatchingdayofweek')]"", 'maintenancewindowstartinghour': ""[parameters('sqlautopatchingstarthour')]"", 'maintenancewindowduration': ""[parameters('sqlautopatchingwindowduration')]""}}}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'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'))]""}]}}} 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," {'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[parameters('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnsnameforpublicip')]""}}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-05-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh_rule', 'properties': {'description': 'locks inbound down to ssh default port 22.', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 123, 'direction': 'inbound'}}]}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-05-01', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}, 'sku': {'name': 'basic'}}{'comments': ""simple network security group for subnet [variables('vnetsubnetname')]"", 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-05-01', 'name': ""[variables('networksecuritygroupname2')]"", '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', 'apiversion': '2020-05-01', 'name': ""[variables('vnetname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname2'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('vnetaddressprefixes')]""]}, 'subnets': [{'name': ""[variables('vnetsubnetname')]"", 'properties': {'addressprefix': ""[variables('vnetsubnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname2'))]""}}}]}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2020-05-01', 'name': ""[variables('networkinterfacename')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('vnetname'))]"", ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnetname'), variables('vnetsubnetname'))]""}}}]}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'comments': 'simple network security group for default subnets', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-07-01', 'name': ""[concat(variables('region-vnet-name'), copyindex(), '-default-nsg')]"", 'location': ""[variables('region')[copyindex()]]"", 'properties': {'securityrules': ""[variables('networksecuritygroupallowrdprule')]""}, 'copy': {'name': 'default-nsg-loop', 'count': 2}}{'comments': 'simple network security group for front end subnets', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-07-01', 'name': ""[concat(variables('region-vnet-name'), copyindex(), '-', variables('vnet-front-end-subnet'), '-nsg')]"", 'location': ""[variables('region')[copyindex()]]"", 'properties': {'securityrules': ""[variables('networksecuritygroupallowrdprule')]""}, 'copy': {'name': 'front-end-nsg-loop', 'count': 2}}{'type': 'microsoft.network/virtualnetworks', 'name': ""[concat(variables('region-vnet-name'),copyindex())]"", 'apiversion': '2020-07-01', 'location': ""[variables('region')[copyindex()]]"", 'tags': {'displayname': 'vnetloop'}, 'dependson': ['default-nsg-loop', 'front-end-nsg-loop'], 'properties': {'addressspace': {'addressprefixes': ['10.0.0.0/16']}, 'subnets': [{'name': 'default', 'properties': {'addressprefix': '10.0.4.0/24', 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', concat(variables('region-vnet-name'), copyindex(), '-default-nsg'))]""}}}, {'name': ""[variables('vnet-front-end-subnet')]"", 'properties': {'addressprefix': '10.0.2.0/24', 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', concat(variables('region-vnet-name'), copyindex(), '-', variables('vnet-front-end-subnet'), '-nsg'))]""}}}, {'name': ""[variables('vnet-lb-subnet')]"", 'properties': {'addressprefix': '10.0.1.0/24'}}, {'name': ""[variables('vnet-appgw-subnet')]"", 'properties': {'addressprefix': '10.0.3.0/28'}}]}, 'copy': {'name': 'vnetloop', 'count': 2}}{'apiversion': '2020-07-01', 'name': ""[concat(variables('region-web-ilb-pip'),copyindex())]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[variables('region')[copyindex()]]"", 'tags': {'displayname': 'region-web-ilb-pips'}, 'properties': {'publicipallocationmethod': 'static', 'dnssettings': {'domainnamelabel': ""[tolower(concat(variables('region-web-lb'),copyindex()))]""}}, 'copy': {'name': 'region-web-ilb-pip-loop', 'count': 2}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/loadbalancers', 'name': ""[concat(variables('region-web-lb'),copyindex())]"", 'location': ""[variables('region')[copyindex()]]"", 'tags': {'displayname': 'region-web-lbs'}, 'dependson': ['region-web-ilb-pip-loop'], 'properties': {'frontendipconfigurations': [{'name': 'loadbalancerfrontend', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',concat(variables('region-web-ilb-pip'),copyindex()))]""}}}], 'backendaddresspools': [{'name': 'backendpool1'}], 'probes': [{'name': 'lbprobe', 'properties': {'protocol': 'tcp', 'port': 80, 'intervalinseconds': 15, 'numberofprobes': 2}}], 'loadbalancingrules': [{'name': 'lbrule', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', concat(variables('region-web-lb'),copyindex()), 'loadbalancerfrontend')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', concat(variables('region-web-lb'),copyindex()), 'backendpool1')]""}, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes', concat(variables('region-web-lb'),copyindex()), 'lbprobe')]""}, 'protocol': 'tcp', 'frontendport': 80, 'backendport': 80, 'idletimeoutinminutes': 15}}]}, 'copy': {'name': 'region-web-lb-loop', 'count': 2}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(variables('region-tm-vm-pip'),copyindex())]"", 'location': ""[variables('region')[copyindex()]]"", 'tags': {'displayname': 'region-tm-vm-pips'}, 'comments': 'test vms to test traffic manager scenario from each region!', 'properties': {'publicipallocationmethod': 'static', 'dnssettings': {'domainnamelabel': ""[tolower(concat(variables('region-tm-test-vm'),copyindex()))]""}, 'idletimeoutinminutes': 4}, 'copy': {'name': 'region-tm-vm-pips-loop', 'count': 2}}{'apiversion': '2020-07-01', 'name': ""[concat(variables('region-tm-vm-nic'),copyindex())]"", 'type': 'microsoft.network/networkinterfaces', 'location': ""[variables('region')[copyindex()]]"", 'tags': {'displayname': 'region-tm-vm-nics'}, 'comments': 'test vms to test traffic manager scenario from each region!', 'dependson': ['vnetloop', 'region-tm-vm-pips-loop'], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipaddress': '10.0.4.4', 'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',concat(variables('region-tm-vm-pip'),copyindex()))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', concat(variables('region-vnet-name'),copyindex()), 'default')]""}}}], 'enableipforwarding': false}, 'copy': {'name': 'region-tm-vm-nics-loop', 'count': 2}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('region1-web-vm-nic'), copyindex())]"", 'location': ""[variables('region')[0]]"", 'tags': {'displayname': 'region1-web-vm-nics'}, 'copy': {'name': 'region1-vm-nic-loop', 'count': ""[parameters('numberofvminstances')]""}, 'dependson': ['vnetloop', 'region-web-lb-loop', 'region1-web-vm-pip-loop'], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', concat(variables('region-vnet-name'),'0'), variables('vnet-front-end-subnet'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', concat(variables('region-web-lb'),'0'),'backendpool1')]""}], 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',concat(variables('region1-web-vm-pip'), copyindex()))]""}}}]}}{'apiversion': '2020-07-01', 'name': ""[concat(variables('region1-web-vm-pip'), copyindex())]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[variables('region')[0]]"", 'tags': {'displayname': 'region1-web-vm-pip'}, 'properties': {'publicipallocationmethod': 'static', 'dnssettings': {'domainnamelabel': ""[concat(variables('region1-web-vmsprefix'), copyindex())]""}}, 'copy': {'name': 'region1-web-vm-pip-loop', 'count': ""[parameters('numberofvminstances')]""}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('region2-web-vm-nic'), copyindex())]"", 'location': ""[variables('region')[1]]"", 'tags': {'displayname': 'region2-web-vm-nics'}, 'copy': {'name': 'region2-vm-nic-loop', 'count': ""[parameters('numberofvminstances')]""}, 'dependson': ['vnetloop', 'region-web-lb-loop', 'region2-web-vm-pip-loop'], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', concat(variables('region-vnet-name'),'1'), 'front-end-subnet')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', concat(variables('region-web-lb'),'1'),'backendpool1')]""}], 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',concat(variables('region2-web-vm-pip'), copyindex()))]""}}}]}}{'apiversion': '2020-07-01', 'name': ""[concat(variables('region2-web-vm-pip'), copyindex())]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[variables('region')[1]]"", 'tags': {'displayname': 'region2-web-vm-pip'}, 'properties': {'publicipallocationmethod': 'static', 'dnssettings': {'domainnamelabel': ""[concat(variables('region2-web-vmsprefix'), copyindex())]""}}, 'copy': {'name': 'region2-web-vm-pip-loop', 'count': ""[parameters('numberofvminstances')]""}} END" +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')]""}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/virtualmachinescalesets', 'name': ""[parameters('vmssname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'dependson': [""[resourceid('microsoft.network/loadbalancers/','loadbalancer')]"", ""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]""], '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('adminpassword')]""}, 'networkprofile': {'networkinterfaceconfigurations': [{'name': ""[variables('nicname')]"", 'properties': {'primary': true, 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups','vmssnsg')]""}, 'ipconfigurations': [{'name': ""[variables('ipconfigname')]"", 'properties': {'primary': true, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnetname'))]""}, 'privateipaddressversion': 'ipv4', 'publicipaddressconfiguration': {'name': 'pub1', 'properties': {'idletimeoutinminutes': 15}}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', 'loadbalancer', variables('bepoolname'))]""}], 'loadbalancerinboundnatpools': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatpools', 'loadbalancer', variables('natpoolname'))]""}]}}, {'name': ""[variables('ipconfignamev6')]"", 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnetname'))]""}, 'privateipaddressversion': 'ipv6', 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', 'loadbalancer', variables('bepoolv6name'))]""}]}}]}}]}}}} 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'}}{'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')]""}}}}]} 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')]""}}} END" +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', 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]""}}}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'apiversion': '2020-05-01', 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetname')]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}, 'sku': {'name': 'aligned'}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'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('networksettings').virtualnetworkname]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('networksettings').addressprefix]""]}, 'subnets': [{'name': ""[variables('networksettings').subnet.dse.name]"", 'properties': {'addressprefix': ""[variables('networksettings').subnet.dse.prefix]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-11-01', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}} END" +Enable Azure Sentinel," {'type': 'microsoft.operationsmanagement/solutions', 'name': ""[variables('omssolutions').customsolution.solutionname]"", 'apiversion': '2015-11-01-preview', 'location': ""[parameters('omsloganalyticsregion')]"", 'dependson': [""[resourceid('microsoft.operationalinsights/workspaces/', parameters('omsloganalyticsworkspacename'))]"", ""[resourceid('microsoft.operationalinsights/workspaces/views', parameters('omsloganalyticsworkspacename'), variables('omssolutions').customsolution.viewname)]"", 'savedsearchcopy', 'schedulescopy', 'savedsearchcopymetric', 'schedulescopymetric', 'actioncopy', 'actioncopymetric'], 'plan': {'name': ""[variables('omssolutions').customsolution.solutionname]"", 'publisher': ""[variables('omssolutions').customsolution.publisher]"", 'promotioncode': '', 'product': ""[variables('omssolutions').customsolution.product]"", 'version': ""[variables('omssolutions').customsolution.version]""}, 'properties': {'workspaceresourceid': ""[resourceid('microsoft.operationalinsights/workspaces/', parameters('omsloganalyticsworkspacename'))]"", 'referencedresources': [], 'containedresources': [""[resourceid('microsoft.operationalinsights/workspaces/views/', parameters('omsloganalyticsworkspacename'), variables('omssolutions').customsolution.viewname)]""]}} 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')]""}}}}{'name': ""[concat('replicasecondarynode', copyindex(1))]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2019-07-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared')]""], 'copy': {'name': 'secondaryreplicacopy', 'count': 3, 'mode': 'serial', 'batchsize': 1}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('replicatemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adminusername': {'value': ""[parameters('adminusername')]""}, 'mongoadminusername': {'value': ""[parameters('mongoadminusername')]""}, 'mongoadminpassword': {'value': ""[parameters('mongoadminpassword')]""}, 'replsetname': {'value': 'repset1'}, 'namespace': {'value': ""[variables('namespace')]""}, 'vmbasename': {'value': ""[concat('replicasecondary', copyindex(1))]""}, 'sizeofdatadiskingb': {'value': ""[parameters('sizeofdatadiskingb')]""}, 'numdatadisks': {'value': ""[parameters('numdatadisks')]""}, 'staticip': {'value': ""[variables('networksettings').statics.replicaprimaryip]""}, 'subnet': {'value': ""[variables('networksettings').subnet.dse]""}, 'vmsize': {'value': ""[parameters('replicanodevmsize')]""}, 'ossettings': {'value': ""[variables('replicasecondaryossettings')]""}, 'authenticationtype': {'value': ""[parameters('authenticationtype')]""}, 'adminpasswordorkey': {'value': ""[parameters('adminpasswordorkey')]""}, 'location': {'value': ""[parameters('location')]""}, 'routerdnsnameprefix': {'value': ""[parameters('dnsnameprefix')]""}, 'roletype': {'value': 'secondary'}, 'mongosslcertpassword': {'value': ""[parameters('mongosslcertpassword')]""}}}}{'name': 'replicaprimarynode', 'type': 'microsoft.resources/deployments', 'apiversion': '2019-07-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared')]"", 'secondaryreplicacopy'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('replicatemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adminusername': {'value': ""[parameters('adminusername')]""}, 'mongoadminusername': {'value': ""[parameters('mongoadminusername')]""}, 'mongoadminpassword': {'value': ""[parameters('mongoadminpassword')]""}, 'replsetname': {'value': 'repset1'}, 'namespace': {'value': ""[variables('namespace')]""}, 'vmbasename': {'value': 'replicaprimary'}, 'subnet': {'value': ""[variables('networksettings').subnet.dse]""}, 'vmsize': {'value': ""[parameters('replicanodevmsize')]""}, 'sizeofdatadiskingb': {'value': ""[parameters('sizeofdatadiskingb')]""}, 'numdatadisks': {'value': ""[parameters('numdatadisks')]""}, 'staticip': {'value': ""[variables('networksettings').statics.replicaprimaryip]""}, 'ossettings': {'value': ""[variables('replicaprimaryossettings')]""}, 'authenticationtype': {'value': ""[parameters('authenticationtype')]""}, 'adminpasswordorkey': {'value': ""[parameters('adminpasswordorkey')]""}, 'location': {'value': ""[parameters('location')]""}, 'routerdnsnameprefix': {'value': ""[parameters('dnsnameprefix')]""}, 'roletype': {'value': 'primary'}, 'mongosslcertpassword': {'value': ""[parameters('mongosslcertpassword')]""}}}}{'name': 'routernode', 'type': 'microsoft.resources/deployments', 'apiversion': '2019-07-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared')]"", ""[resourceid('microsoft.resources/deployments/', 'configprimarynode')]"", ""[resourceid('microsoft.resources/deployments/', 'replicaprimarynode')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('routertemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adminusername': {'value': ""[parameters('adminusername')]""}, 'mongoadminusername': {'value': ""[parameters('mongoadminusername')]""}, 'mongoadminpassword': {'value': ""[parameters('mongoadminpassword')]""}, 'namespace': {'value': ""[variables('namespace')]""}, 'vmbasename': {'value': 'router'}, 'subnet': {'value': ""[variables('networksettings').subnet.dse]""}, 'vmsize': {'value': ""[parameters('routernodevmsize')]""}, 'dnsname': {'value': ""[parameters('dnsnameprefix')]""}, 'staticip': {'value': ""[variables('networksettings').statics.routerip]""}, 'ossettings': {'value': ""[variables('routerossettings')]""}, 'authenticationtype': {'value': ""[parameters('authenticationtype')]""}, 'adminpasswordorkey': {'value': ""[parameters('adminpasswordorkey')]""}, 'location': {'value': ""[parameters('location')]""}, 'mongosslcertpassword': {'value': ""[parameters('mongosslcertpassword')]""}}}} 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', 'properties': {}} END" +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'}}]}} END" +This template demonstrates how to create a instance of Azure API Management within your virtual network's subnet and configure Network Security Group as per recommendation using Service Tags.," {'apiversion': '2019-12-01', 'name': ""[variables('apimanagementservicename')]"", 'type': 'microsoft.apimanagement/service', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""], 'sku': {'name': ""[parameters('sku')]"", 'capacity': ""[parameters('skucount')]""}, 'properties': {'publisheremail': ""[parameters('publisheremail')]"", 'publishername': ""[parameters('publishername')]"", 'virtualnetworktype': 'external', 'virtualnetworkconfiguration': {'subnetresourceid': ""[variables('subnetref')]""}, 'customproperties': {'microsoft.windowsazure.apimanagement.gateway.security.ciphers.tls_ecdhe_rsa_with_aes_256_cbc_sha': false, 'microsoft.windowsazure.apimanagement.gateway.security.ciphers.tls_ecdhe_rsa_with_aes_128_cbc_sha': false, 'microsoft.windowsazure.apimanagement.gateway.security.ciphers.tls_rsa_with_aes_128_gcm_sha256': false, 'microsoft.windowsazure.apimanagement.gateway.security.ciphers.tls_rsa_with_aes_256_cbc_sha256': false, 'microsoft.windowsazure.apimanagement.gateway.security.ciphers.tls_rsa_with_aes_128_cbc_sha256': false, 'microsoft.windowsazure.apimanagement.gateway.security.ciphers.tls_rsa_with_aes_256_cbc_sha': false, 'microsoft.windowsazure.apimanagement.gateway.security.ciphers.tls_rsa_with_aes_128_cbc_sha': false, 'microsoft.windowsazure.apimanagement.gateway.security.ciphers.tripledes168': false, 'microsoft.windowsazure.apimanagement.gateway.security.protocols.tls10': false, 'microsoft.windowsazure.apimanagement.gateway.security.protocols.tls11': false, 'microsoft.windowsazure.apimanagement.gateway.security.protocols.ssl30': false, 'microsoft.windowsazure.apimanagement.gateway.security.backend.protocols.tls10': false, 'microsoft.windowsazure.apimanagement.gateway.security.backend.protocols.tls11': false, 'microsoft.windowsazure.apimanagement.gateway.security.backend.protocols.ssl30': false, 'microsoft.windowsazure.apimanagement.gateway.protocols.server.http2': false}}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-06-01', 'name': ""[variables('networksecuritygroupname2')]"", 'location': ""[parameters('location')]""}{'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('subnet1name')]"", 'properties': {'addressprefix': '10.0.0.0/24'}}, {'name': ""[variables('subnet2name')]"", 'properties': {'addressprefix': '10.0.1.0/24', 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname2'))]""}}}]}, 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname2'))]""]}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2020-06-01', 'name': ""[variables('nic1name')]"", 'location': ""[parameters('location')]"", 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnet1name'))]""}, 'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}}}], 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}, 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]"", ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('virtualnetworkname'))]""]} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'name': ""[parameters('storageaccountname')]"", 'apiversion': '2019-06-01', 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('storageaccounttype')]""}, 'kind': 'storagev2'} 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('vmdnsname')]""}}}{'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': '*'}}, {'name': 'default-allow-80', 'properties': {'priority': 1001, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '80', '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'))]""}}}]}}{'apiversion': '2020-05-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')]""}}}]}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetname')]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 2}, 'sku': {'name': 'aligned'}} END" +This template creates a Windows VM and runs a PowerShell script using the custom script extension. It also discovers the Storage Account keys," {'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'))]""}, 'protectedsettings': {'storageaccountname': ""[parameters('customscriptstorageaccountname')]"", 'storageaccountkey': ""[listkeys(variables('accountid'),'2021-01-01').keys[0].value]""}}}]} 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('dnsnameforpublicip')]""}}}{'apiversion': '2015-05-01-preview', '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': '2015-05-01-preview', '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')]""}}}]}}{'apiversion': '2015-05-01-preview', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'http', 'properties': {'description': 'allow http', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 110, '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'))]""}}}{'name': 'node-1-nsg', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-11-01', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'nsgrule1', 'properties': {'description': 'ssh allow', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}]}} 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')]""]}}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('avsetnamedb')]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 20}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'name': ""[variables('names').avs]"", 'type': 'microsoft.compute/availabilitysets', 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', 'tags': {'displayname': 'availabilitysets'}, 'properties': {'platformupdatedomaincount': 5, 'platformfaultdomaincount': 2}, 'sku': {'name': 'aligned'}}{'name': ""[variables('names').vm]"", 'type': 'microsoft.compute/virtualmachines', 'location': ""[parameters('location')]"", 'apiversion': '2017-12-01', 'dependson': [""[variables('names').avs]"", ""[variables('names').nic]""], 'tags': {'displayname': 'virtualmachines'}, 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('names').avs)]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('names').vm]"", 'adminusername': ""[parameters('vmadminuser')]"", 'adminpassword': ""[parameters('vmadminpassword')]"", 'windowsconfiguration': {'provisionvmagent': true, 'enableautomaticupdates': true}}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('names').nic)]""}]}}, 'resources': [{'name': 'vstsagent', 'type': 'extensions', 'location': ""[parameters('location')]"", 'apiversion': '2017-12-01', 'dependson': [""[variables('names').vm]""], 'properties': {'publisher': 'microsoft.compute', 'type': 'customscriptextension', 'typehandlerversion': '1.9', 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat(variables('powershell').folder, '/', variables('powershell').script, parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'powershell.exe -executionpolicy unrestricted -command ""& {\', \'./\', variables(\'powershell\').script, \' \', variables(\'powershell\').parameters, \'}""\')]'}}}]} 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')]""} 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')]""}}}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-12-01', 'name': ""[variables('vns3controllername')]"", 'location': ""[parameters('location')]"", 'plan': ""[variables('plantype')[variables('vnsplantype')].plan]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('networkinterfacename'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('storageaccount'))]""], 'tags': {'name': 'vns3 controller'}, 'properties': {'hardwareprofile': {'vmsize': ""[variables('vm')[parameters('instancesize')].vmsize]""}, 'storageprofile': {'osdisk': {'name': ""[concat(variables('vns3controllername'), '-disc')]"", 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}, 'disksizegb': 30}, 'imagereference': ""[variables('vnsversion')[variables('vns3licensetype')].imagereference]""}, 'osprofile': {'computername': ""[variables('vns3controllername')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'linuxconfiguration': {'disablepasswordauthentication': false, 'provisionvmagent': true}, 'allowextensionoperations': true}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('networkinterfacename'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('storageaccount'),'2021-01-01').primaryendpoints['blob']]""}}}} 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')]""}}}} END" +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'))]""]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('managementpublicipaddrname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[concat(variables('clusterfqdn'), '-manage')]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('nodespublicipaddrname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('clusterfqdn')]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups',variables('mastersnsgname'))]"", ""[resourceid('microsoft.network/networksecuritygroups',variables('nodesnsgname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefixmasters')]"", ""[variables('addressprefixnodes')]""]}, 'subnets': [{'name': ""[variables('subnetnamemasters')]"", 'properties': {'addressprefix': ""[variables('subnetprefixmasters')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups',variables('mastersnsgname'))]""}}}, {'name': ""[variables('subnetnamenodes')]"", 'properties': {'addressprefix': ""[variables('subnetprefixnodes')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups',variables('nodesnsgname'))]""}}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('mastersnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nodesnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowany', 'properties': {'description': 'swarm node ports need to be configured on the load balancer to be reachable', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('vmnamemaster'), copyindex(), '-nic')]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'nicloopmaster', 'count': ""[variables('mastercount')]""}, 'dependson': [""[resourceid('microsoft.network/loadbalancers/', variables('masterslbname'))]"", ""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/inboundnatrules', variables('masterslbname'), concat('ssh-', variables('vmnamemaster'), copyindex()))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfigmaster', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[concat('10.0.0.', copyindex(4))]"", 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets',variables('virtualnetworkname'),variables('subnetnamemasters'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools',variables('masterslbname'),variables('masterslbbackendpoolname'))]""}], 'loadbalancerinboundnatrules': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatrules',variables('masterslbname'),concat('ssh-',variables('vmnamemaster'),copyindex()))]""}]}}]}}{'apiversion': '2015-06-15', 'name': ""[variables('masterslbname')]"", 'type': 'microsoft.network/loadbalancers', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('managementpublicipaddrname'))]""], 'properties': {'frontendipconfigurations': [{'name': ""[variables('masterslbipconfigname')]"", 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('managementpublicipaddrname'))]""}}}], 'backendaddresspools': [{'name': ""[variables('masterslbbackendpoolname')]""}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/loadbalancers/inboundnatrules', 'name': ""[concat(variables('masterslbname'), '/', 'ssh-', variables('vmnamemaster'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'lbnatloopmaster', 'count': ""[variables('mastercount')]""}, 'dependson': [""[resourceid('microsoft.network/loadbalancers/', variables('masterslbname'))]""], 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations',variables('masterslbname'), variables('masterslbipconfigname'))]""}, 'protocol': 'tcp', 'frontendport': '[copyindex(2200)]', 'backendport': 22, 'enablefloatingip': false}}{'apiversion': '2015-06-15', 'name': ""[variables('nodeslbname')]"", 'type': 'microsoft.network/loadbalancers', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('nodespublicipaddrname'))]""], 'properties': {'frontendipconfigurations': [{'name': 'loadbalancerfrontend', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('nodespublicipaddrname'))]""}}}], 'backendaddresspools': [{'name': ""[variables('nodeslbbackendpoolname')]""}]}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'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\'))]'}}} END" +This template provides a way to deploy an Azure database for MySQL with VNet integration.," {'type': 'microsoft.dbformysql/servers', 'apiversion': '2017-12-01', 'name': ""[variables('servername')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('databaseskuname')]"", 'tier': ""[parameters('databaseskutier')]"", 'capacity': ""[parameters('databaseskucapacity')]"", 'size': ""[string(parameters('databaseskusizemb'))]"", 'family': ""[parameters('databaseskufamily')]""}, 'properties': {'createmode': 'default', 'version': ""[parameters('mysqlversion')]"", 'administratorlogin': ""[parameters('administratorlogin')]"", 'administratorloginpassword': ""[parameters('administratorloginpassword')]"", 'storageprofile': {'storagemb': ""[parameters('databaseskusizemb')]"", 'backupretentiondays': 7, 'georedundantbackup': 'disabled'}, 'sslenforcement': 'disabled'}}{'type': 'microsoft.dbformysql/servers/firewallrules', 'apiversion': '2017-12-01', 'name': ""[format('{0}/{1}', variables('servername'), 'allowazureips')]"", 'properties': {'startipaddress': '0.0.0.0', 'endipaddress': '0.0.0.0'}, 'dependson': [""[resourceid('microsoft.dbformysql/servers/databases', variables('servername'), variables('databasename'))]"", ""[resourceid('microsoft.dbformysql/servers', variables('servername'))]""]}{'type': 'microsoft.dbformysql/servers/databases', 'apiversion': '2017-12-01', 'name': ""[format('{0}/{1}', variables('servername'), variables('databasename'))]"", 'properties': {'charset': 'utf8', 'collation': 'utf8_general_ci'}, 'dependson': [""[resourceid('microsoft.dbformysql/servers', variables('servername'))]""]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('dnsnameforpublicip')]""}}}{'apiversion': '2018-08-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 132, 'direction': 'inbound'}}, {'name': 'http', 'properties': {'provisioningstate': 'succeeded', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 131, 'direction': 'inbound'}}, {'name': 'https', 'properties': {'provisioningstate': 'succeeded', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 130, 'direction': 'inbound'}}, {'name': 'goaccesssocket', 'properties': {'provisioningstate': 'succeeded', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '8080', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 129, 'direction': 'inbound'}}]}}{'apiversion': '2018-08-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", '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," {'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'))]""}]}}}{'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/tomcat-setup-redhat.sh', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': ""[concat('sh tomcat-setup-redhat.sh',' ',parameters('adminusername'),' ',parameters('tomcatusername'),' ',parameters('tomcatpassword'),' ',parameters('sshpassphrase'))]""}}} END" +Create a Storage Account with Storage Service Encryption for Data at Rest," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-04-01', 'name': ""[parameters('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('storageaccounttype')]""}, 'kind': 'storage', 'properties': {'encryption': {'keysource': 'microsoft.storage', 'services': {'blob': {'enabled': ""[parameters('blobencryptionenabled')]""}}}}} 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')]""}}}{'comments': 'default network security group for template', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2021-03-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': '*'}}]}}{'apiversion': '2021-03-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'))]""}}}]}} 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('dnslabelprefix')]""}}}{'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-3389', 'properties': {'priority': 1000, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '3389', '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('subnet1name')]"", 'properties': {'addressprefix': ""[variables('subnet1prefix')]"", '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('subnet1ref')]""}}}]}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2017-12-01', 'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetname')]"", 'comments': 'the availability set ensures at least one kemp loadmaster will be available during either a planned or unplanned maintenance event.', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmnameprefix'), copyindex())]"", 'comments': 'this will create two kemp loadmasters.', 'plan': ""[variables('imageplan')]"", 'copy': {'name': 'virtualmachineloop', 'count': ""[variables('numberofinstances')]""}, 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('networkinterfacename'), copyindex()))]"", ""[resourceid('microsoft.compute/availabilitysets/', variables('availabilitysetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[variables('vmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmnameprefix'), copyindex())]"", 'adminusername': 'bal', 'adminpassword': ""[parameters('balpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('imagesku')]"", 'version': ""[variables('imageversion')]""}, 'osdisk': {'name': ""[concat(variables('vmnameprefix'), copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('networkinterfacename'),copyindex()))]""}]}}} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'name': ""[parameters('newstorageaccountname')]"", 'apiversion': '2021-02-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage'} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'sku': {'name': 'standard_lrs', 'tier': 'standard'}, 'kind': 'storage', 'name': ""[variables('storageaccountname')]"", 'apiversion': '2021-01-01', 'location': ""[variables('resourcegrouplocation')]"", 'properties': {}} END" +This template deploys an empty Function App and a hosting plan.," {'type': 'microsoft.web/sites', 'apiversion': '2019-08-01', 'name': ""[parameters('sitename')]"", 'kind': 'functionapp,linux', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.web/serverfarms', variables('hostingplanname'))]"", ""[resourceid('microsoft.storage/storageaccounts', parameters('storageaccountname'))]""], 'properties': {'name': ""[parameters('sitename')]"", 'siteconfig': {'appsettings': [{'name': 'functions_worker_runtime', 'value': 'python'}, {'name': 'functions_extension_version', 'value': '~2'}, {'name': 'azurewebjobsstorage', 'value': ""[concat('defaultendpointsprotocol=https;accountname=', parameters('storageaccountname'), ';accountkey=', listkeys(variables('storageaccountid'),'2019-06-01').keys[0].value)]""}]}, 'serverfarmid': ""[resourceid('microsoft.web/serverfarms', variables('hostingplanname'))]"", 'clientaffinityenabled': false}}{'type': 'microsoft.web/serverfarms', 'apiversion': '2019-08-01', 'name': ""[variables('hostingplanname')]"", 'location': ""[parameters('location')]"", 'kind': 'linux', 'properties': {'reserved': true}, 'sku': {'tier': 'standard', 'name': 's1'}} END" +Deploy an HDInsight cluster running Linux with R Server (with Azure Storage) with an SSH password," {'type': 'microsoft.hdinsight/clusters', 'apiversion': '2018-06-01-preview', 'name': ""[parameters('clustername')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts', variables('defaultstorageaccount').name)]""], 'properties': {'clusterversion': '3.6', 'ostype': 'linux', 'tier': 'standard', 'clusterdefinition': {'kind': 'rserver', 'configurations': {'gateway': {'restauthcredential.isenabled': true, 'restauthcredential.username': ""[parameters('clusterloginusername')]"", 'restauthcredential.password': ""[parameters('clusterloginpassword')]""}, 'rserver': {'rstudio': true}}}, 'storageprofile': {'storageaccounts': [{'name': ""[replace(replace(reference(variables('defaultstorageaccount').name).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': 4, 'hardwareprofile': {'vmsize': ""[parameters('workernodevirtualmachinesize')]""}, 'osprofile': {'linuxoperatingsystemprofile': {'username': ""[parameters('sshusername')]"", 'password': ""[parameters('sshpassword')]""}}}, {'name': 'zookeepernode', 'mininstancecount': 1, 'targetinstancecount': 3, 'hardwareprofile': {'vmsize': ""[parameters('zookeepernodevirtualmachinesize')]""}, 'osprofile': {'linuxoperatingsystemprofile': {'username': ""[parameters('sshusername')]"", 'password': ""[parameters('sshpassword')]""}}}, {'name': 'edgenode', 'mininstancecount': 1, 'targetinstancecount': 1, 'hardwareprofile': {'vmsize': ""[parameters('edgenodevirtualmachinesize')]""}, 'osprofile': {'linuxoperatingsystemprofile': {'username': ""[parameters('sshusername')]"", 'password': ""[parameters('sshpassword')]""}}}]}}} END" +Azure Route Server in BGP peering with Quagga," {'comments': 'network security group', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2021-03-01', 'name': ""[variables('nsgname')]"", 'location': ""[variables('location')]"", 'properties': {'securityrules': [{'name': 'ssh-rule', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}]}}{'comments': 'create vnet1. subnet1 is assigned to routeserversubnet. subnet4 is used for the ubuntu vm', 'type': 'microsoft.network/virtualnetworks', 'apiversion': '2021-03-01', 'name': ""[variables('vnetname')]"", 'location': ""[variables('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups',variables('nsgname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressspace1prefix')]""]}, 'subnets': [{'name': ""[variables('subnet1name')]"", 'properties': {'addressprefix': ""[variables('subnet1prefix')]""}}, {'name': ""[variables('subnet2name')]"", 'properties': {'addressprefix': ""[variables('subnet2prefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups',variables('nsgname'))]""}}}, {'name': ""[variables('subnet3name')]"", 'properties': {'addressprefix': ""[variables('subnet3prefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups',variables('nsgname'))]""}}}, {'name': ""[variables('subnet4name')]"", 'properties': {'addressprefix': ""[variables('subnet4prefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups',variables('nsgname'))]""}}}, {'name': 'gatewaysubnet', 'properties': {'addressprefix': ""[variables('gatewaysubnetprefix')]""}}]}}{'comments': 'create a virtual hub object', 'type': 'microsoft.network/virtualhubs', 'apiversion': '2021-03-01', 'name': ""[variables('rsname')]"", 'location': ""[variables('location')]"", 'dependson': [""[resourceid( 'microsoft.network/virtualnetworks', variables('vnetname') )]""], 'properties': {'sku': 'standard', 'allowbranchtobranchtraffic': true}, 'resources': []}{'comments': 'public ip of the route server', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('rspubipname')]"", 'apiversion': '2021-03-01', 'location': ""[variables('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static'}}{'comments': 'create the route server and attach it to the routeserversubnet subnet', 'type': 'microsoft.network/virtualhubs/ipconfigurations', 'apiversion': '2021-03-01', 'name': ""[concat(variables('rsname'), '/',variables('vhubipconfigname'))]"", 'dependson': [""[resourceid('microsoft.network/virtualhubs', variables('rsname'))]"", ""[resourceid('microsoft.network/publicipaddresses', variables('rspubipname') )]""], 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('subnet_rs1_id')]""}, 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('rspubipname') )]""}}}{'comments': 'name of the bgp connection configured on the route server. the bgp connection can be created when the microsoft.network/virtualhubs/ipconfigurations deployment complete.', 'type': 'microsoft.network/virtualhubs/bgpconnections', 'apiversion': '2021-03-01', 'name': ""[variables('bgpconnectionname')]"", 'dependson': [""[resourceid('microsoft.network/virtualhubs/ipconfigurations', variables('rsname'), variables('vhubipconfigname'))]""], 'properties': {'peerip': ""[variables('peering1ip')]"", 'peerasn': ""[variables('peering1asn')]""}}{'comments': 'public ip of the vm', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('vmpubipname')]"", 'apiversion': '2021-03-01', 'location': ""[variables('location')]"", 'sku': {'name': 'basic'}, 'properties': {'publicipallocationmethod': 'dynamic'}}{'comments': 'network interface of the vm attached to the subnet4', 'type': 'microsoft.network/networkinterfaces', 'apiversion': '2021-03-01', 'name': ""[variables('nicname')]"", 'location': ""[variables('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('vnetname'))]"", ""[resourceid('microsoft.network/publicipaddresses', variables('vmpubipname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconf-nic0', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[variables('vmprivip')]"", 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('vmpubipname') )]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnetname'), variables('subnet4name') )]""}}}], 'enableipforwarding': true}} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'name': 'basenetwork', 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'virtualnetworkname': {'value': ""[variables('vnetname')]""}, 'location': {'value': ""[parameters('location')]""}}, '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.1008.15138', 'templatehash': '7254579564168303679'}}, 'parameters': {'location': {'type': 'string', 'defaultvalue': '[resourcegroup().location]', 'metadata': {'description': 'location for all resources.'}}, 'virtualnetworkname': {'type': 'string', 'defaultvalue': 'vnet', 'metadata': {'description': 'name of the vnet.'}}, 'subnetname': {'type': 'string', 'defaultvalue': 'subnet', 'metadata': {'description': 'name of the subnet'}}}, 'functions': [], 'variables': {'subnetaddressprefix': '10.1.0.0/24', 'addressprefix': '10.1.0.0/16', 'nsgname': ""[format('{0}nsg', parameters('virtualnetworkname'))]""}, 'resources': [{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2021-02-01', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'priority': 1000, 'protocol': 'tcp', 'access': 'allow', 'direction': 'inbound', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*', 'destinationportrange': '22'}}, {'name': 'rdp', 'properties': {'priority': 1050, 'protocol': 'tcp', 'access': 'allow', 'direction': 'inbound', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*', 'destinationportrange': '3389'}}, {'name': 'http', 'properties': {'priority': 1100, 'protocol': 'tcp', 'access': 'allow', 'direction': 'inbound', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*', 'destinationportrange': '80'}}, {'name': 'https', 'properties': {'priority': 1200, 'protocol': 'tcp', 'access': 'allow', 'direction': 'inbound', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*', 'destinationportrange': '443'}}]}}, {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2021-02-01', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[format('{0}-1', parameters('subnetname'))]"", 'properties': {'addressprefix': ""[variables('subnetaddressprefix')]"", 'privateendpointnetworkpolicies': 'enabled', 'privatelinkservicenetworkpolicies': 'enabled', 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('nsgname'))]""}}}]}, 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('nsgname'))]""]}], 'outputs': {'vnetid': {'type': 'string', 'value': ""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""}, 'vnetsubnetarray': {'type': 'array', 'value': ""[reference(resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))).subnets]""}, 'vnet': {'type': 'object', 'value': ""[reference(resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname')), '2021-02-01', 'full')]""}}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'name': 'slb', 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'slbname': {'value': ""[parameters('lbname')]""}, 'location': {'value': ""[parameters('location')]""}}, '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.1008.15138', 'templatehash': '4905690839637422557'}}, 'parameters': {'slbname': {'type': 'string', 'defaultvalue': 'myloadbalancer', 'metadata': {'description': 'load balancer name'}}, 'location': {'type': 'string', 'defaultvalue': '[resourcegroup().location]', 'metadata': {'description': 'location for the resources'}}}, 'functions': [], 'variables': {'slbpipname': ""[format('{0}-pip', parameters('slbname'))]""}, 'resources': [{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2021-02-01', 'name': ""[variables('slbpipname')]"", 'location': ""[parameters('location')]"", 'sku': {'tier': 'regional', 'name': 'standard'}, 'properties': {'publicipaddressversion': 'ipv4', 'publicipallocationmethod': 'static', 'idletimeoutinminutes': 4}}, {'type': 'microsoft.network/loadbalancers', 'apiversion': '2021-02-01', 'name': ""[parameters('slbname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard', 'tier': 'regional'}, 'properties': {'frontendipconfigurations': [{'properties': {'privateipallocationmethod': 'dynamic', 'privateipaddressversion': 'ipv4', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('slbpipname'))]""}}, 'name': 'frontendconfig'}], 'backendaddresspools': [{'name': 'bepool01'}], 'loadbalancingrules': [{'properties': {'frontendipconfiguration': {'id': ""[format('{0}', resourceid('microsoft.network/loadbalancers/frontendipconfigurations', parameters('slbname'), 'frontendconfig'))]""}, 'backendaddresspool': {'id': ""[format('{0}', resourceid('microsoft.network/loadbalancers/backendaddresspools', parameters('slbname'), 'bepool01'))]""}, 'probe': {'id': ""[format('{0}', resourceid('microsoft.network/loadbalancers/probes', parameters('slbname'), 'probe01'))]""}, 'protocol': 'tcp', 'loaddistribution': 'default', 'frontendport': 80, 'backendport': 80, 'idletimeoutinminutes': 4, 'enablefloatingip': false, 'enabletcpreset': false, 'disableoutboundsnat': false}, 'name': 'string'}], 'probes': [{'properties': {'protocol': 'tcp', 'port': 80, 'intervalinseconds': 5, 'numberofprobes': 2}, 'name': 'probe01'}]}, 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('slbpipname'))]""]}], 'outputs': {'slbid': {'type': 'string', 'value': ""[resourceid('microsoft.network/loadbalancers', parameters('slbname'))]""}, 'slbname': {'type': 'string', 'value': ""[parameters('slbname')]""}, 'slbfeconfigname': {'type': 'string', 'value': ""[reference(resourceid('microsoft.network/loadbalancers', parameters('slbname'))).frontendipconfigurations[0].name]""}, 'slbbepoolname': {'type': 'string', 'value': ""[reference(resourceid('microsoft.network/loadbalancers', parameters('slbname'))).backendaddresspools[0].name]""}, 'slbbackendpoolarray': {'type': 'array', 'value': ""[reference(resourceid('microsoft.network/loadbalancers', parameters('slbname'))).backendaddresspools]""}, 'slbpublicipaddress': {'type': 'string', 'value': ""[reference(resourceid('microsoft.network/publicipaddresses', variables('slbpipname'))).ipaddress]""}}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'name': 'vmss-bicep', 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'location': {'value': ""[parameters('location')]""}, 'vmssname': {'value': ""[parameters('vmssname')]""}, 'vmcount': {'value': ""[parameters('instancecount')]""}, 'vmsize': {'value': ""[parameters('sku')]""}, 'adminusername': {'value': ""[parameters('vmssadminusername')]""}, 'adminpasswordorkey': {'value': ""[parameters('vmssadminpasswordorsshkey')]""}, 'os': {'value': ""[parameters('os')]""}, 'platformfaultdomaincount': {'value': ""[parameters('platformfaultdomaincount')]""}, 'zones': {'value': ""[parameters('zones')]""}, 'subnetid': {'value': ""[reference(resourceid('microsoft.resources/deployments', 'basenetwork'), '2020-06-01').outputs.vnetsubnetarray.value[0].id]""}, 'lbbackendpoolarray': {'value': [""[reference(resourceid('microsoft.resources/deployments', 'slb'), '2020-06-01').outputs.slbbackendpoolarray.value[0]]""]}}, '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.1008.15138', 'templatehash': '11968600019434110732'}}, 'parameters': {'vmssname': {'type': 'string', 'defaultvalue': 'myvmssflex'}, 'location': {'type': 'string', 'defaultvalue': '[resourcegroup().location]'}, 'zones': {'type': 'array', 'defaultvalue': []}, 'vmsize': {'type': 'string', 'defaultvalue': 'standard_ds1_v2'}, 'platformfaultdomaincount': {'type': 'int', 'defaultvalue': 1, 'allowedvalues': [1, 2, 3, 5]}, 'vmcount': {'type': 'int', 'defaultvalue': 3, 'maxvalue': 1000, 'minvalue': 0}, 'os': {'type': 'string', 'defaultvalue': 'ubuntulinux', 'allowedvalues': ['ubuntulinux', 'windowsserver']}, 'subnetid': {'type': 'string'}, 'lbbackendpoolarray': {'type': 'array', 'defaultvalue': []}, 'adminusername': {'type': 'string'}, 'authenticationtype': {'type': 'string', 'defaultvalue': 'password', 'allowedvalues': ['password', 'sshpublickey']}, 'adminpasswordorkey': {'type': 'securestring'}}, 'functions': [], 'variables': {'networkapiversion': '2020-11-01', 'linuxconfiguration': {'disablepasswordauthentication': true, 'provisionvmagent': true, 'ssh': {'publickeys': [{'path': ""[format('/home/{0}/.ssh/authorized_keys', parameters('adminusername'))]"", 'keydata': ""[parameters('adminpasswordorkey')]""}]}}, 'linuximagereference': {'publisher': 'canonical', 'offer': 'ubuntuserver', 'sku': '18_04-lts-gen2', 'version': 'latest'}, 'windowsimagereference': {'publisher': 'microsoftwindowsserver', 'offer': 'windowsserver', 'sku': '2019-datacenter', 'version': 'latest'}, 'windowsconfiguration': {'timezone': 'pacific standard time'}, 'imagereference': ""[if(equals(parameters('os'), 'ubuntulinux'), variables('linuximagereference'), variables('windowsimagereference'))]""}, 'resources': [{'type': 'microsoft.compute/virtualmachinescalesets', 'apiversion': '2021-04-01', 'name': ""[parameters('vmssname')]"", 'location': ""[parameters('location')]"", 'zones': ""[parameters('zones')]"", 'sku': {'name': ""[parameters('vmsize')]"", 'tier': 'standard', 'capacity': ""[parameters('vmcount')]""}, 'properties': {'orchestrationmode': 'flexible', 'singleplacementgroup': false, 'platformfaultdomaincount': ""[parameters('platformfaultdomaincount')]"", 'virtualmachineprofile': {'osprofile': {'computernameprefix': 'myvm', 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[if(equals(parameters('authenticationtype'), 'password'), parameters('adminpasswordorkey'), null())]"", 'linuxconfiguration': ""[if(and(equals(parameters('os'), 'ubuntulinux'), equals(parameters('authenticationtype'), 'sshpublickey')), variables('linuxconfiguration'), null())]"", 'windowsconfiguration': ""[if(equals(parameters('os'), 'windowsserver'), variables('windowsconfiguration'), null())]""}, 'networkprofile': {'networkapiversion': ""[variables('networkapiversion')]"", 'networkinterfaceconfigurations': [{'name': ""[format('{0}nicconfig01', parameters('vmssname'))]"", 'properties': {'primary': true, 'enableacceleratednetworking': false, 'ipconfigurations': [{'name': ""[format('{0}ipconfig', parameters('vmssname'))]"", 'properties': {'publicipaddressconfiguration': {'name': ""[format('{0}pipconfig', parameters('vmssname'))]"", 'properties': {'publicipaddressversion': 'ipv4', 'idletimeoutinminutes': 5}}, 'privateipaddressversion': 'ipv4', 'subnet': {'id': ""[parameters('subnetid')]""}, 'loadbalancerbackendaddresspools': ""[parameters('lbbackendpoolarray')]""}}]}}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true}}, 'storageprofile': {'osdisk': {'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': 'premium_lrs'}}, 'imagereference': ""[variables('imagereference')]""}}}}], 'outputs': {'vmssid': {'type': 'string', 'value': ""[resourceid('microsoft.compute/virtualmachinescalesets', parameters('vmssname'))]""}, 'vmssadminusername': {'type': 'string', 'value': ""[parameters('adminusername')]""}}}}, 'dependson': [""[resourceid('microsoft.resources/deployments', 'basenetwork')]"", ""[resourceid('microsoft.resources/deployments', 'slb')]""]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(variables('publicipaddressname'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'publiciploop', 'count': ""[parameters('agentvmcount')]""}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[concat(parameters('dnslabelprefix'), '-', copyindex())]""}}}{'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')]""}}]}} 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('uniquenameprefix')]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups/', concat(variables('virtualnetworkname'), '-sg'))]""], 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}, {'name': ""[variables('subnetnamedb')]"", 'properties': {'addressprefix': ""[variables('subnetprefixdb')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', concat(variables('virtualnetworkname'), '-sg'))]""}}}]}}{'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('ssh-vm',copyindex()))]""}]}}]}, 'copy': {'name': 'networkinterfacescopy', 'count': ""[parameters('vmcountfrontend')]""}}{'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': ""[variables('publicipaddressid')]""}}}], 'backendaddresspools': [{'name': 'loadbalancerbackend'}], 'inboundnatrules': [{'name': 'ssh-vm0', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations',variables('lbname'),'loadbalancerfrontend')]""}, 'protocol': 'tcp', 'frontendport': 2200, 'backendport': 22, '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': 'ssh-vm2', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations',variables('lbname'),'loadbalancerfrontend')]""}, 'protocol': 'tcp', 'frontendport': 2202, 'backendport': 22, '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': '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': 8443, 'backendport': 8443, 'enablefloatingip': false, 'idletimeoutinminutes': 5, 'loaddistribution': 'sourceip', 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes',variables('lbname'),'tcpprobe')]""}}}], 'probes': [{'name': 'tcpprobe', 'properties': {'protocol': 'tcp', 'port': 8443, 'intervalinseconds': '5', 'numberofprobes': '2'}}]}} END" +Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-01-01', 'name': ""[variables('storageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_ragrs'}, 'kind': 'storagev2', 'properties': {'encryption': {'services': {'blob': {'enabled': true}, 'file': {'enabled': true}}, 'keysource': 'microsoft.storage'}, 'supportshttpstrafficonly': true}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'condition': ""[equals(parameters('virtualnetworkneworexisting'), 'new')]"", 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-06-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': '*'}}]}}{'condition': ""[equals(parameters('virtualnetworkneworexisting'), 'new')]"", 'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-06-01', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[parameters('virtualnetworkaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}} END" +Enable Azure Sentinel," {'name': ""[variables('omssolutions').customsolution.solutionname]"", 'type': 'microsoft.operationsmanagement/solutions', 'apiversion': '2015-11-01-preview', 'location': ""[parameters('omsloganalyticsregion')]"", 'dependson': [""[concat('microsoft.operationalinsights/workspaces/', parameters('omsloganalyticsworkspacename'))]"", ""[concat('microsoft.automation/automationaccounts/', parameters('omsautomationaccountname'))]"", ""[concat('microsoft.operationalinsights/workspaces/', parameters('omsloganalyticsworkspacename'), '/views/', variables('omssolutions').customsolution.name)]"", ""[concat('microsoft.automation/automationaccounts/', parameters('omsautomationaccountname'), '/runbooks/', variables('runbooks').ingestschedulerrunbook.name)]"", ""[concat('microsoft.automation/automationaccounts/', parameters('omsautomationaccountname'), '/runbooks/', variables('runbooks').ingestparentrunbook.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('omsloganalyticsworkspacename'))]"", 'referencedresources': [], 'containedresources': [""[resourceid('microsoft.operationalinsights/workspaces/views/', parameters('omsloganalyticsworkspacename'), variables('omssolutions').customsolution.name)]"", ""[resourceid('microsoft.automation/automationaccounts/runbooks/', parameters('omsautomationaccountname'), variables('runbooks').ingestschedulerrunbook.name)]"", ""[resourceid('microsoft.automation/automationaccounts/runbooks/', parameters('omsautomationaccountname'), variables('runbooks').ingestparentrunbook.name)]""]}} 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/virtualmachines/', parameters('vmname')), '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" +This template creates a Backup Policy for Recovery Services Vault to protect Azure IaasVMs," {'condition': ""[equals(parameters('enablenfsbackup'), 'true')]"", 'type': 'microsoft.recoveryservices/vaults', 'apiversion': '2021-12-01', 'name': ""[variables('vaultname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'rs0', 'tier': 'standard'}, 'properties': {}}{'condition': ""[equals(parameters('enablenfsbackup'), 'true')]"", 'type': 'microsoft.recoveryservices/vaults/backupfabrics/protectioncontainers/protecteditems', 'apiversion': '2021-12-01', 'name': ""[concat(variables('vaultname'), '/', variables('backupfabric'), '/', variables('protectioncontainer'), '/', variables('protecteditem'))]"", 'dependson': ['nfsvmdeployment', ""[resourceid('microsoft.recoveryservices/vaults', variables('vaultname'))]""], 'properties': {'protecteditemtype': 'microsoft.compute/virtualmachines', 'policyid': ""[resourceid('microsoft.recoveryservices/vaults/backuppolicies', variables('vaultname'), variables('backuppolicyname'))]"", 'sourceresourceid': ""[resourceid('microsoft.compute/virtualmachines', variables('nfshostname'))]""}} END" +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'))]""}}} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'createencryptedmanageddisk', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-01-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('creatediskurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vhduri': {'value': ""[parameters('vhduri')]""}, 'manageddiskname': {'value': ""[parameters('manageddiskname')]""}, 'keyvaultresourceid': {'value': ""[parameters('keyvaultresourceid')]""}, 'keyvaultsecreturl': {'value': ""[parameters('keyvaultsecreturl')]""}, 'kekurl': {'value': ""[parameters('kekurl')]""}, 'kekvaultresourceid': {'value': ""[parameters('kekvaultresourceid')]""}}}} 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')]""}}}{'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')]""}}]}}]}{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-07-01', 'name': ""[parameters('acrprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('virtualnetworkid')]"", ""[variables('acrid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('acrprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('acrid')]"", 'groupids': [""[variables('acrprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('vmsubnetid')]""}}, 'resources': [{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'privatednszonegroups', 'apiversion': '2020-07-01', 'name': ""[variables('acrprivatednszonegroupname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('acrid')]"", ""[variables('acrprivatednszoneid')]"", ""[variables('acrprivateendpointid')]""], 'properties': {'privatednszoneconfigs': [{'name': 'dnsconfig', 'properties': {'privatednszoneid': ""[variables('acrprivatednszoneid')]""}}]}}]}{'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('applicationgatewaypublicipaddressname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static'}}{'type': 'microsoft.network/applicationgatewaywebapplicationfirewallpolicies', 'apiversion': '2020-06-01', 'name': ""[parameters('wafpolicyname')]"", 'location': ""[parameters('location')]"", 'properties': {'customrules': [{'name': 'blockme', 'priority': 1, 'ruletype': 'matchrule', 'action': 'block', 'matchconditions': [{'matchvariables': [{'variablename': 'querystring'}], 'operator': 'contains', 'negationconditon': false, 'matchvalues': ['blockme']}]}, {'name': 'blockevilbot', 'priority': 2, 'ruletype': 'matchrule', 'action': 'block', 'matchconditions': [{'matchvariables': [{'variablename': 'requestheaders', 'selector': 'user-agent'}], 'operator': 'contains', 'negationconditon': false, 'matchvalues': ['evilbot'], 'transforms': ['lowercase']}]}], 'policysettings': {'requestbodycheck': ""[parameters('wafpolicyrequestbodycheck')]"", 'maxrequestbodysizeinkb': ""[parameters('wafpolicymaxrequestbodysizeinkb')]"", 'fileuploadlimitinmb': ""[parameters('wafpolicyfileuploadlimitinmb')]"", 'mode': ""[parameters('wafpolicymode')]"", 'state': ""[parameters('wafpolicystate')]""}, 'managedrules': {'managedrulesets': [{'rulesettype': ""[parameters('wafpolicyrulesettype')]"", 'rulesetversion': ""[parameters('wafpolicyrulesetversion')]""}]}}}{'type': 'microsoft.network/applicationgateways', 'apiversion': '2020-05-01', 'name': ""[parameters('applicationgatewayname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('keyvaultid')]"", ""[variables('applicationgatewaypublicipaddressid')]"", ""[variables('virtualnetworkid')]"", ""[variables('wafpolicyid')]""], 'identity': {'type': 'userassigned', 'userassignedidentities': {""[variables('applicationgatewayuserdefinedmanagedidentityid')]"": {}}}, 'zones': ""[parameters('applicationgatewayzones')]"", 'properties': {'sku': {'name': 'waf_v2', 'tier': 'waf_v2'}, 'gatewayipconfigurations': [{'name': ""[variables('applicationgatewayipconfigurationname')]"", 'properties': {'subnet': {'id': ""[variables('applicationgatewaysubnetid')]""}}}], 'frontendipconfigurations': [{'name': ""[variables('applicationgatewayfrontendipconfigurationname')]"", 'properties': {'publicipaddress': {'id': ""[variables('applicationgatewaypublicipaddressid')]""}}}], 'frontendports': [{'name': ""[variables('applicationgatewayfrontendportname')]"", 'properties': {'port': 80}}], 'autoscaleconfiguration': {'mincapacity': 0, 'maxcapacity': 10}, 'enablehttp2': false, 'probes': [{'name': 'defaulthttpprobe', 'properties': {'protocol': 'http', 'path': '/', 'interval': 30, 'timeout': 30, 'unhealthythreshold': 3, 'pickhostnamefrombackendhttpsettings': true, 'minservers': 0}}, {'name': 'defaulthttpsprobe', 'properties': {'protocol': 'https', 'path': '/', 'interval': 30, 'timeout': 30, 'unhealthythreshold': 3, 'pickhostnamefrombackendhttpsettings': true, 'minservers': 0}}], 'backendaddresspools': [{'name': ""[variables('applicationgatewaybackendaddresspoolname')]""}], 'backendhttpsettingscollection': [{'name': ""[variables('applicationgatewaybackendhttpsettingsname')]"", 'properties': {'port': 80, 'protocol': 'http', 'cookiebasedaffinity': 'disabled'}}], 'httplisteners': [{'name': ""[variables('applicationgatewayhttplistenername')]"", 'properties': {'firewallpolicy': {'id': ""[variables('wafpolicyid')]""}, 'frontendipconfiguration': {'id': ""[variables('applicationgatewayfrontendipconfigurationid')]""}, 'frontendport': {'id': ""[variables('applicationgatewayfrontendportid')]""}, 'protocol': 'http'}}], 'requestroutingrules': [{'name': ""[variables('applicationgatewayrequestroutingrulename')]"", 'properties': {'ruletype': 'basic', 'httplistener': {'id': ""[variables('applicationgatewayhttplistenerid')]""}, 'backendaddresspool': {'id': ""[variables('applicationgatewaybackendaddresspoolid')]""}, 'backendhttpsettings': {'id': ""[variables('applicationgatewaybackendhttpsettingsid')]""}}}], 'webapplicationfirewallconfiguration': {'enabled': true, 'firewallmode': ""[parameters('wafpolicymode')]"", 'rulesettype': ""[parameters('wafpolicyrulesettype')]"", 'rulesetversion': ""[parameters('wafpolicyrulesetversion')]"", 'requestbodycheck': ""[parameters('wafpolicyrequestbodycheck')]"", 'maxrequestbodysizeinkb': ""[parameters('wafpolicymaxrequestbodysizeinkb')]"", 'fileuploadlimitinmb': ""[parameters('wafpolicyfileuploadlimitinmb')]""}, 'firewallpolicy': {'id': ""[variables('wafpolicyid')]""}}, 'resources': [{'type': 'providers/diagnosticsettings', 'apiversion': '2017-05-01-preview', 'name': 'microsoft.insights/default', 'dependson': [""[variables('applicationgatewayid')]"", ""[variables('workspaceid')]""], 'properties': {'workspaceid': ""[variables('workspaceid')]"", 'logs': [{'category': 'applicationgatewayaccesslog', 'enabled': true}, {'category': 'applicationgatewayperformancelog', 'enabled': true}, {'category': 'applicationgatewayfirewalllog', 'enabled': true}], 'metrics': [{'category': 'allmetrics', 'enabled': true}]}}]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-08-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'location': ""[variables('location')]"", 'name': ""[variables('publicipaddressname')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('dnsnameforlbip')]""}}, 'type': 'microsoft.network/publicipaddresses'}{'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'location': ""[variables('location')]"", 'properties': {'securityrules': [{'name': 'ssh-rule', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'web-rule', 'properties': {'description': 'allow web', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '8080', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 101, 'direction': 'inbound'}}]}}{'apiversion': '2020-07-01', 'location': ""[variables('location')]"", 'name': ""[variables('vnetname')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups/', variables('nsgname'))]""], '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/virtualnetworks'}{'apiversion': '2020-07-01', 'name': ""[variables('lbname')]"", 'type': 'microsoft.network/loadbalancers', 'location': ""[variables('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('publicipaddressname'))]""], 'properties': {'frontendipconfigurations': [{'name': 'loadbalancerfrontend', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}}}], 'backendaddresspools': [{'name': ""[variables('lbpoolname')]""}], 'loadbalancingrules': [{'name': 'lbrule', 'properties': {'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools',variables('lbname'),variables('lbpoolname'))]""}, 'backendport': 8080, 'enablefloatingip': false, 'frontendipconfiguration': {'id': ""[variables('frontendipconfigid')]""}, 'frontendport': 80, 'idletimeoutinminutes': 5, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes',variables('lbname'),variables('lbprobename'))]""}, 'protocol': 'tcp'}}], 'probes': [{'name': ""[variables('lbprobename')]"", 'properties': {'intervalinseconds': 5, 'numberofprobes': 2, 'port': 8080, 'protocol': 'tcp'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/loadbalancers/inboundnatrules', 'name': ""[concat(variables('lbname'), '/ssh-', variables('nameprefix'), copyindex())]"", 'location': ""[variables('location')]"", 'copy': {'name': 'lbsshnatloop', 'count': ""[parameters('numberofinstances')]""}, 'dependson': [""[resourceid('microsoft.network/loadbalancers/', variables('lbname'))]""], 'properties': {'frontendipconfiguration': {'id': ""[variables('frontendipconfigid')]""}, 'protocol': 'tcp', 'frontendport': '[copyindex(5000)]', 'backendport': 22, 'enablefloatingip': false}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/loadbalancers/inboundnatrules', 'name': ""[concat(variables('lbname'), '/admin-', variables('nameprefix'), copyindex())]"", 'location': ""[variables('location')]"", 'copy': {'name': 'lbadminnatloop', 'count': ""[parameters('numberofinstances')]""}, 'dependson': [""[resourceid('microsoft.network/loadbalancers/', variables('lbname'))]""], 'properties': {'frontendipconfiguration': {'id': ""[variables('frontendipconfigid')]""}, 'protocol': 'tcp', 'frontendport': '[copyindex(4800)]', 'backendport': 4848, 'enablefloatingip': false}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-11-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'description': 'ssh port', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'minecraft', 'properties': {'description': 'minecraft server port', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '25565', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 101, 'direction': 'inbound'}}]}} 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': '2020-04-01-preview', 'name': ""[variables('roleassignmentname')]"", 'properties': {'roledefinitionid': ""[variables('roledefinitionid')]"", 'principalid': ""[reference(resourceid('microsoft.managedidentity/userassignedidentities', variables('identityname'))).principalid]"", 'principaltype': 'serviceprincipal'}, 'dependson': [""[resourceid('microsoft.managedidentity/userassignedidentities', variables('identityname'))]""]} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/disks', 'apiversion': '2020-12-01', 'name': ""[parameters('diskname')]"", 'location': ""[parameters('location')]"", 'properties': {'creationdata': {'createoption': 'empty'}, 'disksizegb': 200}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('fensgname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'frontendnsg'}, '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'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-07-01', 'name': ""[variables('dbnsgname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'backendnsg'}, 'properties': {'securityrules': [{'name': 'allow_fe', 'properties': {'description': 'allow fe subnet', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '1433', 'sourceaddressprefix': '10.0.0.0/24', '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': 110, 'direction': 'inbound'}}, {'name': 'block_fe', 'properties': {'description': 'block app subnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '10.0.0.0/24', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 121, 'direction': 'inbound'}}, {'name': 'block_internet', 'properties': {'description': 'block internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'deny', 'priority': 200, 'direction': 'outbound'}}]}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups/', variables('fensgname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/', variables('dbnsgname'))]""], 'tags': {'displayname': 'virtualnetwork'}, 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': 'fesubnetname', 'properties': {'addressprefix': ""[variables('fesubnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('fensgname'))]""}}}, {'name': 'dbsubnetname', 'properties': {'addressprefix': ""[variables('dbsubnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('dbnsgname'))]""}}}]}}{'name': ""[variables('sqlpublicip')]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[parameters('location')]"", 'apiversion': '2020-07-01', 'tags': {'displayname': 'sqlpip'}, 'properties': {'publicipallocationmethod': 'dynamic', 'idletimeoutinminutes': 4}}{'name': ""[variables('sqlsrvdbnicname')]"", 'type': 'microsoft.network/networkinterfaces', 'location': ""[parameters('location')]"", 'apiversion': '2020-07-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]""], 'tags': {'displayname': 'sqlsrvdbnic'}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets',variables('virtualnetworkname'),'dbsubnetname')]""}, 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',concat(parameters('envprefixname'),'sqlpip'))]""}}}]}}{'name': ""[variables('websrvpublicip')]"", 'type': 'microsoft.network/publicipaddresses', 'location': ""[parameters('location')]"", 'apiversion': '2020-07-01', 'tags': {'displayname': 'websrvpip for lb'}, 'properties': {'publicipallocationmethod': 'dynamic', 'idletimeoutinminutes': 4, 'dnssettings': {'domainnamelabel': ""[variables('websrvdnsnameforlbip')]""}}}{'apiversion': '2020-07-01', 'name': ""[variables('weblbname')]"", 'type': 'microsoft.network/loadbalancers', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'web lb'}, 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('websrvpublicip'))]""], 'properties': {'frontendipconfigurations': [{'name': 'loadbalancerfrontend', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', concat(parameters('envprefixname'),'websrvpip'))]""}}}], 'backendaddresspools': [{'name': 'backendpool1'}], 'inboundnatrules': [{'name': 'rdp-vm0', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations',variables('weblbname'),'loadbalancerfrontend')]""}, 'protocol': 'tcp', 'frontendport': 50001, 'backendport': 3389, 'enablefloatingip': false}}, {'name': 'rdp-vm1', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations',variables('weblbname'),'loadbalancerfrontend')]""}, 'protocol': 'tcp', 'frontendport': 50002, 'backendport': 3389, 'enablefloatingip': false}}], 'loadbalancingrules': [{'name': 'lbrule', 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations',variables('weblbname'),'loadbalancerfrontend')]""}, 'backendaddresspool': {'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools',variables('weblbname'),'backendpool1')]""}, 'protocol': 'tcp', 'frontendport': 80, 'backendport': 80, 'enablefloatingip': false, 'idletimeoutinminutes': 5, 'probe': {'id': ""[resourceid('microsoft.network/loadbalancers/probes',variables('weblbname'),'tcpprobe')]""}}}], 'probes': [{'name': 'tcpprobe', 'properties': {'protocol': 'tcp', 'port': 80, 'intervalinseconds': 5, 'numberofprobes': 2}}]}}{'name': ""[concat(variables('websrvnicname'), copyindex())]"", 'type': 'microsoft.network/networkinterfaces', 'location': ""[parameters('location')]"", 'apiversion': '2020-07-01', 'copy': {'name': 'nicloop', 'count': ""[variables('websrvnumbofinstances')]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/', variables('weblbname'))]""], 'tags': {'displayname': 'websrvnic'}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), 'fesubnetname')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools',variables('weblbname'),'backendpool1')]""}], 'loadbalancerinboundnatrules': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatrules',variables('weblbname'),concat('rdp-vm',copyindex()))]""}]}}]}} END" +Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('jumpboxsaname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-06-01', 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storagev2'} END" +Create a web app on Azure with Java 13 and Tomcat 9 enabled.," {'apiversion': '2020-06-01', 'name': ""[parameters('hostingplanname')]"", 'type': 'microsoft.web/serverfarms', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'hostingplan'}, 'sku': {'name': ""[parameters('skuname')]"", 'capacity': ""[parameters('skucapacity')]""}, 'properties': {'name': ""[parameters('hostingplanname')]""}}{'apiversion': '2020-06-01', 'name': ""[parameters('websitename')]"", 'type': 'microsoft.web/sites', 'location': ""[parameters('location')]"", 'tags': {""[concat('hidden-related:', resourcegroup().id, '/providers/microsoft.web/serverfarms/', parameters('hostingplanname'))]"": 'resource', 'displayname': 'website'}, 'dependson': [""[resourceid('microsoft.web/serverfarms/', parameters('hostingplanname'))]""], 'properties': {'name': ""[parameters('websitename')]"", 'serverfarmid': ""[resourceid('microsoft.web/serverfarms', parameters('hostingplanname'))]""}, 'resources': [{'apiversion': '2020-06-01', 'name': 'web', 'type': 'config', 'dependson': [""[resourceid('microsoft.web/sites/', parameters('websitename'))]""], 'properties': {'javaversion': '1.8', 'javacontainer': 'tomcat', 'javacontainerversion': '9.0'}}]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-07-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('fensgname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'frontendnsg'}, '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'}}]}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-07-01', 'name': ""[variables('dbnsgname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'backendnsg'}, 'properties': {'securityrules': [{'name': 'allow_fe', 'properties': {'description': 'allow fe subnet', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '1433', 'sourceaddressprefix': '10.0.0.0/24', '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': 110, 'direction': 'inbound'}}, {'name': 'block_fe', 'properties': {'description': 'block app subnet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '10.0.0.0/24', 'destinationaddressprefix': '*', 'access': 'deny', 'priority': 121, 'direction': 'inbound'}}, {'name': 'block_internet', 'properties': {'description': 'block internet', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'internet', 'access': 'deny', 'priority': 200, 'direction': 'outbound'}}]}} END" +This template deploys and Azure Maps account and lists the primary key.," {'name': ""[parameters('accountname')]"", 'type': 'microsoft.maps/accounts', 'apiversion': '2021-02-01', 'location': 'global', 'sku': {'name': ""[parameters('pricingtier')]""}, 'kind': ""[parameters('kind')]""} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'storageaccountvirtualnetworkpublicip', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'comments': 'this resource will create storage accounts for active directory, sql server, file share witness and diagnostics. it will also create the virtual network and public ip addresses', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('configuration').storageaccountvirtualnetworkpublicip]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'sqlstorageaccountname': {'value': ""[parameters('sqlstorageaccountname')]""}, 'dcstorageaccountname': {'value': ""[parameters('dcstorageaccountname')]""}, 'sqlstorageaccounttype': {'value': ""[parameters('sqlstorageaccounttype')]""}, 'dcstorageaccounttype': {'value': ""[parameters('dcstorageaccounttype')]""}, 'primarydcipaddressnamewithsuffix': {'value': ""[variables('primarydcipaddressnamewithsuffix')]""}, 'backupdcipaddressnamewithsuffix': {'value': ""[variables('backupdcipaddressnamewithsuffix')]""}, 'sql1addressnamewithsuffix': {'value': ""[variables('sql1addressnamewithsuffix')]""}, 'sql0addressnamewithsuffix': {'value': ""[variables('sql0addressnamewithsuffix')]""}, 'virtualnetworkname': {'value': ""[variables('virtualnetworknamewithsuffix')]""}, 'virtualnetworkaddressrange': {'value': ""[parameters('virtualnetworkaddressrange')]""}, 'subnets': {'value': ""[variables('subnets')]""}}}}{'name': 'loadbalancers', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'comments': 'create load balancers for sql and dc', 'dependson': ['microsoft.resources/deployments/storageaccountvirtualnetworkpublicip'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('configuration').setuplbsurl]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'sqllbname': {'value': ""[variables('lbsettings').sqllbname]""}, 'sqllbfe': {'value': ""[variables('lbsettings').sqllbfe]""}, 'sqllbipaddress': {'value': ""[parameters('sqllbipaddress')]""}, 'staticsubnetref': {'value': ""[variables('sqlsubnetref')]""}, 'sqllbbe': {'value': ""[variables('lbsettings').sqllbbe]""}, 'sqllbbeid': {'value': ""[variables('derivedids').sqlbeaddresspoolid]""}, 'sqllbfeconfigid': {'value': ""[variables('derivedids').sqllbfeconfigid]""}, 'sqllbprobeid': {'value': ""[variables('derivedids').sqllbprobeid]""}, 'sqlaoprobe': {'value': ""[variables('sqlaoprobe')]""}}}} END" +This template allows you to deploy a Linux VMSS in master slave architecture," {'type': 'microsoft.compute/virtualmachinescalesets', 'sku': {'name': ""[parameters('masternodesku')]"", 'tier': 'standard', 'capacity': ""[parameters('masternodecount')]""}, 'name': ""[concat(variables('vmssname'), '-master-node')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'properties': {'upgradepolicy': {'mode': 'manual'}, 'virtualmachineprofile': {'storageprofile': {'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}, 'imagereference': {'publisher': ""[parameters('osimagepublisher')]"", 'offer': ""[parameters('osimageoffer')]"", 'sku': ""[parameters('osimagesku')]"", 'version': 'latest'}}, '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', variables('vnetname'), variables('subnetmaster'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('masternodeloadbalancername'), variables('masternodeloadbalancerbackendname'))]""}], 'loadbalancerinboundnatpools': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatpools', variables('masternodeloadbalancername'), variables('masternodeloadbalancernatpoolname'))]""}]}}]}}]}, 'extensionprofile': {'extensions': [{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmssname'),'-linuxcustomscriptextension')]"", 'properties': {'publisher': 'microsoft.ostcextensions', 'type': 'customscriptforlinux', 'typehandlerversion': '1.3', 'autoupgrademinorversion': true, 'settings': {'commandtoexecute': 'touch test1.txt'}}}]}}}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', variables('vnetname'))]"", ""[resourceid('microsoft.network/loadbalancers', variables('masternodeloadbalancername'))]""]}{'type': 'microsoft.compute/virtualmachinescalesets', 'sku': {'name': ""[parameters('datanodesku')]"", 'tier': 'standard', 'capacity': ""[parameters('datanodecount')]""}, 'name': ""[concat(variables('vmssname'), '-data-node')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'properties': {'upgradepolicy': {'mode': 'manual'}, 'virtualmachineprofile': {'storageprofile': {'osdisk': {'caching': 'readwrite', 'createoption': 'fromimage'}, 'imagereference': {'publisher': ""[parameters('osimagepublisher')]"", 'offer': ""[parameters('osimageoffer')]"", 'sku': ""[parameters('osimagesku')]"", 'version': 'latest'}}, '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', variables('vnetname'), variables('subnetdata'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('datanodeloadbalancername'), variables('datanodeloadbalancerbackendname'))]""}], 'loadbalancerinboundnatpools': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatpools', variables('datanodeloadbalancername'), variables('datanodeloadbalancernatpoolname'))]""}]}}]}}]}, 'extensionprofile': {'extensions': [{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmssname'),'-linuxcustomscriptextension')]"", 'properties': {'publisher': 'microsoft.ostcextensions', 'type': 'customscriptforlinux', 'typehandlerversion': '1.3', 'autoupgrademinorversion': true, 'settings': {'commandtoexecute': 'touch test2.txt'}}}]}}}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', variables('vnetname'))]"", ""[resourceid('microsoft.network/loadbalancers', variables('datanodeloadbalancername'))]""]} END" +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'}}{'apiversion': '2019-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vmname'), '-nic'))]"", ""[resourceid('microsoft.compute/availabilitysets/', variables('availabilitysetnodes'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('availabilitysetnodes'))]""}, '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'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'), '/configuremaster')]"", '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': {'commandtoexecute': ""[concat(variables('commandprefix'), variables('wgetcommandprefix'), parameters('adminusername'), variables('wgetcommandpostfix'))]""}}} END" +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', 'ipaddress': {'type': 'public', 'dnsnamelabel': ""[parameters('containergroupdnsnamelabel')]"", 'ports': [{'protocol': 'tcp', 'port': 80}]}}} 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.network/networkinterfaces/', variables('nicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", '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': {'createoption': 'fromimage'}, 'datadisks': [{'disksizegb': 1023, 'lun': 0, 'createoption': 'empty', 'caching': 'readwrite'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'), '/customscript')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('script/install.sh', parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'export term=xterm && bash \', \'install.sh -u \', parameters(\'adminemail\'), \' -d \', reference(variables(\'publicipaddressname\')).dnssettings.fqdn, \' -p ""\', parameters(\'adminpass\'), \'""\')]'}}} END" +This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.," {'type': 'microsoft.managedidentity/userassignedidentities', 'apiversion': '2018-11-30', 'name': ""[variables('identityname')]"", 'location': ""[parameters('location')]""} END" +This template deploys a VM Scale Set of Linux VMs with a load balancer health probe and automatic instance repairs enabled.," {'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 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'} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-12-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': {'keyvaultcredentialsettings': {'enable': true, 'credentialname': ""[parameters('sqlcredentialname')]""}}, 'protectedsettings': {'privatekeyvaultcredentialsettings': {'azurekeyvaulturl': ""[variables('sqlakvurl')]"", 'serviceprincipalname': ""[parameters('serviceprincipalname')]"", 'serviceprincipalsecret': ""[parameters('serviceprincipalsecret')]""}}}} 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.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'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'apiversion': '2020-12-01', 'name': ""[concat(variables('vmname'),'/newuserscript')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'protectedsettings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/tomcat-setup-ubuntu.sh', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': ""[concat('sh tomcat-setup-ubuntu.sh',' ',parameters('adminusername'),' ',parameters('tomcatusername'),' ',parameters('tomcatpassword'),' ',parameters('sshpassphrase'))]""}}} 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'}} 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': ""[variables('hostingplanname')]"", 'location': ""[parameters('location')]"", 'sku': {'tier': 'standard', 'name': 's1'}, 'properties': {'name': ""[variables('hostingplanname')]"", 'workersize': '1', 'reserved': true, 'numberofworkers': 1}}{'comments': 'airflow lauched based on the latest docker image of apache/airflow.', 'type': 'microsoft.web/sites', 'apiversion': '2018-11-01', 'name': ""[parameters('airflowwebappname')]"", 'location': ""[parameters('location')]"", 'resources': [{'comments': 'this are the generated settings for the airflow web app', 'type': 'config', 'apiversion': '2019-08-01', 'name': 'appsettings', 'dependson': [""[resourceid('microsoft.web/sites', parameters('airflowwebappname'))]""], 'tags': {'displayname': 'airflow app settings'}, 'properties': {'airflow__core__sql_alchemy_conn': ""[concat('postgresql://', parameters('administratorlogin'), '@', reference(resourceid('microsoft.dbforpostgresql/servers',variables('servername'))).fullyqualifieddomainname,':', parameters('administratorloginpassword'),'@',reference(resourceid('microsoft.dbforpostgresql/servers',variables('servername'))).fullyqualifieddomainname,':5432/',variables('databasename'))]"", 'airflow__core__sql_alchemy_pool_size': 20, 'airflow__core__load_examples': 'true', 'airflow__core__executor': 'localexecutor', 'websites_enable_app_service_storage': 'true'}}], 'dependson': [""[resourceid('microsoft.web/serverfarms', variables('hostingplanname'))]""], 'properties': {'serverfarmid': ""[resourceid('microsoft.web/serverfarms', variables('hostingplanname'))]"", 'name': ""[parameters('airflowwebappname')]"", 'siteconfig': {'linuxfxversion': 'docker|puckel/docker-airflow:latest', 'requesttracingenabled': true, 'httploggingenabled': true, 'detailederrorloggingenabled': true, 'autohealenabled': true}, 'httpsonly': true}} END" +Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('vhdstorageaccountname')]"", 'apiversion': '2021-02-01', 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storage'} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'pid-5be41579-bb97-4721-93ac-50df29f8ce66-partnercenter', 'properties': {'mode': 'incremental', 'template': {'$schema': 'https://schema.management.azure.com/schemas/2015-01-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'resources': []}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'bastionvmdeployment', 'dependson': [""[resourceid('microsoft.storage/storageaccounts', variables('diagstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces', concat(variables('bastionhostname'), '-nic'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('clusternodedeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'sshkeypath': {'value': ""[variables('sshkeypath')]""}, 'sshpublickey': {'value': ""[parameters('sshpublickey')]""}, 'datadisksize': {'value': ""[parameters('datadisksize')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'vmsize': {'value': ""[parameters('bastionvmsize')]""}, 'hostname': {'value': ""[variables('bastionhostname')]""}, 'role': {'value': 'bootnode'}, 'vmstoragetype': {'value': 'premium_lrs'}, 'diagstorageaccount': {'value': ""[variables('diagstorageaccountname')]""}, 'imagereference': {'value': ""[variables('imagereference')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'openshiftdeployment', 'dependson': ['bastionvmdeployment'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('openshiftdeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'_artifactslocation': {'value': ""[uri(parameters('_artifactslocation'), '.')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}, 'location': {'value': ""[parameters('location')]""}, 'openshiftdeploymentscripturl': {'value': ""[variables('openshiftdeploymentscripturl')]""}, 'openshiftdeploymentscriptfilename': {'value': ""[variables('openshiftdeploymentscriptfilename')]""}, 'masterinstancecount': {'value': ""[parameters('masterinstancecount')]""}, 'workerinstancecount': {'value': ""[parameters('workerinstancecount')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'openshiftusername': {'value': ""[parameters('openshiftusername')]""}, 'openshiftpassword': {'value': ""[parameters('openshiftpassword')]""}, 'aadclientid': {'value': ""[parameters('aadclientid')]""}, 'aadclientsecret': {'value': ""[parameters('aadclientsecret')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}, 'sshpublickey': {'value': ""[parameters('sshpublickey')]""}, 'pullsecret': {'value': ""[parameters('pullsecret')]""}, 'virtualnetworkname': {'value': ""[parameters('virtualnetworkname')]""}, 'virtualnetworkcidr': {'value': ""[parameters('virtualnetworkcidr')[0]]""}, 'pxspecurl': {'value': ""[parameters('pxspecurl')]""}, 'storageoption': {'value': ""[parameters('storageoption')]""}, 'bastionhostname': {'value': ""[variables('bastionhostname')]""}, 'nfsipaddress': {'value': ""[if(equals(parameters('storageoption'), 'nfs'),reference(resourceid('microsoft.network/networkinterfaces', concat(variables('nfshostname'), '-nic'))).ipconfigurations[0].properties.privateipaddress, '')]""}, 'singlezoneormultizone': {'value': ""[parameters('singlezoneormultizone')]""}, 'dnszone': {'value': ""[parameters('dnszone')]""}, 'dnszonerg': {'value': ""[parameters('dnszonerg')]""}, 'masterinstancetype': {'value': ""[parameters('mastervmsize')]""}, 'workerinstancetype': {'value': ""[parameters('workervmsize')]""}, 'clustername': {'value': ""[parameters('clustername')]""}, 'networkresourcegroup': {'value': ""[variables('networkresourcegroup')]""}, 'mastersubnetname': {'value': ""[parameters('mastersubnetname')]""}, 'workersubnetname': {'value': ""[parameters('workersubnetname')]""}, 'enablefips': {'value': ""[parameters('enablefips')]""}, 'privateorpublic': {'value': ""[if(equals(parameters('privateorpublicendpoints'), 'private'), 'internal', 'external')]""}, 'enableautoscaler': {'value': ""[parameters('enableautoscaler')]""}, 'outboundtype': {'value': ""[parameters('outboundtype')]""}, 'existingresourcegroupname': {'value': ""[parameters('clusterresourcegroupname')]""}}}}{'condition': ""[equals(parameters('storageoption'), 'ocs')]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'ocsdeployment', 'dependson': ['openshiftdeployment', ""[variables('deployopenshiftext')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('installocsdeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'installocsimagesscripturl': {'value': ""[variables('installocsdeploymentscripturl')]""}, 'installocsscriptfilename': {'value': ""[variables('installocsscriptfilename')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'bastionhostname': {'value': ""[variables('bastionhostname')]""}, 'location': {'value': ""[parameters('location')]""}, 'openshiftusername': {'value': ""[parameters('openshiftusername')]""}, 'openshiftpassword': {'value': ""[parameters('openshiftpassword')]""}, 'clustername': {'value': ""[parameters('clustername')]""}, 'domainname': {'value': ""[parameters('dnszone')]""}, 'singlezoneormultizone': {'value': ""[parameters('singlezoneormultizone')]""}, 'resourcegroupname': {'value': '[resourcegroup().name]'}, 'virtualnetworkname': {'value': ""[parameters('virtualnetworkname')]""}, 'workersubnetname': {'value': ""[parameters('workersubnetname')]""}}}}{'condition': ""[equals(parameters('storageoption'), 'nfs')]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'nfsvmdeployment', 'dependson': [""[resourceid('microsoft.storage/storageaccounts', variables('diagstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces', concat(variables('nfshostname'), '-nic'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('clusternodedeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'sshkeypath': {'value': ""[variables('sshkeypath')]""}, 'sshpublickey': {'value': ""[parameters('sshpublickey')]""}, 'datadisksize': {'value': ""[parameters('datadisksize')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'vmsize': {'value': ""[variables('nfsvmsize')]""}, 'hostname': {'value': ""[variables('nfshostname')]""}, 'role': {'value': 'datanode'}, 'vmstoragetype': {'value': 'premium_lrs'}, 'diagstorageaccount': {'value': ""[variables('diagstorageaccountname')]""}, 'imagereference': {'value': ""[variables('imagereference')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}}}}{'condition': ""[equals(parameters('cloudpaklicenseagreement'), 'accept')]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'cloudpaklitedeployment', 'dependson': ['nfsvmdeployment', 'openshiftdeployment', ""[variables('deployopenshiftext')]"", 'ocsdeployment'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('cloudpakdeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'assembly': {'value': 'lite'}, 'cloudpakdeploymentscripturl': {'value': ""[variables('cloudpakdeploymentscripturl')]""}, 'cloudpakdeploymentscriptfilename': {'value': ""[variables('cloudpakdeploymentscriptfilename')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'ocuser': {'value': ""[parameters('openshiftusername')]""}, 'ocpassword': {'value': ""[parameters('openshiftpassword')]""}, 'storageoption': {'value': ""[parameters('storageoption')]""}, 'bastionhostname': {'value': ""[variables('bastionhostname')]""}, 'projectname': {'value': ""[parameters('projectname')]""}, 'location': {'value': ""[parameters('location')]""}, 'clustername': {'value': ""[parameters('clustername')]""}, 'domainname': {'value': ""[parameters('dnszone')]""}, 'apikey': {'value': ""[parameters('apikey')]""}, 'subscriptionchannel': {'value': 'v2.0'}, 'version': {'value': '4.0.5'}}}}{'condition': ""[and(equals(parameters('cloudpaklicenseagreement'), 'accept'), or(equals(parameters('installwatsonstudiolocal'), 'yes'),equals(parameters('installwatsonknowledgecatalog'), 'yes'),equals(parameters('installwatsonmachinelearning'), 'yes'),equals(parameters('installdatavirtualization'), 'yes'),equals(parameters('installcognosdashboard'), 'yes')))]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'cloudpakccsdeployment', 'dependson': ['nfsvmdeployment', 'openshiftdeployment', ""[variables('deployopenshiftext')]"", 'cloudpaklitedeployment', 'ocsdeployment'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('cloudpakdeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'assembly': {'value': 'lite'}, 'cloudpakdeploymentscripturl': {'value': ""[variables('cloudpakccsscripturl')]""}, 'cloudpakdeploymentscriptfilename': {'value': ""[variables('cloudpakccsscriptfilename')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'ocuser': {'value': ""[parameters('openshiftusername')]""}, 'ocpassword': {'value': ""[parameters('openshiftpassword')]""}, 'storageoption': {'value': ""[parameters('storageoption')]""}, 'bastionhostname': {'value': ""[variables('bastionhostname')]""}, 'projectname': {'value': ""[parameters('projectname')]""}, 'location': {'value': ""[parameters('location')]""}, 'clustername': {'value': ""[parameters('clustername')]""}, 'domainname': {'value': ""[parameters('dnszone')]""}, 'apikey': {'value': ""[parameters('apikey')]""}, 'subscriptionchannel': {'value': 'v1.0'}, 'version': {'value': '4.0.5'}}}}{'condition': ""[and(equals(parameters('cloudpaklicenseagreement'), 'accept'),or(equals(parameters('installdatavirtualization'), 'yes'),equals(parameters('installwatsonknowledgecatalog'), 'yes')))]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'cloudpakdb2udeployment', 'dependson': ['nfsvmdeployment', 'openshiftdeployment', ""[variables('deployopenshiftext')]"", 'cloudpakccsdeployment', 'ocsdeployment'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('cloudpakdeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'assembly': {'value': 'lite'}, 'cloudpakdeploymentscripturl': {'value': ""[variables('cloudpakdb2uscripturl')]""}, 'cloudpakdeploymentscriptfilename': {'value': ""[variables('cloudpakdb2uscriptfilename')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'ocuser': {'value': ""[parameters('openshiftusername')]""}, 'ocpassword': {'value': ""[parameters('openshiftpassword')]""}, 'storageoption': {'value': ""[parameters('storageoption')]""}, 'bastionhostname': {'value': ""[variables('bastionhostname')]""}, 'projectname': {'value': ""[parameters('projectname')]""}, 'location': {'value': ""[parameters('location')]""}, 'clustername': {'value': ""[parameters('clustername')]""}, 'domainname': {'value': ""[parameters('dnszone')]""}, 'apikey': {'value': ""[parameters('apikey')]""}, 'subscriptionchannel': {'value': 'v1.0'}, 'version': {'value': '4.0.5'}}}}{'condition': ""[and(equals(parameters('cloudpaklicenseagreement'), 'accept'),equals(parameters('installwatsonknowledgecatalog'), 'yes'))]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'cloudpakdb2aaservicedeployment', 'dependson': ['nfsvmdeployment', 'openshiftdeployment', ""[variables('deployopenshiftext')]"", 'cloudpakdb2udeployment', 'ocsdeployment'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('cloudpakdeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'assembly': {'value': 'lite'}, 'cloudpakdeploymentscripturl': {'value': ""[variables('cloudpakdb2aaservicescripturl')]""}, 'cloudpakdeploymentscriptfilename': {'value': ""[variables('cloudpakdb2aaservicescriptfilename')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'ocuser': {'value': ""[parameters('openshiftusername')]""}, 'ocpassword': {'value': ""[parameters('openshiftpassword')]""}, 'storageoption': {'value': ""[parameters('storageoption')]""}, 'bastionhostname': {'value': ""[variables('bastionhostname')]""}, 'projectname': {'value': ""[parameters('projectname')]""}, 'location': {'value': ""[parameters('location')]""}, 'clustername': {'value': ""[parameters('clustername')]""}, 'domainname': {'value': ""[parameters('dnszone')]""}, 'apikey': {'value': ""[parameters('apikey')]""}, 'subscriptionchannel': {'value': 'v1.0'}, 'version': {'value': '4.0.5'}}}}{'condition': ""[and(equals(parameters('cloudpaklicenseagreement'), 'accept'), equals(parameters('installdatavirtualization'), 'yes'))]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'cloudpakdmcdeployment', 'dependson': ['nfsvmdeployment', 'openshiftdeployment', ""[variables('deployopenshiftext')]"", 'cloudpakdb2aaservicedeployment', 'ocsdeployment'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('cloudpakdeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'assembly': {'value': 'lite'}, 'cloudpakdeploymentscripturl': {'value': ""[variables('cloudpakdmcscripturl')]""}, 'cloudpakdeploymentscriptfilename': {'value': ""[variables('cloudpakdmcscriptfilename')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'ocuser': {'value': ""[parameters('openshiftusername')]""}, 'ocpassword': {'value': ""[parameters('openshiftpassword')]""}, 'storageoption': {'value': ""[parameters('storageoption')]""}, 'bastionhostname': {'value': ""[variables('bastionhostname')]""}, 'projectname': {'value': ""[parameters('projectname')]""}, 'location': {'value': ""[parameters('location')]""}, 'clustername': {'value': ""[parameters('clustername')]""}, 'domainname': {'value': ""[parameters('dnszone')]""}, 'apikey': {'value': ""[parameters('apikey')]""}, 'subscriptionchannel': {'value': 'v1.0'}, 'version': {'value': '4.0.5'}}}}{'condition': ""[and(equals(parameters('cloudpaklicenseagreement'), 'accept'), equals(parameters('installdatavirtualization'), 'yes'))]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'cloudpakdvdeployment', 'dependson': ['nfsvmdeployment', 'openshiftdeployment', ""[variables('deployopenshiftext')]"", 'cloudpakdmcdeployment', 'ocsdeployment'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('cloudpakdeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'assembly': {'value': 'dv'}, 'cloudpakdeploymentscripturl': {'value': ""[variables('cloudpakdvscripturl')]""}, 'cloudpakdeploymentscriptfilename': {'value': ""[variables('cloudpakdvscriptfilename')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'ocuser': {'value': ""[parameters('openshiftusername')]""}, 'ocpassword': {'value': ""[parameters('openshiftpassword')]""}, 'storageoption': {'value': ""[parameters('storageoption')]""}, 'bastionhostname': {'value': ""[variables('bastionhostname')]""}, 'projectname': {'value': ""[parameters('projectname')]""}, 'location': {'value': ""[parameters('location')]""}, 'clustername': {'value': ""[parameters('clustername')]""}, 'domainname': {'value': ""[parameters('dnszone')]""}, 'apikey': {'value': ""[parameters('apikey')]""}, 'subscriptionchannel': {'value': 'v1.7'}, 'version': {'value': '1.7.5'}}}}{'condition': ""[and(equals(parameters('cloudpaklicenseagreement'), 'accept'), equals(parameters('installcognosdashboard'), 'yes'))]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2021-04-01', 'name': 'cloudpakcdedeployment', 'dependson': ['nfsvmdeployment', 'openshiftdeployment', ""[variables('deployopenshiftext')]"", 'cloudpakdvdeployment', 'ocsdeployment'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('cloudpakdeploymenttemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'assembly': {'value': 'cde'}, 'cloudpakdeploymentscripturl': {'value': ""[variables('cloudpakcdescripturl')]""}, 'cloudpakdeploymentscriptfilename': {'value': ""[variables('cloudpakcdescriptfilename')]""}, 'redhattags': {'value': ""[variables('redhattags')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'ocuser': {'value': ""[parameters('openshiftusername')]""}, 'ocpassword': {'value': ""[parameters('openshiftpassword')]""}, 'storageoption': {'value': ""[parameters('storageoption')]""}, 'bastionhostname': {'value': ""[variables('bastionhostname')]""}, 'projectname': {'value': ""[parameters('projectname')]""}, 'location': {'value': ""[parameters('location')]""}, 'clustername': {'value': ""[parameters('clustername')]""}, 'domainname': {'value': ""[parameters('dnszone')]""}, 'apikey': {'value': ""[parameters('apikey')]""}, 'subscriptionchannel': {'value': 'v1.0'}, 'version': {'value': '4.0.5'}}}} END" +Storage Account with Storage Service Encryption and a blob deletion retention policy," {'apiversion': '2021-01-01', 'type': 'microsoft.storage/storageaccounts', 'name': ""[parameters('storageaccountnameprefix')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}} 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': [""[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]""}}} 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': '*'}}]}} END" +"Creates a Event Hub cluster, namesapce and eventhub in the cluster"," {'type': 'microsoft.eventhub/clusters', 'apiversion': '2018-01-01-preview', 'name': ""[parameters('clustername')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'dedicated', 'capacity': 1}}{'type': 'microsoft.eventhub/namespaces', 'apiversion': '2021-01-01-preview', 'name': ""[parameters('namespacename')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard', 'tier': 'standard', 'capacity': 1}, 'dependson': [""[resourceid('microsoft.eventhub/clusters', parameters('clustername'))]""], 'properties': {'isautoinflateenabled': false, 'maximumthroughputunits': 0, 'clusterarmid': ""[resourceid('microsoft.eventhub/clusters', parameters('clustername'))]""}}{'apiversion': '2021-01-01-preview', 'type': 'microsoft.eventhub/namespaces/eventhubs', 'name': ""[concat(parameters('namespacename'), '/', parameters('eventhubname'))]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.eventhub/namespaces', parameters('namespacename'))]""], 'properties': {'messageretentionindays': 7, 'partitioncount': 1}} 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')]""}}}}{'apiversion': '2020-10-01', 'name': 'on_prem_alerts', 'type': 'microsoft.resources/deployments', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nestedtemplates').on_prem_alerts]"", 'contentversion': '1.0.0.0'}, 'parameters': {'workspacename': {'value': ""[parameters('workspacename')]""}}}} END" +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'}}}} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'createadcontroller', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': 'https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/modules/active-directory-new-domain/0.9/azuredeploy.json', 'contentversion': '1.0.0.0'}, 'parameters': {'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'domainname': {'value': ""[parameters('domainname')]""}, 'dnsprefix': {'value': ""[parameters('dnsprefix')]""}, 'location': {'value': ""[parameters('location')]""}}}} 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('dnsnameforpublicip')]""}}} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-01-01', 'name': ""[variables('storageaccount')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs', 'tier': 'standard'}, 'kind': 'storage', 'properties': {'networkacls': {'bypass': 'azureservices', 'defaultaction': 'allow'}, 'supportshttpstrafficonly': false, 'encryption': {'services': {'file': {'enabled': true}, 'blob': {'enabled': true}}, 'keysource': 'microsoft.storage'}}} 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')]""}}]}} END" +This template creates an Azure Traffic Manager profile that provides an App Service behind it," {'type': 'microsoft.network/trafficmanagerprofiles', 'apiversion': '2018-08-01', 'name': ""[parameters('trafficmanagername')]"", 'location': 'global', 'properties': {'profilestatus': 'enabled', 'trafficroutingmethod': 'priority', 'dnsconfig': {'relativename': ""[parameters('uniquednsname')]"", 'ttl': 30}, 'monitorconfig': {'protocol': 'https', 'port': 443, 'path': '/'}, 'endpoints': [{'name': ""[parameters('uniquednsnameforwebapp')]"", 'type': 'microsoft.network/trafficmanagerprofiles/azureendpoints', 'properties': {'targetresourceid': ""[resourceid('microsoft.web/sites', parameters('uniquednsnameforwebapp'))]"", 'endpointstatus': 'enabled'}}]}, 'dependson': [""[resourceid('microsoft.web/sites', parameters('uniquednsnameforwebapp'))]""]} 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" +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')]""}}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-06-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'default-allow-3389', 'properties': {'priority': 1000, 'access': 'allow', 'direction': 'inbound', 'destinationportrange': '3389', 'protocol': 'tcp', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*'}}]}}{'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-06-01', 'name': ""[variables('vnetname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('vnetaddressprefix')]""]}, 'subnets': [{'name': ""[variables('vnetsubnetname')]"", 'properties': {'addressprefix': ""[variables('vnetsubnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}, 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""]}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2020-06-01', 'name': ""[variables('networkinterfacename')]"", 'location': ""[parameters('location')]"", 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}, 'subnet': {'id': ""[format('{0}/subnets/{1}', resourceid('microsoft.network/virtualnetworks', variables('vnetname')), variables('vnetsubnetname'))]""}}}]}, 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('vnetname'))]""]} END" +Deploy a Virtual Machine with Custom Data," {'apiversion': '2016-04-30-preview', '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(parameters('customdata'))]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[parameters('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('storageaccountname'), variables('apiversion')).primaryendpoints['blob']]""}}}} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'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'))]""]} 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 module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'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(variables('vmname'),copyindex())]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/',variables('newstorageaccountname'))]"", ""[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('vmsizefrontend')]""}, 'osprofile': {'computername': ""[concat(variables('vmname'),copyindex())]"", '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(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('nicname'),copyindex()))]""}]}}, 'copy': {'name': 'virtualmachinescopy', 'count': ""[parameters('vmcountfrontend')]""}}{'type': 'microsoft.compute/availabilitysets', 'name': ""[concat(variables('availabilitysetname'),'db')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmname'),'db')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/',variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/',concat(variables('nicname'),'db'))]"", ""[resourceid('microsoft.compute/availabilitysets/',concat(variables('availabilitysetname'),'db'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',concat(variables('availabilitysetname'),'db'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsizedb')]""}, 'osprofile': {'computername': ""[concat(variables('vmname'),'db')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[variables('imagepublisher')]"", 'offer': ""[variables('imageoffer')]"", 'sku': ""[variables('osversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),'db','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('nicname'),'db'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'),'db','/customscriptextension')]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/',concat(variables('vmname'),'db'))]""], 'properties': {'publisher': 'microsoft.compute', 'type': 'customscriptextension', 'typehandlerversion': '1.4', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat(variables('installscriptname'), parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[variables('installcommand')]""}}} 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/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnet1name')]"", 'properties': {'addressprefix': ""[variables('subnet1prefix')]""}}]}} 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'))]""}}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'apiversion': '2020-06-01', 'name': ""[variables('fsavsetname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 20}}{'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-06-01', 'name': ""[concat(variables('vmname'), '-', copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'vmloop', 'count': ""[variables('fsvmcount')]""}, 'dependson': ['nicloop', ""[resourceid('microsoft.compute/availabilitysets', variables('fsavsetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', variables('fsavsetname'))]""}, 'hardwareprofile': {'vmsize': ""[variables('fsvmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmname'), '-', 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('vmname'), '-', copyindex(), '-osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'premium_lrs'}}, 'copy': [{'name': 'datadisks', 'count': ""[variables('fsvmdatadisks')]"", 'input': {'lun': ""[copyindex('datadisks')]"", 'createoption': 'empty', 'disksizegb': ""[variables('fsdisksize')]""}}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('fsnicname'), '-', copyindex()))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'apiversion': '2020-06-01', 'name': ""[concat(variables('vmname'), '-', copyindex(), '/', variables('cseextname'))]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'cseloop', 'count': ""[variables('fsvmcount')]""}, 'dependson': ['vmloop'], 'properties': {'publisher': ""[variables('cseextpublisher')]"", 'type': ""[variables('cseextname')]"", 'typehandlerversion': ""[variables('cseextversion')]"", 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('cseextscript')]""], 'commandtoexecute': ""[concat(variables('cseextcall'))]""}}} END" +This template creates a data collection rule defining the data source (Syslog) and the destination workspace.," {'type': 'microsoft.insights/diagnosticsettings', 'apiversion': '2021-05-01-preview', 'scope': ""[format('microsoft.keyvault/vaults/{0}', parameters('keyvaultname'))]"", 'name': 'service', 'properties': {'storageaccountid': ""[resourceid('microsoft.storage/storageaccounts', variables('diagnosticstorageaccountname'))]"", 'logs': [{'category': 'auditevent', 'enabled': true, 'retentionpolicy': {'enabled': true, 'days': ""[parameters('logsretentionindays')]""}}]}, 'dependson': [""[resourceid('microsoft.keyvault/vaults', parameters('keyvaultname'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('diagnosticstorageaccountname'))]""]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'condition': ""[equals(parameters('vmandloadbalancerexposure'),'public')]"", 'apiversion': '2020-04-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(variables('publicipaddressnamevm'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'interfaceloop', 'count': ""[variables('numberofinstances')]""}, 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[concat(parameters('dnslabelforvmip'), copyindex())]""}}}{'condition': ""[empty(parameters('existingsubnetname'))]"", 'apiversion': '2020-04-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('vnetaddressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[parameters('subnetprefix')]""}}]}}{'condition': ""[equals(parameters('vmandloadbalancerexposure'),'public')]"", 'comments': 'only created if network interfaces are to be publicly exposed. otherwise the next resource is created.', 'apiversion': '2020-04-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat('public',variables('nicname'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'nicloop', 'count': ""[variables('numberofinstances')]""}, 'dependson': [""[concat('microsoft.network/publicipaddresses/', variables('publicipaddressnamevm'), copyindex())]"", ""[concat('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]"", ""[concat('microsoft.resources/deployments/', variables('solaceloadbalancername'))]""], 'properties': {'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', parameters('securitygroupname'))]""}, 'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', concat(variables('publicipaddressnamevm'), copyindex()))]""}, 'subnet': {'id': ""[variables('subnetref')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[variables('lbpoolid')]""}]}}]}} 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('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')]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('nicname'),'db')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/',variables('publicdbipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/',variables('virtualnetworkname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfigdb', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('publicdbipaddressname'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnetnamedb'))]""}}}]}} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2019-06-01', 'name': ""[variables('diagstorageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('storageaccounttype')]""}, 'kind': 'storagev2'} END" +Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('storageaccountname')]"", 'apiversion': '2020-08-01-preview', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage', 'properties': {}} END" +This template creates an Azure API for FHIR®.," {'type': 'microsoft.healthcareapis/services', 'apiversion': '2020-03-15', 'name': ""[parameters('servicename')]"", 'location': ""[parameters('location')]"", 'kind': 'fhir-r4', 'properties': {'authenticationconfiguration': {'audience': ""[concat('https://', parameters('servicename'), '.azurehealthcareapis.com')]"", 'authority': '[uri(environment().authentication.loginendpoint, subscription().tenantid)]'}}} 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()))]""}]}}]}}{'apiversion': '2019-08-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicsql')]"", 'location': ""[parameters('location')]"", 'dependson': ['vnet', ""[resourceid('microsoft.network/networksecuritygroups', 'vmsql')]""], 'properties': {'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups','vmsql')]""}, 'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', 'vmsqlip')]""}, 'subnet': {'id': ""[variables('subnet-id')]""}}}]}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetname')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'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(variables('vmname'),copyindex())]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/',variables('storageaccountname'))]"", ""[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('vmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmname'),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('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('nicname'),copyindex()))]""}]}}, 'copy': {'name': 'virtualmachinescopy', 'count': ""[parameters('webvmcount')]""}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(concat(variables('vmname'),copyindex()),'/newuserscript')]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/',concat(variables('vmname'),copyindex()))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat(variables('installfrontendscriptname'), parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[variables('installfrontendcommand')]""}}, 'copy': {'name': 'extensionscopy', 'count': ""[parameters('webvmcount')]""}} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'vnet', 'type': 'microsoft.resources/deployments', 'apiversion': '2019-09-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('vnettemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'virtualnetworkname': {'value': ""[variables('virtualnetworkname')]""}, 'virtualnetworkaddressrange': {'value': ""[variables('virtualnetworkaddressrange')]""}, 'subnetname': {'value': ""[variables('adsubnetname')]""}, 'subnetrange': {'value': ""[variables('adsubnet')]""}}}}{'name': 'updatevnetdns1', 'type': 'microsoft.resources/deployments', 'apiversion': '2019-09-01', 'dependson': ['createadforest'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('vnetwithdnstemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'virtualnetworkname': {'value': ""[variables('virtualnetworkname')]""}, 'virtualnetworkaddressrange': {'value': ""[variables('virtualnetworkaddressrange')]""}, 'subnetname': {'value': ""[variables('adsubnetname')]""}, 'subnetrange': {'value': ""[variables('adsubnet')]""}, 'dnsserveraddress': {'value': [""[variables('adpdcnicipaddress')]""]}}}}{'name': 'updatebdcnic', 'type': 'microsoft.resources/deployments', 'apiversion': '2019-09-01', 'dependson': [""[variables('adbdcnicname')]"", 'updatevnetdns1'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nictemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'nicname': {'value': ""[variables('adbdcnicname')]""}, 'ipconfigurations': {'value': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[variables('adbdcnicipaddress')]"", 'subnet': {'id': ""[variables('adsubnetref')]""}, 'loadbalancerbackendaddresspools': [{'id': ""[variables('adbeaddresspoolid')]""}], 'loadbalancerinboundnatrules': [{'id': ""[variables('adbdcrdpnatruleid')]""}]}}]}, 'dnsservers': {'value': [""[variables('adpdcnicipaddress')]""]}}}}{'name': 'configuringbackupaddomaincontroller', 'type': 'microsoft.resources/deployments', 'apiversion': '2019-09-01', 'dependson': [""[resourceid('microsoft.compute/virtualmachines/extensions', variables('adbdcvmname'),'preparebdc')]"", ""[resourceid('microsoft.resources/deployments', 'updatebdcnic')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('configureadbdctemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'adbdcvmname': {'value': ""[variables('adbdcvmname')]""}, 'location': {'value': ""[parameters('location')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'domainname': {'value': ""[parameters('domainname')]""}, 'adbdcconfigurationfunction': {'value': ""[variables('adbdcconfigurationfunction')]""}, 'adbdcconfigurationmodulesurl': {'value': ""[variables('adbdcconfigurationmodulesurl')]""}}}} 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')]""}}} 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')]""}}}{'apiversion': '2020-07-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('tappublicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[variables('tapdnslabelprefix')]""}}}{'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': '*'}}]}} END" +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')]""}}}}{'apiversion': '2019-10-01', 'type': 'microsoft.resources/deployments', 'name': ""[variables('solaceloadbalancername')]"", 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('loadbalancersharedtemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'vmandloadbalancerexposure': {'value': ""[parameters('vmandloadbalancerexposure')]""}, 'dnslabelforpublicloadbalancer': {'value': ""[parameters('dnslabelforpublicloadbalancer')]""}, 'publicipaddressnamelb': {'value': ""[variables('publicipaddressnamelb')]""}, 'publicipaddresstype': {'value': ""[variables('publicipaddresstype')]""}, 'lbname': {'value': ""[variables('lbname')]""}, 'lbpoolname': {'value': ""[variables('lbpoolname')]""}, 'subnetref': {'value': ""[variables('subnetref')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'condition': ""[not(empty(parameters('workspacename')))]"", 'apiversion': '2019-10-01', 'type': 'microsoft.resources/deployments', 'name': ""[variables('solaceworkspacename')]"", 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('workspaceenabledsharedtemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'workspacename': {'value': ""[parameters('workspacename')]""}, 'workspaceregion': {'value': ""[parameters('workspaceregion')]""}}}}{'apiversion': '2019-10-01', 'name': ""[variables('solaceupdatesubnetname')]"", 'type': 'microsoft.resources/deployments', 'dependson': [""[concat('microsoft.resources/deployments/', variables('solacesecuritytemplatename'))]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('updatesubnetsharedtemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'virtualnetworkname': {'value': ""[variables('virtualnetworkname')]""}, 'subnetname': {'value': ""[variables('subnetname')]""}, 'subnetaddressprefix': {'value': ""[reference(resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnetname')), '2018-03-01').addressprefix]""}, 'nsgid': {'value': ""[resourceid('microsoft.network/networksecuritygroups', parameters('securitygroupname'))]""}, 'location': {'value': ""[parameters('location')]""}}}} END" +This template deploys a VM Scale Set of Windows VMs with incoming web connections balanced by the Azure Application Gateway," {'type': 'microsoft.compute/virtualmachinescalesets', 'name': ""[variables('naminginfix')]"", 'location': ""[parameters('location')]"", 'apiversion': '2016-04-30-preview', '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('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'))]""}, 'applicationgatewaybackendaddresspools': [{'id': ""[resourceid('microsoft.network/applicationgateways/backendaddresspools/', variables('appgwname'), variables('appgwbepoolname'))]""}]}}]}}]}}}} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('storageaccountdiagnostics')]"", 'apiversion': '2021-02-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}}{'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('storageaccountvms')]"", 'apiversion': '2021-02-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'premium_lrs'}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-11-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-11-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-11-01', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('cfnetworksecuritygroup')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'cf-https', 'properties': {'description': 'allow cf-https', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}, {'name': 'cf-log', 'properties': {'description': 'allow cf-log', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '4443', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 201, 'direction': 'inbound'}}, {'name': 'cf-http', 'properties': {'description': 'allow cf-http', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 202, 'direction': 'inbound'}}, {'name': 'cf-ssh', 'properties': {'description': 'allow cf-ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '2222', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 203, 'direction': 'inbound'}}]}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[concat(parameters('vmname'), '-devbox')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[concat(tolower(parameters('vmname')), '-', uniquestring(resourcegroup().id))]""}}}{'apiversion': '2020-11-01', '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('subnetnameforcloudfoundry')]"", 'properties': {'addressprefix': ""[variables('subnetaddressrangeforcloudfoundry')]""}}]}} 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', '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'}} 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': {}} 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('nsgnamecl')]""}, '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('nsgnamecl')]""}}}}{'apiversion': '2017-05-10', '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': ""[concat(parameters('_artifactslocation'), '/shared/newpip.json', parameters('_artifactslocationsastoken'))]"", 'contentversion': '1.0.0.0'}, 'parameters': {'publicipname': {'value': ""[concat(variables('publicipnamecl'), '-', copyindex())]""}, 'publicipaddresstype': {'value': 'dynamic'}}}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'condition': ""[empty(parameters('subnetid'))]"", 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-04-01', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': ""[variables('selectedsecurityrules')]""}}{'condition': ""[empty(parameters('subnetid'))]"", 'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-04-01', 'name': ""[variables('vnetname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('nsgname'))]""], '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'))]""}}}]}}{'condition': ""[empty(parameters('subnetid'))]"", 'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-04-01', 'name': ""[concat(variables('fspublicipname'), '-', copyindex())]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('vnetname'))]""], 'location': ""[parameters('location')]"", 'copy': {'name': 'piploop', 'count': ""[variables('fsvmcount')]""}, 'properties': {'publicipallocationmethod': 'dynamic'}}{'condition': ""[variables('needslb')]"", 'type': 'microsoft.network/loadbalancers', 'apiversion': '2020-04-01', 'name': ""[variables('fsloadbalancername')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('vnetname'))]""], 'properties': {'frontendipconfigurations': ""[variables('frontendipconfigurations').frontendipconfigurations]"", 'backendaddresspools': ""[variables('backendaddresspools').backendaddresspools]"", 'loadbalancingrules': ""[variables('loadbalancingrules')]"", 'probes': ""[variables('probes').probes]""}} END" +Extend existing VNET to Multi-VNET," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-11-01', 'name': ""[variables('vnetname')]"", 'location': ""[parameters('vnetlocation')]"", 'properties': {'addressspace': {'addressprefixes': ['10.0.0.0/16']}, 'subnets': [{'name': ""[concat(variables('vnetname'),'-subnet')]"", 'properties': {'addressprefix': '10.0.0.0/24', 'privateendpointnetworkpolicies': 'enabled', 'privatelinkservicenetworkpolicies': 'enabled'}}, {'name': ""[parameters('gatewaysubnetname')]"", 'properties': {'addressprefix': '10.0.1.0/24', 'privateendpointnetworkpolicies': 'enabled', 'privatelinkservicenetworkpolicies': 'enabled'}}], 'enableddosprotection': false}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-11-01', 'name': ""[variables('pipname')]"", 'location': ""[parameters('vnetlocation')]"", 'properties': {'publicipallocationmethod': 'dynamic'}}{'type': 'microsoft.network/virtualnetworkgateways', 'apiversion': '2020-11-01', 'name': ""[variables('gatewayname')]"", 'location': ""[parameters('vnetlocation')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('vnetname'))]""], 'properties': {'enableprivateipaddress': false, 'ipconfigurations': [{'name': 'default', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses/', variables('pipname'))]""}, 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnetname'), parameters('gatewaysubnetname'))]""}}}], 'gatewaytype': 'vpn', 'vpntype': 'routebased', 'vpngatewaygeneration': 'generation1'}}{'type': 'microsoft.network/connections', 'apiversion': '2020-11-01', 'name': 'connection', 'location': ""[parameters('existingvnetlocation')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworkgateways', variables('gatewayname'))]""], 'properties': {'virtualnetworkgateway1': {'id': ""[parameters('existinggatewayid')]""}, 'virtualnetworkgateway2': {'id': ""[resourceid('microsoft.network/virtualnetworkgateways', variables('gatewayname'))]""}, 'connectiontype': 'vnet2vnet', 'connectionprotocol': 'ikev2', 'routingweight': 0, 'sharedkey': ""[parameters('sharedkey')]"", 'enablebgp': false, 'uselocalazureipaddress': false, 'usepolicybasedtrafficselectors': false, 'expressroutegatewaybypass': false, 'dpdtimeoutseconds': 45, 'connectionmode': 'default'}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2019-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}}{'comments': ""simple network security group for subnet [variables('subnetname')]"", 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-11-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': '*'}}]}}{'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('networksecuritygroupname')]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}}{'apiversion': '2019-11-01', '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': ""[variables('subnetref')]""}}}]}} END" +This template enables encryption on a running windows vm.," {'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': ""[resourceid('microsoft.keyvault/vaults/', parameters('keyvaultname'))]"", 'volumetype': 'all'}}} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2019-06-01', 'name': ""[parameters('storagename')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storagev2', 'properties': {'accesstier': 'hot'}} 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': [""[variables('adlsstorageaccountprivateendpointid')]"", ""[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')]""], '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('adlsserviceprimaryendpoint'), ' ', variables('blobserviceprimaryendpoint'))]""}}} END" +"This template creates two Azure SQL servers, a database, and a failover group."," {'type': 'microsoft.sql/servers', 'kind': 'v12.0', 'name': ""[parameters('sqlserverprimaryname')]"", 'apiversion': '2020-02-02-preview', 'location': ""[parameters('location')]"", 'properties': {'administratorlogin': ""[parameters('sqlserverprimaryadminusername')]"", 'administratorloginpassword': ""[parameters('sqlserverprimaryadminpassword')]"", 'version': '12.0'}, 'resources': [{'apiversion': '2020-02-02-preview', 'type': 'failovergroups', 'name': ""[parameters('sqlfailovergroupname')]"", 'properties': {'servername': ""[parameters('sqlserverprimaryname')]"", 'partnerservers': [{'id': ""[resourceid('microsoft.sql/servers', parameters('sqlserversecondaryname'))]""}], 'readwriteendpoint': {'failoverpolicy': 'automatic', 'failoverwithdatalossgraceperiodminutes': 60}, 'readonlyendpoint': {'failoverpolicy': 'disabled'}, 'databases': [""[resourceid('microsoft.sql/servers/databases', parameters('sqlserverprimaryname'), variables('sqldatabasename'))]""]}, 'dependson': [""[parameters('sqlserverprimaryname')]"", ""[resourceid('microsoft.sql/servers/databases', parameters('sqlserverprimaryname'), variables('sqldatabasename'))]"", ""[resourceid('microsoft.sql/servers', parameters('sqlserversecondaryname'))]""]}, {'name': ""[variables('sqldatabasename')]"", 'type': 'databases', 'apiversion': '2020-02-02-preview', 'location': ""[parameters('location')]"", 'dependson': [""[parameters('sqlserverprimaryname')]""], 'properties': {'edition': ""[variables('sqldatabaseedition')]"", 'requestedserviceobjectivename': ""[variables('sqldatabaseserviceobjective')]""}}]}{'type': 'microsoft.sql/servers', 'kind': 'v12.0', 'name': ""[parameters('sqlserversecondaryname')]"", 'apiversion': '2020-02-02-preview', 'location': ""[parameters('sqlserversecondaryregion')]"", 'properties': {'administratorlogin': ""[parameters('sqlserversecondaryadminusername')]"", 'administratorloginpassword': ""[parameters('sqlserversecondaryadminpassword')]"", 'version': '12.0'}} END" +This template creates a Service Bus Namespace and Topic.," {'type': 'microsoft.servicebus/namespaces', 'apiversion': '2017-04-01', 'name': ""[parameters('servicebusnamespacename')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'condition': ""[equals(parameters('storageoption'), 'nfs')]"", 'type': 'microsoft.compute/virtualmachines/extensions', 'apiversion': '2021-11-01', 'name': ""[concat(variables('nfshostname'), '/installnfsserver')]"", 'location': ""[parameters('location')]"", 'dependson': ['nfsvmdeployment'], 'tags': {'displayname': 'installnfsserver', 'app': ""[variables('redhattags').app]"", 'version': ""[variables('redhattags').version]"", 'platform': ""[variables('redhattags').platform]""}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('nfsinstallscripturl')]""]}, 'protectedsettings': {'commandtoexecute': ""[concat('bash ', variables('nfsinstallscriptfilename'))]""}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'apiversion': '2021-11-01', 'name': ""[concat(variables('bastionhostname'), '/deployopenshift')]"", 'location': ""[parameters('location')]"", 'dependson': ['bastionvmdeployment', 'openshiftdeployment'], 'tags': {'displayname': 'cloudpakconfig', 'app': ""[variables('redhattags').app]"", 'version': ""[variables('redhattags').version]"", 'platform': ""[variables('redhattags').platform]""}, 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('cloudpakconfigscripturl')]""]}, 'protectedsettings': {'commandtoexecute': '[concat(\'bash \', variables(\'cloudpakconfigscriptfilename\'), \' ""\', uri(parameters(\'_artifactslocation\'), \'.\'), \'""\', \' ""\', parameters(\'_artifactslocationsastoken\'), \'""\', \' ""\', parameters(\'adminusername\'), \'""\', \' ""\', parameters(\'workerinstancecount\'), \'""\', \' ""\', parameters(\'projectname\'), \'""\', \' ""\', parameters(\'apikey\'), \'""\', \' ""\', parameters(\'enablefips\'), \'""\')]'}}} END" +Provision a SQL Server with firewall and a SQL database with Transparent Data Encryption.," {'name': ""[variables('sqlservername')]"", 'type': 'microsoft.sql/servers', 'apiversion': '2020-02-02-preview', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'sqlserver'}, 'properties': {'administratorlogin': ""[parameters('sqladministratorlogin')]"", 'administratorloginpassword': ""[parameters('sqladministratorloginpassword')]"", 'version': '12.0'}, 'resources': [{'name': ""[variables('databasename')]"", 'type': 'databases', 'apiversion': '2020-02-02-preview', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'database'}, 'properties': {'edition': ""[variables('databaseedition')]"", 'collation': ""[variables('databasecollation')]"", 'requestedserviceobjectivename': ""[variables('databaseserviceobjectivename')]""}, 'dependson': [""[variables('sqlservername')]""], 'resources': [{'comments': 'transparent data encryption', 'name': 'current', 'type': 'transparentdataencryption', 'apiversion': '2017-03-01-preview', 'properties': {'status': ""[parameters('transparentdataencryption')]""}, 'dependson': [""[variables('databasename')]""]}]}, {'name': 'allowallmicrosoftazureips', 'type': 'firewallrules', 'apiversion': '2020-02-02-preview', 'location': ""[parameters('location')]"", 'properties': {'endipaddress': '0.0.0.0', 'startipaddress': '0.0.0.0'}, 'dependson': [""[variables('sqlservername')]""]}]} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'name': ""[variables('generalsettings').vmdcname]"", 'type': 'microsoft.compute/virtualmachines', 'location': ""[parameters('location')]"", 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('vmdc').vmnicname)]""], 'tags': {'displayname': ""[variables('generalsettings').vmdcname]""}, 'properties': {'hardwareprofile': {'vmsize': ""[variables('vmdc').vmvmsize]""}, 'osprofile': {'computername': ""[variables('generalsettings').vmdcname]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'windowsconfiguration': {'timezone': ""[parameters('vmstimezone')]"", 'enableautomaticupdates': ""[parameters('enableautomaticupdates')]"", 'provisionvmagent': true, 'patchsettings': {'patchmode': ""[if(parameters('enableautomaticupdates'), 'automaticbyos', 'manual')]"", 'assessmentmode': 'imagedefault'}}}, 'storageprofile': {'imagereference': {'publisher': ""[variables('vmdc').vmimagepublisher]"", 'offer': ""[variables('vmdc').vmimageoffer]"", 'sku': ""[variables('vmdc').vmimagesku]"", 'version': 'latest'}, 'osdisk': {'name': ""[variables('vmdc').vmosdiskname]"", 'caching': 'readwrite', 'ostype': 'windows', 'createoption': 'fromimage', 'disksizegb': 32, 'manageddisk': {'storageaccounttype': ""[parameters('vmdcstorageaccounttype')]""}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('vmdc').vmnicname)]""}]}, 'licensetype': ""[if(parameters('enablehybridbenefitserverlicenses'), 'windows_server', json('null'))]""}, 'resources': [{'name': 'configuredcvm', 'type': 'extensions', 'location': ""[parameters('location')]"", 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('generalsettings').vmdcname)]""], 'tags': {'displayname': 'configuredcvm'}, 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.9', 'autoupgrademinorversion': true, 'forceupdatetag': ""[variables('dscconfiguredcvm').forceupdatetag]"", 'settings': {'wmfversion': 'latest', 'configuration': {'url': ""[variables('dscconfiguredcvm').scriptfileuri]"", 'script': ""[variables('dscconfiguredcvm').script]"", 'function': ""[variables('dscconfiguredcvm').function]""}, 'configurationarguments': {'domainfqdn': ""[parameters('domainfqdn')]"", 'privateip': ""[variables('networksettings').dcprivateipaddress]""}, 'privacy': {'datacollection': 'enable'}}, 'protectedsettings': {'configurationarguments': {'admincreds': {'username': ""[parameters('adminusername')]"", 'password': ""[parameters('adminpassword')]""}, 'adfssvccreds': {'username': ""[variables('generalsettings').adfssvcusername]"", 'password': ""[variables('generalsettings').adfssvcpassword]""}}}}}]}{'name': ""[variables('generalsettings').vmsqlname]"", 'type': 'microsoft.compute/virtualmachines', 'location': ""[parameters('location')]"", 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('vmsql').vmnicname)]""], 'tags': {'displayname': ""[variables('generalsettings').vmsqlname]""}, 'properties': {'hardwareprofile': {'vmsize': ""[variables('vmsql').vmvmsize]""}, 'osprofile': {'computername': ""[variables('generalsettings').vmsqlname]"", 'adminusername': ""[variables('generalsettings').localadminusername]"", 'adminpassword': ""[parameters('adminpassword')]"", 'windowsconfiguration': {'timezone': ""[parameters('vmstimezone')]"", 'enableautomaticupdates': ""[parameters('enableautomaticupdates')]"", 'provisionvmagent': true, 'patchsettings': {'patchmode': ""[if(parameters('enableautomaticupdates'), 'automaticbyos', 'manual')]"", 'assessmentmode': 'imagedefault'}}}, 'storageprofile': {'imagereference': {'publisher': ""[variables('vmsql').vmimagepublisher]"", 'offer': ""[variables('vmsql').vmimageoffer]"", 'sku': ""[variables('vmsql').vmimagesku]"", 'version': 'latest'}, 'osdisk': {'name': ""[variables('vmsql').vmosdiskname]"", 'caching': 'readwrite', 'ostype': 'windows', 'createoption': 'fromimage', 'disksizegb': 128, 'manageddisk': {'storageaccounttype': ""[parameters('vmsqlstorageaccounttype')]""}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('vmsql').vmnicname)]""}]}, 'licensetype': ""[if(parameters('enablehybridbenefitserverlicenses'), 'windows_server', json('null'))]""}, 'resources': []}{'name': ""[variables('generalsettings').vmspname]"", 'type': 'microsoft.compute/virtualmachines', 'location': ""[parameters('location')]"", 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('vmsp').vmnicname)]""], 'tags': {'displayname': ""[variables('generalsettings').vmspname]""}, 'properties': {'hardwareprofile': {'vmsize': ""[variables('vmsp').vmvmsize]""}, 'osprofile': {'computername': ""[variables('generalsettings').vmspname]"", 'adminusername': ""[variables('generalsettings').localadminusername]"", 'adminpassword': ""[parameters('adminpassword')]"", 'windowsconfiguration': {'timezone': ""[parameters('vmstimezone')]"", 'enableautomaticupdates': ""[parameters('enableautomaticupdates')]"", 'provisionvmagent': true, 'patchsettings': {'patchmode': ""[if(parameters('enableautomaticupdates'), 'automaticbyos', 'manual')]"", 'assessmentmode': 'imagedefault'}}}, 'storageprofile': {'imagereference': {'publisher': ""[variables('vmsp').vmimagepublisher]"", 'offer': ""[variables('vmsp').vmimageoffer]"", 'sku': ""[variables('vmsp').vmimagesku]"", 'version': 'latest'}, 'osdisk': {'name': ""[variables('vmsp').vmosdiskname]"", 'caching': 'readwrite', 'ostype': 'windows', 'createoption': 'fromimage', 'disksizegb': 128, 'manageddisk': {'storageaccounttype': ""[parameters('vmspstorageaccounttype')]""}}, 'datadisks': ""[if(equals(parameters('sharepointdatadisksize'), 0), json('null'), variables('vmspdatadisk'))]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('vmsp').vmnicname)]""}]}, 'licensetype': ""[if(parameters('enablehybridbenefitserverlicenses'), 'windows_server', json('null'))]""}, 'resources': []}{'name': ""[concat(variables('generalsettings').vmsqlname,'/configuresqlvm')]"", 'type': 'microsoft.compute/virtualmachines/extensions', 'location': ""[parameters('location')]"", 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('generalsettings').vmsqlname)]""], 'tags': {'displayname': ""[concat(variables('generalsettings').vmsqlname,'/configuresqlvm')]""}, 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.9', 'autoupgrademinorversion': true, 'forceupdatetag': ""[variables('dscconfiguresqlvm').forceupdatetag]"", 'settings': {'wmfversion': 'latest', 'configuration': {'url': ""[variables('dscconfiguresqlvm').scriptfileuri]"", 'script': ""[variables('dscconfiguresqlvm').script]"", 'function': ""[variables('dscconfiguresqlvm').function]""}, 'configurationarguments': {'dnsserver': ""[variables('networksettings').dcprivateipaddress]"", 'domainfqdn': ""[parameters('domainfqdn')]""}, 'privacy': {'datacollection': 'enable'}}, 'protectedsettings': {'configurationarguments': {'domainadmincreds': {'username': ""[parameters('adminusername')]"", 'password': ""[parameters('adminpassword')]""}, 'sqlsvccreds': {'username': ""[variables('generalsettings').sqlsvcusername]"", 'password': ""[variables('generalsettings').sqlsvcpassword]""}, 'spsetupcreds': {'username': ""[variables('generalsettings').spsetupusername]"", 'password': ""[variables('generalsettings').spsetuppassword]""}}}}}{'name': ""[concat(variables('generalsettings').vmspname,'/configurespvm')]"", 'type': 'microsoft.compute/virtualmachines/extensions', 'location': ""[parameters('location')]"", 'apiversion': '2021-04-01', 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('generalsettings').vmspname)]""], 'tags': {'displayname': ""[concat(variables('generalsettings').vmspname,'/configurespvm')]""}, 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.9', 'autoupgrademinorversion': true, 'forceupdatetag': ""[variables('dscconfigurespvm').forceupdatetag]"", 'settings': {'wmfversion': 'latest', 'configuration': {'url': ""[variables('dscconfigurespvm').scriptfileuri]"", 'script': ""[variables('dscconfigurespvm').script]"", 'function': ""[variables('dscconfigurespvm').function]""}, 'configurationarguments': {'dnsserver': ""[variables('networksettings').dcprivateipaddress]"", 'domainfqdn': ""[parameters('domainfqdn')]"", 'dcname': ""[variables('generalsettings').vmdcname]"", 'sqlname': ""[variables('generalsettings').vmsqlname]"", 'sqlalias': ""[variables('generalsettings').sqlalias]"", 'sharepointversion': ""[parameters('sharepointversion')]"", 'enableanalysis': ""[variables('generalsettings').enableanalysis]""}, 'privacy': {'datacollection': 'enable'}}, 'protectedsettings': {'configurationarguments': {'domainadmincreds': {'username': ""[parameters('adminusername')]"", 'password': ""[parameters('adminpassword')]""}, 'spsetupcreds': {'username': ""[variables('generalsettings').spsetupusername]"", 'password': ""[variables('generalsettings').spsetuppassword]""}, 'spfarmcreds': {'username': ""[variables('generalsettings').spfarmusername]"", 'password': ""[variables('generalsettings').spfarmpassword]""}, 'spsvccreds': {'username': ""[variables('generalsettings').spsvcusername]"", 'password': ""[variables('generalsettings').spsvcpassword]""}, 'spapppoolcreds': {'username': ""[variables('generalsettings').spapppoolusername]"", 'password': ""[variables('generalsettings').spapppoolpassword]""}, 'sppassphrasecreds': {'username': 'passphrase', 'password': ""[variables('generalsettings').sppassphrase]""}, 'spsuperusercreds': {'username': ""[variables('generalsettings').spsuperusername]"", 'password': ""[parameters('serviceaccountspassword')]""}, 'spsuperreadercreds': {'username': ""[variables('generalsettings').spsuperreadername]"", 'password': ""[parameters('serviceaccountspassword')]""}}}}}{'condition': ""[greaterorequals(parameters('numberofadditionalfrontend'), 1)]"", 'name': ""[concat(variables('generalsettings').vmfename, '-', copyindex())]"", 'type': 'microsoft.compute/virtualmachines', 'location': ""[parameters('location')]"", 'apiversion': '2021-04-01', 'dependson': ['frontendnetworkinterfaces'], 'tags': {'displayname': ""[concat(variables('generalsettings').vmfename, '-', copyindex())]""}, 'copy': {'name': 'frontendvirtualmachines', 'count': ""[parameters('numberofadditionalfrontend')]""}, 'properties': {'hardwareprofile': {'vmsize': ""[variables('vmsp').vmvmsize]""}, 'osprofile': {'computername': ""[concat(variables('generalsettings').vmfename, '-', copyindex())]"", 'adminusername': ""[variables('generalsettings').localadminusername]"", 'adminpassword': ""[parameters('adminpassword')]"", 'windowsconfiguration': {'timezone': ""[parameters('vmstimezone')]"", 'enableautomaticupdates': ""[parameters('enableautomaticupdates')]"", 'provisionvmagent': true, 'patchsettings': {'patchmode': ""[if(parameters('enableautomaticupdates'), 'automaticbyos', 'manual')]"", 'assessmentmode': 'imagedefault'}}}, 'storageprofile': {'imagereference': {'publisher': ""[variables('vmsp').vmimagepublisher]"", 'offer': ""[variables('vmsp').vmimageoffer]"", 'sku': ""[variables('vmsp').vmimagesku]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmfe').vmosdiskname, '-', copyindex())]"", 'caching': 'readwrite', 'ostype': 'windows', 'createoption': 'fromimage', 'disksizegb': 128, 'manageddisk': {'storageaccounttype': ""[parameters('vmspstorageaccounttype')]""}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('vmfe').vmnicname, '-', copyindex()))]""}]}, 'licensetype': ""[if(parameters('enablehybridbenefitserverlicenses'), 'windows_server', json('null'))]""}, 'resources': []}{'condition': ""[greaterorequals(parameters('numberofadditionalfrontend'), 1)]"", 'name': ""[concat(variables('generalsettings').vmfename, '-', copyindex(),'/configurefevm')]"", 'type': 'microsoft.compute/virtualmachines/extensions', 'location': ""[parameters('location')]"", 'apiversion': '2021-04-01', 'dependson': ['frontendvirtualmachines'], 'tags': {'displayname': ""[concat(variables('generalsettings').vmfename, '-', copyindex(),'/configurefevm')]""}, 'copy': {'name': 'frontendvirtualmachineextensions', 'count': ""[parameters('numberofadditionalfrontend')]""}, 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.9', 'autoupgrademinorversion': true, 'forceupdatetag': ""[variables('dscconfigurefevm').forceupdatetag]"", 'settings': {'wmfversion': 'latest', 'configuration': {'url': ""[variables('dscconfigurefevm').scriptfileuri]"", 'script': ""[variables('dscconfigurefevm').script]"", 'function': ""[variables('dscconfigurefevm').function]""}, 'configurationarguments': {'dnsserver': ""[variables('networksettings').dcprivateipaddress]"", 'domainfqdn': ""[parameters('domainfqdn')]"", 'dcname': ""[variables('generalsettings').vmdcname]"", 'sqlname': ""[variables('generalsettings').vmsqlname]"", 'sqlalias': ""[variables('generalsettings').sqlalias]"", 'sharepointversion': ""[parameters('sharepointversion')]"", 'enableanalysis': ""[variables('generalsettings').enableanalysis]""}, 'privacy': {'datacollection': 'enable'}}, 'protectedsettings': {'configurationarguments': {'domainadmincreds': {'username': ""[parameters('adminusername')]"", 'password': ""[parameters('adminpassword')]""}, 'spsetupcreds': {'username': ""[variables('generalsettings').spsetupusername]"", 'password': ""[variables('generalsettings').spsetuppassword]""}, 'spfarmcreds': {'username': ""[variables('generalsettings').spfarmusername]"", 'password': ""[variables('generalsettings').spfarmpassword]""}, 'sppassphrasecreds': {'username': 'passphrase', 'password': ""[variables('generalsettings').sppassphrase]""}}}}} END" +This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth," {'condition': ""[equals(parameters('neworexistingrole'),'new')]"", 'type': 'microsoft.authorization/roledefinitions', 'apiversion': '2018-07-01', 'name': ""[variables('roledefinitionid')]"", 'properties': {'rolename': ""[parameters('customrolename')]"", 'description': 'role definition for ilm specific ad application to access a storage account', 'type': 'customrole', 'iscustom': true, 'permissions': [{'actions': ['microsoft.storage/storageaccounts/blobservices/containers/write', 'microsoft.storage/storageaccounts/blobservices/containers/delete'], 'dataactions': ['microsoft.storage/storageaccounts/blobservices/containers/blobs/read', 'microsoft.storage/storageaccounts/blobservices/containers/blobs/write', 'microsoft.storage/storageaccounts/blobservices/containers/blobs/delete']}], 'assignablescopes': [""[subscriptionresourceid('microsoft.resources/resourcegroups', resourcegroup().name)]""]}}{'type': 'microsoft.authorization/roleassignments', 'apiversion': '2018-07-01', 'name': ""[guid(parameters('azureadappprincipalid'), if(equals(parameters('neworexistingrole'), 'new'), resourceid('microsoft.authorization/roledefinitions/', variables('roledefinitionid')), resourceid('microsoft.authorization/roledefinitions/', parameters('existingroleid'))), resourcegroup().id)]"", 'dependson': [""[resourceid('microsoft.authorization/roledefinitions/', variables('roledefinitionid'))]""], 'properties': {'roledefinitionid': ""[if(equals(parameters('neworexistingrole'), 'new'), resourceid('microsoft.authorization/roledefinitions/', variables('roledefinitionid')), resourceid('microsoft.authorization/roledefinitions/', parameters('existingroleid')))]"", 'principalid': ""[parameters('azureadappprincipalid')]"", 'principaltype': 'serviceprincipal'}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('managementpublicipaddrname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[concat(variables('clusterfqdn'), '-manage')]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('nodespublicipaddrname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('clusterfqdn')]""}}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups',variables('mastersnsgname'))]"", ""[resourceid('microsoft.network/networksecuritygroups',variables('nodesnsgname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefixmasters')]"", ""[variables('addressprefixnodes')]""]}, 'subnets': [{'name': ""[variables('subnetnamemasters')]"", 'properties': {'addressprefix': ""[variables('subnetprefixmasters')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups',variables('mastersnsgname'))]""}}}, {'name': ""[variables('subnetnamenodes')]"", 'properties': {'addressprefix': ""[variables('subnetprefixnodes')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups',variables('nodesnsgname'))]""}}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('mastersnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}]}}{'apiversion': '2015-06-15', 'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nodesnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowany', 'properties': {'description': 'swarm node ports need to be configured on the load balancer to be reachable', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 1000, 'direction': 'inbound'}}]}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/images', 'apiversion': '2017-03-30', 'name': ""[variables('imagename')]"", 'location': '[resourcegroup().location]', 'properties': {'storageprofile': {'osdisk': {'ostype': 'windows', 'osstate': 'generalized', 'bloburi': ""[parameters('sourceimagevhduri')]"", 'storageaccounttype': 'standard_lrs'}}}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'condition': ""[equals(parameters('vnetneworexisting'), 'new')]"", 'apiversion': '2020-08-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': ['10.0.0.0/16']}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': '10.0.0.0/24'}}]}}{'apiversion': '2018-10-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'publicipaddress'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('dnsnameforpublicip')]""}}} 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.storage/storageaccounts/', parameters('storageaccountname'))]"", ""[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'))]""}], 'inputendpoints': [{'enabledirectserverreturn': 'false', 'endpointname': 'ssh', 'privateport': 22, 'publicport': 22, 'protocol': 'tcp'}, {'enabledirectserverreturn': 'false', 'endpointname': 'http', 'privateport': 8899, 'publicport': 8899, 'protocol': 'tcp'}]}}} END" +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')]""}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[parameters('availabilitysetname')]"", 'apiversion': '2021-07-01', 'location': ""[parameters('location')]"", 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 2}, 'sku': {'name': 'aligned'}, 'tags': {'provider': ""[variables('provider')]""}}{'apiversion': '2016-04-30-preview', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmname'),copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'vmloop', 'count': ""[parameters('numberofinstances')]""}, 'dependson': [""[concat('microsoft.network/networkinterfaces/', variables('nicname'), copyindex())]"", ""[concat('microsoft.compute/availabilitysets/', parameters('availabilitysetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', parameters('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmname'),copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'osdisk': {'createoption': 'fromimage'}, 'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('nicname'),copyindex()))]""}]}}, 'tags': {'provider': ""[variables('provider')]""}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'),copyindex(),'/', variables('vmextensionname'))]"", 'apiversion': '2016-04-30-preview', 'location': ""[parameters('location')]"", 'copy': {'name': 'extensionloop', 'count': ""[parameters('numberofinstances')]""}, 'dependson': [""[concat('microsoft.compute/virtualmachines/', variables('vmname'), copyindex())]""], 'properties': {'publisher': 'chef.bootstrap.windowsazure', 'type': 'linuxchefclient', 'typehandlerversion': '1210.12', 'settings': {'bootstrap_options': {'chef_server_url': ""[variables('chef_server_url')]"", 'validation_client_name': ""[parameters('validation_client_name')]""}, 'runlist': ""[parameters('runlist')]""}, 'protectedsettings': {'validation_key': ""[parameters('validation_key')]""}}} 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')]""}}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-06-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'))]""}]}}} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'name': ""[variables('diagnosticsstorageaccountname')]"", 'type': 'microsoft.storage/storageaccounts', 'apiversion': '2019-04-01', 'location': ""[variables('location')]"", 'properties': {}, 'kind': ""[variables('diagnosticsstorageaccountkind')]"", 'sku': {'name': ""[variables('diagnosticsstorageaccounttype')]""}} END" +Deploy Azure Sql Database Managed Instance (SQL MI) and JumpBox with SSMS inside new Virtual Network," {'type': 'microsoft.sql/managedinstances', 'apiversion': '2019-06-01-preview', 'dependson': [""[parameters('virtualnetworkname')]""], 'identity': {'type': 'systemassigned'}, 'location': ""[parameters('location')]"", 'name': ""[parameters('managedinstancename')]"", 'sku': {'name': ""[parameters('skuname')]""}, 'properties': {'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" +Deploy Managed AADDS with required VNet and NSG configurations," {'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-11-01', 'name': ""[variables('domainservicesnsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'allowpsremotingslicep', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '5986', 'sourceaddressprefixes': ""[variables('psremotingslicepipaddresses')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 301, 'direction': 'inbound'}}, {'name': 'allowrdp', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefixes': ""[variables('rdpipaddresses')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 201, 'direction': 'inbound'}}, {'name': 'allowsyncwithazuread', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 101, 'direction': 'inbound'}}, {'name': 'allowpsremotingslicet', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '5986', 'sourceaddressprefixes': ""[variables('psremotingslicetipaddresses')]"", 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 302, 'direction': 'inbound'}}]}}{'type': 'microsoft.network/virtualnetworks', 'apiversion': '2020-11-01', 'name': ""[parameters('domainservicesvnetname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[parameters('domainservicesvnetaddressprefix')]""]}, 'subnets': [{'name': ""[parameters('domainservicessubnetname')]"", 'properties': {'addressprefix': ""[parameters('domainservicessubnetaddressprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('domainservicesnsgname'))]""}}}]}, 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('domainservicesnsgname'))]""]} END" +This template takes a minimum amount of parameters and deploys a Windows VM and configures backup protection.," {'type': 'microsoft.recoveryservices/vaults', 'apiversion': '2020-02-02', 'name': ""[variables('vaultname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'rs0', 'tier': 'standard'}, 'properties': {}}{'type': 'microsoft.recoveryservices/vaults/backupfabrics/protectioncontainers/protecteditems', 'apiversion': '2020-02-02', 'name': ""[format('{0}/{1}/{2}/{3}', variables('vaultname'), variables('backupfabric'), variables('protectioncontainer'), variables('protecteditem'))]"", 'properties': {'protecteditemtype': 'microsoft.compute/virtualmachines', 'policyid': ""[format('{0}/backuppolicies/{1}', resourceid('microsoft.recoveryservices/vaults', variables('vaultname')), variables('backuppolicyname'))]"", 'sourceresourceid': ""[resourceid('microsoft.compute/virtualmachines', variables('vmname'))]""}, 'dependson': [""[resourceid('microsoft.recoveryservices/vaults', variables('vaultname'))]"", ""[resourceid('microsoft.compute/virtualmachines', variables('vmname'))]""]} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[parameters('vmname')]"", 'location': '[resourcegroup().location]', 'tags': {'displayname': 'virtualmachine'}, 'dependson': [""[concat('microsoft.network/networkinterfaces/', variables('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',variables('nicname'))]""}]}}, 'resources': [{'name': 'dscext1', 'type': 'extensions', 'location': '[resourcegroup().location]', 'apiversion': '2015-05-01-preview', 'dependson': [""[concat('microsoft.compute/virtualmachines/', parameters('vmname'))]""], 'tags': {'displayname': 'dscext1'}, 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.19', 'autoupgrademinorversion': true, 'settings': {'modulesurl': ""[parameters('modulesurl')]"", 'configurationfunction': 'configurewebserver.ps1\\main', 'properties': {'machinename': ""[parameters('vmname')]"", 'webdeploypackagepath': ""[parameters('webdeploypkg')]"", 'username': ""[parameters('adminusername')]"", 'password': ""[parameters('adminpassword')]"", 'dbservername': ""[parameters('databaseservername')]"", 'dbname': ""[parameters('databasename')]"", 'dbusername': ""[parameters('databaseserveradminlogin')]"", 'dbpassword': ""[parameters('databaseserveradminloginpassword')]""}}, 'protectedsettings': {}}}]} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'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()))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('websrvname'), copyindex(),'/', variables('vmextensionname'))]"", 'apiversion': '2020-12-01', 'location': ""[parameters('location')]"", 'copy': {'name': 'websrvmachineloop', 'count': ""[variables('websrvnumbofinstances')]""}, 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', concat(variables('websrvname'), copyindex()))]""], 'tags': {'displayname': 'vm extensions'}, 'properties': {'publisher': 'microsoft.powershell', 'type': 'dsc', 'typehandlerversion': '2.19', 'autoupgrademinorversion': true, 'settings': {'modulesurl': ""[uri(parameters('_artifactslocation'), concat('scripts/webserverconfig.ps1.zip', parameters('_artifactslocationsastoken')))]"", 'configurationfunction': ""[variables('configurationfunction')]"", 'wmfversion': '4.0'}}} 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('dnsnameforpublicip')]""}}}{'apiversion': '2020-05-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': '2020-05-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'}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('vmname'), '-nic')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/loadbalancers/', variables('nodeslbname'))]"", ""[resourceid('microsoft.network/virtualnetworks/', variables('virtualnetworkname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfignode', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[concat(split(variables('subnetprefix'),'0/24')[0], '100')]"", 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('virtualnetworkname'), variables('subnetname'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('nodeslbname'), variables('nodeslbbackendpoolname'))]""}], 'loadbalancerinboundnatrules': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatrules', variables('nodeslbname'), concat('ssh-',variables('vmname')) )]""}]}}]}}{'apiversion': '2020-05-01', 'name': ""[variables('nodeslbname')]"", 'type': 'microsoft.network/loadbalancers', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('publicipaddressname'))]""], 'properties': {'frontendipconfigurations': [{'name': 'nodeslbfrontend', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}}}], 'backendaddresspools': [{'name': ""[variables('nodeslbbackendpoolname')]""}], 'inboundnatrules': [{'name': ""[concat('ssh-',variables('vmname'))]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', variables('nodeslbname'), 'nodeslbfrontend')]""}, 'protocol': 'tcp', 'frontendport': 22, 'backendport': 22, 'enablefloatingip': false}}]}} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': 'storage', 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'location': {'value': ""[parameters('location')]""}, 'accountname': {'value': ""[parameters('storageaccountname')]""}, 'skuname': {'value': ""[parameters('storageskuname')]""}, 'blobcontainername': {'value': ""[parameters('storageblobcontainername')]""}}, '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.1272.37030', 'templatehash': '2271884228718129813'}}, 'parameters': {'location': {'type': 'string', 'metadata': {'description': 'the location into which the azure storage resources should be deployed.'}}, 'accountname': {'type': 'string', 'metadata': {'description': 'the name of the azure storage account to create. this must be globally unique.'}}, 'skuname': {'type': 'string', 'allowedvalues': ['standard_lrs', 'standard_grs', 'standard_zrs', 'premium_lrs'], 'metadata': {'description': 'the name of the sku to use when creating the azure storage account.'}}, 'blobcontainername': {'type': 'string', 'metadata': {'description': 'the name of the azure storage blob container to create.'}}}, 'resources': [{'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-08-01', 'name': ""[parameters('accountname')]"", 'location': ""[parameters('location')]"", 'kind': 'storagev2', 'sku': {'name': ""[parameters('skuname')]""}, 'properties': {'networkacls': {'defaultaction': 'deny'}}}, {'type': 'microsoft.storage/storageaccounts/blobservices/containers', 'apiversion': '2021-08-01', 'name': ""[format('{0}/{1}/{2}', parameters('accountname'), 'default', parameters('blobcontainername'))]"", 'properties': {'publicaccess': 'none'}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts', parameters('accountname'))]""]}], 'outputs': {'blobendpointhostname': {'type': 'string', 'value': ""[replace(replace(reference(resourceid('microsoft.storage/storageaccounts', parameters('accountname'))).primaryendpoints.blob, 'https://', ''), '/', '')]""}, 'storageresourceid': {'type': 'string', 'value': ""[resourceid('microsoft.storage/storageaccounts', parameters('accountname'))]""}}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': 'front-door', 'properties': {'expressionevaluationoptions': {'scope': 'inner'}, 'mode': 'incremental', 'parameters': {'skuname': {'value': ""[variables('frontdoorskuname')]""}, 'endpointname': {'value': ""[parameters('frontdoorendpointname')]""}, 'originhostname': {'value': ""[reference(resourceid('microsoft.resources/deployments', 'storage')).outputs.blobendpointhostname.value]""}, 'originpath': {'value': ""[format('/{0}', parameters('storageblobcontainername'))]""}, 'privateendpointresourceid': {'value': ""[reference(resourceid('microsoft.resources/deployments', 'storage')).outputs.storageresourceid.value]""}, 'privatelinkresourcetype': {'value': 'blob'}, 'privateendpointlocation': {'value': ""[parameters('location')]""}}, '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.1272.37030', 'templatehash': '4022613443361113257'}}, 'parameters': {'originhostname': {'type': 'string', 'metadata': {'description': 'the host name that should be used when connecting to the origin.'}}, 'originpath': {'type': 'string', 'defaultvalue': '', 'metadata': {'description': 'the path that should be used when connecting to the origin.'}}, 'endpointname': {'type': 'string', 'metadata': {'description': 'the name of the front door endpoint to create. this must be globally unique.'}}, 'skuname': {'type': 'string', 'allowedvalues': ['standard_azurefrontdoor', 'premium_azurefrontdoor'], 'metadata': {'description': 'the name of the sku to use when creating the front door profile. if you use private link this must be set to `premium_azurefrontdoor`.'}}, 'originforwardingprotocol': {'type': 'string', 'defaultvalue': 'httpsonly', 'allowedvalues': ['httponly', 'httpsonly', 'matchrequest'], 'metadata': {'description': 'the protocol that should be used when connecting from front door to the origin.'}}, 'privateendpointresourceid': {'type': 'string', 'defaultvalue': '', 'metadata': {'description': 'if you are using private link to connect to the origin, this should specify the resource id of the private link resource (e.g. an app service application, azure storage account, etc). if you are not using private link then this should be empty.'}}, 'privatelinkresourcetype': {'type': 'string', 'defaultvalue': '', 'metadata': {'description': 'if you are using private link to connect to the origin, this should specify the resource type of the private link resource. the allowed value will depend on the specific private link resource type you are using. if you are not using private link then this should be empty.'}}, 'privateendpointlocation': {'type': 'string', 'defaultvalue': '', 'metadata': {'description': 'if you are using private link to connect to the origin, this should specify the location of the private link resource. if you are not using private link then this should be empty.'}}}, 'variables': {'isprivatelinkorigin': ""[not(equals(parameters('privateendpointresourceid'), ''))]"", 'privatelinkorigindetails': {'privatelink': {'id': ""[parameters('privateendpointresourceid')]""}, 'groupid': ""[if(not(equals(parameters('privatelinkresourcetype'), '')), parameters('privatelinkresourcetype'), null())]"", 'privatelinklocation': ""[parameters('privateendpointlocation')]"", 'requestmessage': 'please approve this connection.'}, 'profilename': 'myfrontdoor', 'origingroupname': 'myorigingroup', 'originname': 'myorigin', 'routename': 'myroute'}, 'resources': [{'type': 'microsoft.cdn/profiles', 'apiversion': '2020-09-01', 'name': ""[variables('profilename')]"", 'location': 'global', 'sku': {'name': ""[parameters('skuname')]""}}, {'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, 'sharedprivatelinkresource': ""[if(variables('isprivatelinkorigin'), variables('privatelinkorigindetails'), null())]""}, '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'))]""}, 'originpath': ""[if(not(equals(parameters('originpath'), '')), parameters('originpath'), null())]"", 'supportedprotocols': ['http', 'https'], 'patternstomatch': ['/*'], 'cacheconfiguration': {'querystringcachingbehavior': 'ignorequerystring'}, 'forwardingprotocol': ""[parameters('originforwardingprotocol')]"", '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'))]""]}], 'outputs': {'frontdoorendpointhostname': {'type': 'string', 'value': ""[reference(resourceid('microsoft.cdn/profiles/afdendpoints', variables('profilename'), parameters('endpointname'))).hostname]""}, 'frontdoorid': {'type': 'string', 'value': ""[reference(resourceid('microsoft.cdn/profiles', variables('profilename'))).frontdoorid]""}}}}, 'dependson': [""[resourceid('microsoft.resources/deployments', 'storage')]""]} 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)]""}}}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'publicipaddress'}, 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]""}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('publicipaddressname'))]""], 'tags': {'displayname': 'networkinterface'}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetref')]""}}}]}} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'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'}}} END" +Storage Account with Storage Service Encryption and a blob deletion retention policy," {'apiversion': '2021-01-01', 'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('diagstorageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_grs'}, 'kind': 'storagev2', 'properties': {}} END" +Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage," {'type': 'microsoft.sql/servers', 'apiversion': '2020-11-01-preview', 'name': ""[variables('sqlservername')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': ""[variables('sqlservername')]""}, 'kind': 'v12.0', 'properties': {'administratorlogin': ""[parameters('sqladministratorlogin')]"", 'administratorloginpassword': ""[parameters('sqladministratorloginpassword')]"", 'version': '12.0', 'publicnetworkaccess': 'disabled'}} END" +Deploy an App Service that supports Node. It gives you the support to deploy your own Node 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', 'sku': {'tier': ""[variables('sku')]"", 'name': ""[variables('skucode')]""}, 'properties': {'name': ""[variables('hostingplanname')]"", 'workersize': ""[variables('workersize')]"", 'workersizeid': ""[variables('workersizeid')]"", 'numberofworkers': ""[variables('numberofworkers')]"", 'reserved': true}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'condition': ""[equals(parameters('vnetneworexisting'), 'new')]"", 'apiversion': '2020-06-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[parameters('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': ['10.0.0.0/16']}, 'subnets': [{'name': ""[parameters('subnetname')]"", 'properties': {'addressprefix': '10.0.0.0/24'}}]}}{'apiversion': '2020-06-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'tags': {'displayname': 'publicipaddress'}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('dnsnameforpublicip')]""}}}{'apiversion': '2020-06-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('publicipaddressname')]""], 'tags': {'displayname': 'networkinterface'}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetref')]""}}}]}} END" +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': '*'}}]}} END" +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\')]'}}}]}}}} 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.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': ""[parameters('windowsosversion')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}}, 'resources': [{'apiversion': '2021-07-01', 'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'),'/winrmcustomscriptextension')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.compute', 'type': 'customscriptextension', 'typehandlerversion': '1.4', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('configurewinrm.ps1', parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('makecert.exe', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': ""[concat('powershell -executionpolicy unrestricted -file configurewinrm.ps1 ',variables('hostdnsnamescriptargument'))]""}}}]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipaddresses', 'apiversion': '2021-02-01', 'name': ""[parameters('publicipname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('publicipsku')]""}, 'properties': {'publicipallocationmethod': ""[parameters('publicipallocationmethod')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-06-01', 'name': ""[variables('vmname')]"", 'location': ""[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']]""}}}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-06-01', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('publicipaddresssku')]""}, 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]""}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-06-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': ""[variables('networksecuritygrouprules')]""}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2020-06-01', 'name': ""[variables('networkinterfacename')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups/', variables('networksecuritygroupname'))]"", ""[resourceid('microsoft.network/publicipaddresses/', variables('publicipaddressname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'subnet': {'id': ""[variables('subnetref')]""}, 'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}}}], 'enableacceleratednetworking': true, 'networksecuritygroup': {'id': ""[variables('nsgid')]""}}} END" +"This template creates an IoT hub and an IoT Hub Device Provisioning Service, and link the two services together."," {'type': 'microsoft.devices/iothubs', 'apiversion': '2021-03-31', 'name': ""[parameters('iothubname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('skuname')]"", 'capacity': ""[parameters('skuunits')]""}, 'properties': {}}{'type': 'microsoft.devices/provisioningservices', 'apiversion': '2020-03-01', 'name': ""[parameters('provisioningservicename')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('skuname')]"", 'capacity': ""[parameters('skuunits')]""}, 'dependson': [""[parameters('iothubname')]""], 'properties': {'iothubs': [{'connectionstring': ""[concat('hostname=', reference(resourceid('microsoft.devices/iothubs', parameters('iothubname'))).hostname, ';sharedaccesskeyname=', variables('iothubkeyname'), ';sharedaccesskey=', listkeys(resourceid('microsoft.devices/iothubs/iothubkeys', parameters('iothubname'), variables('iothubkeyname')), '2020-03-01').primarykey)]"", 'location': ""[parameters('location')]"", 'name': ""[reference(resourceid('microsoft.devices/iothubs', parameters('iothubname'))).hostname]""}]}} 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('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': ""[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'),'/ckandocker')]"", 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/', variables('vmname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'dockerextension', 'typehandlerversion': '1.0', 'autoupgrademinorversion': true, 'settings': {'compose': {'db': {'image': 'ckan/postgresql'}, 'solr': {'image': 'milafrerichs/ckan_solr'}, 'ckan': {'image': 'ckan/ckan', 'ports': ['80:80'], 'links': ['db:db', 'solr:solr']}}}}} END" +Create an Azure Security Center Automation which will be triggered by specific Security Center Alert (including all severities)," {'scope': ""[concat('microsoft.operationalinsights/workspaces/', parameters('existingworkspacename'))]"", 'type': 'microsoft.securityinsights/alertrules', 'apiversion': '2021-03-01-preview', 'name': ""[variables('ruleguid')]"", 'kind': 'scheduled', 'properties': {'displayname': 'known iridium ip', 'description': 'iridium command and control ip. identifies a match across various data feeds for ip iocs related to the iridium activity group.', 'severity': 'high', 'enabled': true, 'query': 'let iplist = dynamic([""154.223.45.38"",""185.141.207.140"",""185.234.73.19"",""216.245.210.106"",""51.91.48.210"",""46.255.230.229""]);\n(union isfuzzy=true\n(commonsecuritylog\n| where isnotempty(sourceip) or isnotempty(destinationip)\n| where sourceip in (iplist) or destinationip in (iplist) or message has_any (iplist)\n| extend ipmatch = case(sourceip in (iplist), ""sourceip"", destinationip in (iplist), ""destinationip"", ""message"") \n| summarize starttimeutc = min(timegenerated), endtimeutc = max(timegenerated) by sourceip, destinationip, deviceproduct, deviceaction, message, protocol, sourceport, destinationport, deviceaddress, devicename, ipmatch\n| extend timestamp = starttimeutc, ipcustomentity = case(ipmatch == ""sourceip"", sourceip, ipmatch == ""destinationip"", destinationip, ""ip in message field"") \n),\n(officeactivity\n|extend sourceipaddress = clientip, account = userid\n| where sourceipaddress in (iplist)\n| extend timestamp = timegenerated , ipcustomentity = sourceipaddress , accountcustomentity = account\n),\n(dnsevents \n| extend destinationipaddress = ipaddresses, host = computer\n| where destinationipaddress has_any (iplist) \n| extend timestamp = timegenerated, ipcustomentity = destinationipaddress, hostcustomentity = host\n),\n(imdns \n| extend destinationipaddress = dnsresponsename, host = dvc\n| where destinationipaddress has_any (iplist) \n| extend timestamp = timegenerated, ipcustomentity = srcipaddr, hostcustomentity = host\n),\n(vmconnection \n| where isnotempty(sourceip) or isnotempty(destinationip) \n| where sourceip in (iplist) or destinationip in (iplist) \n| extend ipmatch = case( sourceip in (iplist), ""sourceip"", destinationip in (iplist), ""destinationip"", ""none"") \n| extend timestamp = timegenerated , ipcustomentity = case(ipmatch == ""sourceip"", sourceip, ipmatch == ""destinationip"", destinationip, ""none""), host = computer\n),\n(event\n| where source == ""microsoft-windows-sysmon""\n| where eventid == 3\n| extend evdata = parse_xml(eventdata)\n| extend eventdetail = evdata.dataitem.eventdata.data\n| extend sourceip = eventdetail.[9].[""#text""], destinationip = eventdetail.[14].[""#text""]\n| where sourceip in (iplist) or destinationip in (iplist) \n| extend ipmatch = case( sourceip in (iplist), ""sourceip"", destinationip in (iplist), ""destinationip"", ""none"") \n| extend timestamp = timegenerated, accountcustomentity = username, hostcustomentity = computer , ipcustomentity = case(ipmatch == ""sourceip"", sourceip, ipmatch == ""destinationip"", destinationip, ""none"")\n),\n(signinlogs\n| where isnotempty(ipaddress)\n| where ipaddress in (iplist)\n| extend timestamp = timegenerated, accountcustomentity = userprincipalname, ipcustomentity = ipaddress\n),\n(aadnoninteractiveusersigninlogs\n| where isnotempty(ipaddress)\n| where ipaddress in (iplist)\n| extend timestamp = timegenerated, accountcustomentity = userprincipalname, ipcustomentity = ipaddress\n),\n(w3ciislog \n| where isnotempty(cip)\n| where cip in (iplist)\n| extend timestamp = timegenerated, ipcustomentity = cip, hostcustomentity = computer, accountcustomentity = csusername\n),\n(azureactivity \n| where isnotempty(calleripaddress)\n| where calleripaddress in (iplist)\n| extend timestamp = timegenerated, ipcustomentity = calleripaddress, accountcustomentity = caller\n),\n(\nawscloudtrail\n| where isnotempty(sourceipaddress)\n| where sourceipaddress in (iplist)\n| extend timestamp = timegenerated, ipcustomentity = sourceipaddress, accountcustomentity = useridentityusername\n),\n(\nazurediagnostics\n| where resourcetype == ""azurefirewalls""\n| where category == ""azurefirewallapplicationrule""\n| parse msg_s with protocol \'request from \' sourcehost \':\' sourceport \'to \' destinationhost \':\' destinationport \'. action:\' action\n| where isnotempty(destinationhost)\n| where destinationhost has_any (iplist) \n| extend destinationip = destinationhost \n| extend ipcustomentity = sourcehost\n),\n(\nazurediagnostics\n| where resourcetype == ""azurefirewalls""\n| where category == ""azurefirewallnetworkrule""\n| parse msg_s with protocol \'request from \' sourcehost \':\' sourceport \'to \' destinationhost \':\' destinationport \'. action:\' action\n| where isnotempty(destinationhost)\n| where destinationhost has_any (iplist) \n| extend destinationip = destinationhost \n| extend ipcustomentity = sourcehost\n)\n)', 'queryfrequency': 'p1d', 'queryperiod': 'p1d', 'triggeroperator': 'greaterthan', 'triggerthreshold': 0, 'suppressionduration': 'pt5h', 'suppressionenabled': false, 'tactics': ['commandandcontrol'], 'alertruletemplatename': '7ee72a9e-2e54-459c-bc8a-8c08a6532a63', 'incidentconfiguration': {'createincident': true, 'groupingconfiguration': {'enabled': false, 'reopenclosedincident': false, 'lookbackduration': 'pt5h', 'matchingmethod': 'allentities', 'groupbyentities': [], 'groupbyalertdetails': [], 'groupbycustomdetails': []}}, 'eventgroupingsettings': {'aggregationkind': 'singlealert'}, 'alertdetailsoverride': {'alertdisplaynameformat': 'known iridium ip: {{ipcustomentity}}', 'alertdescriptionformat': 'alert generated at {{timegenerated}}', 'alerttacticscolumnname': none, 'alertseveritycolumnname': 'severity'}, 'customdetails': {'group': 'aadgroupid'}, 'entitymappings': [{'entitytype': 'account', 'fieldmappings': [{'identifier': 'fullname', 'columnname': 'accountcustomentity'}]}, {'entitytype': 'host', 'fieldmappings': [{'identifier': 'fullname', 'columnname': 'hostcustomentity'}]}, {'entitytype': 'ip', 'fieldmappings': [{'identifier': 'address', 'columnname': 'ipcustomentity'}]}]}} END" +This template creates an Azure Machine Learning service workspace while allowing for various security configuraitons.," {'type': 'microsoft.machinelearningservices/workspaces', 'apiversion': '2020-09-01-preview', 'name': ""[parameters('workspacename')]"", 'location': ""[parameters('location')]"", 'identity': {'type': ""[parameters('identitytype')]"", 'userassignedidentities': ""[if(or(equals(parameters('identitytype'), 'userassigned'), equals(parameters('identitytype'), 'systemassigned,userassigned')), variables('userassignedidentities'), json('null'))]""}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts', parameters('storageaccountname'))]"", ""[resourceid('microsoft.keyvault/vaults', parameters('keyvaultname'))]"", ""[resourceid('microsoft.insights/components', parameters('applicationinsightsname'))]"", ""[resourceid('microsoft.containerregistry/registries', parameters('containerregistryname'))]""], 'tags': ""[parameters('tagvalues')]"", 'properties': {'friendlyname': ""[parameters('workspacename')]"", 'storageaccount': ""[variables('storageaccount')]"", 'keyvault': ""[variables('keyvault')]"", 'applicationinsights': ""[variables('applicationinsights')]"", 'containerregistry': ""[if(not(equals(parameters('containerregistryoption'), 'none')), variables('containerregistry'), json('null'))]"", 'adbworkspace': ""[if(empty(parameters('adbworkspace')), json('null'), parameters('adbworkspace'))]"", 'primaryuserassignedidentity': ""[if(equals(parameters('identitytype'), 'userassigned'), variables('primaryuserassignedidentity'), json('null'))]"", 'encryption': {'status': ""[parameters('encryption_status')]"", 'identity': ""[variables('encryptionidentity')]"", 'keyvaultproperties': {'keyvaultarmid': ""[parameters('cmk_keyvault')]"", 'keyidentifier': ""[parameters('resource_cmk_uri')]""}, 'cosmosdbarmid': ""[parameters('encryption_cosmosdb_armid')]"", 'storageaccountarmid': ""[parameters('encryption_storage_armid')]"", 'searchaccountarmid': ""[parameters('encryption_search_armid')]""}, 'hbiworkspace': ""[parameters('confidential_data')]""}} 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')]"", '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}} 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('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(variables('vmname'),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('storageaccountname'), '2021-01-01').primaryendpoints['blob']]""}}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'),'/newuserscript')]"", 'location': ""[parameters('location')]"", 'apiversion': '2020-12-01', '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('scriptfolder'), '/', variables('scriptfilename'), parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': '[concat(\'sh install.sh ""\', parameters(\'adminemail\'), \'"" \', parameters(\'clientpubkey\'))]'}}} 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')]""}}]}}{'apiversion': '2019-06-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('gatewaypublicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}}{'apiversion': '2019-06-01', 'type': 'microsoft.network/virtualnetworkgateways', 'name': ""[variables('gatewayname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses/', variables('gatewaypublicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/', parameters('virtualnetworkname'))]""], 'properties': {'ipconfigurations': [{'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('virtualnetworkname'), variables('gatewaysubnetname'))]""}, 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses',variables('gatewaypublicipaddressname'))]""}}, 'name': 'vnetgatewayconfig'}], 'sku': {'name': ""[variables('gatewaysku')]"", 'tier': ""[variables('gatewaysku')]""}, 'gatewaytype': 'vpn', 'vpntype': 'routebased', 'enablebgp': 'false', 'vpnclientconfiguration': {'vpnclientaddresspool': {'addressprefixes': [""[parameters('vpnclientaddresspoolprefix')]""]}, 'vpnclientrootcertificates': [{'name': ""[variables('clientrootcertname')]"", 'properties': {'publiccertdata': ""[parameters('publicrootcertdata')]""}}]}}} END" +This template configures WAF managed defaultRuleSet for Azure Front Door," {'type': 'microsoft.network/frontdoorwebapplicationfirewallpolicies', 'apiversion': '2020-11-01', 'name': ""[parameters('wafpolicyname')]"", 'location': 'global', 'properties': {'policysettings': {'mode': ""[parameters('wafmode')]"", 'enabledstate': 'enabled'}, 'managedrules': {'managedrulesets': [{'rulesettype': 'defaultruleset', 'rulesetversion': '1.0'}]}}} END" +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')]""}}}]}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-12-01', 'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('clientavailabilitysetsettings').name]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': ""[variables('clientavailabilitysetsettings').faultdomaincount]"", 'platformupdatedomaincount': ""[variables('clientavailabilitysetsettings').updatedomaincount]""}}{'apiversion': '2020-12-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(parameters('vmnameprefix'), 'client', copyindex())]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('storageaccountname'))]"", ""[resourceid('microsoft.compute/availabilitysets/', variables('clientavailabilitysetsettings').name)]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(parameters('vmnameprefix'), '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('vmnameprefix'), 'client', copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': ""[variables('ostype')]"", 'osdisk': {'name': ""[concat(parameters('vmnameprefix'), 'client', copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(parameters('vmnameprefix'), 'client', copyindex()))]""}]}}} 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')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}} 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')]""}}}{'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')]""}}]}}]}{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-07-01', 'name': ""[parameters('acrprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('virtualnetworkid')]"", ""[variables('acrid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('acrprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('acrid')]"", 'groupids': [""[variables('acrprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('vmsubnetid')]""}}, 'resources': [{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'privatednszonegroups', 'apiversion': '2020-07-01', 'name': ""[variables('acrprivatednszonegroupname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('acrid')]"", ""[variables('acrprivatednszoneid')]"", ""[variables('acrprivateendpointid')]""], 'properties': {'privatednszoneconfigs': [{'name': 'dnsconfig', 'properties': {'privatednszoneid': ""[variables('acrprivatednszoneid')]""}}]}}]}{'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('applicationgatewaypublicipaddressname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static'}} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'apiversion': '2021-01-01', 'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('supportlogstorageaccountname')]"", 'location': ""[parameters('location')]"", 'properties': {}, 'kind': 'storage', 'sku': {'name': ""[parameters('supportlogstorageaccounttype')]""}, 'tags': {'resourcetype': 'service fabric', 'clustername': ""[parameters('clustername')]""}} END" +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}]}} 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'}}{'apiversion': '2020-06-01', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(parameters('vmname'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'foo', 'count': ""[parameters('scalenumber')]""}, '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('vmsize')]""}, 'osprofile': {'computername': ""[concat(parameters('vmname'), copyindex())]"", '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'), copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[parameters('disktype')]""}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('nicname'), copyindex()))]""}]}}} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'apiversion': '2020-06-01', 'name': 'keyvaulttemplate', 'type': 'microsoft.resources/deployments', 'resourcegroup': ""[parameters('workspacekeyvaultresourcegroup')]"", 'properties': {'mode': 'incremental', 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'resources': [{'condition': ""[parameters('assignworkspacekeyvault')]"", 'type': 'microsoft.keyvault/vaults/accesspolicies', 'apiversion': '2019-09-01', 'name': ""[concat(parameters('workspacekeyvaultname'), '/add')]"", 'properties': {'accesspolicies': [{'tenantid': ""[reference(variables('primaryuserassignedidentity'), '2018-11-30').tenantid]"", 'objectid': ""[reference(variables('primaryuserassignedidentity'), '2018-11-30').principalid]"", 'permissions': {'secrets': ['get', 'list', 'set', 'delete', 'recover', 'backup', 'restore']}}]}}, {'condition': ""[parameters('assignworkspacekeyvault')]"", 'scope': ""[concat('microsoft.keyvault/vaults/', parameters('workspacekeyvaultname'))]"", 'type': 'microsoft.authorization/roleassignments', 'apiversion': '2020-04-01-preview', 'name': ""[variables('workspacekeyvaultadministratorrolename')]"", 'properties': {'roledefinitionid': ""[extensionresourceid(variables('workspacekeyvault'), 'microsoft.authorization/roledefinitions', variables('keyvaultadministratorroledefinition'))]"", 'principalid': ""[reference(variables('primaryuserassignedidentity'), '2018-11-30').principalid]"", 'principaltype': 'serviceprincipal'}}]}}}{'apiversion': '2020-06-01', 'name': 'storageaccounttemplate', 'type': 'microsoft.resources/deployments', 'resourcegroup': ""[parameters('workspacestorageaccountresourcegroup')]"", 'properties': {'mode': 'incremental', 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'resources': [{'condition': ""[parameters('assignworkspacestorageaccount')]"", 'scope': ""[concat('microsoft.storage/storageaccounts/', parameters('workspacestorageaccountname'))]"", 'type': 'microsoft.authorization/roleassignments', 'apiversion': '2020-04-01-preview', 'name': ""[variables('workspacestorageaccountcontributorrolename')]"", 'properties': {'roledefinitionid': ""[extensionresourceid(variables('workspacestorageaccount'), 'microsoft.authorization/roledefinitions', variables('contributorroledefinition'))]"", 'principalid': ""[reference(variables('primaryuserassignedidentity'), '2018-11-30').principalid]"", 'principaltype': 'serviceprincipal'}}, {'condition': ""[parameters('assignworkspacestorageaccount')]"", 'scope': ""[concat('microsoft.storage/storageaccounts/', parameters('workspacestorageaccountname'))]"", 'type': 'microsoft.authorization/roleassignments', 'apiversion': '2020-04-01-preview', 'name': ""[variables('workspacestorageaccountblobdatacontributorrolename')]"", 'properties': {'roledefinitionid': ""[extensionresourceid(variables('workspacestorageaccount'), 'microsoft.authorization/roledefinitions', variables('storageblobdatacontributorroledefinition'))]"", 'principalid': ""[reference(variables('primaryuserassignedidentity'), '2018-11-30').principalid]"", 'principaltype': 'serviceprincipal'}}]}}}{'apiversion': '2020-06-01', 'name': 'databricktemplate', 'type': 'microsoft.resources/deployments', 'resourcegroup': ""[parameters('workspacedatabrickresourcegroup')]"", 'properties': {'mode': 'incremental', 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'resources': [{'condition': ""[parameters('assignworkspacedatabrick')]"", 'scope': ""[concat('microsoft.databricks/workspaces/', parameters('workspacedatabrickname'))]"", 'type': 'microsoft.authorization/roleassignments', 'apiversion': '2020-04-01-preview', 'name': ""[variables('workspacedatabrickcontributorrolename')]"", 'properties': {'roledefinitionid': ""[extensionresourceid(variables('workspacedatabrick'), 'microsoft.authorization/roledefinitions', variables('contributorroledefinition'))]"", 'principalid': ""[reference(variables('primaryuserassignedidentity'), '2018-11-30').principalid]"", 'principaltype': 'serviceprincipal'}}]}}}{'apiversion': '2020-06-01', 'name': 'containerregistrytemplate', 'type': 'microsoft.resources/deployments', 'resourcegroup': ""[parameters('workspacecontainerregistryresourcegroup')]"", 'properties': {'mode': 'incremental', 'template': {'$schema': 'https://schema.management.azure.com/schemas/2019-04-01/deploymenttemplate.json#', 'contentversion': '1.0.0.0', 'resources': [{'condition': ""[parameters('assignworkspacecontainerregistry')]"", 'scope': ""[concat('microsoft.containerregistry/registries/', parameters('workspacecontainerregistryname'))]"", 'type': 'microsoft.authorization/roleassignments', 'apiversion': '2020-04-01-preview', 'name': ""[variables('workspacecontainerregistrycontributorrolename')]"", 'properties': {'roledefinitionid': ""[extensionresourceid(variables('workspacecontainerregistry'), 'microsoft.authorization/roledefinitions', variables('contributorroledefinition'))]"", 'principalid': ""[reference(variables('primaryuserassignedidentity'), '2018-11-30').principalid]"", 'principaltype': 'serviceprincipal'}}]}}} 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'))]""}]}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'apiversion': '2020-05-01', 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname2')]"", 'apiversion': '2020-05-01', 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype2')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix1')]""}}}{'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': '*'}}]}}{'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('vnetname')]"", 'apiversion': '2020-05-01', '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'))]""}}}]}}{'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'apiversion': '2020-05-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks', variables('vnetname'))]"", ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname2'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig-1', 'properties': {'primary': true, 'privateipallocationmethod': 'dynamic', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}, 'subnet': {'id': ""[variables('subnetref')]""}}}, {'name': 'ipconfig-2', 'properties': {'privateipaddress': '10.0.0.5', 'privateipallocationmethod': 'static', 'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname2'))]""}, 'subnet': {'id': ""[variables('subnetref')]""}}}, {'name': 'ipconfig-3', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('subnetref')]""}}}]}} END" +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')]""}} 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/sites/config', 'apiversion': '2020-12-01', 'name': ""[format('{0}/{1}', variables('webappname'), 'web')]"", 'properties': {'ftpsstate': 'disabled', 'mintlsversion': '1.2', 'detailederrorloggingenabled': true, 'httploggingenabled': true, 'requesttracingenabled': true, 'remotedebuggingenabled': false}, 'dependson': [""[resourceid('microsoft.web/sites', variables('webappname'))]""]}{'type': 'microsoft.web/serverfarms', 'apiversion': '2021-01-01', 'name': ""[format('plan-{0}', variables('basename'))]"", 'location': ""[parameters('location')]"", 'kind': 'app', 'sku': {'name': ""[parameters('webappskuname')]"", 'capacity': 1}, 'properties': {}}{'type': 'microsoft.web/sites', 'apiversion': '2020-12-01', 'name': ""[variables('webappname')]"", 'location': ""[parameters('location')]"", 'kind': 'app', 'properties': {'httpsonly': true, 'serverfarmid': ""[resourceid('microsoft.web/serverfarms', format('plan-{0}', variables('basename')))]"", 'virtualnetworksubnetid': ""[variables('appserviceintegrationsubnetid')]"", 'siteconfig': {'vnetrouteallenabled': true}}, 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('vnetname'))]"", ""[resourceid('microsoft.web/serverfarms', format('plan-{0}', variables('basename')))]""]}{'type': 'microsoft.web/sites/config', 'apiversion': '2021-01-15', 'name': ""[format('{0}/appsettings', variables('webappname'))]"", 'properties': {'appinsights_instrumentationkey': ""[format('@microsoft.keyvault(secreturi={0})', reference(resourceid('microsoft.keyvault/vaults/secrets', variables('keyvaultname'), format('kvs-{0}-aikey', variables('basename')))).secreturi)]""}, 'dependson': [""[resourceid('microsoft.keyvault/vaults/secrets', variables('keyvaultname'), format('kvs-{0}-aikey', variables('basename')))]"", ""[resourceid('microsoft.web/sites', variables('webappname'))]""]} 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')]""}}}}{'name': 'data-node', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-11-01', 'comments': 'cloudera data nodes or cluster members', 'dependson': ['microsoft.resources/deployments/shared-resources'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('data-nodeuri')]"", '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('workerstorageaccount')]""}, 'vmcount': {'value': ""[variables('clusterspec').datanodecount]""}, 'vmspec': {'value': ""[variables('vmspec')]""}, 'networkspec': {'value': ""[variables('networkspec')]""}, 'clusterspec': {'value': ""[variables('clusterspec')]""}, 'clouderatags': {'value': ""[variables('clouderatags')]""}, 'tableautags': {'value': ""[variables('tableautags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'tableau-server', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-11-01', 'comments': 'tableau server offering from the azure market place', 'dependson': ['microsoft.resources/deployments/shared-resources'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(variables('scriptsuri'), '/nested/tableau-server.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')]""}, 'vmspec': {'value': ""[variables('vmspec')]""}, 'networkspec': {'value': ""[variables('networkspec')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'clouderatags': {'value': ""[variables('clouderatags')]""}, 'tableautags': {'value': ""[variables('tableautags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}}{'name': 'setup-cloudera', 'type': 'microsoft.resources/deployments', 'apiversion': '2015-11-01', 'comments': 'scripts and configuration settings that intialize the cloudera cluster environment', 'dependson': ['microsoft.resources/deployments/data-node', 'microsoft.resources/deployments/master-node'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[concat(variables('scriptsuri'), '/nested/setup-cloudera.json')]"", 'contentversion': '1.0.0.1'}, 'parameters': {'resourceapiversion': {'value': ""[variables('resourceapiversion')]""}, 'dnsnameprefix': {'value': ""[parameters('dnsnameprefix')]""}, 'scriptsuri': {'value': ""[variables('scriptsuri')]""}, 'vmspec': {'value': ""[variables('vmspec')]""}, 'networkspec': {'value': ""[variables('networkspec')]""}, 'clusterspec': {'value': ""[variables('clusterspec')]""}, 'fqdn': {'value': ""[reference('master-node').outputs.fqdn.value]""}, 'cmusername': {'value': ""[parameters('cmusername')]""}, 'cmpassword': {'value': ""[parameters('cmpassword')]""}, 'company': {'value': ""[parameters('company')]""}, 'emailaddress': {'value': ""[parameters('emailaddress')]""}, 'businessphone': {'value': ""[parameters('businessphone')]""}, 'firstname': {'value': ""[parameters('firstname')]""}, 'lastname': {'value': ""[parameters('lastname')]""}, 'jobrole': {'value': ""[parameters('jobrole')]""}, 'jobfunction': {'value': ""[parameters('jobfunction')]""}, 'installcdh': {'value': ""[variables('installcdh')]""}, 'clouderatags': {'value': ""[variables('clouderatags')]""}, 'tableautags': {'value': ""[variables('tableautags')]""}, 'quickstarttags': {'value': ""[variables('quickstarttags')]""}}}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat('zookprvm', copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'virtualzookeepermachineloop', 'count': ""[variables('numberofzookeeperinstances')]""}, 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]"", ""[concat('microsoft.network/networkinterfaces/', 'niczoo', copyindex())]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', 'kafkacluseras')]""}, 'hardwareprofile': {'vmsize': ""[variables('vmsize')]""}, 'osprofile': {'computername': ""[concat(variables('computernameprefix'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'linuxconfiguration': {'disablepasswordauthentication': false}}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat('zookprvm', copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat('niczoo', copyindex()))]""}]}}} END" +This template provides a Redis Cache with the benefit of Virtual Network support.," {'name': ""[variables('cachename')]"", 'type': 'microsoft.cache/redis', 'location': ""[parameters('location')]"", 'apiversion': '2015-08-01', 'tags': {'displayname': 'cache'}, 'properties': {'sku': {'name': ""[parameters('cacheskuname')]"", 'family': ""[parameters('cacheskufamily')]"", 'capacity': ""[parameters('cacheskucapacity')]""}}} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'comments': 'this deployment links to the vnets.json nested arm template', 'name': ""[concat('linkedtemplate-vnet', '-', copyindex())]"", 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'copy': {'name': 'vnetcopy', 'count': ""[length(parameters('vnets'))]""}, 'properties': {'mode': 'incremental', 'templatelink': {'contentversion': '1.0.0.0', 'uri': ""[variables('vnetnestedtemplateuri')]""}, 'parameters': {'suffix': {'value': ""[variables('suffix')]""}, 'location': {'value': ""[parameters('location')]""}, 'vnets': {'value': ""[parameters('vnets')[copyindex()]]""}}}}{'comments': 'this deployment links to the vnet_peering.json nested arm template', 'name': 'linkedtemplate-peerings', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': ['vnetcopy'], 'properties': {'mode': 'incremental', 'templatelink': {'contentversion': '1.0.0.0', 'uri': ""[variables('vnetpeeringnestedtemplateuri')]""}, 'parameters': {'suffix': {'value': ""[variables('suffix')]""}, 'location': {'value': ""[parameters('location')]""}, 'vnets': {'value': ""[parameters('vnets')]""}}}}{'comments': 'this deployment links to the app_svc_plan.json nested arm template', 'name': 'linkedtemplate-app-svc-plan', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': ['vnetcopy'], 'properties': {'mode': 'incremental', 'templatelink': {'contentversion': '1.0.0.0', 'uri': ""[variables('appserviceplannestedtemplateuri')]""}, 'parameters': {'suffix': {'value': ""[variables('suffix')]""}, 'location': {'value': ""[parameters('location')]""}, 'serverfarmsku': {'value': {'tier': 'standard', 'name': 's1'}}}}}{'comments': 'this deployment links to the app.json nested arm template', 'name': 'linkedtemplate-app', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': ['linkedtemplate-app-svc-plan'], 'properties': {'mode': 'incremental', 'templatelink': {'contentversion': '1.0.0.0', 'uri': ""[variables('appnestedtemplateuri')]""}, 'parameters': {'location': {'value': ""[parameters('location')]""}, 'hostingplanname': {'value': ""[reference(resourceid('microsoft.resources/deployments', 'linkedtemplate-app-svc-plan')).outputs.serverfarmname.value]""}, 'subnet': {'value': ""[reference(resourceid('microsoft.resources/deployments', 'linkedtemplate-vnet-1')).outputs.subnetresourceids.value[0].id]""}, 'appname': {'value': ""[variables('appname')]""}, 'ipaddressrestriction': {'value': ['0.0.0.0/32']}}}}{'comments': 'this deployment links to the sqldb.json nested arm template', 'name': 'linkedtemplate-sqldb', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-06-01', 'dependson': ['vnetcopy'], 'properties': {'mode': 'incremental', 'templatelink': {'contentversion': '1.0.0.0', 'uri': ""[variables('sqlnestedtemplateuri')]""}, 'parameters': {'suffix': {'value': ""[variables('suffix')]""}, 'location': {'value': ""[parameters('location')]""}, 'sqladministratorlogin': {'value': ""[parameters('sqladministratorloginname')]""}, 'sqladministratorloginpassword': {'value': ""[parameters('sqladministratorloginpassword')]""}, 'databasename': {'value': ""[variables('sqldatabasename')]""}}}} END" +This template creates a MySQL datastore in Azure Machine Learning workspace.," {'type': 'microsoft.machinelearningservices/workspaces/datastores', 'name': ""[concat(parameters('workspacename'), '/', parameters('datastorename'))]"", 'apiversion': '2020-05-01-preview', 'location': ""[parameters('location')]"", 'properties': {'datastoretype': 'mysqldb', 'skipvalidation': ""[parameters('skipvalidation')]"", 'databasename': ""[parameters('databasename')]"", 'password': ""[parameters('password')]"", 'servername': ""[parameters('servername')]"", 'userid': ""[parameters('userid')]"", 'port': ""[parameters('port')]"", 'endpoint': ""[parameters('endpoint')]""}} 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())]""}}}{'condition': ""[greaterorequals(parameters('numberofadditionalfrontend'), 1)]"", 'name': ""[concat(variables('vmfe').vmnicname, '-', copyindex())]"", 'type': 'microsoft.network/networkinterfaces', 'location': ""[parameters('location')]"", 'apiversion': '2021-02-01', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('networksettings').vnetprivatename)]"", 'frontendpublicipaddresses'], 'tags': {'displayname': ""[concat(variables('vmfe').vmnicname, '-', copyindex())]""}, 'copy': {'name': 'frontendnetworkinterfaces', 'count': ""[parameters('numberofadditionalfrontend')]""}, 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('networksettings').vnetprivatename, variables('networksettings').subnetspname)]""}, 'publicipaddress': '[if(parameters(\'addpublicipaddresstoeachvm\'), json(concat(\'{""id"": ""\', resourceid(\'microsoft.network/publicipaddresses\', concat(variables(\'vmfe\').vmpublicipname, \'-\', copyindex())), \'"" }\')), json(\'null\'))]'}}]}}{'condition': ""[equals(parameters('addazurebastion'), true())]"", 'apiversion': '2021-02-01', 'type': 'microsoft.network/networksecuritygroups', 'name': 'nsg-subnet-azurebastion', 'location': ""[parameters('location')]"", 'tags': {'displayname': 'nsg-subnet-azurebastion'}, 'properties': {'securityrules': [{'name': 'allow-443-internet', 'properties': {'description': 'allow 443 internet', 'direction': 'inbound', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 120}}, {'name': 'allow-443-gatewaymanager', 'properties': {'description': 'allow 443 gatewaymanager ', 'direction': 'inbound', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': 'gatewaymanager', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 130}}, {'name': 'allow-rdp-outbound', 'properties': {'description': 'allow rdp outbound ', 'direction': 'outbound', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '3389', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 120}}, {'name': 'allow-ssh-outbound', 'properties': {'description': 'allow ssh outbound', 'direction': 'outbound', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'virtualnetwork', 'access': 'allow', 'priority': 121}}, {'name': 'allow-azurecloud-outbound', 'properties': {'description': 'allow azurecloud outbound ', 'direction': 'outbound', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': '*', 'destinationaddressprefix': 'azurecloud', 'access': 'allow', 'priority': 130}}]}}{'condition': ""[equals(parameters('addazurebastion'), true())]"", 'type': 'microsoft.network/virtualnetworks/subnets', 'name': ""[concat(variables('networksettings').vnetprivatename, '/', 'azurebastionsubnet')]"", 'apiversion': '2021-02-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/virtualnetworks', variables('networksettings').vnetprivatename)]"", ""[resourceid('microsoft.network/networksecuritygroups', 'nsg-subnet-azurebastion')]""], 'properties': {'addressprefix': ""[variables('azurebastion').subnetprefix]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', 'nsg-subnet-azurebastion')]""}}} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'name': 'shared-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('sharedtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'commonsettings': {'value': ""[variables('commonsettings')]""}, 'networksettings': {'value': ""[variables('networksettings')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'condition': ""[equals('enabled', parameters('jumpbox'))]"", 'name': 'jumpbox-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('jumpboxtemplateurl')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'networksettings': {'value': ""[variables('networksettings')]""}, 'machinesettings': {'value': ""[variables('machinesettings')]""}, 'adminpasswordorkey': {'value': ""[parameters('adminpasswordorkey')]""}, 'authenticationtype': {'value': ""[parameters('authenticationtype')]""}, 'location': {'value': ""[parameters('location')]""}, 'vmsize': {'value': ""[parameters('vmsize')]""}}}}{'type': 'microsoft.resources/deployments', 'name': ""[concat('node-resources', copyindex())]"", 'apiversion': '2020-10-01', 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]""], 'copy': {'name': 'membernodesloop', 'count': ""[variables('clusterspec').totalmembercountexcludinglast]""}, 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('clusterspec').vmtemplate]"", 'contentversion': '1.0.0.0'}, 'parameters': {'commonsettings': {'value': ""[variables('commonsettings')]""}, 'networksettings': {'value': ""[variables('networksettings')]""}, 'machinesettings': {'value': {'adminusername': ""[variables('machinesettings').adminusername]"", 'machinenameprefix': ""[variables('machinesettings').machinenameprefix]"", 'osimagereference': ""[variables('machinesettings').osimagereference]"", 'vmsize': ""[variables('clusterspec').vmsizemember]"", 'machineindex': '[copyindex()]', 'vmscripts': ""[variables('vmscripts').scriptstodownload]"", 'commandtoexecute': ""[concat(variables('vmscripts').installcommand, ' -i ', copyindex())]""}}, 'adminpasswordorkey': {'value': ""[parameters('adminpasswordorkey')]""}, 'authenticationtype': {'value': ""[parameters('authenticationtype')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'name': 'lastnode-resources', 'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'dependson': ['membernodesloop'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('clusterspec').vmtemplate]"", 'contentversion': '1.0.0.0'}, 'parameters': {'commonsettings': {'value': ""[variables('commonsettings')]""}, 'networksettings': {'value': ""[variables('networksettings')]""}, 'machinesettings': {'value': {'adminusername': ""[variables('machinesettings').adminusername]"", 'machinenameprefix': ""[variables('machinesettings').machinenameprefix]"", 'osimagereference': ""[variables('machinesettings').osimagereference]"", 'vmsize': ""[variables('clusterspec').vmsizemember]"", 'machineindex': ""[variables('clusterspec').totalmembercountexcludinglast]"", 'vmscripts': ""[variables('vmscripts').scriptstodownload]"", 'commandtoexecute': ""[concat(variables('vmscripts').setupcommand, ' -i ', variables('clusterspec').totalmembercountexcludinglast)]""}}, 'adminpasswordorkey': {'value': ""[parameters('adminpasswordorkey')]""}, 'authenticationtype': {'value': ""[parameters('authenticationtype')]""}, 'location': {'value': ""[parameters('location')]""}}}} END" +Create and configre persistence in premium Redis Cache using a template. Redis persistence enables you to take snapshots and back up the data which you can load in case of a hardware failure.," {'type': 'microsoft.cache/redis', 'apiversion': '2020-06-01', 'name': ""[parameters('rediscachename')]"", 'location': ""[parameters('location')]"", 'properties': {'enablenonsslport': ""[parameters('enablenonsslport')]"", 'minimumtlsversion': '1.2', 'sku': {'capacity': ""[parameters('rediscachecapacity')]"", 'family': ""[parameters('rediscachefamily')]"", 'name': ""[parameters('rediscachesku')]""}, 'redisconfiguration': {'rdb-backup-enabled': 'true', 'rdb-backup-frequency': '60', 'rdb-backup-max-snapshot-count': '1', 'rdb-storage-connection-string': ""[format('defaultendpointsprotocol=https;blobendpoint=https://{0}.blob.{1};accountname={2};accountkey={3}', parameters('storageaccountname'), environment().suffixes.storage, parameters('storageaccountname'), listkeys(resourceid('microsoft.storage/storageaccounts', parameters('storageaccountname')), '2021-04-01').keys[0].value)]""}}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'comments': 'create new network security group.', 'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2021-06-01', 'name': ""[parameters('networksecuritygroupname')]"", 'location': ""[variables('location')]"", 'properties': {'securityrules': [{'name': 'allowmgmtinports22', 'properties': {'description': 'allow inbound traffic to tcp ports 22 from customer selected ips/ranges.', 'direction': 'inbound', 'priority': 1001, 'access': 'allow', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportranges': ['22'], 'sourceaddressprefixes': ""[variables('nsgsourceaddressprefix')]"", 'destinationaddressprefix': '*'}}, {'name': 'allowvnetinports80_443', 'properties': {'description': 'allow inbound traffic to tcp ports 80 and 443 from all vms in the vnet.', 'direction': 'inbound', 'priority': 1011, 'access': 'allow', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportranges': ['80', '443'], 'sourceaddressprefix': 'virtualnetwork', 'destinationaddressprefix': 'virtualnetwork'}}, {'name': 'denyallin', 'properties': {'description': 'deny all inbound traffic.', 'direction': 'inbound', 'priority': 1021, 'access': 'deny', 'protocol': '*', 'sourceportrange': '*', 'destinationportrange': '*', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*'}}]}}{'type': 'microsoft.network/networkinterfaces', 'apiversion': '2021-02-01', 'name': ""[concat(parameters('vsensorname'), '-', copyindex(1),'-nic')]"", 'location': ""[variables('location')]"", 'copy': {'name': 'nicloop', 'count': ""[parameters('numberofvsensors')]""}, 'dependson': [""[variables('nsgid')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'subnet': {'id': ""[resourceid(parameters('virtualnetworkresourcegroupname'), 'microsoft.network/virtualnetworks/subnets/', parameters('virtualnetworkname'), parameters('subnet1name'))]""}, 'privateipallocationmethod': 'dynamic'}}], 'enableacceleratednetworking': true, 'networksecuritygroup': {'id': ""[variables('nsgid')]""}}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2019-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}}{'apiversion': '2019-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}}{'apiversion': '2019-11-01', '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': '2019-11-01', '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" +Create a VM from a Windows Image with 4 Empty Data Disks," {'name': ""[parameters('vmname')]"", 'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-07-01', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces', concat(parameters('vmname'),'-nic-01'))]"", ""[resourceid('microsoft.storage/storageaccounts',tolower(parameters('storageaccountname')))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': 'canonical', 'offer': 'ubuntuserver', 'sku': '16.04-lts', 'version': 'latest'}, 'osdisk': {'name': ""[concat(parameters('vmname'),'-os-01')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(parameters('vmname'),'-nic-01'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts/', tolower(parameters('storageaccountname')))).primaryendpoints.blob]""}}}} 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'))]""}}}{'type': 'microsoft.compute/virtualmachines', 'apiversion': '2019-07-01', 'name': ""[variables('mid_vm_name')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('mid_nw_interface'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('diagnostic_storagegroup_name'))]""], 'tags': ""[variables('sas94vm_tags')]"", 'properties': {'hardwareprofile': {'vmsize': ""[parameters('sasmidvmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'redhat', 'offer': 'rhel', 'sku': '7.7', 'version': 'latest'}, 'osdisk': {'ostype': 'linux', 'name': ""[concat(variables('mid_vm_name'),'-osdisk')]"", 'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': 'premium_lrs'}, 'disksizegb': ""[variables('sas_osdisk_size')]""}, 'datadisks': [{'name': ""[concat(variables('mid_vm_name'),'-opt-sas')]"", 'disksizegb': ""[variables('sas_opt_sas_disk_size')]"", 'lun': 0, 'createoption': 'empty'}]}, 'osprofile': {'computername': ""[variables('mid_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('mid_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('microservices_vm_name')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('microservices_nw_interface'))]"", ""[resourceid('microsoft.storage/storageaccounts', variables('diagnostic_storagegroup_name'))]""], 'tags': ""[variables('sasviyavm_tags')]"", 'properties': {'hardwareprofile': {'vmsize': ""[parameters('viyamicroservicesvmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'redhat', 'offer': 'rhel', 'sku': '7.7', 'version': 'latest'}, 'osdisk': {'ostype': 'linux', 'name': ""[concat(variables('microservices_vm_name'),'-osdisk')]"", 'createoption': 'fromimage', 'caching': 'readwrite', 'manageddisk': {'storageaccounttype': 'premium_lrs'}, 'disksizegb': ""[variables('sas_osdisk_size')]""}, 'datadisks': [{'name': ""[concat(variables('microservices_vm_name'),'-opt-sas')]"", 'disksizegb': ""[variables('sas_opt_sas_disk_size')]"", 'lun': 0, 'createoption': 'empty'}, {'name': ""[concat(variables('microservices_vm_name'),'-sasbackup')]"", 'disksizegb': ""[variables('sas_viya_backup_size')]"", 'lun': 1, 'createoption': 'empty'}]}, 'osprofile': {'computername': ""[variables('microservices_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('microservices_nw_interface'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(variables('diagnostic_storagegroup_name')).primaryendpoints.blob]""}}, 'proximityplacementgroup': {'id': ""[resourceid('microsoft.compute/proximityplacementgroups',variables('ppg_name'))]""}}} 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': ['172.20.0.0/16']}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': '172.20.0.0/24', 'privateendpointnetworkpolicies': 'disabled'}}]}}{'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-07-01', 'name': ""[parameters('privateendpointname')]"", 'location': ""[parameters('location')]"", 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('virtualnetworkname'), variables('subnetname'))]""}, 'privatelinkserviceconnections': [{'name': 'myconnection', 'properties': {'privatelinkserviceid': ""[resourceid('microsoft.apimanagement/service', parameters('apimanagementservicename'))]"", 'groupids': ['gateway']}}]}, 'dependson': [""[resourceid('microsoft.apimanagement/service', parameters('apimanagementservicename'))]""]}{'type': 'microsoft.network/privatednszones', 'apiversion': '2020-06-01', 'name': ""[variables('privatednszonename')]"", 'location': 'global', 'dependson': [""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""]}{'type': 'microsoft.network/privatednszones/virtualnetworklinks', 'apiversion': '2020-06-01', 'name': ""[format('{0}/{1}', variables('privatednszonename'), format('{0}-link', variables('privatednszonename')))]"", 'location': 'global', 'properties': {'registrationenabled': false, 'virtualnetwork': {'id': ""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""}}, 'dependson': [""[resourceid('microsoft.network/privatednszones', variables('privatednszonename'))]"", ""[resourceid('microsoft.network/virtualnetworks', parameters('virtualnetworkname'))]""]} 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')]"", 'tags': {'displayname': 'virtualmachine'}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts', variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces', variables('vmnicname'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, '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('vmnicname'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(variables('vmname'), '/installeventhubelk')]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines', variables('vmname'))]"", ""[resourceid('microsoft.resources/deployments', variables('esdeploymentname'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/logstash-eventhub-install-ubuntu.sh', parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[concat('bash logstash-eventhub-install-ubuntu.sh -n ', parameters('existingehnamespace'), ' -a ', parameters('existingehsharedaccesskeyname'), ' -k ', parameters('existingehsharedaccesskey'), ' -e ', parameters('existingehentitypath'), ' -p ', parameters('existingehpartitions'), ' -i ', variables('eshost'))]""}}} 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': ""[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('ubuntuosversion')]"", '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': '2020-06-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': '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': '*'}}]}}{'apiversion': '2020-06-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}} END" +Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage," {'type': 'microsoft.sql/servers/databases', 'apiversion': '2020-08-01-preview', 'name': ""[format('{0}/{1}', format('sqlserver{0}', uniquestring(resourcegroup().id)), variables('databasename'))]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'basic'}, 'properties': {'collation': 'sql_latin1_general_cp1_ci_as', 'maxsizebytes': 1073741824}, 'dependson': [""[resourceid('microsoft.sql/servers', format('sqlserver{0}', uniquestring(resourcegroup().id)))]""]}{'type': 'microsoft.sql/servers/firewallrules', 'apiversion': '2020-11-01-preview', 'name': ""[format('{0}/{1}', format('sqlserver{0}', uniquestring(resourcegroup().id)), 'allowallwindowsazureips')]"", 'properties': {'endipaddress': '0.0.0.0', 'startipaddress': '0.0.0.0'}, 'dependson': [""[resourceid('microsoft.sql/servers', format('sqlserver{0}', uniquestring(resourcegroup().id)))]""]}{'type': 'microsoft.sql/servers', 'apiversion': '2020-11-01-preview', 'name': ""[format('sqlserver{0}', uniquestring(resourcegroup().id))]"", 'location': ""[parameters('location')]"", 'properties': {'administratorlogin': ""[parameters('sqladministratorlogin')]"", 'administratorloginpassword': ""[parameters('sqladministratorpassword')]"", 'version': '12.0'}} END" +This template deploys a Windows VM and then apply the Azure secure baseline configuration to the machine.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2021-07-01', 'name': ""[parameters('vmname')]"", 'location': ""[parameters('location')]"", 'zones': [""[parameters('zone')]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'storageprofile': {'imagereference': {'publisher': 'microsoftwindowsserver', 'offer': 'windowsserver', 'sku': ""[parameters('osversion')]"", 'version': 'latest'}, 'osdisk': {'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[parameters('osdiskstorageaccounttype')]""}}, 'datadisks': [{'disksizegb': 1023, 'lun': 0, 'createoption': 'empty'}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', format('{0}-nic', parameters('vmname')))]""}]}, 'osprofile': {'computername': ""[parameters('vmname')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'windowsconfiguration': {'enableautomaticupdates': true}}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true}}}, 'dependson': [""[resourceid('microsoft.network/networkinterfaces', format('{0}-nic', parameters('vmname')))]""]}{'type': 'microsoft.compute/virtualmachines/extensions', 'apiversion': '2021-07-01', 'name': ""[format('{0}/{1}', parameters('vmname'), 'azurepolicyforwindows')]"", 'location': ""[parameters('location')]"", 'properties': {'publisher': 'microsoft.guestconfiguration', 'type': 'configurationforwindows', 'typehandlerversion': '1.0', 'autoupgrademinorversion': true, 'enableautomaticupgrade': true}, 'dependson': [""[resourceid('microsoft.compute/virtualmachines', parameters('vmname'))]""]} 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')]""}}}} END" +Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('toolstorageaccountname')]"", 'apiversion': '2021-04-01', 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storage', 'properties': {}}{'type': 'microsoft.storage/storageaccounts', 'name': ""[variables('tapstorageaccountname')]"", 'apiversion': '2021-04-01', 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storage', 'properties': {}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vmname')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('nicname'))]""], 'zones': ""[variables('selectedzones')]"", 'apiversion': '2021-04-01', 'location': ""[parameters('location')]"", 'properties': {'hardwareprofile': {'vmsize': ""[variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].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', 'manageddisk': {'storageaccounttype': 'premium_lrs'}}, 'datadisks': ""[variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].disks]""}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('nicname'))]""}]}}} END" +"Deploy a NAT Gateway, Network Security Group, a Virtual Network and an Azure Databricks Workspace with the Virtual Network."," {'apiversion': '2018-04-01', 'type': 'microsoft.databricks/workspaces', 'location': ""[parameters('location')]"", 'name': ""[parameters('workspacename')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups/', parameters('nsgname'))]"", ""[resourceid('microsoft.network/virtualnetworks/', parameters('vnetname'))]""], 'sku': {'name': ""[parameters('pricingtier')]""}, 'comments': 'the managed resource group specified will be locked after deployment.', 'properties': {'managedresourcegroupid': ""[variables('managedresourcegroupid')]"", 'parameters': {'customvirtualnetworkid': {'value': ""[variables('vnetid')]""}, 'custompublicsubnetname': {'value': ""[parameters('publicsubnetname')]""}, 'customprivatesubnetname': {'value': ""[parameters('privatesubnetname')]""}, 'enablenopublicip': {'value': ""[parameters('disablepublicip')]""}}}} 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')]""}}]}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-07-01', 'location': ""[parameters('location')]"", 'name': ""[concat(parameters('projectname'),'nsg')]"", 'properties': {'securityrules': [{'name': 'allow_rdp', 'properties': {'access': 'allow', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*', 'destinationportrange': '3389', 'protocol': '*', 'direction': 'inbound', 'priority': 1000}}, {'name': 'allow_http', 'properties': {'access': 'allow', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*', 'destinationportrange': '80', 'protocol': 'tcp', 'direction': 'inbound', 'priority': 1001}}, {'name': 'allow_https', 'properties': {'access': 'allow', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*', 'destinationportrange': '443', 'protocol': 'tcp', 'direction': 'inbound', 'priority': 1002}}, {'name': 'allow_udp_3391', 'properties': {'access': 'allow', 'sourceaddressprefix': '*', 'sourceportrange': '*', 'destinationaddressprefix': '*', 'destinationportrange': '3391', 'protocol': 'udp', 'direction': 'inbound', 'priority': 1003}}]}} END" +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()))]""}]}}} END" +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')]""}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2019-06-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('publicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('dnslabelprefix')]""}}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[parameters('availabilitysetname')]"", 'apiversion': '2021-07-01', 'location': ""[parameters('location')]"", 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 2}, 'sku': {'name': 'aligned'}, 'tags': {'provider': ""[variables('provider')]""}}{'apiversion': '2016-04-30-preview', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmname'),copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'vmloop', 'count': ""[parameters('numberofinstances')]""}, 'dependson': [""[concat('microsoft.network/networkinterfaces/', variables('nicname'), copyindex())]"", ""[concat('microsoft.compute/availabilitysets/', parameters('availabilitysetname'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', parameters('availabilitysetname'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmname'),copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'osdisk': {'createoption': 'fromimage'}, 'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat(variables('nicname'),copyindex()))]""}]}}, 'tags': {'provider': ""[variables('provider')]""}} END" +This template uses Azure Data Factory to perform data movement from Salesforce to Azure Blobs," {'type': 'microsoft.datafactory/datafactories/gateways', 'apiversion': '2015-10-01', 'name': ""[concat(parameters('existingdatafactoryname'), '/', parameters('gatewayname'))]"", 'properties': {'description': 'my gateway'}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'apiversion': '2020-06-01', 'name': ""[parameters('virtualmachinename')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces/', variables('networkinterfacename'))]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('virtualmachinesize')]""}, 'storageprofile': {'osdisk': {'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': 'premium_lrs'}}, 'imagereference': {'publisher': 'microsoftsqlserver', 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('sqlsku')]"", 'version': 'latest'}, 'copy': [{'name': 'datadisks', 'count': ""[add(parameters('sqldatadiskscount'), parameters('sqllogdiskscount'))]"", 'input': {'lun': ""[copyindex('datadisks')]"", 'createoption': ""[variables('datadisks').createoption]"", 'caching': ""[if(greaterorequals(copyindex('datadisks'), parameters('sqldatadiskscount')) ,'none', variables('datadisks').caching )]"", 'writeacceleratorenabled': ""[variables('datadisks').writeacceleratorenabled]"", 'disksizegb': ""[variables('datadisks').disksizegb]"", 'manageddisk': {'storageaccounttype': ""[variables('datadisks').storageaccounttype]""}}}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', variables('networkinterfacename'))]""}]}, 'osprofile': {'computername': ""[parameters('virtualmachinename')]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'windowsconfiguration': {'enableautomaticupdates': true, 'provisionvmagent': true}}}} END" +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': [""[variables('storageaccountname')]"", ""[variables('nicname')]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[variables('vmname')]"", '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': {'createoption': 'fromimage', 'manageddisk': {'storageaccounttype': ""[parameters('storageaccounttype')]""}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts', variables('storageaccountname'))).primaryendpoints['blob']]""}}}, 'resources': [{'type': 'extensions', 'name': 'initdokku', 'apiversion': '2020-06-01', 'location': ""[parameters('location')]"", 'dependson': [""[variables('vmname')]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat('scripts/deploy_dokku.sh', parameters('_artifactslocationsastoken')))]""], 'commandtoexecute': ""[concat('sh deploy_dokku.sh ', parameters('dokkuversion'))]""}}}]} 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')]""}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-11-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('lbpublicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': ""[variables('lbpublicipaddresstype')]"", 'dnssettings': {'domainnamelabel': ""[parameters('lbdnslabelprefix')]""}}}{'apiversion': '2020-11-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('vnetname')]"", '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.," {'apiversion': '2020-08-01', 'name': 'deploy-xss-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-08-01', 'name': ""[concat(variables('vnetname'),'-resource')]"", 'type': 'microsoft.resources/deployments', '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')]""}}}} END" +This sample contains a script to easily migrate template gallery templates to templateSpec resources.," {'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': 'createvnet', 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('vnettemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'virtualnetworkname': {'value': ""[variables('virtualnetworkname')]""}, 'virtualnetworkaddressrange': {'value': ""[variables('virtualnetworkaddressrange')]""}, 'subnetname': {'value': ""[variables('adsubnetname')]""}, 'subnetrange': {'value': ""[variables('adsubnet')]""}, 'location': {'value': ""[parameters('location')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': 'updatevnetdns1', 'dependson': [""[resourceid('microsoft.compute/virtualmachines/extensions', variables('vmname')[0], 'createadforest')]"", ""[resourceid('microsoft.compute/virtualmachines/extensions', variables('vmname')[1], 'peparebdc')]""], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('vnettemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'virtualnetworkname': {'value': ""[variables('virtualnetworkname')]""}, 'virtualnetworkaddressrange': {'value': ""[variables('virtualnetworkaddressrange')]""}, 'subnetname': {'value': ""[variables('adsubnetname')]""}, 'subnetrange': {'value': ""[variables('adsubnet')]""}, 'dnsserveraddress': {'value': [""[variables('ipaddress')[0]]""]}, 'location': {'value': ""[parameters('location')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': 'updatebdcnic', 'dependson': ['updatevnetdns1'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('nictemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'nicname': {'value': ""[variables('nicname')[1]]""}, 'ipconfigurations': {'value': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'static', 'privateipaddress': ""[variables('ipaddress')[1]]"", 'subnet': {'id': ""[variables('adsubnetref')]""}}}]}, 'dnsservers': {'value': [""[variables('ipaddress')[0]]""]}, 'location': {'value': ""[parameters('location')]""}}}}{'type': 'microsoft.resources/deployments', 'apiversion': '2020-10-01', 'name': 'configuringbackupaddomaincontroller', 'dependson': ['updatebdcnic'], 'properties': {'mode': 'incremental', 'templatelink': {'uri': ""[variables('configureadbdctemplateuri')]"", 'contentversion': '1.0.0.0'}, 'parameters': {'extname': {'value': ""[concat(variables('vmname')[1], '/peparebdc')]""}, 'location': {'value': ""[parameters('location')]""}, 'adminusername': {'value': ""[parameters('adminusername')]""}, 'adminpassword': {'value': ""[parameters('adminpassword')]""}, 'domainname': {'value': ""[parameters('domainname')]""}, 'adbdcconfigurationscript': {'value': ""[variables('adbdcconfigurationscript')]""}, 'adbdcconfigurationfunction': {'value': ""[variables('adbdcconfigurationfunction')]""}, 'adbdcconfigurationmodulesurl': {'value': ""[variables('adbdcconfigurationmodulesurl')]""}, '_artifactslocationsastoken': {'value': ""[parameters('_artifactslocationsastoken')]""}}}} 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': ""[variables('storageaccounttype')]""}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vnet1').dnsname]"", 'apiversion': '2019-12-01', 'location': ""[variables('vnet1').location]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('vnet1').dnsnicname)]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('unbuntunodevirtualmachinesize')]""}, 'osprofile': {'computername': ""[variables('vnet1').dnsname]"", 'adminusername': ""[parameters('sshusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': ""[variables('ubuntu')]"", 'osdisk': {'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('vnet1').dnsnicname)]""}]}}}{'type': 'microsoft.compute/virtualmachines', 'name': ""[variables('vnet2').dnsname]"", 'apiversion': '2019-12-01', 'location': ""[variables('vnet2').location]"", 'dependson': [""[resourceid('microsoft.network/networkinterfaces', variables('vnet2').dnsnicname)]""], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('unbuntunodevirtualmachinesize')]""}, 'osprofile': {'computername': ""[variables('vnet2').dnsname]"", 'adminusername': ""[parameters('sshusername')]"", 'adminpassword': ""[parameters('adminpasswordorkey')]"", 'linuxconfiguration': ""[if(equals(parameters('authenticationtype'), 'password'), json('null'), variables('linuxconfiguration'))]""}, 'storageprofile': {'imagereference': ""[variables('ubuntu')]"", 'osdisk': {'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',variables('vnet2').dnsnicname)]""}]}}} END" +Creates a CDN WAF Policy managed rule set DefaultRuleSet_1.0 and a linked CDN Endpoint.," {'type': 'microsoft.cdn/cdnwebapplicationfirewallpolicies', 'apiversion': '2020-09-01', 'name': ""[parameters('policyname')]"", 'location': 'global', 'sku': {'name': ""[parameters('cdnsku')]""}, 'properties': {'policysettings': {'enabledstate': 'enabled', 'mode': ""[parameters('policymode')]""}, 'managedrules': {'managedrulesets': [{'rulesettype': 'defaultruleset', 'rulesetversion': '1.0'}]}}}{'name': ""[parameters('profilename')]"", 'type': 'microsoft.cdn/profiles', 'location': ""[parameters('location')]"", 'apiversion': '2019-06-15-preview', 'sku': {'name': ""[parameters('cdnsku')]""}, 'resources': [{'apiversion': '2019-06-15-preview', 'dependson': [""[resourceid('microsoft.cdn/profiles', parameters('profilename'))]"", ""[resourceid('microsoft.cdn/cdnwebapplicationfirewallpolicies', parameters('policyname'))]""], 'location': ""[parameters('location')]"", 'name': ""[parameters('endpointname')]"", 'type': 'endpoints', 'properties': {'originhostheader': ""[parameters('originurl')]"", 'ishttpallowed': true, 'ishttpsallowed': true, 'querystringcachingbehavior': 'ignorequerystring', 'contenttypestocompress': ['text/plain', 'text/html', 'text/css', 'application/x-javascript', 'text/javascript'], 'iscompressionenabled': true, 'origins': [{'name': 'origin1', 'properties': {'hostname': ""[parameters('originurl')]""}}], 'webapplicationfirewallpolicylink': {'id': ""[resourceid('microsoft.cdn/cdnwebapplicationfirewallpolicies', parameters('policyname'))]""}}}]} 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')]""}}}{'apiversion': '2020-08-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('vnetname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}}{'apiversion': '2020-08-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[concat(variables('primarynicnameprefix'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'nicloop', 'count': ""[variables('numberofinstances')]""}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/', variables('vnetname'))]"", ""[resourceid('microsoft.network/loadbalancers/', variables('lbname'))]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', variables('vnetname'), variables ('subnetname'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools/',variables('lbname'),'loadbalancerbackend')]""}], 'loadbalancerinboundnatrules': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatrules',variables('lbname'), concat('prdp-vm', copyindex()))]""}, {'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatrules',variables('lbname'), concat('pwinrm-vm', copyindex()))]""}]}}]}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/virtualmachinescalesets', 'name': ""[parameters('vmssname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2019-12-01', 'dependson': [""[resourceid('microsoft.network/loadbalancers', variables('loadbalancername'))]""], 'sku': {'name': ""[parameters('vmsku')]"", 'capacity': ""[parameters('instancecount')]""}, 'properties': {'overprovision': true, 'upgradepolicy': {'mode': 'manual'}, 'virtualmachineprofile': {'storageprofile': {'osdisk': {'createoption': 'fromimage', 'caching': 'readwrite'}, 'imagereference': {'publisher': 'canonical', 'offer': 'ubuntuserver', 'sku': '16.04-lts', 'version': 'latest'}}, 'osprofile': {'computernameprefix': ""[parameters('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(parameters('existingvnetresourcegroupname'), 'microsoft.network/virtualnetworks/subnets', parameters('existingvnetname'), parameters('existingsubnetname'))]""}, 'loadbalancerbackendaddresspools': [{'id': ""[resourceid('microsoft.network/loadbalancers/backendaddresspools', variables('loadbalancername'), variables('loadbalancerbackendname'))]""}], 'loadbalancerinboundnatpools': [{'id': ""[resourceid('microsoft.network/loadbalancers/inboundnatpools', variables('loadbalancername'), variables('loadbalancernatpoolname'))]""}]}}]}}]}}}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetmasters')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}}{'type': 'microsoft.compute/availabilitysets', 'name': ""[variables('availabilitysetnodes')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmnamemaster'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'vmloopmaster', 'count': ""[variables('mastercount')]""}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vmnamemaster'), copyindex(), '-nic'))]"", ""[resourceid('microsoft.compute/availabilitysets/', variables('availabilitysetmasters'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('availabilitysetmasters'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsizemaster')]""}, 'osprofile': {'computername': ""[concat(variables('vmnamemaster'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[variables('sshkeypath')]"", 'keydata': ""[parameters('sshpublickey')]""}]}}}, 'storageprofile': {'imagereference': {'publisher': ""[variables('osimagepublisher')]"", 'offer': ""[variables('osimageoffer')]"", 'sku': ""[variables('osimagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmnamemaster'), copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('vmnamemaster'), copyindex(), '-nic'))]""}]}}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmnamenode'), copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'vmloopnode', 'count': ""[parameters('nodecount')]""}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts/', variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/', concat(variables('vmnamenode'), copyindex(), '-nic'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',variables('availabilitysetnodes'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsizenode')]""}, 'osprofile': {'computername': ""[concat(variables('vmnamenode'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'linuxconfiguration': {'disablepasswordauthentication': true, 'ssh': {'publickeys': [{'path': ""[variables('sshkeypath')]"", 'keydata': ""[parameters('sshpublickey')]""}]}}}, 'storageprofile': {'imagereference': {'publisher': ""[variables('osimagepublisher')]"", 'offer': ""[variables('osimageoffer')]"", 'sku': ""[variables('osimagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmnamenode'), copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('vmnamenode'), copyindex(), '-nic'))]""}]}}} 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')]""}}}} 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')]""}}}{'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')]""}}]}}]}{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'microsoft.network/privateendpoints', 'apiversion': '2020-07-01', 'name': ""[parameters('acrprivateendpointname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('virtualnetworkid')]"", ""[variables('acrid')]""], 'properties': {'privatelinkserviceconnections': [{'name': ""[parameters('acrprivateendpointname')]"", 'properties': {'privatelinkserviceid': ""[variables('acrid')]"", 'groupids': [""[variables('acrprivateendpointgroupname')]""]}}], 'subnet': {'id': ""[variables('vmsubnetid')]""}}, 'resources': [{'condition': ""[equals(parameters('acrsku'), 'premium')]"", 'type': 'privatednszonegroups', 'apiversion': '2020-07-01', 'name': ""[variables('acrprivatednszonegroupname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('acrid')]"", ""[variables('acrprivatednszoneid')]"", ""[variables('acrprivateendpointid')]""], 'properties': {'privatednszoneconfigs': [{'name': 'dnsconfig', 'properties': {'privatednszoneid': ""[variables('acrprivatednszoneid')]""}}]}}]}{'apiversion': '2020-05-01', 'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('applicationgatewaypublicipaddressname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard'}, 'properties': {'publicipallocationmethod': 'static'}}{'type': 'microsoft.network/applicationgatewaywebapplicationfirewallpolicies', 'apiversion': '2020-06-01', 'name': ""[parameters('wafpolicyname')]"", 'location': ""[parameters('location')]"", 'properties': {'customrules': [{'name': 'blockme', 'priority': 1, 'ruletype': 'matchrule', 'action': 'block', 'matchconditions': [{'matchvariables': [{'variablename': 'querystring'}], 'operator': 'contains', 'negationconditon': false, 'matchvalues': ['blockme']}]}, {'name': 'blockevilbot', 'priority': 2, 'ruletype': 'matchrule', 'action': 'block', 'matchconditions': [{'matchvariables': [{'variablename': 'requestheaders', 'selector': 'user-agent'}], 'operator': 'contains', 'negationconditon': false, 'matchvalues': ['evilbot'], 'transforms': ['lowercase']}]}], 'policysettings': {'requestbodycheck': ""[parameters('wafpolicyrequestbodycheck')]"", 'maxrequestbodysizeinkb': ""[parameters('wafpolicymaxrequestbodysizeinkb')]"", 'fileuploadlimitinmb': ""[parameters('wafpolicyfileuploadlimitinmb')]"", 'mode': ""[parameters('wafpolicymode')]"", 'state': ""[parameters('wafpolicystate')]""}, 'managedrules': {'managedrulesets': [{'rulesettype': ""[parameters('wafpolicyrulesettype')]"", 'rulesetversion': ""[parameters('wafpolicyrulesetversion')]""}]}}} END" +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': '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': ['10.0.0.0/16']}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': '10.0.0.0/24', 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}}{'apiversion': '2020-05-01', 'type': 'microsoft.network/networkinterfaces', 'name': ""[variables('nicname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[variables('virtualnetworkname')]""], 'properties': {'ipconfigurations': [{'name': 'ipconfig1', 'properties': {'privateipallocationmethod': 'dynamic', 'subnet': {'id': ""[variables('subnetref')]""}}}]}} END" +Storage Account with Storage Service Encryption and a blob deletion retention policy," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-02-01', 'name': ""[variables('bootstorageaccountname')]"", 'location': ""[parameters('location')]"", 'sku': {'name': ""[variables('storageaccounttype')]""}, 'kind': 'storage', 'tags': {'quickstartname': 'jboss eap on rhel (clustered, multi-vm)'}} 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('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'}}} END" +This template creates a VM in a VNET which is in a different Resource Group," {'apiversion': '2020-06-01', '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('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', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', parameters('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts', tolower(parameters('newstorageaccountname')))).primaryendpoints.blob]""}}}} END" +"This template creates an Event Hubs namespace, an Event Hub, and a consumer group."," {'apiversion': '2018-01-01-preview', 'name': ""[parameters('namespacename')]"", 'type': 'microsoft.eventhub/namespaces', 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('eventhubsku')]"", 'tier': ""[parameters('eventhubsku')]"", 'capacity': ""[parameters('skucapacity')]""}, 'tags': {'tag1': 'value1', 'tag2': 'value2'}, 'properties': {}, 'resources': [{'apiversion': '2017-04-01', 'name': ""[parameters('eventhubname')]"", 'type': 'eventhubs', 'dependson': [""[resourceid('microsoft.eventhub/namespaces/', parameters('namespacename'))]""], 'properties': {}, 'resources': [{'apiversion': '2017-04-01', 'name': ""[parameters('consumergroupname')]"", 'type': 'consumergroups', 'dependson': [""[parameters('eventhubname')]""], 'properties': {'usermetadata': 'user metadata goes here'}}]}]} 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('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" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'apiversion': '2020-06-01', '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('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', 'manageddisk': {'storageaccounttype': 'standardssd_lrs'}}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', parameters('nicname'))]""}]}, 'diagnosticsprofile': {'bootdiagnostics': {'enabled': true, 'storageuri': ""[reference(resourceid('microsoft.storage/storageaccounts', tolower(parameters('newstorageaccountname')))).primaryendpoints.blob]""}}}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'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(variables('vmname'),copyindex())]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/',variables('storageaccountname'))]"", ""[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('vmsize')]""}, 'osprofile': {'computername': ""[concat(variables('vmname'),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('ubuntuosversion')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat(variables('vmname'),copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('nicname'),copyindex()))]""}]}}, 'copy': {'name': 'virtualmachinescopy', 'count': ""[parameters('webvmcount')]""}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(concat(variables('vmname'),copyindex()),'/newuserscript')]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/',concat(variables('vmname'),copyindex()))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat(variables('installfrontendscriptname'), parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[variables('installfrontendcommand')]""}}, 'copy': {'name': 'extensionscopy', 'count': ""[parameters('webvmcount')]""}}{'type': 'microsoft.compute/availabilitysets', 'name': ""[concat(variables('availabilitysetname'),'db')]"", 'apiversion': '2017-12-01', 'location': ""[parameters('location')]"", 'sku': {'name': 'aligned'}, 'properties': {'platformfaultdomaincount': 2, 'platformupdatedomaincount': 5}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat(variables('vmname'),'db')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.storage/storageaccounts/',variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/',concat(variables('nicname'),'db'))]"", ""[resourceid('microsoft.compute/availabilitysets/',concat(variables('availabilitysetname'),'db'))]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets',concat(variables('availabilitysetname'),'db'))]""}, 'hardwareprofile': {'vmsize': ""[parameters('vmsizedb')]""}, 'osprofile': {'computername': ""[concat(variables('vmname'),'db')]"", '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'),'db','_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat(variables('nicname'),'db'))]""}]}}}{'type': 'microsoft.compute/virtualmachines/extensions', 'name': ""[concat(concat(variables('vmname'),'db'),'/newuserscript')]"", 'apiversion': '2015-06-15', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines/',concat(variables('vmname'),'db'))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[uri(parameters('_artifactslocation'), concat(variables('installbackendscriptname'), parameters('_artifactslocationsastoken')))]""]}, 'protectedsettings': {'commandtoexecute': ""[variables('installbackendcommand')]""}}} END" +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'))]""}}}]} END" +This module creates a storageAccount resource with apiVersion 2021-01-01.," {'type': 'microsoft.storage/storageaccounts', 'apiversion': '2021-06-01', 'name': ""[tolower(parameters('storagename'))]"", 'location': ""[parameters('location')]"", 'sku': {'name': 'standard_lrs'}, 'kind': 'storage', 'tags': {'displayname': 'storage account'}} END" +Create a VM from a Windows Image with 4 Empty Data Disks," {'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat('zookprvm', copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'virtualzookeepermachineloop', 'count': ""[variables('numberofzookeeperinstances')]""}, 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]"", ""[concat('microsoft.network/networkinterfaces/', 'niczoo', copyindex())]""], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', 'kafkacluseras')]""}, 'hardwareprofile': {'vmsize': ""[variables('vmsize')]""}, 'osprofile': {'computername': ""[concat(variables('computernameprefix'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'linuxconfiguration': {'disablepasswordauthentication': false}}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat('zookprvm', copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat('niczoo', copyindex()))]""}]}}}{'apiversion': '2017-03-30', 'type': 'microsoft.compute/virtualmachines', 'name': ""[concat('brokervm', copyindex())]"", 'location': ""[parameters('location')]"", 'copy': {'name': 'virtualmachineloop', 'count': ""[variables('numberofkafkainstances')]""}, 'dependson': [""[resourceid('microsoft.resources/deployments/', 'shared-resources')]"", ""[concat('microsoft.network/networkinterfaces/', 'nic', copyindex())]"", 'virtualzookeepermachineloop'], 'properties': {'availabilityset': {'id': ""[resourceid('microsoft.compute/availabilitysets', 'kafkacluseras')]""}, 'hardwareprofile': {'vmsize': ""[variables('vmsize')]""}, 'osprofile': {'computername': ""[concat(variables('computernameprefix'), copyindex())]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]"", 'linuxconfiguration': {'disablepasswordauthentication': false}}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'osdisk': {'name': ""[concat('brokervm', copyindex(),'_osdisk')]"", 'caching': 'readwrite', 'createoption': 'fromimage'}}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces',concat('nic', copyindex()))]""}]}}} END" +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.," {'type': 'microsoft.compute/disks', 'name': ""[concat('disk-', copyindex(1))]"", 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'sku': {'name': ""[parameters('storageaccounttype')]""}, 'zones': ['[add(div(copyindex(), 2), 1)]'], 'copy': {'name': 'diskloop', 'count': 6}, 'properties': {'creationdata': {'createoption': 'empty'}, 'disksizegb': 64}}{'type': 'microsoft.compute/virtualmachines', 'apiversion': '2017-03-30', 'name': ""[concat(parameters('vmnameprefix'), '-', copyindex(1))]"", 'location': ""[parameters('location')]"", 'zones': ['[copyindex(1)]'], 'copy': {'name': 'vmloop', 'count': 3}, 'dependson': ['nicloop'], 'properties': {'hardwareprofile': {'vmsize': ""[parameters('vmsize')]""}, 'osprofile': {'computername': ""[concat(parameters('vmnameprefix'), '-', copyindex(1))]"", 'adminusername': ""[parameters('adminusername')]"", 'adminpassword': ""[parameters('adminpassword')]""}, 'storageprofile': {'imagereference': {'publisher': ""[parameters('imagepublisher')]"", 'offer': ""[parameters('imageoffer')]"", 'sku': ""[parameters('imagesku')]"", 'version': 'latest'}, 'copy': [{'name': 'datadisks', 'count': 2, 'input': {'lun': ""[copyindex('datadisks')]"", 'createoption': 'attach', 'manageddisk': {'id': ""[resourceid('microsoft.compute/disks', concat('disk-', add(mul(copyindex(), 2), add(copyindex('datadisks'), 1))))]""}}}]}, 'networkprofile': {'networkinterfaces': [{'id': ""[resourceid('microsoft.network/networkinterfaces', concat('nic-', copyindex(1)))]""}]}}, 'resources': [{'type': 'extensions', 'name': 'mysqlconfig', 'apiversion': '2017-03-30', 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.compute/virtualmachines',concat(parameters('vmnameprefix'), '-', copyindex(1)))]""], 'properties': {'publisher': 'microsoft.azure.extensions', 'type': 'customscript', 'typehandlerversion': '2.0', 'autoupgrademinorversion': true, 'settings': {'fileuris': [""[variables('customscriptfilepath')]""]}, 'protectedsettings': {'commandtoexecute': ""[concat(variables('customscriptcommandcommon'), variables('customscriptparam')[copyindex()])]""}}}]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('nsgname')]"", 'apiversion': '2020-11-01', 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'description': 'allows inbound ssh traffic', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'elasticsearch', 'properties': {'description': 'allows inbound http traffic from anyone', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '5601', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 200, 'direction': 'inbound'}}]}}{'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'apiversion': '2020-11-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': '2020-11-01', 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('domainnamelabel')]""}}} END" +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'}}{'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': '2019-06-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'dependson': [""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""], 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]"", 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('networksecuritygroupname'))]""}}}]}}{'apiversion': '2019-06-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('nsgname'))]""], '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'))]""}}}], 'networksecuritygroup': {'id': ""[resourceid('microsoft.network/networksecuritygroups', variables('nsgname'))]""}}}{'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2019-06-01', 'name': ""[variables('nsgname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh', 'properties': {'description': 'allow ssh', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 100, 'direction': 'inbound'}}, {'name': 'web', 'properties': {'description': 'allow web', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '8080', 'sourceaddressprefix': 'internet', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 112, 'direction': 'inbound'}}]}} END" +Deploys a Windows VM and install a file on that VM using the Custom Script Extension," {'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'))]""}}}]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'name': ""[variables('webnsgname')]"", 'apiversion': '2016-03-30', 'location': ""[parameters('location')]"", 'comments': 'nsg for web subnet. rules for allowing http and https requests from internet are created', 'tags': {'displayname': 'web nsg', 'quickstartname': ""[variables('quickstarttags').name]"", 'provider': ""[variables('redhattags').provider]""}, 'properties': {'securityrules': [{'name': 'http-allow', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '80', 'sourceaddressprefix': ""[parameters('remoteallowedcidr')]"", 'destinationaddressprefix': '10.0.1.0/24', 'access': 'allow', 'priority': 110, 'direction': 'inbound'}}, {'name': 'https-allow', 'properties': {'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '443', 'sourceaddressprefix': ""[parameters('remoteallowedcidr')]"", 'destinationaddressprefix': '10.0.1.0/24', 'access': 'allow', 'priority': 120, 'direction': 'inbound'}}]}} END" +"Create a Data Factory account, Blob source, SQL sink and Copy Activity Pipeline"," {'type': 'microsoft.datafactory/factories', 'apiversion': '2018-06-01', 'name': ""[parameters('datafactoryname')]"", 'location': ""[parameters('location')]"", 'identity': {'type': 'systemassigned'}}{'type': 'microsoft.datafactory/factories/linkedservices', 'apiversion': '2018-06-01', 'name': ""[format('{0}/{1}', parameters('datafactoryname'), variables('datafactorylinkedservicename'))]"", 'properties': {'type': 'azureblobstorage', 'typeproperties': {'connectionstring': ""[format('defaultendpointsprotocol=https;accountname={0};accountkey={1}', parameters('storageaccountname'), listkeys(resourceid('microsoft.storage/storageaccounts', parameters('storageaccountname')), '2021-04-01').keys[0].value)]""}}, 'dependson': [""[resourceid('microsoft.datafactory/factories', parameters('datafactoryname'))]"", ""[resourceid('microsoft.storage/storageaccounts', parameters('storageaccountname'))]""]}{'type': 'microsoft.datafactory/factories/datasets', 'apiversion': '2018-06-01', 'name': ""[format('{0}/{1}', parameters('datafactoryname'), variables('datafactorydatasetinname'))]"", 'properties': {'linkedservicename': {'referencename': ""[variables('datafactorylinkedservicename')]"", 'type': 'linkedservicereference'}, 'type': 'binary', 'typeproperties': {'location': {'type': 'azureblobstoragelocation', 'container': ""[format('{0}/default/{1}', parameters('storageaccountname'), parameters('blobcontainername'))]"", 'folderpath': 'input', 'filename': 'emp.txt'}}}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts/blobservices/containers', split(format('{0}/default/{1}', parameters('storageaccountname'), parameters('blobcontainername')), '/')[0], split(format('{0}/default/{1}', parameters('storageaccountname'), parameters('blobcontainername')), '/')[1], split(format('{0}/default/{1}', parameters('storageaccountname'), parameters('blobcontainername')), '/')[2])]"", ""[resourceid('microsoft.datafactory/factories', parameters('datafactoryname'))]"", ""[resourceid('microsoft.datafactory/factories/linkedservices', parameters('datafactoryname'), variables('datafactorylinkedservicename'))]""]}{'type': 'microsoft.datafactory/factories/datasets', 'apiversion': '2018-06-01', 'name': ""[format('{0}/{1}', parameters('datafactoryname'), variables('datafactorydatasetoutname'))]"", 'properties': {'linkedservicename': {'referencename': ""[variables('datafactorylinkedservicename')]"", 'type': 'linkedservicereference'}, 'type': 'binary', 'typeproperties': {'location': {'type': 'azureblobstoragelocation', 'container': ""[format('{0}/default/{1}', parameters('storageaccountname'), parameters('blobcontainername'))]"", 'folderpath': 'output'}}}, 'dependson': [""[resourceid('microsoft.storage/storageaccounts/blobservices/containers', split(format('{0}/default/{1}', parameters('storageaccountname'), parameters('blobcontainername')), '/')[0], split(format('{0}/default/{1}', parameters('storageaccountname'), parameters('blobcontainername')), '/')[1], split(format('{0}/default/{1}', parameters('storageaccountname'), parameters('blobcontainername')), '/')[2])]"", ""[resourceid('microsoft.datafactory/factories', parameters('datafactoryname'))]"", ""[resourceid('microsoft.datafactory/factories/linkedservices', parameters('datafactoryname'), variables('datafactorylinkedservicename'))]""]}{'type': 'microsoft.datafactory/factories/pipelines', 'apiversion': '2018-06-01', 'name': ""[format('{0}/{1}', parameters('datafactoryname'), variables('pipelinename'))]"", 'properties': {'activities': [{'name': 'mycopyactivity', 'type': 'copy', 'policy': {'timeout': '7.00:00:00', 'retry': 0, 'retryintervalinseconds': 30, 'secureoutput': false, 'secureinput': false}, 'typeproperties': {'source': {'type': 'binarysource', 'storesettings': {'type': 'azureblobstoragereadsettings', 'recursive': true}}, 'sink': {'type': 'binarysink', 'storesettings': {'type': 'azureblobstoragewritersettings'}}, 'enablestaging': false}, 'inputs': [{'referencename': ""[variables('datafactorydatasetinname')]"", 'type': 'datasetreference'}], 'outputs': [{'referencename': ""[variables('datafactorydatasetoutname')]"", 'type': 'datasetreference'}]}]}, 'dependson': [""[resourceid('microsoft.datafactory/factories', parameters('datafactoryname'))]"", ""[resourceid('microsoft.datafactory/factories/datasets', parameters('datafactoryname'), variables('datafactorydatasetinname'))]"", ""[resourceid('microsoft.datafactory/factories/datasets', parameters('datafactoryname'), variables('datafactorydatasetoutname'))]""]} END" +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'}}{'apiversion': '2019-06-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}} 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', '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'))]""]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'apiversion': '2020-03-01', 'type': 'microsoft.network/publicipaddresses', 'name': 'publicip', 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[parameters('publicdnsname')]""}}}{'apiversion': '2020-03-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': '2020-03-01', 'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('vnetname')]"", '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': '2020-03-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('rdp','0')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', 'loadbalancer', 'lbfe')]""}, 'protocol': 'tcp', 'frontendport': 6001, 'backendport': 3389, 'enablefloatingip': false}}, {'name': ""[concat('rdp','1')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations','loadbalancer','lbfe')]""}, 'protocol': 'tcp', 'frontendport': 6002, 'backendport': 3389, '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'}]}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[variables('location')]"", 'apiversion': '2015-06-15', 'tags': {'displayname': 'chefvirtualnetwork', 'provider': ""[variables('tagvalues').provider]""}, 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}}{'type': 'microsoft.network/publicipaddresses', 'name': ""[variables('publicipaddressname')]"", 'location': ""[variables('location')]"", 'apiversion': '2015-06-15', 'tags': {'displayname': 'fepublicip', 'provider': ""[variables('tagvalues').provider]""}, 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[tolower(parameters('chefdnsname'))]""}}} 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')]""}}}{'apiversion': '2020-05-01', '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': '2020-05-01', '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': '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': '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'}}]}} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks', 'apiversion': '2021-02-01', 'name': ""[variables('virtualnetworkname')]"", 'location': ""[parameters('location')]"", 'properties': {'addressspace': {'addressprefixes': [""[variables('addressprefix')]""]}, 'subnets': [{'name': ""[variables('subnetname')]"", 'properties': {'addressprefix': ""[variables('subnetprefix')]""}}]}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2021-02-01', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic', 'dnssettings': {'domainnamelabel': ""[variables('longnaminginfix')]""}}}{'type': 'microsoft.network/loadbalancers', 'apiversion': '2021-02-01', 'name': ""[variables('loadbalancername')]"", 'location': ""[parameters('location')]"", 'properties': {'frontendipconfigurations': [{'name': 'loadbalancerfrontend', 'properties': {'publicipaddress': {'id': ""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""}}}], 'backendaddresspools': [{'name': ""[variables('bepoolname')]""}], 'inboundnatpools': [{'name': ""[variables('natpoolname')]"", 'properties': {'frontendipconfiguration': {'id': ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations', variables('loadbalancername'), 'loadbalancerfrontend')]""}, 'protocol': 'tcp', 'frontendportrangestart': ""[variables('natstartport')]"", 'frontendportrangeend': ""[variables('natendport')]"", 'backendport': ""[variables('natbackendport')]""}}]}, 'dependson': [""[resourceid('microsoft.network/publicipaddresses', variables('publicipaddressname'))]""]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/virtualnetworks/subnets', 'apiversion': '2020-04-01', 'name': ""[format('{0}/{1}', parameters('existingvnetname'), parameters('containersubnetname'))]"", 'properties': {'addressprefix': ""[parameters('containersubnetaddressprefix')]"", 'serviceendpoints': [{'service': 'microsoft.storage', 'locations': [""[parameters('location')]""]}], 'delegations': [{'name': 'cloudshelldelegation', 'properties': {'servicename': 'microsoft.containerinstance/containergroups'}}]}}{'type': 'microsoft.network/networkprofiles', 'apiversion': '2019-11-01', 'name': ""[variables('networkprofilename')]"", 'location': ""[parameters('location')]"", 'properties': {'containernetworkinterfaceconfigurations': [{'name': ""[format('eth-{0}', parameters('containersubnetname'))]"", 'properties': {'ipconfigurations': [{'name': ""[format('ipconfig-{0}', parameters('containersubnetname'))]"", 'properties': {'subnet': {'id': ""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('existingvnetname'), parameters('containersubnetname'))]""}}}]}}]}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('existingvnetname'), parameters('containersubnetname'))]""]}{'type': 'microsoft.network/virtualnetworks/subnets', 'apiversion': '2020-04-01', 'name': ""[format('{0}/{1}', parameters('existingvnetname'), parameters('relaysubnetname'))]"", 'properties': {'addressprefix': ""[parameters('relaysubnetaddressprefix')]"", 'privateendpointnetworkpolicies': 'disabled', 'privatelinkservicenetworkpolicies': 'enabled'}, 'dependson': [""[resourceid('microsoft.network/virtualnetworks/subnets', parameters('existingvnetname'), parameters('containersubnetname'))]""]} END" +Establish connection to a VNET via an ExpressRoute circuit," {'type': 'microsoft.network/networksecuritygroups', 'apiversion': '2020-05-01', 'name': ""[variables('networksecuritygroupname')]"", 'location': ""[parameters('location')]"", 'properties': {'securityrules': [{'name': 'ssh_rule', 'properties': {'description': 'locks inbound down to ssh default port 22.', 'protocol': 'tcp', 'sourceportrange': '*', 'destinationportrange': '22', 'sourceaddressprefix': '*', 'destinationaddressprefix': '*', 'access': 'allow', 'priority': 123, 'direction': 'inbound'}}]}}{'type': 'microsoft.network/publicipaddresses', 'apiversion': '2020-05-01', 'name': ""[variables('publicipaddressname')]"", 'location': ""[parameters('location')]"", 'properties': {'publicipallocationmethod': 'dynamic'}, 'sku': {'name': 'basic'}} END"