diff --git "a/validation.csv" "b/validation.csv" --- "a/validation.csv" +++ "b/validation.csv" @@ -1,259 +1,228 @@ 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" +This template provides a easy way to deploy a Sonarqube docker image (alpine tag) on a Linux Web App with Azure database for MySQL.,"{""comments"": ""this is the linux web app with the sonarquebe docker image and the db"", ""type"": ""microsoft.web/sites"", ""name"": ""[parameters('sitename')]"", ""apiversion"": ""2019-08-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('hostingplanname')]"", ""[variables('databasename')]""], ""properties"": {""siteconfig"": {""linuxfxversion"": ""docker|sonarqube""}, ""name"": ""[parameters('sitename')]"", ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms"", variables('hostingplanname'))]""}, ""resources"": [{""comments"": ""this are the generated settings for the sonar jdbc connectionstring"", ""name"": ""appsettings"", ""type"": ""config"", ""apiversion"": ""2019-08-01"", ""dependson"": [""[resourceid('microsoft.web/sites"", parameters('sitename'))]""], ""tags"": {""displayname"": ""sonarappsettings""}, ""properties"": {""sonarqube_jdbc_url"": ""[concat('jdbc:mysql://"", reference(resourceid('microsoft.dbformysql/servers"",variables('servername'))).fullyqualifieddomainname , "":3306/"",variables('databasename'),""?verifyservercertificate=true&usessl=true&requiressl=false&useunicode=true&characterencoding=utf8')]"", ""sonarqube_jdbc_username"": ""[variables('jdbcsonarusername')]"", ""sonarqube_jdbc_password"": ""[parameters('administratorloginpassword')]""}}]}{""apiversion"": ""2019-08-01"", ""name"": ""[variables('hostingplanname')]"", ""type"": ""microsoft.web/serverfarms"", ""location"": ""[parameters('location')]"", ""properties"": {""name"": ""[variables('hostingplanname')]"", ""workersizeid"": ""1"", ""reserved"": true, ""numberofworkers"": ""1""}, ""sku"": {""tier"": ""[parameters('serviceplantier')]"", ""name"": ""[parameters('serviceplansku')]""}, ""kind"": ""linux""} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('vnet1').name]"", ""apiversion"": ""2020-07-01"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnet1').addressspaceprefix]""]}, ""subnets"": [{""name"": ""[variables('vnet1').subnetname]"", ""properties"": {""addressprefix"": ""[variables('vnet1').subnetprefix]""}}]}}{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('vnet2').name]"", ""apiversion"": ""2020-07-01"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnet2').addressspaceprefix]""]}, ""subnets"": [{""name"": ""[variables('vnet2').subnetname]"", ""properties"": {""addressprefix"": ""[variables('vnet2').subnetprefix]""}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-03-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {""publicipallocationmethod"": ""static"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}} " +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('mysqlservername')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('dbskuname')]"", ""tier"": ""[parameters('dbskutier')]"", ""capacity"": ""[parameters('dbskucapacity')]"", ""family"": ""[parameters('databaseskufamily')]""}, ""properties"": {""createmode"": ""default"", ""version"": ""[parameters('mysqlversion')]"", ""administratorlogin"": ""[parameters('administratorlogin')]"", ""administratorloginpassword"": ""[parameters('administratorloginpassword')]"", ""storageprofile"": {""storagemb"": ""[parameters('dbskusizemb')]"", ""backupretentiondays"": 7, ""georedundantbackup"": ""disabled""}, ""sslenforcement"": ""disabled""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-08-01"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}, {""name"": ""[variables('agsubnetname')]"", ""properties"": {""addressprefix"": ""[variables('agsubnetprefix')]""}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-08-01"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[variables('longnaminginfix')]""}}}{""type"": ""microsoft.network/loadbalancers"", ""name"": ""[variables('loadbalancername')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-08-01"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""[variables('lbfrontendname')]"", ""properties"": {""publicipaddress"": {""id"": ""[variables('publicipaddressid')]""}}}], ""backendaddresspools"": [{""name"": ""[variables('bepoolname')]""}], ""inboundnatpools"": [{""name"": ""[variables('natpoolname')]"", ""properties"": {""frontendipconfiguration"": {""id"": ""[variables('frontendipconfigid')]""}, ""protocol"": ""tcp"", ""frontendportrangestart"": ""[variables('natstartport')]"", ""frontendportrangeend"": ""[variables('natendport')]"", ""backendport"": ""[variables('natbackendport')]""}}], ""loadbalancingrules"": [{""name"": ""lbrule"", ""properties"": {""frontendipconfiguration"": {""id"": ""[variables('frontendipconfigid')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('loadbalancername'), variables('bepoolname'))]""}, ""probe"": {""id"": ""[resourceid('microsoft.network/loadbalancers/probes"", variables('loadbalancername'), variables('lbprobename'))]""}, ""protocol"": ""tcp"", ""loaddistribution"": ""sourceip"", ""frontendport"": 80, ""backendport"": 80, ""idletimeoutinminutes"": 15}}], ""probes"": [{""name"": ""[variables('lbprobename')]"", ""properties"": {""protocol"": ""http"", ""port"": 80, ""intervalinseconds"": 15, ""numberofprobes"": 2, ""requestpath"": ""cgi-bin/probe""}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('dbpublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-08-01"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[variables('dblongnaminginfix')]""}}}{""type"": ""microsoft.network/loadbalancers"", ""name"": ""[variables('dbloadbalancername')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-08-01"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('dbpublicipaddressname'))]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""[variables('dblbfrontendname')]"", ""properties"": {""publicipaddress"": {""id"": ""[variables('dbpublicipaddressid')]""}}}], ""backendaddresspools"": [{""name"": ""[variables('dbbepoolname')]""}], ""loadbalancingrules"": [{""name"": ""lbrule"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", variables('dbloadbalancername'), variables('dblbfrontendname'))]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('dbloadbalancername'), variables('dbbepoolname'))]""}, ""probe"": {""id"": ""[resourceid('microsoft.network/loadbalancers/probes"", variables('dbloadbalancername'), variables('dblbprobename'))]""}, ""protocol"": ""tcp"", ""loaddistribution"": ""sourceip"", ""frontendport"": 50000, ""backendport"": 3389, ""idletimeoutinminutes"": 15}}], ""probes"": [{""name"": ""[variables('dblbprobename')]"", ""properties"": {""protocol"": ""tcp"", ""port"": 3389, ""intervalinseconds"": 15, ""numberofprobes"": 2}}]}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('agpublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[variables('aglongnaminginfix')]""}}}{""apiversion"": ""2019-04-01"", ""name"": ""[variables('agname')]"", ""type"": ""microsoft.network/applicationgateways"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/publicipaddresses/"", variables('agpublicipaddressname'))]""], ""properties"": {""sku"": {""tier"": ""[parameters('applicationgatewayskutier')]"", ""name"": ""[parameters('applicationgatewayskuname')]"", ""capacity"": ""[parameters('applicationgatewaycapacity')]""}, ""sslcertificates"": [{""name"": ""[variables('agsslcertname')]"", ""properties"": {""data"": ""[parameters('certificatebase64encoded')]"", ""password"": ""[parameters('certificatepassword')]""}}], ""gatewayipconfigurations"": [{""name"": ""appgatewayipconfig"", ""properties"": {""subnet"": {""id"": ""[variables('agsubnetid')]""}}}], ""frontendipconfigurations"": [{""name"": ""[variables('agfrontendipname')]"", ""properties"": {""publicipaddress"": {""id"": ""[variables('agpublicipaddressid')]""}}}], ""frontendports"": [{""name"": ""[variables('agfrontendportname')]"", ""properties"": {""port"": 443}}], ""backendaddresspools"": [{""name"": ""[variables('agbackendaddresspoolname')]""}], ""backendhttpsettingscollection"": [{""name"": ""[variables('agbackendhttpsettingsname')]"", ""properties"": {""port"": 80, ""protocol"": ""http"", ""cookiebasedaffinity"": ""enabled"", ""requesttimeout"": 120}}], ""httplisteners"": [{""name"": ""[variables('aghttplistenername')]"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/applicationgateways/frontendipconfigurations"",variables('agname'),variables('agfrontendipname'))]""}, ""frontendport"": {""id"": ""[resourceid('microsoft.network/applicationgateways/frontendports"",variables('agname'),variables('agfrontendportname'))]""}, ""protocol"": ""https"", ""sslcertificate"": {""id"": ""[resourceid('microsoft.network/applicationgateways/sslcertificates"",variables('agname'),variables('agsslcertname'))]""}}}], ""requestroutingrules"": [{""name"": ""rule1"", ""properties"": {""ruletype"": ""basic"", ""httplistener"": {""id"": ""[resourceid('microsoft.network/applicationgateways/httplisteners"",variables('agname'),variables('aghttplistenername'))]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/applicationgateways/backendaddresspools"",variables('agname'),variables('agbackendaddresspoolname'))]""}, ""backendhttpsettings"": {""id"": ""[resourceid('microsoft.network/applicationgateways/backendhttpsettingscollection"",variables('agname'),variables('agbackendhttpsettingsname'))]""}}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('images')[parameters('ostype')].publisher]"", ""offer"": ""[variables('images')[parameters('ostype')].offer]"", ""sku"": ""[variables('images')[parameters('ostype')].sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'),""/"", variables('vmextensionname'))]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""chef.bootstrap.windowsazure"", ""type"": ""linuxchefclient"", ""typehandlerversion"": ""1210.12"", ""autoupgrademinorversion"": true, ""settings"": {""bootstrap_options"": {""chef_node_name"": ""[parameters('chef_node_name')]"", ""chef_server_url"": ""[parameters('chef_server_url')]"", ""validation_client_name"": ""[parameters('validation_client_name')]""}, ""runlist"": ""[parameters('runlist')]"", ""validation_key_format"": ""[parameters('validation_key_format')]"", ""chef_service_interval"": ""[parameters('chef_service_interval')]"", ""bootstrap_version"": ""[parameters('bootstrap_version')]"", ""bootstrap_channel"": ""[parameters('bootstrap_channel')]"", ""daemon"": ""[parameters('daemon')]""}, ""protectedsettings"": {""validation_key"": ""[parameters('validation_key')]"", ""secret"": ""[parameters('secret')]""}}} " +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')]""}}}} " +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')]""}}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('avsetnameascs')]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""condition"": ""[equals(length(parameters('availabilityzones')), 0)]"", ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 10}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmnameascs'), ""-"", copyindex())]"", ""copy"": {""name"": ""xscsvmloop"", ""count"": ""[variables('ascsvmcount')]""}, ""dependson"": [""nicascsloop"", ""[resourceid('microsoft.compute/availabilitysets"", variables('avsetnameascs'))]""], ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""zones"": ""[if(equals(length(parameters('availabilityzones')), 0), json('null'), array(variables('azarray')[mod(copyindex(), variables('azarraylength'))]))]"", ""properties"": {""availabilityset"": ""[if(equals(variables('azarraylength'), 0), resourceid('microsoft.compute/availabilitysets"", variables('avsetnameascs')), json('null'))]"", ""hardwareprofile"": {""vmsize"": ""[variables('ascsvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmnameascs'), ""-"", copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('images')[parameters('ostype')].publisher]"", ""offer"": ""[variables('images')[parameters('ostype')].offer]"", ""sku"": ""[variables('images')[parameters('ostype')].sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnameascs'), ""-"", copyindex(), ""-osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}}, ""datadisks"": [{""lun"": 0, ""createoption"": ""empty"", ""disksizegb"": 128}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('nicnameascs'), ""-"", copyindex()))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmnameascs'), ""-"", copyindex(), ""/"", variables('csextension')[variables('internalostype')].name)]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""xscsvmloop""], ""copy"": {""name"": ""xscsextvmloop"", ""count"": ""[variables('ascsvmcount')]""}, ""properties"": {""publisher"": ""[variables('csextension')[variables('internalostype')].publisher]"", ""type"": ""[variables('csextension')[variables('internalostype')].name]"", ""typehandlerversion"": ""[variables('csextension')[variables('internalostype')].version]"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('csextension')[variables('internalostype')].script]""], ""commandtoexecute"": ""[concat(variables('csextension')[variables('internalostype')].scriptcall, "" "", variables('scriptargumentsascsdi')[variables('internalostype')])]""}}}{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('avsetnamedb')]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""condition"": ""[equals(length(parameters('availabilityzones')), 0)]"", ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 10}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex())]"", ""copy"": {""name"": ""dbvmloop"", ""count"": ""[variables('dbvmcount')]""}, ""dependson"": [""nicdbloop"", ""[resourceid('microsoft.compute/availabilitysets"", variables('avsetnamedb'))]""], ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""zones"": ""[if(equals(length(parameters('availabilityzones')), 0), json('null'), array(variables('azarray')[mod(copyindex(), variables('azarraylength'))]))]"", ""properties"": {""availabilityset"": ""[if(equals(variables('azarraylength'), 0), resourceid('microsoft.compute/availabilitysets"", variables('avsetnamedb')), json('null'))]"", ""hardwareprofile"": {""vmsize"": ""[variables('dbvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmnamedb'), ""-"", copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('images')[parameters('ostype')].publisher]"", ""offer"": ""[variables('images')[parameters('ostype')].offer]"", ""sku"": ""[variables('images')[parameters('ostype')].sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex(), ""-osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}}, ""datadisks"": ""[variables('dbdisks')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('nicnamedb'), ""-"", copyindex()))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[concat(variables('nsgname'))]"", ""apiversion"": ""2020-07-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""properties"": {""securityrules"": ""[variables('selectedsecurityrules')]""}}{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('vnetname')]"", ""apiversion"": ""2020-07-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups/"", variables('nsgname'))]""], ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""properties"": {""addressspace"": {""addressprefixes"": [""10.0.0.0/16""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""10.0.0.0/24"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('nsgname'))]""}}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(variables('publicipnamedb'), ""-"", copyindex())]"", ""apiversion"": ""2020-07-01"", ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('vnetname'))]""], ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""dbpiploop"", ""count"": ""[variables('dbvmcount')]""}, ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""type"": ""microsoft.network/loadbalancers"", ""name"": ""[variables('loadbalancernamedb')]"", ""apiversion"": ""2020-07-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[greater(variables('dbvmcount') , 1)]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('vnetname'))]""], ""properties"": {""frontendipconfigurations"": ""[variables('lbfrontendconfigs')[parameters('dbtype')][variables('internalostype')]]"", ""backendaddresspools"": ""[variables('lbbackendpools')[parameters('dbtype')][variables('internalostype')]]"", ""loadbalancingrules"": ""[variables('lbrules')[parameters('dbtype')][variables('internalostype')]]"", ""probes"": ""[variables('lbprobes')[parameters('dbtype')][variables('internalostype')]]""}} " +"This template creates an Azure Cosmos account for Core (SQL) API and a container with a stored procedure, trigger and user defined function.","{""apiversion"": ""2020-09-01"", ""type"": ""microsoft.documentdb/databaseaccounts"", ""name"": ""[parameters('databaseaccountname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""documentdb""}, ""properties"": {""name"": ""[parameters('databaseaccountname')]"", ""databaseaccountoffertype"": ""[parameters('documentdboffertype')]"", ""consistencypolicy"": {""defaultconsistencylevel"": ""[parameters('consistencylevel')]"", ""maxstalenessprefix"": ""[parameters('maxstalenessprefix')]"", ""maxintervalinseconds"": ""[parameters('maxintervalinseconds')]""}, ""locations"": [{""locationname"": ""[parameters('location')]"", ""failoverpriority"": 0}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2018-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat('nic"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicloop"", ""count"": ""[variables('numberofmasterinstances')]""}, ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared-resources')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[concat(parameters('sparknodeipaddressprefix'), copyindex())]"", ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat('nicsl"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicslloop"", ""count"": ""[variables('numberofslavesinstances')]""}, ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared-resources')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[concat(parameters('sparkslavenodeipaddressprefix'), copyindex())]"", ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +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')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}}}]}} " +Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage,"{""type"": ""microsoft.sql/servers"", ""name"": ""[concat(variables('targetservername'))]"", ""apiversion"": ""2020-02-02-preview"", ""location"": ""[parameters('location')]"", ""properties"": {""administratorlogin"": ""[parameters('targetsqldbadministratorlogin')]"", ""administratorloginpassword"": ""[parameters('targetsqldbadministratorpassword')]"", ""version"": ""12.0""}, ""resources"": [{""type"": ""databases"", ""sku"": {""name"": ""s3"", ""tier"": ""standard""}, ""name"": ""[variables('databasename')]"", ""apiversion"": ""2020-02-02-preview"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.sql/servers"", concat(variables('targetservername')))]""], ""properties"": {""collation"": ""sql_latin1_general_cp1_ci_as"", ""maxsizebytes"": 2147483648, ""zoneredundant"": false}, ""resources"": [{""name"": ""import"", ""type"": ""extensions"", ""apiversion"": ""2014-04-01"", ""dependson"": [""[resourceid('microsoft.sql/servers/databases"", variables('targetservername'), variables('databasename'))]""], ""properties"": {""storagekey"": ""[parameters('_artifactslocationsastoken')]"", ""storagekeytype"": ""sharedaccesskey"", ""storageuri"": ""[uri(parameters('_artifactslocation'), ""templatefiles/adventureworks2016.bacpac')]"", ""administratorlogin"": ""[parameters('targetsqldbadministratorlogin')]"", ""administratorloginpassword"": ""[parameters('targetsqldbadministratorpassword')]"", ""operationmode"": ""import""}}]}, {""type"": ""firewallrules"", ""name"": ""allowallwindowsazureips"", ""apiversion"": ""2020-02-02-preview"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.sql/servers"", concat(variables('targetservername')))]""], ""properties"": {""endipaddress"": ""0.0.0.0"", ""startipaddress"": ""0.0.0.0""}}]} " +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')]""}]}} " +This template creates a data collection rule defining the data source (Syslog) and the destination workspace.,"{""name"": ""[parameters('actiongroupname')]"", ""type"": ""microsoft.insights/actiongroups"", ""apiversion"": ""2019-06-01"", ""location"": ""global"", ""properties"": {""groupshortname"": ""[parameters('actiongroupshortname')]"", ""enabled"": true, ""emailreceivers"": [{""name"": ""test"", ""emailaddress"": ""[parameters('emails')[0]]"", ""usecommonalertschema"": true}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('vmssname')]""}}}{""type"": ""microsoft.network/loadbalancers"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('loadbalancername')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressname'))]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""loadbalancerfrontend"", ""properties"": {""publicipaddress"": {""id"": ""[variables('publicipaddressid')]""}}}], ""backendaddresspools"": [{""name"": ""[variables('bepoolname')]""}], ""inboundnatpools"": [{""name"": ""[variables('natpoolname')]"", ""properties"": {""frontendipconfiguration"": {""id"": ""[variables('frontendipconfigid')]""}, ""protocol"": ""tcp"", ""frontendportrangestart"": ""[variables('natstartport')]"", ""frontendportrangeend"": ""[variables('natendport')]"", ""backendport"": ""[variables('natbackendport')]""}}, {""name"": ""[variables('natpool2name')]"", ""properties"": {""frontendipconfiguration"": {""id"": ""[variables('frontendipconfigid')]""}, ""protocol"": ""tcp"", ""frontendportrangestart"": 9000, ""frontendportrangeend"": 9120, ""backendport"": 9000}}]}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/availabilitysets"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('gw-availabilityset')]"", ""properties"": {""platformupdatedomaincount"": 20, ""platformfaultdomaincount"": 2}, ""sku"": {""name"": ""aligned""}}{""name"": ""[concat('gw-vm-"",copyindex())]"", ""type"": ""microsoft.compute/virtualmachines"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2017-03-30"", ""copy"": {""name"": ""gw-vm-loop"", ""count"": ""[parameters('numberofwebgwinstances')]""}, ""dependson"": [""[resourceid('microsoft.compute/availabilitysets"", ""gw-availabilityset')]"", ""[concat('microsoft.network/networkinterfaces/gw-"",copyindex(),""-nic')]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", ""gw-availabilityset')]""}, ""osprofile"": {""computername"": ""[concat('gateway"",copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat('gw-vm-"",copyindex(),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat('gw-"",copyindex(),""-nic'))]""}]}}, ""resources"": [{""name"": ""[concat('gw-vm-"",copyindex(),""/gateway')]"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2017-12-01"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", concat('gw-vm-"",copyindex()))]""], ""properties"": {""publisher"": ""microsoft.powershell"", ""type"": ""dsc"", ""typehandlerversion"": ""2.76"", ""autoupgrademinorversion"": true, ""settings"": {""modulesurl"": ""[concat(variables('assetlocation'),""/configuration.zip')]"", ""configurationfunction"": ""configuration.ps1\\gateway"", ""properties"": {""domainname"": ""[parameters('addomainname')]"", ""admincreds"": {""username"": ""[parameters('adminusername')]"", ""password"": ""privatesettingsref:adminpassword""}}}, ""protectedsettings"": {""items"": {""adminpassword"": ""[parameters('adminpassword')]""}}}}, {""apiversion"": ""2015-06-15"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat('gw-vm-"",copyindex(),""/webandgwfarmadd_postconfig1.1')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", concat('gw-vm-"",copyindex()))]"", ""[concat('microsoft.compute/virtualmachines/gw-vm-"",copyindex(),""/extensions/"",""gateway')]""], ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.9"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""https://raw.githubusercontent.com/azure/azure-quickstart-templates/master/application-workloads/rds/rds-deployment-ha-gateway/scripts/webandgwfarmadd_postconfig1.1.ps1""]}, ""protectedsettings"": {""items"": {""adminpassword"": ""[parameters('adminpassword')]""}, ""commandtoexecute"": ""[concat(\""powershell.exe -executionpolicy unrestricted -file\"", \"" \"", \""webandgwfarmadd_postconfig1.1.ps1\"",\"" \"",\""-username ""\"",parameters(\""adminusername\'),\"""" \"", \""-password ""\"",parameters(\""adminpassword\'),\"""" \"",\""-brokerserver ""\"",parameters(\""brokerserver\'),\"""" \"",\""-weburl ""\"",parameters(\""weburl\'),\"""" \"",\""-domainname ""\"",parameters(\""addomainname\'),\"""" \"",\""-domainnetbios ""\"",parameters(\""domainnetbios\'),\"""" \"",\""-numberofwebservers \"",parameters(\""numberofwebgwinstances\'))]""}}}]} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""apiversion"": ""2020-08-01-preview"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storagev2""} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('bwafstorageaccountname')]"", ""apiversion"": ""2021-01-01"", ""location"": ""[parameters('location')]"", ""comments"": ""storage account used to store the bwaf vm disks"", ""tags"": {""displayname"": ""bwaf vm storage account"", ""quickstartname"": ""[variables('quickstarttags').name]"", ""provider"": ""[variables('barracudanetworkstags').provider]""}, ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storage"", ""properties"": {}}{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('webstorageaccountname')]"", ""apiversion"": ""2021-01-01"", ""location"": ""[parameters('location')]"", ""comments"": ""storage account used to store the web vm disks"", ""tags"": {""displayname"": ""web vm storage account"", ""quickstartname"": ""[variables('quickstarttags').name]"", ""provider"": ""[variables('barracudanetworkstags').provider]""}, ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storage"", ""properties"": {}}{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('diagstorageaccountname')]"", ""apiversion"": ""2021-01-01"", ""location"": ""[parameters('location')]"", ""comments"": ""storage account used to store vm diagnostics data"", ""tags"": {""displayname"": ""diagnostics storage account"", ""quickstartname"": ""[variables('quickstarttags').name]"", ""provider"": ""[variables('barracudanetworkstags').provider]""}, ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""properties"": {}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('clustername'), ""-dev')]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", concat(variables('clustername'), ""-dev"", ""-vmnic'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('infravmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage"", ""caching"": ""readwrite"", ""manageddisk"": {""storageaccounttype"": ""[variables('standardstorageaccounttype')]""}}}, ""osprofile"": {""computername"": ""[concat(variables('clustername'), ""-dev')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('clustername'), ""-dev"", ""-vmnic'))]""}]}}}{""apiversion"": ""2017-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('clustername'), ""-dev"", ""/setupdevbox')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", concat(variables('clustername'), ""-dev'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('scriptfileuri')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('bash setupdevbox.sh "", parameters('adminusername'), "" --cluster_name "", variables('clustername'), "" --cluster_location "", parameters('location'), "" --worker_vm_size "", parameters('workervmsize'), "" --infra_vm_size "", parameters('infravmsize'), "" --worker_node_num "", parameters('numberofworkervm'), "" --infra_node_num "", parameters('numberofinfravm'), "" --password "", variables('adminpasswordq'), "" --users "", variables('dlwsadminsq'), "" --openid_name "", variables('openidproviderq'), "" --openid_tenant "", variables('openidtenantq'), "" --openid_clientid "", variables('openidclientidq'), "" --openid_clientsecret "", variables('openidclientsecretq'))]""}}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('clustername'), ""-infra0"", copyindex(1))]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""infravmloop"", ""count"": ""[parameters('numberofinfravm')]""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", concat(variables('clustername'), ""-infra0"", copyindex(1), ""-vmnic'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('infravmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage"", ""caching"": ""readwrite"", ""manageddisk"": {""storageaccounttype"": ""[variables('standardstorageaccounttype')]""}}}, ""osprofile"": {""computername"": ""[concat(variables('clustername'), ""-infra0"", copyindex(1))]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('clustername'), ""-infra0"", copyindex(1), ""-vmnic'))]""}]}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'), ""/django')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('install_django.sh"", parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('sh install_django.sh "", parameters('vmdnsname'), "" "", parameters('servername'), "" "", parameters('administratorlogin'), "" "", parameters('administratorloginpassword'), "" "", parameters('databasename'))]""}}} " +"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'))]""]} " +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')]""}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-08-01"", ""name"": ""[variables('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage""} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""name"": ""[parameters('vmname')]"", ""type"": ""microsoft.compute/virtualmachines"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", variables('vmnicname'))]""], ""tags"": {""displayname"": ""vm01""}, ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('vmadminusername')]"", ""adminpassword"": ""[parameters('vmadminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('vmimagepublisher')]"", ""offer"": ""[variables('vmimageoffer')]"", ""sku"": ""[parameters('vmsku')]"", ""version"": ""[parameters('vmversion')]""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('vmnicname'))]""}]}}, ""resources"": [{""name"": ""setupoffice"", ""type"": ""extensions"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", parameters('vmname'))]""], ""tags"": {""displayname"": ""setupoffice""}, ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.9"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/"", parameters('setupofficescriptfilename'), parameters('_artifactslocationsastoken')))]"", ""https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/defaultconfiguration.xml"", ""https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/office2013setup.exe"", ""https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/office2016setup.exe"", ""https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/edit-officeconfigurationfile.ps1"", ""https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/generate-odtconfigurationxml.ps1"", ""https://raw.githubusercontent.com/officedev/office-it-pro-deployment-scripts/master/office-proplus-deployment/deploy-officeclicktorun/install-officeclicktorun.ps1""], ""commandtoexecute"": ""[concat('powershell -executionpolicy bypass -file scripts/"", parameters('setupofficescriptfilename'),"" -officeversion "", parameters('officeversion'))]""}}}]} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""ostype"": ""linux"", ""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/installscript')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", parameters('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('install_xrdp.sh"", parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""bash install_xrdp.sh""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""comments"": ""this the virtual network that all resources will be deployed to."", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""10.0.0.0/16""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""10.0.2.0/24""}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""comments"": ""this is the public ip address that will be assigned to the azure load balancer."", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[variables('dnsnameforlbip')]""}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('networksecurityname')]"", ""comments"": ""this network security group (nsg) will limit the tcp ports open to the kemp loadmasters."", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""[variables('networksecurityname')]""}, ""properties"": {""securityrules"": [{""name"": ""wui-rule"", ""properties"": {""description"": ""allow wui"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""8443"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}, {""name"": ""ssh-rule"", ""properties"": {""description"": ""allow ssh"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 101, ""direction"": ""inbound""}}, {""name"": ""ssl-rule"", ""properties"": {""description"": ""allow ssl"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 103, ""direction"": ""inbound""}}, {""name"": ""web-rule"", ""properties"": {""description"": ""allow web"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 104, ""direction"": ""inbound""}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('networkinterfacename'), copyindex())]"", ""comments"": ""a network interface will be created for each of the kemp loadmasters."", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicloop"", ""count"": ""[variables('numberofinstances')]""}, ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/loadbalancers/"", variables('loadbalancername'))]"", ""[resourceid('microsoft.network/loadbalancers/inboundnatrules"", variables('loadbalancername'), concat('vlm-mgmt"", copyindex()))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", variables('networksecurityname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('virtualnetworkname'), variables('subnetname'))]""}, ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups/"", variables('networksecurityname'))]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"",variables('loadbalancername'), ""backendpool1')]""}], ""loadbalancerinboundnatrules"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/inboundnatrules"",variables('loadbalancername'),concat('vlm-mgmt"", copyindex()))]""}]}}]}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2021-03-01"", ""name"": ""[parameters('hostvirtualmachinename')]"", ""location"": ""[parameters('location')]"", ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('hostvirtualmachinesize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2016-datacenter"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[format('{0}osdisk"", parameters('hostvirtualmachinename'))]"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}, ""caching"": ""readwrite""}, ""datadisks"": [{""lun"": 0, ""name"": ""[format('{0}datadisk1"", parameters('hostvirtualmachinename'))]"", ""createoption"": ""empty"", ""disksizegb"": 1024, ""caching"": ""readonly"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}}]}, ""osprofile"": {""computername"": ""[parameters('hostvirtualmachinename')]"", ""adminusername"": ""[parameters('hostadminusername')]"", ""adminpassword"": ""[parameters('hostadminpassword')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[reference(resourceid('microsoft.resources/deployments"", ""createnic1'), ""2019-10-01').outputs.nicid.value]"", ""properties"": {""primary"": true}}, {""id"": ""[reference(resourceid('microsoft.resources/deployments"", ""createnic2'), ""2019-10-01').outputs.nicid.value]"", ""properties"": {""primary"": false}}]}}, ""dependson"": [""[resourceid('microsoft.resources/deployments"", ""createnic1')]"", ""[resourceid('microsoft.resources/deployments"", ""createnic2')]""]}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2021-03-01"", ""name"": ""[format('{0}/{1}"", parameters('hostvirtualmachinename'), ""installwindowsfeatures')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publisher"": ""microsoft.powershell"", ""type"": ""dsc"", ""typehandlerversion"": ""2.77"", ""autoupgrademinorversion"": true, ""settings"": {""wmfversion"": ""latest"", ""configuration"": {""url"": ""[variables('dscinstallwindowsfeaturesuri')]"", ""script"": ""dscinstallwindowsfeatures.ps1"", ""function"": ""installwindowsfeatures""}}}, ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", parameters('hostvirtualmachinename'))]""]}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2021-03-01"", ""name"": ""[format('{0}/{1}"", parameters('hostvirtualmachinename'), ""hvhostsetup')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.9"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('hvhostsetupscripturi')]""], ""commandtoexecute"": ""[format('powershell -executionpolicy unrestricted -file hvhostsetup.ps1 -nic1ipaddress {0} -nic2ipaddress {1} -ghostedsubnetprefix {2} -virtualnetworkprefix {3}"", reference(resourceid('microsoft.resources/deployments"", ""createnic1'), ""2019-10-01').outputs.assignedip.value, reference(resourceid('microsoft.resources/deployments"", ""createnic2'), ""2019-10-01').outputs.assignedip.value, parameters('ghostedsubnetprefix'), parameters('virtualnetworkaddressprefix'))]""}}, ""dependson"": [""[resourceid('microsoft.resources/deployments"", ""createnic1')]"", ""[resourceid('microsoft.resources/deployments"", ""createnic2')]"", ""[resourceid('microsoft.compute/virtualmachines"", parameters('hostvirtualmachinename'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions"", parameters('hostvirtualmachinename'), ""installwindowsfeatures')]""]} " +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')]""}}]}}{""apiversion"": ""2020-11-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", concat(parameters('vmname'), ""-devbox'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", variables('devboxnetworksecuritygroup'))]""], ""properties"": {""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('devboxnetworksecuritygroup'))]""}, ""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[variables('devboxprivateipaddress')]"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", concat(parameters('vmname'), ""-devbox'))]""}, ""subnet"": {""id"": ""[variables('subnetrefforbosh')]""}}}]}} " +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')]""}}} " +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}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex())]"", ""copy"": {""name"": ""dbvmloop"", ""count"": ""[variables('dbvmcount')]""}, ""dependson"": [""dbnicloop"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('avsetnamedb'))]""], ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('avsetnamedb'))]""}, ""hardwareprofile"": {""vmsize"": ""[variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].vmsize]""}, ""osprofile"": {""computername"": ""[concat(variables('vmnamedb'), ""-"", copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('images')[parameters('ostype')].publisher]"", ""offer"": ""[variables('images')[parameters('ostype')].offer]"", ""sku"": ""[variables('images')[parameters('ostype')].sku]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex(), ""-osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""disksizegb"": ""[variables('images')[parameters('ostype')].osdisksize]"", ""manageddisk"": {""storageaccounttype"": ""premium_lrs""}}, ""datadisks"": ""[variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].disks]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('nicnamedb'), ""-"", copyindex()))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmnamedb'), ""-"", copyindex(), ""/"", variables('cseextname'))]"", ""apiversion"": ""2020-12-01"", ""copy"": {""name"": ""dbcseloop"", ""count"": ""[variables('dbvmcount')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""dbvmloop""], ""properties"": {""publisher"": ""[variables('cseextpublisher')]"", ""type"": ""[variables('cseextname')]"", ""typehandlerversion"": ""[variables('cseextversion')]"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('csextensionscript')]""], ""commandtoexecute"": ""[concat(variables('csextensionscriptcall'), "" "", variables('sizes')[parameters('sapsystemsize')][parameters('dbtype')].scriptarguments[variables('internalostype')])]""}}} " +Deploy an Azure SQL Server with Auditing enabled to write audit logs to a blob storage,"{""apiversion"": ""2020-11-01-preview"", ""type"": ""microsoft.sql/servers"", ""location"": ""[variables('location')]"", ""name"": ""[variables('sqlservername')]"", ""properties"": {""administratorlogin"": ""[parameters('sqlserveradministratorlogin')]"", ""administratorloginpassword"": ""[parameters('sqlserveradministratorloginpassword')]"", ""version"": ""12.0""}, ""resources"": [{""apiversion"": ""2020-11-01-preview"", ""type"": ""databases"", ""location"": ""[variables('location')]"", ""name"": ""catalog"", ""dependson"": [""[resourceid('microsoft.sql/servers/"", variables('sqlservername'))]""], ""properties"": {""collation"": ""sql_latin1_general_cp1_ci_as"", ""edition"": ""basic"", ""zoneredundant"": false}}, {""apiversion"": ""2020-11-01-preview"", ""type"": ""databases"", ""location"": ""[variables('location')]"", ""name"": ""sales"", ""dependson"": [""[resourceid('microsoft.sql/servers/"", variables('sqlservername'))]""], ""properties"": {""collation"": ""sql_latin1_general_cp1_ci_as"", ""edition"": ""basic"", ""zoneredundant"": false}}, {""apiversion"": ""2020-11-01-preview"", ""type"": ""databases"", ""location"": ""[variables('location')]"", ""name"": ""identity"", ""dependson"": [""[resourceid('microsoft.sql/servers/"", variables('sqlservername'))]""], ""properties"": {""collation"": ""sql_latin1_general_cp1_ci_as"", ""edition"": ""basic"", ""zoneredundant"": false}}, {""apiversion"": ""2020-11-01-preview"", ""type"": ""virtualnetworkrules"", ""name"": ""[concat('allow-access-from-"", variables('asesubnetname'))]"", ""dependson"": [""[resourceid('microsoft.sql/servers/"", variables('sqlservername'))]""], ""properties"": {""virtualnetworksubnetid"": ""[resourceid('microsoft.network/virtualnetworks/subnets/"", variables('vnetname'), variables('asesubnetname'))]""}}]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetmasters')]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 5}}{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetnodes')]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 5}}{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmnamemaster'), copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""vmloopmaster"", ""count"": ""[variables('mastercount')]""}, ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('vmnamemaster'), copyindex(), ""-nic'))]"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('availabilitysetmasters'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"",variables('availabilitysetmasters'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsizemaster')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmnamemaster'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[variables('sshkeypath')]"", ""keydata"": ""[parameters('sshpublickey')]""}]}}}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('osimagepublisher')]"", ""offer"": ""[variables('osimageoffer')]"", ""sku"": ""[variables('osimagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnamemaster'), copyindex(),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(variables('vmnamemaster'), copyindex(), ""-nic'))]""}]}}}{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmnamenode'), copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""vmloopnode"", ""count"": ""[parameters('nodecount')]""}, ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('vmnamenode'), copyindex(), ""-nic'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"",variables('availabilitysetnodes'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsizenode')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmnamenode'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[variables('sshkeypath')]"", ""keydata"": ""[parameters('sshpublickey')]""}]}}}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('osimagepublisher')]"", ""offer"": ""[variables('osimageoffer')]"", ""sku"": ""[variables('osimagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnamenode'), copyindex(),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(variables('vmnamenode'), copyindex(), ""-nic'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmnamemaster'), copyindex(), ""/dockerextension')]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""extensionloopmaster"", ""count"": ""[variables('mastercount')]""}, ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", concat(variables('vmnamemaster'), copyindex()))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""dockerextension"", ""typehandlerversion"": ""1.0"", ""autoupgrademinorversion"": true, ""settings"": {""compose"": {""consul"": {""image"": ""progrium/consul"", ""command"": ""[concat('-server -node master"", copyindex(), "" "", variables('consulserverargs')[copyindex()])]"", ""ports"": [""8500:8500"", ""8300:8300"", ""8301:8301"", ""8301:8301/udp"", ""8302:8302"", ""8302:8302/udp"", ""8400:8400""], ""volumes"": [""/data/consul:/data""], ""restart"": ""always""}, ""swarm"": {""image"": ""swarm"", ""command"": ""[concat('manage --replication --advertise "", reference(resourceid('microsoft.network/networkinterfaces"",concat(variables('vmnamemaster'), copyindex(), ""-nic'))).ipconfigurations[0].properties.privateipaddress, "":2375 --discovery-opt kv.path=docker/nodes consul://10.0.0.4:8500')]"", ""ports"": [""2375:2375""], ""links"": [""consul""], ""volumes"": [""/etc/docker:/etc/docker""], ""restart"": ""always""}}}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmnamenode'), copyindex(), ""/dockerextension')]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""extensionloopnode"", ""count"": ""[parameters('nodecount')]""}, ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", concat(variables('vmnamenode'), copyindex()))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""dockerextension"", ""typehandlerversion"": ""1.0"", ""autoupgrademinorversion"": true, ""settings"": {""docker"": {""port"": ""2375"", ""options"": [""--cluster-store=consul://10.0.0.4:8500"", ""--cluster-advertise=eth0:2375""]}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('nsgname')]""}{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('natgatewaypublicipname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {""publicipaddressversion"": ""ipv4"", ""publicipallocationmethod"": ""static"", ""idletimeoutinminutes"": 4}}{""type"": ""microsoft.network/natgateways"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('natgatewayname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", parameters('natgatewaypublicipname'))]""], ""properties"": {""idletimeoutinminutes"": 4, ""publicipaddresses"": [{""id"": ""[resourceid('microsoft.network/publicipaddresses"", parameters('natgatewaypublicipname'))]""}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('vnetname')]"", ""dependson"": [""[resourceid('microsoft.network/natgateways"", parameters('natgatewayname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", parameters('nsgname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('vnetcidr')]""]}, ""subnets"": [{""name"": ""[parameters('publicsubnetname')]"", ""properties"": {""addressprefix"": ""[parameters('publicsubnetcidr')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}, ""natgateway"": {""id"": ""[resourceid('microsoft.network/natgateways"", parameters('natgatewayname'))]""}, ""delegations"": [{""name"": ""databricks-del-public"", ""properties"": {""servicename"": ""microsoft.databricks/workspaces""}}]}}, {""name"": ""[parameters('privatesubnetname')]"", ""properties"": {""addressprefix"": ""[parameters('privatesubnetcidr')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}, ""natgateway"": {""id"": ""[resourceid('microsoft.network/natgateways"", parameters('natgatewayname'))]""}, ""delegations"": [{""name"": ""databricks-del-private"", ""properties"": {""servicename"": ""microsoft.databricks/workspaces""}}]}}]}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""rancherdeploy"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-09-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('templatedeployurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""adminpassword"": {""value"": ""[parameters('adminpassword')]""}, ""ranchername"": {""value"": ""[parameters('uniquedeployprefix')]""}, ""ranchervmsize"": {""value"": ""[parameters('vmsize')]""}, ""location"": {""value"": ""[parameters('location')]""}}}} " +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')]""}}}}{""apiversion"": ""2020-08-01"", ""name"": ""[concat(variables('applicationgateways')[copyindex()].name,""-pip"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""copy"": {""name"": ""copy-appgateway-pip"", ""count"": 2}, ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('piptemplateuri')]""}, ""parameters"": {""publicipaddressname"": {""value"": ""[concat(variables('applicationgateways')[copyindex()].name,""-pip')]""}, ""publicipaddresstype"": {""value"": ""[parameters('pipaddresstype')]""}, ""dnsnameforpublicip"": {""value"": ""[concat(variables('applicationgateways')[copyindex()].name,""-"",uniquestring(resourcegroup().id, ""pip'), ""-pip')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}} " +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""}}]}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmname'), ""-boss')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('nicname'), ""-boss'))]"", ""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('bossnodesize')]""}, ""osprofile"": {""computername"": ""[concat('jmeter-boss')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": ""[variables('settings').imagereference]"", ""osdisk"": {""name"": ""[concat(variables('vmname'),""-boss"",""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(variables('nicname'), ""-boss'))]""}]}}, ""resources"": [{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'), ""-boss"", ""/installjmeter')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", concat(variables('vmname'), ""-boss'))]""], ""properties"": {""publisher"": ""[variables('settings').extensionsettings.boss.publisher]"", ""type"": ""[variables('settings').extensionsettings.boss.type]"", ""typehandlerversion"": ""[variables('settings').extensionsettings.boss.typehandlerversion]"", ""settings"": {""fileuris"": ""[variables('settings').extensionsettings.boss.settings.fileuris]"", ""commandtoexecute"": ""[concat(variables('settings').extensionsettings.boss.settings.commandtoexecute)]""}}}]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[concat(variables('nsgname'))]"", ""apiversion"": ""2020-07-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""properties"": {""securityrules"": ""[variables('selectedsecurityrules')]""}}{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('vnetname')]"", ""apiversion"": ""2018-04-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups/"", variables('nsgname'))]""], ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""properties"": {""addressspace"": {""addressprefixes"": [""10.0.0.0/16""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""10.0.0.0/24"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('nsgname'))]""}}}]}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""apiversion"": ""2017-06-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks/"", variables('vnetname'))]""], ""properties"": {""ipconfigurations"": ""[variables('selectedipconfig')]""}} " +which shows how we can correlate messages over Logic Apps using Azure Service Bus,"{""type"": ""microsoft.logic/workflows"", ""apiversion"": ""2019-05-01"", ""name"": ""[parameters('logicappname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""state"": ""enabled"", ""definition"": {""$schema"": ""https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#"", ""actions"": {""switch"": {""cases"": {""createresource"": {""actions"": {""createcustomresource"": {""inputs"": {""body"": {""properties"": ""@addproperty(triggerbody().body[""properties""], ""mydynamicproperty"", ""mydynamicvalue')""}, ""statuscode"": 200}, ""kind"": ""http"", ""type"": ""response""}}, ""case"": ""create""}}, ""default"": {""actions"": {""defaulthttpresponse"": {""inputs"": {""statuscode"": 200}, ""kind"": ""http"", ""type"": ""response""}}}, ""expression"": ""@triggerbody().operationtype"", ""type"": ""switch""}}, ""contentversion"": ""1.0.0.0"", ""outputs"": {}, ""parameters"": {}, ""triggers"": {""customproviderwebhook"": {""inputs"": {""schema"": {""required"": [""operationtype"", ""resourcetype"", ""resourceid"", ""resourcename"", ""body""], ""properties"": {""operationtype"": {""$id"": ""#/properties/operationtype"", ""type"": ""string"", ""enum"": [""create"", ""delete"", ""get"", ""list"", ""trigger""]}, ""resourcetype"": {""$id"": ""#/properties/resourcetype"", ""type"": ""string""}, ""resourceid"": {""$id"": ""#/properties/resourceid"", ""type"": ""string""}, ""resourcename"": {""$id"": ""#/properties/resourcename"", ""type"": ""string""}, ""body"": {""$id"": ""#/properties/body"", ""type"": ""object""}}}}, ""kind"": ""http"", ""type"": ""request""}}}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetname')]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 5}}{""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'), copyindex())]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[parameters('numberofinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"",variables('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"",concat(variables('vmname'),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"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat(variables('vmname'),copyindex()))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('newstorageaccountname'), ""2021-01-01').primaryendpoints[""blob""]]""}}}}{""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/"",variables('nicsql'))]"", ""[resourceid('microsoft.compute/availabilitysets"", concat(variables('availabilitysetname'),""db'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", concat(variables('availabilitysetname'),""db'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""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"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicsql'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('newstorageaccountname'), ""2021-01-01').primaryendpoints[""blob""]]""}}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""name"": ""[variables('virtualmachinename')]"", ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('networkinterfacename')]""], ""properties"": {""osprofile"": {""computername"": ""[variables('virtualmachinename')]"", ""adminusername"": ""[parameters('administratorlogin')]"", ""adminpassword"": ""[parameters('administratorloginpassword')]"", ""windowsconfiguration"": {""provisionvmagent"": ""true""}}, ""hardwareprofile"": {""vmsize"": ""[parameters('virtualmachinesize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2016-datacenter"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]""}]}}, ""resources"": [{""name"": ""setupssms"", ""type"": ""extensions"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2019-12-01"", ""dependson"": [""[variables('virtualmachinename')]""], ""tags"": {""displayname"": ""setupssms""}, ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.9"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('scriptfileuri')]""], ""commandtoexecute"": ""powershell -executionpolicy unrestricted -file installssms.ps1""}}}]} " +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')]""}}}} " +Create a sandbox setup of Azure Firewall with Linux jumpbox and Linux server,"{""type"": ""microsoft.network/routetables"", ""name"": ""[variables('azfwroutetablename')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""properties"": {""disablebgproutepropagation"": false, ""routes"": [{""name"": ""azfwdefaultroute"", ""properties"": {""addressprefix"": ""0.0.0.0/0"", ""nexthoptype"": ""virtualappliance"", ""nexthopipaddress"": ""[variables('nexthopip')]""}}]}}{""comments"": ""simple network security group for subnet [variables('serverssubnetname')]"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {}}{""name"": ""[parameters('virtualnetworkname')]"", ""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/routetables"", variables('azfwroutetablename'))]"", ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""tags"": {""displayname"": ""[parameters('virtualnetworkname')]""}, ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetaddressprefix')]""]}, ""subnets"": [{""name"": ""[variables('jumpboxsubnetname')]"", ""properties"": {""addressprefix"": ""[variables('jumpboxsubnetprefix')]""}}, {""name"": ""[variables('azurefirewallsubnetname')]"", ""properties"": {""addressprefix"": ""[variables('azurefirewallsubnetprefix')]""}}, {""name"": ""[variables('serverssubnetname')]"", ""properties"": {""addressprefix"": ""[variables('serverssubnetprefix')]"", ""routetable"": {""id"": ""[resourceid('microsoft.network/routetables"", variables('azfwroutetablename'))]""}, ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}}{""name"": ""[concat(variables('publicipnameprefix'), add(copyindex(), 1))]"", ""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""copy"": {""name"": ""publicipcopy"", ""count"": ""[parameters('numberoffirewallpublicipaddresses')]""}, ""properties"": {""publicipallocationmethod"": ""static"", ""publicipaddressversion"": ""ipv4""}}{""name"": ""[variables('jumpboxpublicipaddressname')]"", ""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""name"": ""[variables('jumpboxnsgname')]"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""mynetworksecuritygrouprulessh"", ""properties"": {""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1000, ""direction"": ""inbound""}}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('jumpboxnicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", variables('jumpboxpublicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/networksecuritygroups"", variables('jumpboxnsgname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('jumpboxpublicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('jumpboxsubnetid')]""}}}], ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('jumpboxnsgname'))]""}}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('servernicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('serversubnetid')]""}}}]}}{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/firewallpolicies"", ""name"": ""[variables('firewallpolicyname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""threatintelmode"": ""alert""}, ""resources"": [{""apiversion"": ""2020-04-01"", ""type"": ""rulegroups"", ""name"": ""networkrg"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/firewallpolicies"", variables('firewallpolicyname'))]"", ""[resourceid('microsoft.network/firewallpolicies/rulegroups"", variables('firewallpolicyname'), ""apprg')]""], ""properties"": {""priority"": 100, ""rules"": [{""name"": ""networkrule1"", ""conditiontype"": ""network"", ""ruletype"": ""firewallpolicyfilterrule"", ""action"": {""type"": ""allow""}, ""priority"": 230, ""ruleconditions"": [{""name"": ""netrc1"", ""ipprotocols"": [""tcp""], ""destinationports"": [""80""], ""sourceaddresses"": [""*""], ""destinationaddresses"": [""*""], ""ruleconditiontype"": ""networkrulecondition""}]}]}}, {""apiversion"": ""2020-04-01"", ""type"": ""rulegroups"", ""name"": ""apprg"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/firewallpolicies"", variables('firewallpolicyname'))]""], ""properties"": {""priority"": 200, ""rules"": [{""name"": ""apprule1"", ""priority"": 4444, ""ruletype"": ""firewallpolicyfilterrule"", ""action"": {""type"": ""allow""}, ""ruleconditions"": [{""ruleconditiontype"": ""applicationrulecondition"", ""name"": ""apprc1"", ""protocols"": [{""protocoltype"": ""http"", ""port"": 8000}], ""targetfqdns"": [""*""], ""sourceaddresses"": [""*""]}]}]}}]}{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/azurefirewalls"", ""name"": ""[variables('firewallname')]"", ""location"": ""[parameters('location')]"", ""zones"": ""[if(equals(length(parameters('availabilityzones')), 0), json('null'), parameters('availabilityzones'))]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetworkname'))]"", ""[resourceid('microsoft.network/firewallpolicies"", variables('firewallpolicyname'))]"", ""[resourceid('microsoft.network/firewallpolicies/rulegroups"", variables('firewallpolicyname'), ""apprg')]"", ""[resourceid('microsoft.network/firewallpolicies/rulegroups"", variables('firewallpolicyname'), ""networkrg')]"", ""publicipcopy""], ""properties"": {""ipconfigurations"": ""[variables('azurefirewallipconfigurations')]"", ""firewallpolicy"": {""id"": ""[resourceid('microsoft.network/firewallpolicies"", variables('firewallpolicyname'))]""}}} " +This template creates a data collection rule defining the data source (Syslog) and the destination workspace.,"{""type"": ""microsoft.insights/components"", ""apiversion"": ""2020-02-02"", ""name"": ""[variables('appinsightname')]"", ""location"": ""[parameters('location')]"", ""kind"": ""string"", ""tags"": {""displayname"": ""appinsight"", ""projectname"": ""[parameters('appname')]""}, ""properties"": {""application_type"": ""web"", ""workspaceresourceid"": ""[resourceid('microsoft.operationalinsights/workspaces"", variables('loganalyticsname'))]""}, ""dependson"": [""[resourceid('microsoft.operationalinsights/workspaces"", variables('loganalyticsname'))]""]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(variables('publicipname'), copyindex())]"", ""copy"": {""name"": ""publiciploop"", ""count"": ""[variables('numberofinstances')]""}, ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {""publicipallocationmethod"": ""static""}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""lbpublicip"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {""publicipallocationmethod"": ""static""}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""lbpublicip-v6"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {""publicipallocationmethod"": ""static"", ""publicipaddressversion"": ""ipv6""}}{""apiversion"": ""2020-07-01"", ""name"": ""loadbalancer"", ""type"": ""microsoft.network/loadbalancers"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"",""lbpublicip')]"", ""[resourceid('microsoft.network/publicipaddresses"",""lbpublicip-v6')]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""lbfe"", ""properties"": {""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", ""lbpublicip')]""}}}, {""name"": ""lbfe-v6"", ""properties"": {""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",""lbpublicip-v6')]""}}}], ""backendaddresspools"": [{""name"": ""lbbap""}, {""name"": ""lbbap-v6""}], ""loadbalancingrules"": [{""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", ""loadbalancer"", ""lbfe')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", ""loadbalancer"", ""lbbap')]""}, ""protocol"": ""tcp"", ""frontendport"": 80, ""backendport"": 80, ""idletimeoutinminutes"": 15, ""probe"": {""id"": ""[resourceid('microsoft.network/loadbalancers/probes"", ""loadbalancer"", ""ipv4ipv6probe')]""}}, ""name"": ""lbrule""}, {""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", ""loadbalancer"", ""lbfe-v6')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", ""loadbalancer"", ""lbbap-v6')]""}, ""protocol"": ""tcp"", ""frontendport"": 80, ""backendport"": 80, ""probe"": {""id"": ""[resourceid('microsoft.network/loadbalancers/probes"", ""loadbalancer"", ""ipv4ipv6probe')]""}}, ""name"": ""lbrule-v6""}], ""probes"": [{""name"": ""ipv4ipv6probe"", ""properties"": {""protocol"": ""tcp"", ""port"": 80, ""intervalinseconds"": 5, ""numberofprobes"": 2}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""vnet"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetv4addressrange')]"", ""[variables('vnetv6addressrange')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefixes"": [""[variables('subnetv4addressrange')]"", ""[variables('subnetv6addressrange')]""]}}]}} " +This template deploys a VM Scale Set into an exsisting vnet.,"{""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'))]""}]}}]}}]}}}} " +This template creates an Azure Traffic Manager profile using external endpoints.,"{""type"": ""microsoft.network/trafficmanagerprofiles"", ""apiversion"": ""2018-08-01"", ""name"": ""externalendpointexample"", ""location"": ""global"", ""properties"": {""profilestatus"": ""enabled"", ""trafficroutingmethod"": ""performance"", ""dnsconfig"": {""relativename"": ""[parameters('uniquednsname')]"", ""ttl"": 30}, ""monitorconfig"": {""protocol"": ""https"", ""port"": 443, ""path"": ""/"", ""expectedstatuscoderanges"": [{""min"": 200, ""max"": 202}, {""min"": 301, ""max"": 302}]}, ""endpoints"": [{""type"": ""microsoft.network/trafficmanagerprofiles/externalendpoints"", ""name"": ""endpoint1"", ""properties"": {""target"": ""www.microsoft.com"", ""endpointstatus"": ""enabled"", ""endpointlocation"": ""northeurope""}}, {""type"": ""microsoft.network/trafficmanagerprofiles/externalendpoints"", ""name"": ""endpoint2"", ""properties"": {""target"": ""docs.microsoft.com"", ""endpointstatus"": ""enabled"", ""endpointlocation"": ""southcentralus""}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('publicipname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('publicipsku')]""}, ""properties"": {""publicipallocationmethod"": ""[parameters('publicipallocationmethod')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-3389"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""3389"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", parameters('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", parameters('networksecuritygroupname'))]""}}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'), ""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[parameters('disktype')]""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""}]}}} " +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"", ""properties"": {}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[variables('vns3controllername')]"", ""location"": ""[parameters('location')]"", ""plan"": {""name"": ""cohesive-vns3-4_11_x-free"", ""product"": ""vns3_4x_network_security"", ""publisher"": ""cohesive""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]"", ""[resourceid('microsoft.storage/storageaccounts"", variables('storageaccount'))]""], ""tags"": {""name"": ""vns3 controller""}, ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('instancesize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""cohesive"", ""offer"": ""vns3_4x_network_security"", ""sku"": ""cohesive-vns3-4_11_x-free"", ""version"": ""latest""}, ""osdisk"": {""ostype"": ""linux"", ""name"": ""[concat(variables('vns3controllername'), ""-disc')]"", ""createoption"": ""fromimage"", ""caching"": ""readwrite"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}, ""disksizegb"": 30}}, ""osprofile"": {""computername"": ""[variables('vns3controllername')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": false, ""provisionvmagent"": true}, ""allowextensionoperations"": true}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('storageaccount'),""2021-01-01').primaryendpoints[""blob""]]""}}}}{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[concat('ubuntuvm"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[parameters('numberofinstances')]""}, ""dependson"": [""nicloop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('instancesize')]""}, ""osprofile"": {""computername"": ""[concat('ubuntuvm"", copyindex())]"", ""adminusername"": ""[parameters('adminusernameubuntu')]"", ""adminpassword"": ""[parameters('adminpasswordubuntu')]""}, ""storageprofile"": {""imagereference"": ""[variables('ubuntu')]"", ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat('nic-ubuntuvm"", copyindex()))]""}]}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('servicebusnamespaceprivateendpointid')]"", ""[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('servicebusnamespaceendpoint'), "" "", variables('blobserviceprimaryendpoint'))]""}}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/"", variables('omsagentforlinuxname'))]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vmid')]"", ""[variables('workspaceid')]"", ""[variables('customscriptid')]""], ""properties"": {""publisher"": ""microsoft.enterprisecloud.monitoring"", ""type"": ""omsagentforlinux"", ""typehandlerversion"": ""1.12"", ""settings"": {""workspaceid"": ""[reference(variables('workspaceid'), ""2020-03-01-preview').customerid]"", ""stoponmultipleconnections"": false}, ""protectedsettings"": {""workspacekey"": ""[listkeys(variables('workspaceid'),""2020-03-01-preview').primarysharedkey]""}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('primarylocation')]"", ""dependson"": [""[concat('microsoft.network/networkinterfaces/"",variables('primarynicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[variables('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[variables('sshkeypath')]"", ""keydata"": ""[parameters('sshkeydata')]""}]}}}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('primarynicname'))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""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'))]""]} " +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"": {""name"": ""[parameters('appserviceplantier')]"", ""capacity"": ""[parameters('appserviceplaninstances')]""}}{""type"": ""microsoft.web/sites"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('websitename')]"", ""location"": ""[parameters('location')]"", ""properties"": {""serverfarmid"": ""[resourceid('microsoft.web/serverfarms"", variables('hostingplanname'))]"", ""siteconfig"": {""appsettings"": [{""name"": ""cosmosdb:account"", ""value"": ""[reference(resourceid('microsoft.documentdb/databaseaccounts"", variables('cosmosaccountname'))).documentendpoint]""}, {""name"": ""cosmosdb:key"", ""value"": ""[listkeys(resourceid('microsoft.documentdb/databaseaccounts"", variables('cosmosaccountname')), ""2021-04-15').primarymasterkey]""}, {""name"": ""cosmosdb:databasename"", ""value"": ""[parameters('databasename')]""}, {""name"": ""cosmosdb:containername"", ""value"": ""[parameters('containername')]""}]}}, ""dependson"": [""[resourceid('microsoft.documentdb/databaseaccounts"", variables('cosmosaccountname'))]"", ""[resourceid('microsoft.web/serverfarms"", variables('hostingplanname'))]""]} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2019-06-01"", ""name"": ""[variables('defaultstorageaccount').name]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('defaultstorageaccount').type]""}, ""kind"": ""storage"", ""properties"": {}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": ""[variables('platformfaultdomaincount')]"", ""platformupdatedomaincount"": ""[variables('platformupdatedomaincount')]""}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(parameters('dnslabelforvmip'), copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[variables('numberofinstances')]""}, ""dependson"": [""[concat('microsoft.network/networkinterfaces/"", concat(parameters('vmandloadbalancerexposure'),variables('nicname'), copyindex()))]"", ""[concat('microsoft.compute/availabilitysets/"", variables('availabilitysetname'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[if(equals(copyindex(), variables('monitornodeindex')), parameters('monitornodevmsize'), parameters('messageroutingnodevmsize'))]""}, ""osprofile"": {""computername"": ""[concat(parameters('dnslabelforvmip'), copyindex())]"", ""adminusername"": ""[parameters('vmadminusername')]"", ""adminpassword"": ""[parameters('vmadminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('centosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('dnslabelforvmip'), copyindex(), ""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": ""[variables('datadiskschoices')[if(or(equals(parameters('datadisksize'), ""0'), equals(copyindex(), variables('monitornodeindex'))), ""2"", string(copyindex()))]]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(parameters('vmandloadbalancerexposure'),variables('nicname'), copyindex()))]""}]}}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('dnslabelforvmip'), copyindex(), ""/dockerextension')]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""dockerloop"", ""count"": ""[variables('numberofinstances')]""}, ""dependson"": [""[concat('microsoft.compute/virtualmachines/"", parameters('dnslabelforvmip'), copyindex())]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""dockerextension"", ""typehandlerversion"": ""1.0"", ""autoupgrademinorversion"": true, ""settings"": {}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetname')]"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 2}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('vmname'), copyindex())]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[variables('numberofinstances')]""}, ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('newstorageaccountname'))]"", ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('windowsvmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('vmname'), copyindex())]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('windowsvmsku')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('vmname'),copyindex()))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('newstorageaccountname')).primaryendpoints.blob]""}}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""apiversion"": ""2021-04-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('newstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}} " +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')]""}}}}{""apiversion"": ""2020-08-01"", ""name"": ""[concat(variables('applicationgateways')[copyindex()].name,""-pip"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""copy"": {""name"": ""copy-appgateway-pip"", ""count"": 2}, ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('piptemplateuri')]""}, ""parameters"": {""publicipaddressname"": {""value"": ""[concat(variables('applicationgateways')[copyindex()].name,""-pip')]""}, ""publicipaddresstype"": {""value"": ""[parameters('pipaddresstype')]""}, ""dnsnameforpublicip"": {""value"": ""[concat(variables('applicationgateways')[copyindex()].name,""-"",uniquestring(resourcegroup().id, ""pip'), ""-pip')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2020-08-01"", ""name"": ""[concat('deploy-"",variables('applicationgateways')[copyindex()].name,""-applicationgateway"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""copy"": {""name"": ""copy-appgateway"", ""count"": 2}, ""dependson"": [""copy-appgateway-pip"", ""[resourceid('microsoft.resources/deployments"",concat(variables('vnetname'),""-resource'))]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('appgwtemplateuri')]""}, ""parameters"": {""applicationgatewayname"": {""value"": ""[variables('applicationgateways')[copyindex()].name]""}, ""location"": {""value"": ""[parameters('location')]""}, ""publicipref"": {""value"": ""[reference(resourceid('microsoft.resources/deployments"",concat(variables('applicationgateways')[copyindex()].name,""-pip"",""-resource'))).outputs.publicipref.value]""}, ""frontendports"": {""value"": [{""name"": ""appgatewayfrontendport"", ""properties"": {""port"": 80}}]}, ""gatewayipconfigurations"": {""value"": [{""name"": ""appgatewayipconfig"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"",variables('vnetname'),variables('subnets')[0].name)]""}}}]}, ""backendaddresspools"": {""value"": [{""name"": ""appgatewaybackendpool"", ""properties"": {""backendaddresses"": [{""fqdn"": ""[reference(resourceid('microsoft.resources/deployments"",concat(variables('webappname'),""-resource'))).outputs.endpoint.value]""}]}}]}, ""backendhttpsettingscollection"": {""value"": [{""name"": ""appgatewaybackendhttpsettings"", ""properties"": {""port"": 80, ""protocol"": ""http"", ""cookiebasedaffinity"": ""disabled"", ""pickhostnamefrombackendaddress"": ""true"", ""probe"": {""id"": ""[resourceid('microsoft.network/applicationgateways/probes"",variables('applicationgateways')[copyindex()].name,variables('httpprobename'))]""}}}]}, ""httplisteners"": {""value"": [{""name"": ""appgatewayhttplistener"", ""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/applicationgateways/frontendipconfigurations"",variables('applicationgateways')[copyindex()].name, ""appgatewayfrontendip')]""}, ""frontendport"": {""id"": ""[resourceid('microsoft.network/applicationgateways/frontendports"",variables('applicationgateways')[copyindex()].name, ""appgatewayfrontendport')]""}, ""protocol"": ""http""}}]}, ""requestroutingrules"": {""value"": [{""name"": ""rule1"", ""properties"": {""ruletype"": ""basic"", ""httplistener"": {""id"": ""[resourceid('microsoft.network/applicationgateways/httplisteners"",variables('applicationgateways')[copyindex()].name, ""appgatewayhttplistener')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/applicationgateways/backendaddresspools"",variables('applicationgateways')[copyindex()].name, ""appgatewaybackendpool')]""}, ""backendhttpsettings"": {""id"": ""[resourceid('microsoft.network/applicationgateways/backendhttpsettingscollection"",variables('applicationgateways')[copyindex()].name, ""appgatewaybackendhttpsettings')]""}}}]}, ""probes"": {""value"": [{""name"": ""[variables('httpprobename')]"", ""properties"": {""protocol"": ""http"", ""host"": ""[reference(resourceid('microsoft.resources/deployments"",concat(variables('webappname'),""-resource'))).outputs.endpoint.value]"", ""path"": ""/"", ""interval"": 30, ""timeout"": 30, ""unhealthythreshold"": 8}}, {""name"": ""[variables('httpsprobename')]"", ""properties"": {""protocol"": ""https"", ""host"": ""[reference(resourceid('microsoft.resources/deployments"",concat(variables('webappname'),""-resource'))).outputs.endpoint.value]"", ""path"": ""/"", ""interval"": 30, ""timeout"": 30, ""unhealthythreshold"": 8}}]}, ""wafmode"": {""value"": ""[variables('applicationgateways')[copyindex()].wafmode]""}, ""omsworkspaceresourceid"": {""value"": ""[reference('deploy-xss-attack-oms-resource').outputs.workspaceid.value]""}}}}{""apiversion"": ""2020-08-01"", ""name"": ""[concat(variables('diagstorageaccname'),""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('storagetemplateuri')]""}, ""parameters"": {""storageaccountname"": {""value"": ""[variables('diagstorageaccname')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2020-08-01"", ""name"": ""[concat(variables('aspname'),""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('asptemplateuri')]""}, ""parameters"": {""name"": {""value"": ""[variables('aspname')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2020-08-01"", ""name"": ""[concat(variables('webappname'),""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""dependson"": [""[resourceid('microsoft.resources/deployments"",concat(variables('aspname'),""-resource'))]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('webapptemplateuri')]""}, ""parameters"": {""name"": {""value"": ""[variables('webappname')]""}, ""hostingplanname"": {""value"": ""[variables('aspname')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}} " +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')]""}}}{""comments"": ""default network security group for template"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-07-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-22"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-08-01"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2017-09-01"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[variables('longnaminginfix')]""}}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('jumpboxnicname')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2017-09-01"", ""dependson"": [""[variables('publicipaddressname')]"", ""[variables('virtualnetworkname')]""], ""properties"": {""ipconfigurations"": [{""name"": ""[variables('jumpboxipconfigname')]"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetid')]""}}}]}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""comments"": ""this creates the kemp loadmaster with multiple interfaces."", ""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""virtualmachine""}, ""plan"": {""name"": ""[variables('imagesku')]"", ""product"": ""[variables('imageoffer')]"", ""publisher"": ""[variables('imagepublisher')]""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", variables('nicname1'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname2'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('balusername')]"", ""adminpassword"": ""[parameters('balpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('imagesku')]"", ""version"": ""[variables('imageversion')]""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname1'))]"", ""properties"": {""primary"": true}}, {""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname2'))]"", ""properties"": {""primary"": false}}]}}} " +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')]""}}} " +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}}{""name"": ""[variables('vmname1')]"", ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname1'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname1')]"", ""adminusername"": ""[parameters('username')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname1'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""name"": ""[concat(variables('vmname1'),""_datadisk1')]"", ""disksizegb"": ""1000"", ""lun"": 0, ""createoption"": ""empty""}, {""name"": ""[concat(variables('vmname1'),""_datadisk2')]"", ""disksizegb"": ""1000"", ""lun"": 1, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[variables('nicid1')]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[variables('vmextensionname1')]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname1'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('azurepxc.sh"", parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm1'))]""}}}{""name"": ""[variables('vmname2')]"", ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname2'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname2')]"", ""adminusername"": ""[parameters('username')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname2'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""name"": ""[concat(variables('vmname2'),""_datadisk1')]"", ""disksizegb"": ""1000"", ""lun"": 0, ""createoption"": ""empty""}, {""name"": ""[concat(variables('vmname2'),""_datadisk2')]"", ""disksizegb"": ""1000"", ""lun"": 1, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[variables('nicid2')]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname2'),""/"", variables('vmextensionname'))]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('vmname2'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions"",variables('vmname1'), variables('vmextensionname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('azurepxc.sh"", parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat(variables('customscriptcommandcommon'), variables('customscriptparamvm2'))]""}}}{""name"": ""[variables('vmname3')]"", ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname3'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname3')]"", ""adminusername"": ""[parameters('username')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname3'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""name"": ""[concat(variables('vmname3'),""_datadisk1')]"", ""disksizegb"": ""1000"", ""lun"": 0, ""createoption"": ""empty""}, {""name"": ""[concat(variables('vmname3'),""_datadisk2')]"", ""disksizegb"": ""1000"", ""lun"": 1, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[variables('nicid3')]""}]}}} " +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]""}}}} " +This template creates an Azure Machine Learning service workspace with public network connectivity.,"{""type"": ""microsoft.machinelearningservices/workspaces"", ""apiversion"": ""2020-03-01"", ""identity"": {""type"": ""systemassigned""}, ""name"": ""[variables('workspacename')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('storageaccount')]"", ""[variables('keyvault')]"", ""[variables('applicationinsights')]"", ""[variables('containerregistry')]""], ""properties"": {""friendlyname"": ""[variables('workspacename')]"", ""storageaccount"": ""[variables('storageaccount')]"", ""keyvault"": ""[variables('keyvault')]"", ""applicationinsights"": ""[variables('applicationinsights')]"", ""containerregistry"": ""[variables('containerregistry')]"", ""hbiworkspace"": ""[parameters('hbi_workspace')]"", ""encryption"": {""status"": ""[parameters('encryption_status')]"", ""keyvaultproperties"": {""keyvaultarmid"": ""[parameters('cmk_keyvault_id')]"", ""keyidentifier"": ""[parameters('cmk_keyvault_key_uri')]""}}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""apiversion"": ""2021-01-01"", ""type"": ""microsoft.storage/storageaccounts"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""name"": ""[variables('newstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""properties"": {}} " +This template deploys a Route Server into a subnet named RouteServerSubnet.,"{""condition"": ""[equals(parameters('vnetnew_or_existing'), ""new')]"", ""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-05-01"", ""name"": ""[parameters('vnetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('vnetipprefix')]""]}}}{""type"": ""microsoft.network/virtualnetworks/subnets"", ""apiversion"": ""2020-05-01"", ""name"": ""[format('{0}/{1}"", parameters('vnetname'), variables('routeserversubnetname'))]"", ""properties"": {""addressprefix"": ""[parameters('routeserversubnetipprefix')]""}, ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", parameters('vnetname'))]""]}{""condition"": ""[equals(parameters('publicipnew_or_existing'), ""new')]"", ""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2020-05-01"", ""name"": ""[parameters('publicipname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {""publicipallocationmethod"": ""static"", ""publicipaddressversion"": ""ipv4"", ""idletimeoutinminutes"": 4}}{""type"": ""microsoft.network/virtualhubs"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('firstrouteservername')]"", ""location"": ""[parameters('location')]"", ""properties"": {""sku"": ""standard""}}{""type"": ""microsoft.network/virtualhubs/ipconfigurations"", ""apiversion"": ""2020-06-01"", ""name"": ""[format('{0}/{1}"", parameters('firstrouteservername'), variables('ipconfigname'))]"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('vnetname'), variables('routeserversubnetname'))]""}, ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", parameters('publicipname'))]""}}, ""dependson"": [""[resourceid('microsoft.network/virtualhubs"", parameters('firstrouteservername'))]"", ""[resourceid('microsoft.network/publicipaddresses"", parameters('publicipname'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('vnetname'), variables('routeserversubnetname'))]""]}{""type"": ""microsoft.network/virtualhubs/bgpconnections"", ""apiversion"": ""2020-06-01"", ""name"": ""[format('{0}/{1}"", parameters('firstrouteservername'), parameters('routeserverbgpconnectionname'))]"", ""properties"": {""peerasn"": ""[parameters('peerasn')]"", ""peerip"": ""[parameters('peerip')]""}, ""dependson"": [""[resourceid('microsoft.network/virtualhubs"", parameters('firstrouteservername'))]"", ""[resourceid('microsoft.network/virtualhubs/ipconfigurations"", parameters('firstrouteservername'), variables('ipconfigname'))]""]} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""type"": ""microsoft.resources/deploymentscripts"", ""apiversion"": ""2020-10-01"", ""name"": ""[format('{0}-{1}"", variables('scriptname'), variables('wordpresssharename'))]"", ""location"": ""[parameters('location')]"", ""kind"": ""azurepowershell"", ""identity"": {""type"": ""userassigned"", ""userassignedidentities"": {""[resourceid('microsoft.managedidentity/userassignedidentities"", variables('identityname'))]"": {}}}, ""properties"": {""azpowershellversion"": ""3.0"", ""storageaccountsettings"": {""storageaccountname"": ""[parameters('storageaccountname')]"", ""storageaccountkey"": ""[listkeys(resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname')), ""2021-04-01').keys[0].value]""}, ""scriptcontent"": ""[variables('wpscripttoexecute')]"", ""cleanuppreference"": ""onsuccess"", ""retentioninterval"": ""p1d"", ""timeout"": ""pt5m""}, ""dependson"": [""[resourceid('microsoft.managedidentity/userassignedidentities"", variables('identityname'))]"", ""[resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname'))]""]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""name"": ""vnet01"", ""type"": ""microsoft.network/virtualnetworks"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-07-01"", ""tags"": {""displayname"": ""vnet01""}, ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnet01prefix')]""]}, ""subnets"": [{""name"": ""[variables('vnet01subnet1name')]"", ""properties"": {""addressprefix"": ""[variables('vnet01subnet1prefix')]""}}]}} " +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('mysqlservername')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('dbskuname')]"", ""tier"": ""[parameters('dbskutier')]"", ""capacity"": ""[parameters('dbskucapacity')]"", ""family"": ""[parameters('databaseskufamily')]""}, ""properties"": {""createmode"": ""default"", ""version"": ""[parameters('mysqlversion')]"", ""administratorlogin"": ""[parameters('administratorlogin')]"", ""administratorloginpassword"": ""[parameters('administratorloginpassword')]"", ""storageprofile"": {""storagemb"": ""[parameters('dbskusizemb')]"", ""backupretentiondays"": 7, ""georedundantbackup"": ""disabled""}, ""sslenforcement"": ""disabled""}}{""type"": ""microsoft.dbformysql/servers/firewallrules"", ""apiversion"": ""2017-12-01"", ""name"": ""[format('{0}/{1}"", variables('mysqlservername'), ""allowazureips')]"", ""properties"": {""startipaddress"": ""0.0.0.0"", ""endipaddress"": ""255.255.255.255""}, ""dependson"": [""[resourceid('microsoft.dbformysql/servers"", variables('mysqlservername'))]""]} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-02-01"", ""name"": ""[variables('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""properties"": {}} " +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.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('imagesku')]"", ""version"": ""[variables('imageversion')]""}, ""osdisk"": {""name"": ""[concat(variables('vmname'), ""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('storageaccounttype')]""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('virtualmachines_myvm_name'), copyindex(1))]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""vm-loop"", ""count"": 2}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", concat(variables('net_interface'), copyindex(1)))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2019-datacenter"", ""version"": ""latest""}, ""osdisk"": {""ostype"": ""windows"", ""createoption"": ""fromimage"", ""caching"": ""readwrite"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}, ""disksizegb"": 127}}, ""osprofile"": {""computername"": ""[concat(variables('virtualmachines_myvm_name'), copyindex(1))]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]"", ""windowsconfiguration"": {""provisionvmagent"": true, ""enableautomaticupdates"": true}, ""allowextensionoperations"": true}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('net_interface'), copyindex(1)))]""}]}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('networkinterfacename'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""microsoftwindowsserver"", ""offer"": ""windowsserver"", ""sku"": ""2016-datacenter"", ""version"": ""latest""}, ""osdisk"": {""name"": ""tfsbasicmanagedosdisk"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('networkinterfacename'))]""}]}}} " +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}} " +Deploy a cognitive service with an universal key.,"{""type"": ""microsoft.cognitiveservices/accounts"", ""apiversion"": ""2017-04-18"", ""name"": ""[parameters('cognitiveservicename')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('sku')]""}, ""kind"": ""cognitiveservices"", ""properties"": {""statisticsenabled"": false}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2019-06-01"", ""name"": ""[variables('strname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storagev2"", ""tags"": {""displayname"": ""labvm storage account""}, ""properties"": {""accesstier"": ""hot""}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""apiversion"": ""2021-04-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[concat(variables('region-storage-account'),copyindex())]"", ""sku"": {""name"": ""standard_lrs"", ""tier"": ""standard""}, ""kind"": ""storage"", ""location"": ""[variables('region')[copyindex()]]"", ""tags"": {""displayname"": ""storage-accounts""}, ""properties"": {}, ""copy"": {""name"": ""storage-accounts-loop"", ""count"": 2}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('sparkmastermachinename')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[variables('resourcegrouplocation')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", variables('sparkmasternetworkinterfacename'))]""], ""properties"": {""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('sparkmasternetworkinterfacename'))]""}]}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""suse"", ""offer"": ""sles-15-sp1"", ""sku"": ""gen2"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('sparkmastermachinename'),""_osdisk')]"", ""createoption"": ""fromimage"", ""caching"": ""readwrite""}}, ""osprofile"": {""computername"": ""[variables('sparkmastermachinename')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}}, ""resources"": [{""type"": ""extensions"", ""name"": ""[concat('configuresparkonmaster')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[variables('resourcegrouplocation')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('sparkmastermachinename') )]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('sparkmasternetworkinterfacename') )]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat(variables('scriptfolder'), ""/"", variables('sparkinstallscriptname'), parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('sudo sh install_spark_environment.sh "", ""-m 1"", "" -i "", reference(variables('sparkmasternetworkinterfacename')).ipconfigurations[0].properties.privateipaddress, "" -k "", listkeys(resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname')), ""2021-01-01').keys[0].value, "" -a "", variables('storageaccountname'), parameters('_artifactslocationsastoken'))]""}}}]} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""shared-resources"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2015-01-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('sharedtemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""commonsettings"": {""value"": ""[variables('commonsettings')]""}, ""networksettings"": {""value"": ""[variables('networksettings')]""}}}}{""name"": ""jumpbox-resources"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2015-01-01"", ""dependson"": [""[concat('microsoft.resources/deployments/"", ""shared-resources')]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('jumpboxtemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""commonsettings"": {""value"": ""[variables('commonsettings')]""}, ""networksettings"": {""value"": ""[variables('networksettings')]""}, ""machinesettings"": {""value"": ""[variables('machinesettings')]""}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-07-01"", ""name"": ""[parameters('filestorageaccountprivateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('filestorageaccountid')]"", ""[variables('fileshareid')]""], ""properties"": {""privatelinkserviceconnections"": [{""name"": ""[parameters('filestorageaccountprivateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[variables('filestorageaccountid')]"", ""groupids"": [""[variables('filestorageaccountprivateendpointgroupname')]""]}}], ""subnet"": {""id"": ""[variables('subnetid')]""}}}{""type"": ""microsoft.network/privateendpoints/privatednszonegroups"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('fileprivatednszonegroup')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('fileprivatednszoneid')]"", ""[variables('filestorageaccountprivateendpointid')]""], ""properties"": {""privatednszoneconfigs"": [{""name"": ""dnsconfig"", ""properties"": {""privatednszoneid"": ""[variables('fileprivatednszoneid')]""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allowsshinbound"", ""properties"": {""priority"": 100, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}} " +Create a new SQL logical server with Azure AD-only authentication and an Azure AD Administrator.,"{""type"": ""microsoft.sql/servers"", ""apiversion"": ""2020-11-01-preview"", ""name"": ""[parameters('server')]"", ""location"": ""[parameters('location')]"", ""properties"": {""administrators"": {""login"": ""[parameters('aad_admin_name')]"", ""sid"": ""[parameters('aad_admin_objectid')]"", ""tenantid"": ""[parameters('aad_admin_tenantid')]"", ""principaltype"": ""[parameters('aad_admin_type')]"", ""azureadonlyauthentication"": ""[parameters('aad_only_auth')]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""comments"": ""an nsg to prevent inbound traffic other than ssh, set sourceaddressprefix to restrict access further or block all together (or remove the public ip) and ssh in from another vm"", ""name"": ""[variables('nsgname')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[variables('location')]"", ""properties"": {""securityrules"": [{""name"": ""allow_ssh_in"", ""properties"": {""description"": ""the only thing allowed is ssh"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}}{""type"": ""microsoft.network/virtualnetworks"", ""comments"": ""an example virtual network, for real scenarios add the dns forwarder to your own vnet"", ""name"": ""[variables('vnetname')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[variables('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetaddressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnet1name')]"", ""properties"": {""addressprefix"": ""[variables('subnet1prefix')]""}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""comments"": ""a public ip to allow us to ssh into the vm, not recommended for production dns servers"", ""name"": ""[variables('pipname')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[variables('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""type"": ""microsoft.network/networkinterfaces"", ""comments"": ""a single network interface on each dns server"", ""name"": ""[variables('nicname')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[variables('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('pipname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('vnetname'))]"", ""[resourceid('microsoft.network/networksecuritygroups/"", variables('nsgname'))]""], ""properties"": {""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('nsgname'))]""}, ""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('pipname'))]""}, ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('vnetname'), variables('subnet1name'))]""}}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2017-04-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[resourcegroup().location]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}}{""apiversion"": ""2017-04-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[resourcegroup().location]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsnameprefix')]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""name"": ""[variables('lbname')]"", ""type"": ""microsoft.network/loadbalancers"", ""location"": ""[parameters('location')]"", ""dependson"": [""[concat('microsoft.network/publicipaddresses/"",variables('apppublicipname'))]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""[variables('lbfename')]"", ""properties"": {""publicipaddress"": {""id"": ""[variables('publicipaddressid')]""}}}], ""backendaddresspools"": [{""name"": ""[variables('lbbeaddresspool')]""}], ""loadbalancingrules"": [{""name"": ""weblb"", ""properties"": {""backendaddresspool"": {""id"": ""[variables('lbbeaddresspoolid')]""}, ""backendport"": 80, ""enablefloatingip"": false, ""frontendipconfiguration"": {""id"": ""[variables('lbfeipconfigid')]""}, ""frontendport"": 80, ""probe"": {""id"": ""[variables('lbwebhttpsprobeid')]""}, ""protocol"": ""tcp"", ""loaddistribution"": ""sourceip""}}, {""name"": ""webhttpslb"", ""properties"": {""backendaddresspool"": {""id"": ""[variables('lbbeaddresspoolid')]""}, ""backendport"": 443, ""enablefloatingip"": false, ""frontendipconfiguration"": {""id"": ""[variables('lbfeipconfigid')]""}, ""frontendport"": 443, ""probe"": {""id"": ""[variables('lbwebhttpsprobeid')]""}, ""protocol"": ""tcp"", ""loaddistribution"": ""sourceip""}}], ""probes"": [{""name"": ""[variables('lbwebprobename')]"", ""properties"": {""protocol"": ""http"", ""port"": 80, ""intervalinseconds"": 15, ""numberofprobes"": 5, ""requestpath"": ""hostingstart.html""}}, {""name"": ""[variables('lbwebhttpsprobename')]"", ""properties"": {""protocol"": ""tcp"", ""port"": 443, ""intervalinseconds"": 15, ""numberofprobes"": 5}}], ""inboundnatpools"": [{""name"": ""[variables('natpoolnamefrontend')]"", ""properties"": {""frontendipconfiguration"": {""id"": ""[variables('frontendipconfigidweb')]""}, ""protocol"": ""tcp"", ""frontendportrangestart"": ""[variables('natstartportfrontend')]"", ""frontendportrangeend"": ""[variables('natendportfrontend')]"", ""backendport"": ""[variables('natbackendportfrontend')]""}}]}}{""apiversion"": ""2015-06-15"", ""name"": ""[variables('lbservicename')]"", ""type"": ""microsoft.network/loadbalancers"", ""location"": ""[parameters('location')]"", ""dependson"": [""[concat('microsoft.network/publicipaddresses/"",variables('servicepublicipname'))]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""[variables('lbfeservicename')]"", ""properties"": {""publicipaddress"": {""id"": ""[variables('publicipaddressid2')]""}}}], ""backendaddresspools"": [{""name"": ""[variables('lbbeserviceaddresspool')]""}], ""loadbalancingrules"": [{""name"": ""wcflb"", ""properties"": {""backendaddresspool"": {""id"": ""[variables('lbbeserviceaddresspoolid')]""}, ""backendport"": 80, ""enablefloatingip"": false, ""frontendipconfiguration"": {""id"": ""[variables('lbfeserviceipconfigid')]""}, ""frontendport"": 80, ""probe"": {""id"": ""[variables('lbwebserviceprobeid')]""}, ""protocol"": ""tcp"", ""loaddistribution"": ""default""}}], ""probes"": [{""name"": ""[variables('lbwebserviceprobename')]"", ""properties"": {""protocol"": ""http"", ""port"": 80, ""intervalinseconds"": 15, ""numberofprobes"": 5, ""requestpath"": ""hostingstart.html""}}], ""inboundnatpools"": [{""name"": ""[variables('natpoolnameservice')]"", ""properties"": {""frontendipconfiguration"": {""id"": ""[variables('frontendipconfigidservice')]""}, ""protocol"": ""tcp"", ""frontendportrangestart"": ""[variables('natstartportservice')]"", ""frontendportrangeend"": ""[variables('natendportservice')]"", ""backendport"": ""[variables('natbackendportservice')]""}}]}} " +Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.,"{""comments"": ""generalized from resource: ""/subscriptions/38ccde7a-8dbd-46b4-a0c6-71201ffab311/resourcegroups/autonub/providers/microsoft.web/serverfarms/uswestbasic""."", ""type"": ""microsoft.web/serverfarms"", ""sku"": {""name"": ""b1"", ""tier"": ""basic"", ""size"": ""b1"", ""family"": ""b"", ""capacity"": 1}, ""name"": ""[parameters('azure service plan')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""properties"": {""name"": ""[parameters('azure service plan')]"", ""numberofworkers"": 1}}{""comments"": ""generalized from resource: ""/subscriptions/38ccde7a-8dbd-46b4-a0c6-71201ffab311/resourcegroups/autonub/providers/microsoft.web/sites/pnwebjob""."", ""type"": ""microsoft.web/sites"", ""name"": ""[parameters('azure webjob name')]"", ""apiversion"": ""2020-06-01"", ""location"": ""[parameters('location')]"", ""properties"": {""name"": ""[parameters('azure webjob name')]"", ""hostnames"": [""[concat(parameters('azure webjob name'), variables('endpoint'))]""], ""enabledhostnames"": [""[concat(parameters('azure webjob name'), variables('endpoint'))]"", ""[concat(parameters('azure webjob name'),"".scm"", variables('endpoint'))]""], ""hostnamesslstates"": [{""name"": ""[concat(parameters('azure webjob name'), variables('endpoint'))]"", ""sslstate"": 0, ""ipbasedsslstate"": 0}, {""name"": ""[concat(parameters('azure webjob name'),"".scm"", variables('endpoint'))]"", ""sslstate"": 0, ""ipbasedsslstate"": 0}], ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms"", parameters('azure service plan'))]""}, ""resources"": [{""apiversion"": ""2020-06-01"", ""name"": ""web"", ""type"": ""config"", ""dependson"": [""[resourceid('microsoft.web/sites"", concat(parameters('azure webjob name')))]""], ""properties"": {""alwayson"": true}}, {""apiversion"": ""2020-06-01"", ""name"": ""web"", ""type"": ""sourcecontrols"", ""dependson"": [""[resourceid('microsoft.web/sites"", parameters('azure webjob name'))]""], ""properties"": {""repourl"": ""https://github.com/pubnub/azureeventhubbridge.git"", ""branch"": ""master"", ""ismanualintegration"": true}}, {""apiversion"": ""2020-06-01"", ""name"": ""connectionstrings"", ""type"": ""config"", ""dependson"": [""[resourceid('microsoft.web/sites"", concat(parameters('azure webjob name')))]"", ""[resourceid('microsoft.web/sites/sourcecontrols"", concat(parameters('azure webjob name')), ""web')]""], ""properties"": {""pnsubchannel"": {""value"": ""[parameters('pubnub ingress channel')]"", ""type"": ""custom""}, ""pnpubchannel"": {""value"": ""[parameters('pubnub egress channel')]"", ""type"": ""custom""}, ""pnannouncechannel"": {""value"": ""[parameters('pubnub announce channel')]"", ""type"": ""custom""}, ""pnpublishkey"": {""value"": ""[parameters('pubnub publish key')]"", ""type"": ""custom""}, ""pnsubscribekey"": {""value"": ""[parameters('pubnub subscribe key')]"", ""type"": ""custom""}, ""ehinconnectionstring"": {""value"": ""[listkeys(variables('ehinauthorizationruleresourceid'), variables('sbversion')).primaryconnectionstring]"", ""type"": ""custom""}, ""ehoutconnectionstring"": {""value"": ""[listkeys(variables('ehoutauthorizationruleresourceid'), variables('sbversion')).primaryconnectionstring]"", ""type"": ""custom""}}}], ""dependson"": [""[resourceid('microsoft.web/serverfarms"", parameters('azure service plan'))]""]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(variables('publicipaddressname'), copyindex(1))]"", ""location"": ""[variables('vmsettings')[copyindex()].location]"", ""copy"": {""name"": ""publicipcopy"", ""count"": 2}, ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]""}}{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[concat(variables('virtualnetworkname'), copyindex(1))]"", ""location"": ""[variables('vmsettings')[copyindex()].location]"", ""copy"": {""name"": ""vnetcopy"", ""count"": 2}, ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]""}}]}}{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('frontendnsgname')]"", ""location"": ""[variables('vmsettings')[1].location]"", ""tags"": {""displayname"": ""nsg - test web server from probe""}, ""dependson"": [""publicipcopy""], ""properties"": {""securityrules"": [{""name"": ""web-rule"", ""properties"": {""description"": ""allow web"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""[reference(resourceid('microsoft.network/publicipaddresses"", concat(variables('publicipaddressname'), ""1'))).ipaddress]"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 101, ""direction"": ""inbound""}}]}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""mysql"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('nested/mysql-replication.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""dnsname"": {""value"": ""[parameters('dnsname')]""}, ""vmusername"": {""value"": ""[parameters('vmusername')]""}, ""mysqlrootpassword"": {""value"": ""[parameters('mysqlrootpassword')]""}, ""mysqlreplicationpassword"": {""value"": ""[parameters('mysqlreplicationpassword')]""}, ""mysqlprobepassword"": {""value"": ""[parameters('mysqlprobepassword')]""}, ""vmsize"": {""value"": ""[parameters('vmsize')]""}, ""virtualnetworkname"": {""value"": ""[parameters('virtualnetworkname')]""}, ""vnetneworexisting"": {""value"": ""[parameters('vnetneworexisting')]""}, ""dbsubnetname"": {""value"": ""[parameters('dbsubnetname')]""}, ""vnetaddressprefix"": {""value"": ""[parameters('vnetaddressprefix')]""}, ""dbsubnetaddressprefix"": {""value"": ""[parameters('dbsubnetaddressprefix')]""}, ""dbsubnetstartaddress"": {""value"": ""[parameters('dbsubnetstartaddress')]""}, ""imagepublisher"": {""value"": ""[parameters('imagepublisher')]""}, ""imageoffer"": {""value"": ""[parameters('imageoffer')]""}, ""imagesku"": {""value"": ""[parameters('imagesku')]""}, ""mysqlfrontendport0"": {""value"": ""[parameters('mysqlfrontendport0')]""}, ""mysqlfrontendport1"": {""value"": ""[parameters('mysqlfrontendport1')]""}, ""sshnatrulefrontendport0"": {""value"": ""[parameters('sshnatrulefrontendport0')]""}, ""sshnatrulefrontendport1"": {""value"": ""[parameters('sshnatrulefrontendport1')]""}, ""mysqlprobeport0"": {""value"": ""[parameters('mysqlprobeport0')]""}, ""mysqlprobeport1"": {""value"": ""[parameters('mysqlprobeport1')]""}, ""publicipname"": {""value"": ""[parameters('publicipname')]""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}, ""_artifactslocation"": {""value"": ""[parameters('_artifactslocation')]""}, ""_artifactslocationsastoken"": {""value"": ""[parameters('_artifactslocationsastoken')]""}}}}{""name"": ""website"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""dependson"": [""microsoft.resources/deployments/mysql""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('nested/website.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""sitename"": {""value"": ""[parameters('sitename')]""}, ""hostingplanname"": {""value"": ""[parameters('hostingplanname')]""}, ""sku"": {""value"": ""[parameters('sku')]""}, ""workersize"": {""value"": ""[parameters('workersize')]""}, ""dbserver"": {""value"": ""[concat(parameters('dnsname'), ""."", parameters('location'), "".cloudapp.azure.com:"",parameters('mysqlfrontendport0'))]""}, ""dbname"": {""value"": ""[variables('wpdbname')]""}, ""dbadminpassword"": {""value"": ""[parameters('mysqlrootpassword')]""}}}} " +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('vmdnsprefix')]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('nameprefix')]""}}}{""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"": ""*""}}, {""name"": ""default-allow-80"", ""properties"": {""priority"": 1001, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""80"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""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""}}]}} " +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'))]""}]}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", 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""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/installpythonproxy')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", parameters('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/python-proxy-install-ubuntu.sh"", parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""sh python-proxy-install-ubuntu.sh""}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat('vm-r1"",""-"",copyindex(1),""/"",""installwebserver')]"", ""location"": ""[parameters('location-r1')]"", ""copy"": {""name"": ""extensioncopy"", ""count"": 3}, ""dependson"": [""vmcopy""], ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.7"", ""autoupgrademinorversion"": true, ""settings"": {""commandtoexecute"": ""powershell.exe install-windowsfeature -name web-server -includemanagementtools && powershell.exe remove-item ""c:\\inetpub\\wwwroot\\iisstart.htm"" && powershell.exe add-content -path ""c:\\inetpub\\wwwroot\\iisstart.htm"" -value $('hello world from "" + $env:computername)""}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('storageaccountname')]"", ""apiversion"": ""2020-08-01-preview"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storagev2"", ""properties"": {}} " +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""}}]} " +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""}}]}}{""name"": ""node-1-networkinterface"", ""type"": ""microsoft.network/networkinterfaces"", ""apiversion"": ""2019-11-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", ""node-1-publicip')]"", ""[resourceid('microsoft.network/virtualnetworks"", ""jenkins-cluster-virtualnetwork')]"", ""[resourceid('microsoft.network/networksecuritygroups"",""node-1-nsg')]""], ""tags"": {""displayname"": ""node-1-networkinterface""}, ""properties"": {""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"",""node-1-nsg')]""}, ""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""10.0.1.11"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", ""node-1-publicip')]""}, ""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", ""jenkins-cluster-virtualnetwork"", ""jenkins-virtualnetwork-subnet')]""}}}]}}{""name"": ""node-2-publicip"", ""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2019-11-01"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""publicipaddress""}, ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[concat('node-2-"",parameters('jenkins-dns'))]""}}} " +Network Security Group with diagnostic logs,"{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2021-02-01"", ""name"": ""[parameters('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""copy"": [{""name"": ""securityrules"", ""count"": ""[length(parameters('securityrules'))]"", ""input"": {""name"": ""[parameters('securityrules')[copyindex('securityrules')].name]"", ""properties"": ""[parameters('securityrules')[copyindex('securityrules')].properties]""}}]}} " +This template creates a metric alert rule that monitors the CPU Percentage metric of a virtual machine using a dynamic threshold condition type.,"{""name"": ""[parameters('alertname')]"", ""type"": ""microsoft.insights/metricalerts"", ""location"": ""global"", ""apiversion"": ""2018-03-01"", ""properties"": {""description"": ""[parameters('alertdescription')]"", ""severity"": ""[parameters('alertseverity')]"", ""enabled"": ""[parameters('isenabled')]"", ""scopes"": [""[parameters('resourceid')]""], ""evaluationfrequency"": ""[parameters('evaluationfrequency')]"", ""windowsize"": ""[parameters('windowsize')]"", ""criteria"": {""odata.type"": ""microsoft.azure.monitor.multipleresourcemultiplemetriccriteria"", ""allof"": [{""criteriontype"": ""dynamicthresholdcriterion"", ""name"": ""1st criterion"", ""metricname"": ""[parameters('metricname')]"", ""operator"": ""[parameters('operator')]"", ""alertsensitivity"": ""[parameters('alertsensitivity')]"", ""failingperiods"": {""numberofevaluationperiods"": ""[parameters('numberofevaluationperiods')]"", ""minfailingperiodstoalert"": ""[parameters('minfailingperiodstoalert')]""}, ""ignoredatabefore"": ""[parameters('ignoredatabefore')]"", ""timeaggregation"": ""[parameters('timeaggregation')]""}]}}} " +"Create an Azure Automation account and create a new Azure Monitor Log Analytics workspace if it doesn't exist, and then link them together.","{""type"": ""microsoft.automation/automationaccounts"", ""apiversion"": ""2021-04-01"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('automationaccountname')]"", ""tags"": {""arotoolkitversion"": ""[variables('arotoolkitversion')]""}, ""comments"": ""automation account"", ""properties"": {""sku"": {""name"": ""basic""}}}{""type"": ""microsoft.automation/automationaccounts/variables"", ""apiversion"": ""2021-04-01"", ""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('automationvariables')[copyindex()].name)]"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts"", parameters('automationaccountname'))]""], ""copy"": {""name"": ""variableloop"", ""count"": ""[length(variables('automationvariables'))]""}, ""properties"": {""description"": ""[variables('automationvariables')[copyindex()].description]"", ""value"": ""[variables('automationvariables')[copyindex()].value]""}}{""type"": ""microsoft.automation/automationaccounts/variables"", ""apiversion"": ""2021-04-01"", ""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('internalazuresubscriptionid').name)]"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts"", parameters('automationaccountname'))]""], ""properties"": {""description"": ""[variables('internalazuresubscriptionid').description]"", ""isencrypted"": true, ""type"": ""string"", ""value"": ""[variables('internalazuresubscriptionid').value]""}}{""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('azurecredentials'))]"", ""type"": ""microsoft.automation/automationaccounts/credentials"", ""apiversion"": ""2021-04-01"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts"", parameters('automationaccountname'))]""], ""properties"": {""description"": ""azure subscription credentials"", ""password"": ""[parameters('azureadminpwd')]"", ""username"": ""[parameters('azureadmin')]""}}{""comments"": ""provision the azurerm.profile module first since others are depenedent on it"", ""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('azurerm.profile').name)]"", ""type"": ""microsoft.automation/automationaccounts/modules"", ""apiversion"": ""2021-04-01"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts"", parameters('automationaccountname'))]""], ""properties"": {""contentlink"": {""uri"": ""[variables('azurerm.profile').url]""}}}{""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('psmodules')[copyindex()].name)]"", ""type"": ""microsoft.automation/automationaccounts/modules"", ""apiversion"": ""2021-04-01"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts"", parameters('automationaccountname'))]"", ""[variables('azurerm.profile').name]""], ""copy"": {""name"": ""modulesloop"", ""count"": ""[length(variables('psmodules'))]""}, ""properties"": {""contentlink"": {""uri"": ""[variables('psmodules')[copyindex()].url]""}}}{""name"": ""[concat(parameters('automationaccountname'), ""/"", variables('runbooks')[copyindex()].name)]"", ""type"": ""microsoft.automation/automationaccounts/runbooks"", ""apiversion"": ""2020-01-13-preview"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts"", parameters('automationaccountname'))]"", ""[variables('azurerm.profile').name]"", ""modulesloop""], ""tags"": {""version"": ""[variables('runbooks')[copyindex()].version]""}, ""copy"": {""name"": ""runbooksloop"", ""count"": ""[length(variables('runbooks'))]""}, ""properties"": {""runbooktype"": ""[variables('runbooks')[copyindex()].type]"", ""logprogress"": false, ""logverbose"": false, ""description"": ""[variables('runbooks')[copyindex()].description]"", ""publishcontentlink"": {""uri"": ""[variables('runbooks')[copyindex()].scripturi]"", ""version"": ""[variables('runbooks')[copyindex()].version]""}}}{""name"": ""[concat(parameters('automationaccountname'), ""/"", ""startbootstrap')]"", ""type"": ""microsoft.automation/automationaccounts/schedules"", ""apiversion"": ""2021-04-01"", ""dependson"": [""[resourceid('microsoft.automation/automationaccounts"", parameters('automationaccountname'))]"", ""[variables('runbooks')[0].name]""], ""properties"": {""description"": ""starts the bootstrap runbooks"", ""expirytime"": ""9999-12-31t17:59:00-06:00"", ""isenabled"": true, ""frequency"": ""onetime""}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""[variables('vmnames')[copyindex()]]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""vmloop"", ""count"": 3}, ""dependson"": [""nicloop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmnames')[copyindex()]]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('freebsdosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicconfig')[mul(copyindex(),2)].name)]"", ""properties"": {""primary"": true}}, {""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicconfig')[add(mul(copyindex(),2),1)].name)]"", ""properties"": {""primary"": false}}]}}}{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""[variables('vmnamesql')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""nicloop""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('postgresqlvmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmnamesql')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('freebsdosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}, ""copy"": [{""name"": ""datadisks"", ""count"": ""[parameters('numberofdatadisks')]"", ""input"": {""disksizegb"": ""[parameters('sizeofdatadisksingb')]"", ""lun"": ""[copyindex('datadisks')]"", ""caching"": ""[parameters('diskcaching')]"", ""createoption"": ""empty""}}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('vmnamesql'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2019-07-01"", ""name"": ""[concat(variables('vmnames')[copyindex()], ""/installnginx')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""vmloop""], ""copy"": {""name"": ""extloop"", ""count"": 3}, ""properties"": {""publisher"": ""microsoft.ostcextensions"", ""type"": ""customscriptforlinux"", ""typehandlerversion"": ""1.4"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/install_reverse_nginx.sh"", parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('scripts/install_nginx_php.sh"", parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('conf/frontend_nginx.conf"", parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('conf/frontend_proxy.conf"", parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('conf/backend_nginx.conf"", parameters('_artifactslocationsastoken')))]""]}}} " +"This template creates a disk, backup vault, backup policy, grants necessary permission and enables protection","{""type"": ""microsoft.dataprotection/backupvaults"", ""apiversion"": ""2021-01-01"", ""name"": ""[parameters('vaultname')]"", ""location"": ""[parameters('location')]"", ""identity"": {""type"": ""systemassigned""}, ""properties"": {""storagesettings"": [{""datastoretype"": ""vaultstore"", ""type"": ""[parameters('vaultstorageredundancy')]""}]}}{""type"": ""microsoft.dataprotection/backupvaults/backuppolicies"", ""apiversion"": ""2021-01-01"", ""name"": ""[format('{0}/{1}"", parameters('vaultname'), parameters('backuppolicyname'))]"", ""properties"": {""policyrules"": [{""backupparameters"": {""backuptype"": ""incremental"", ""objecttype"": ""azurebackupparams""}, ""trigger"": {""schedule"": {""repeatingtimeintervals"": [""[variables('repeatingtimeinterval')]""], ""timezone"": ""utc""}, ""taggingcriteria"": [{""taginfo"": {""tagname"": ""default"", ""id"": ""default_""}, ""taggingpriority"": 99, ""isdefault"": true}], ""objecttype"": ""schedulebasedtriggercontext""}, ""datastore"": {""datastoretype"": ""operationalstore"", ""objecttype"": ""datastoreinfobase""}, ""name"": ""backuphourly"", ""objecttype"": ""azurebackuprule""}, {""lifecycles"": [{""sourcedatastore"": {""datastoretype"": ""operationalstore"", ""objecttype"": ""datastoreinfobase""}, ""deleteafter"": {""objecttype"": ""absolutedeleteoption"", ""duration"": ""[variables('retentionduration')]""}}], ""isdefault"": true, ""name"": ""default"", ""objecttype"": ""azureretentionrule"", ""ruletype"": ""retention""}], ""datasourcetypes"": [""[variables('datasourcetype')]""], ""objecttype"": ""backuppolicy""}, ""dependson"": [""[resourceid('microsoft.dataprotection/backupvaults"", parameters('vaultname'))]""]}{""type"": ""microsoft.dataprotection/backupvaults/backupinstances"", ""apiversion"": ""2021-01-01"", ""name"": ""[format('{0}/{1}"", parameters('vaultname'), parameters('diskname'))]"", ""properties"": {""objecttype"": ""backupinstance"", ""datasourceinfo"": {""objecttype"": ""datasource"", ""resourceid"": ""[resourceid('microsoft.compute/disks"", parameters('diskname'))]"", ""resourcename"": ""[parameters('diskname')]"", ""resourcetype"": ""[variables('resourcetype')]"", ""resourceuri"": ""[resourceid('microsoft.compute/disks"", parameters('diskname'))]"", ""resourcelocation"": ""[parameters('location')]"", ""datasourcetype"": ""[variables('datasourcetype')]""}, ""policyinfo"": {""policyid"": ""[resourceid('microsoft.dataprotection/backupvaults/backuppolicies"", parameters('vaultname'), parameters('backuppolicyname'))]"", ""name"": ""[parameters('backuppolicyname')]"", ""policyparameters"": {""datastoreparameterslist"": [{""objecttype"": ""azureoperationalstoreparameters"", ""datastoretype"": ""operationalstore"", ""resourcegroupid"": ""[resourcegroup().id]""}]}}}, ""dependson"": [""[resourceid('microsoft.dataprotection/backupvaults/backuppolicies"", parameters('vaultname'), parameters('backuppolicyname'))]"", ""[resourceid('microsoft.dataprotection/backupvaults"", parameters('vaultname'))]"", ""[resourceid('microsoft.compute/disks"", parameters('diskname'))]"", ""[resourceid('microsoft.authorization/roleassignments"", variables('rolenameguidfordisk'))]"", ""[resourceid('microsoft.authorization/roleassignments"", variables('rolenameguidforsnapshotrg'))]""]} " +This template deploys a linux VM with an MSI that has access to a storage account in a different resource group.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-03-01"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('networkinterfacename'))]""], ""identity"": {""type"": ""systemassigned""}, ""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"": ""[variables('osdisktype')]""}}, ""imagereference"": {""publisher"": ""canonical"", ""offer"": ""ubuntuserver"", ""sku"": ""[parameters('ubuntuosversion')]"", ""version"": ""latest""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]""}]}}} " +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'))]""}}}]}}{""apiversion"": ""2020-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'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2019-07-01"", ""type"": ""microsoft.compute/virtualmachinescalesets"", ""location"": ""[variables('location')]"", ""name"": ""[concat(variables('agentvmnameprefix'), ""-vmss')]"", ""sku"": {""capacity"": ""[variables('agentcount')]"", ""name"": ""[variables('agentvmsize')]"", ""tier"": ""standard""}, ""tags"": {""creationsource"": ""[concat('acsengine-"", variables('agentvmnameprefix'), ""-vmss')]""}, ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", variables('masterpublicipaddressname'))]"", ""[variables('virtualnetworkname')]"", ""[resourceid('microsoft.network/loadbalancers"", variables('agentlbname'))]""], ""properties"": {""upgradepolicy"": {""mode"": ""automatic""}, ""virtualmachineprofile"": {""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""nic"", ""properties"": {""ipconfigurations"": [{""name"": ""nicipconfig"", ""properties"": {""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('agentlbname'), variables('agentlbbackendpoolname'))]""}], ""subnet"": {""id"": ""[variables('agentvnetsubnetid')]""}}}], ""primary"": true}}]}, ""osprofile"": {""adminusername"": ""[variables('adminusername')]"", ""computernameprefix"": ""[variables('agentvmnameprefix')]"", ""customdata"": ""[base64(concat(\""#cloud-config\n\nwrite_files:\n - encoding: gzip\n content: !!binary |\n h4siackuqlkaa81zbxpbnhl+zl+xptw1nyaipdsxoweug8dwlp6rly9kd24uawoihczwfkeqogsfq/9+u3ihsfmk3tazowuskuac++wunt0fs/ndoeqycmtkxpn2/vzp24ejky2t6ylnmfywfaqniubqzzi8fbcecvxmegljjhvluwlqwmes0lqskuwaijgdiyxnsqjgamciuuf55rzxrwhj9vbl/smtiudyfzhdm6x+gkge5aqcw8/j0usaj6hzrugrwqk0io0i3ljovciy34uz4t5maspjx/2jf/ugn476p+f9ye/tz73b8kr/1vxbzxan2flrcngkc5azktcm1egchg4veooj/uxzrbdx317agfnb793jv3gk40benqygf4fhxwmcflh0dv9zoehddnv0+opsqxgxj2co8nnpw6pbyfnf5eae37xcem8ph73h5duzhq3/t6x38+nz4wmvezurumui6opglk/f4kpx2icniwg/g+qx7mqw+ezdr63g77983puglz983h/wcd+2w12aa5fumftxr5y9/8xod3ntce51rhenfjk6gebfix5d4jzn4+s2fdgk12tejblucbjheslxos6jzqdk94ed64adg8wlffscnh16sk5x5vh8uxpwr8sa4dvy3t/irs2y6vrk8k7iitptg/c4oiytsmtd/+i/z1wtrh6zt+/dewa7yf5p+mxmfda/el/a5/ecpwpy123j0fjkkcbp4b7dxc27fa2xwggaxtxrox/gfb5mrzrcrknzqujz5lqjbnzcyrg+qomfepdp0ijf9bgqzvqngxf7cyzmwojzdbuwwuymqriv3aquawvzyeo/qiwyyczgylcyo5yzg30/tvrfppzpoe1rxjhxpieyrgmctfwgcgl4o7pmkkfyobcrmenczjnfesekcpmwa2zwu00uddylqxyx8gojriydneurzvmtotnahad0bjd8v0fiwwqcpufp1nna6ch0luwfj9fya6m8932baq8qdseeluhtmmdstlvm1/mrdls4vcaluok5v0weafmxp5jxx9oody5a6nntpjrfai9gjcirs1xs93aaqtpfcqxs4ro1vevqwzx1eq0va89mntbajqdaj+faa37jfpupl437tty83jwftsj0szu8hrmfjs+g24rtom24ajujncppeqtqhopgioqqcimq8qfe1hhinkzzngxry8voizfdin0c0lozivbzvweebsjqzg6tp9pa5qmx8cpeystyuwaxzrdqfvrag2dbeqxhu+2xehzubzohs8ziolsza0wul8nkyvdncczq26zzwxcslkiictfg2vd0zlz0viika+7btoxihhbmu4gmsn+cmadslp3vl2fyfk08dthjvc3ftndkdhxbaty8pdyv++addqkydtg9izmcgpnzevio+tgn7tw0zkq88ytizdgz7hpsh+guu+ttbmvreqyhnrevxsjejoavavicrowiqm8xfe2tqf2bpvkgsylhkcbcgomsuiauwxilklzwwbsec5ahezgvspcywk69paqr7bqxfbgancbavvseaaddtcewklk+cpg10c/vquvu0vtn/cfygkmeboe3gpdhzzocfoo5z/mk5k0iyk6l/nb4bgbx/wtg10llr8u2r7sgi+g3jfqijswisgatdsmdisx5ypnkescxwspyhdy2hwzsxmbodk4ku1pkvxk7vsipu7rsebg0ejm36xuwu67gw7dcne+iczh8h9thtdq5weytskww6bgw8q59abaasxzyl2iju964lnor3rfsy05ydtaan41t7b1erdar1u2wymbiq0ajdqo1mqm/alyqipbygra/2hrxtg5vyfyakr2yx++exerfxkm3/bd4ruxxhstd7jgxkxluxhsoks9yqtur/9ftv7e5jyp7ntc0yl9wdnc2f8ge7xu1jctxhkfrdr1i2kiu7dcdlarjfep07dhqlo2o1hlawcbgmwzilwawon4vgnuvfnofsverfdi1zqueiy7r4fb4hhz9gbp8zmlbqojemmniwhn+e7ivsxhd/leupnqsagucyfouxa3puv62n4fr5yljeawjy37bjyxbfm/swedg6am731qk4znchogjmjprqax7zny/tu4abx9e7osgtb4irthtmpbu7dbselmowupvwwxwvmgy+t0auiwiksjsontvrjamr4pcqso37drtrufooq8mqw1mvs0c6+y18bti88rlfn3s2h5yec/mhexi22jbjsq9q7zqwr9gqlxwjdheox3cbbn7dljnwzfhr+dgthhag+/ctq7bvu1g5it+xp/sme8rseoudh3nlenzkektdqdi7bxnz5sd2lxhif2nlxxug5qe08cf080ql6vraff3blkhwttkosihevjp/nzmzs/y8suc/ap8plnyly6pu/fjnkxtsljrq9qrafdkytxavinq8kv7/1fmvvhlsf01ntmdgkzs+ogl32f9inebjbavo68jtq3tgk8e+lwftm6s6izqi/eyuubfm+zpvkz5mlnkrfk/a3sa8gvncaf15o54m9jfksctylbr8eanodek4jpk9i0ltj/xg5eqsqqczqicane2uq46b75vw/fmy4kxs+wc6jze0u4krbpifjlxx+enmdwtkvci/pgp+nak6zhm50lcdh5j2r32i1og1zusmrgrxjnojru4lsefoohaqili4dkkvqpkpmjdffs+zbu4utnnes+dofqxcp74h9dolc7tgqaa\n path: /opt/azure/containers/configure-swarmmode-cluster.sh\n permissions: ""0744""\n\n\"",variables(\""agentruncmdfile\'),variables(\""agentruncmd\')))]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""keydata"": ""[parameters('sshrsapublickey')]"", ""path"": ""[variables('sshkeypath')]""}]}}}, ""storageprofile"": {""imagereference"": {""offer"": ""[variables('osimageoffer')]"", ""publisher"": ""[variables('osimagepublisher')]"", ""sku"": ""[variables('osimagesku')]"", ""version"": ""latest""}, ""osdisk"": {""caching"": ""readwrite"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('agentdisktype')]""}}}}}} " +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')]""}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat('mastervm"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""virtualmachineloopmaster"", ""count"": ""[variables('numberofmasterinstances')]""}, ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared-resources')]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat('nic"", copyindex()))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", ""sparkcluseras')]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('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('mastervm"", copyindex(),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat('nic"", copyindex()))]""}]}}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat('slavevm"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[variables('numberofslavesinstances')]""}, ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared-resources')]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat('nicsl"", copyindex()))]"", ""virtualmachineloopmaster""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", ""sparkcluseras')]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[concat(variables('computernameprefix'),""sl"", 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('slavevm"", copyindex(),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",concat('nicsl"", copyindex()))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('frontendnsgname')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""custom network security group""}, ""properties"": {""securityrules"": [{""name"": ""default-allow-ssh"", ""properties"": {""description"": ""allow ssh"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1000, ""direction"": ""inbound""}}, {""name"": ""default-allow-tomcat"", ""properties"": {""description"": ""allow web/tomcat"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1010, ""direction"": ""inbound""}}, {""name"": ""default-allow-ftp"", ""properties"": {""description"": ""allow ftp"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""21"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1020, ""direction"": ""inbound""}}, {""name"": ""default-allow-ftps"", ""properties"": {""description"": ""allow ftps"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""13450-13454"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1030, ""direction"": ""inbound""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups/"", variables('frontendnsgname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnet1name')]"", ""properties"": {""addressprefix"": ""[variables('subnet1prefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('frontendnsgname'))]""}}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/availabilitysets"", ""location"": ""[parameters('location')]"", ""name"": ""[parameters('gw-availabilityset')]"", ""properties"": {""platformupdatedomaincount"": 20, ""platformfaultdomaincount"": 2}, ""sku"": {""name"": ""aligned""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('avsetnameascs')]"", ""apiversion"": ""2016-04-30-preview"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 3, ""platformupdatedomaincount"": 20}}{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('avsetnamedb')]"", ""apiversion"": ""2016-04-30-preview"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 3, ""platformupdatedomaincount"": 20}} " +This template provides an example of how to create API Management service and configure all sub-entities,"{""type"": ""microsoft.apimanagement/service/loggers"", ""apiversion"": ""2020-12-01"", ""name"": ""[format('{0}/{1}"", variables('apimanagementservicename'), ""appinsightslogger')]"", ""properties"": {""loggertype"": ""applicationinsights"", ""credentials"": {""instrumentationkey"": ""[reference(resourceid('microsoft.insights/components"", format('ai-{0}"", variables('basename')))).instrumentationkey]""}}, ""dependson"": [""[resourceid('microsoft.apimanagement/service"", variables('apimanagementservicename'))]"", ""[resourceid('microsoft.insights/components"", format('ai-{0}"", variables('basename')))]""]}{""type"": ""microsoft.apimanagement/service/diagnostics"", ""apiversion"": ""2020-12-01"", ""name"": ""[format('{0}/{1}"", variables('apimanagementservicename'), ""applicationinsights')]"", ""properties"": {""loggerid"": ""[resourceid('microsoft.apimanagement/service/loggers"", variables('apimanagementservicename'), ""appinsightslogger')]"", ""logclientip"": true, ""alwayslog"": ""allerrors"", ""verbosity"": ""information"", ""sampling"": {""percentage"": 100, ""samplingtype"": ""fixed""}, ""httpcorrelationprotocol"": ""legacy""}, ""dependson"": [""[resourceid('microsoft.apimanagement/service"", variables('apimanagementservicename'))]"", ""[resourceid('microsoft.apimanagement/service/loggers"", variables('apimanagementservicename'), ""appinsightslogger')]""]}{""type"": ""microsoft.apimanagement/service"", ""apiversion"": ""2020-12-01"", ""name"": ""[variables('apimanagementservicename')]"", ""location"": ""[parameters('location')]"", ""sku"": {""capacity"": 1, ""name"": ""[parameters('apimanagementsku')]""}, ""properties"": {""publisheremail"": ""[parameters('apimanagementpublisheremailaddress')]"", ""publishername"": ""[parameters('apimanagementpublishername')]"", ""virtualnetworktype"": ""internal"", ""virtualnetworkconfiguration"": {""subnetresourceid"": ""[variables('apimsubnetid')]""}, ""hostnameconfigurations"": [{""type"": ""developerportal"", ""hostname"": ""[parameters('apimanagementportalcustomhostname')]"", ""encodedcertificate"": ""[parameters('apimanagementportalcustomhostnamebase64encodedcertificate')]"", ""certificatepassword"": ""[parameters('apimanagementportalcertificatepassword')]"", ""negotiateclientcertificate"": false}, {""type"": ""proxy"", ""hostname"": ""[parameters('apimanagementproxycustomhostname')]"", ""encodedcertificate"": ""[parameters('apimanagementproxycustomhostnamebase64encodedcertificate')]"", ""certificatepassword"": ""[parameters('apimanagementproxycertificatepassword')]"", ""negotiateclientcertificate"": false}, {""type"": ""management"", ""hostname"": ""[parameters('apimanagementmanagementcustomhostname')]"", ""encodedcertificate"": ""[parameters('apimanagementmanagementcustomhostnamebase64encodedcertificate')]"", ""certificatepassword"": ""[parameters('apimanagementmanagementcertificatepassword')]"", ""negotiateclientcertificate"": false}]}, ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]""]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nicname')]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]"", ""secrets"": [{""sourcevault"": {""id"": ""[parameters('vaultresourceid')]""}, ""vaultcertificates"": [{""certificateurl"": ""[parameters('certificateurl')]"", ""certificatestore"": ""my""}]}], ""windowsconfiguration"": {""provisionvmagent"": true, ""winrm"": {""listeners"": [{""protocol"": ""http""}, {""protocol"": ""https"", ""certificateurl"": ""[parameters('certificateurl')]""}]}, ""enableautomaticupdates"": true}}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}} " +Route table with routes,"{""type"": ""microsoft.network/routetables"", ""apiversion"": ""2021-02-01"", ""name"": ""[parameters('routetablename')]"", ""location"": ""[parameters('location')]"", ""properties"": {""copy"": [{""name"": ""routes"", ""count"": ""[length(parameters('routes'))]"", ""input"": {""name"": ""[parameters('routes')[copyindex('routes')].name]"", ""properties"": {""addressprefix"": ""[parameters('routes')[copyindex('routes')].addressprefix]"", ""hasbgpoverride"": ""[if(contains(parameters('routes')[copyindex('routes')], ""hasbgpoverride'), parameters('routes')[copyindex('routes')].hasbgpoverride, null())]"", ""nexthopipaddress"": ""[if(contains(parameters('routes')[copyindex('routes')], ""nexthopipaddress'), parameters('routes')[copyindex('routes')].nexthopipaddress, null())]"", ""nexthoptype"": ""[parameters('routes')[copyindex('routes')].nexthoptype]""}}}], ""disablebgproutepropagation"": ""[parameters('disablebgproutepropagation')]""}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-10-01"", ""name"": ""[format('create-{0}"", parameters('subscriptionalias'))]"", ""location"": ""[deployment().location]"", ""properties"": {""expressionevaluationoptions"": {""scope"": ""inner""}, ""mode"": ""incremental"", ""parameters"": {""billingaccount"": {""value"": ""[parameters('billingaccount')]""}, ""enrollmentaccount"": {""value"": ""[parameters('enrollmentaccount')]""}, ""subscriptionalias"": {""value"": ""[parameters('subscriptionalias')]""}, ""subscriptiondisplayname"": {""value"": ""[parameters('subscriptiondisplayname')]""}, ""subscriptionworkload"": {""value"": ""[parameters('subscriptionworkload')]""}}, ""template"": {""$schema"": ""https://schema.management.azure.com/schemas/2019-08-01/managementgroupdeploymenttemplate.json#"", ""contentversion"": ""1.0.0.0"", ""metadata"": {""_generator"": {""name"": ""bicep"", ""version"": ""0.4.451.19169"", ""templatehash"": ""11044401809782387845""}}, ""parameters"": {""enrollmentaccount"": {""type"": ""string"", ""metadata"": {""description"": ""enrollmentaccount used for subscription billing""}}, ""billingaccount"": {""type"": ""string"", ""metadata"": {""description"": ""billingaccount used for subscription billing""}}, ""subscriptionalias"": {""type"": ""string"", ""metadata"": {""description"": ""alias to assign to the subscription""}}, ""subscriptiondisplayname"": {""type"": ""string"", ""metadata"": {""description"": ""display name for the subscription""}}, ""subscriptionworkload"": {""type"": ""string"", ""metadata"": {""description"": ""workload type for the subscription""}}}, ""functions"": [], ""resources"": [{""type"": ""microsoft.subscription/aliases"", ""apiversion"": ""2020-09-01"", ""scope"": ""/"", ""name"": ""[parameters('subscriptionalias')]"", ""properties"": {""workload"": ""[parameters('subscriptionworkload')]"", ""displayname"": ""[parameters('subscriptiondisplayname')]"", ""billingscope"": ""[tenantresourceid('microsoft.billing/billingaccounts/enrollmentaccounts"", parameters('billingaccount'), parameters('enrollmentaccount'))]""}}], ""outputs"": {""subscriptionid"": {""type"": ""string"", ""value"": ""[reference(tenantresourceid('microsoft.subscription/aliases"", parameters('subscriptionalias'))).subscriptionid]""}}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(parameters('vmnameprefix'),""mgs')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""idletimeoutinminutes"": 4, ""dnssettings"": {""domainnamelabel"": ""[concat(parameters('dnsnameprefix'),""')]""}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(parameters('vmnameprefix'),""mgs')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[concat('microsoft.resources/deployments/"", ""vnet')]"", ""[concat('microsoft.network/publicipaddresses/"", concat(parameters('vmnameprefix'),""mgs'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ip1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", concat(parameters('vmnameprefix'), ""mgs'))]""}, ""subnet"": {""id"": ""[variables('subnetserversid')]""}}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(parameters('vmnameprefix'),""mds')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[concat('microsoft.resources/deployments/"", ""vnet')]"", ""[concat('microsoft.network/networkinterfaces/"", parameters('vmnameprefix'), ""mgs')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ip1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('subnetserversid')]""}}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(parameters('vmnameprefix'), ""oss"", copyindex())]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[concat('microsoft.resources/deployments/"", ""vnet')]"", ""[concat('microsoft.network/networkinterfaces/"", parameters('vmnameprefix'), ""mds')]""], ""copy"": {""name"": ""ossniccopy"", ""count"": ""[parameters('osscount')]""}, ""properties"": {""ipconfigurations"": [{""name"": ""ip1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('subnetserversid')]""}}}]}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(parameters('clientvmnameprefix'),""client0')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""idletimeoutinminutes"": 4, ""dnssettings"": {""domainnamelabel"": ""[concat(parameters('dnsnameprefixforclient'),""')]""}}}{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(parameters('clientvmnameprefix'), ""client0')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[concat('microsoft.network/publicipaddresses/"", parameters('clientvmnameprefix'), ""client0')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ip1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", concat(parameters('clientvmnameprefix'), ""client0'))]""}, ""subnet"": {""id"": ""[variables('subnetclientsid1')]""}}}]}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""apiversion"": ""2021-04-01"", ""name"": ""[variables('nesteddeploymentnamevnet')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""hardwareprofile"": {""vmsize"": ""[variables('vmsize')]""}, ""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('shared/"", parameters('neworexistingsubnet'), ""vnet.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""vnetname"": {""value"": ""[variables('vnetname')]""}, ""addressprefix"": {""value"": ""[variables('addressprefix')]""}, ""subnetname"": {""value"": ""[variables('subnetname')]""}, ""subnetprefix"": {""value"": ""[variables('subnetprefix')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""apiversion"": ""2021-04-01"", ""name"": ""[variables('nesteddeploymentnamenic')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('shared/nic-config.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""vnetname"": {""value"": ""[variables('vnetname')]""}, ""subnetname"": {""value"": ""[variables('subnetname')]""}, ""publicipname"": {""value"": ""[variables('publicipname')]""}, ""nsgname"": {""value"": ""[variables('nsgname')]""}, ""neworexistingsubnet"": {""value"": ""[parameters('neworexistingsubnet')]""}, ""subnetid"": {""value"": ""[parameters('subnetid')]""}}}}{""apiversion"": ""2021-04-01"", ""name"": ""[variables('nesteddeploymentnameprof')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('shared/os-disk-parts.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""imagesku"": {""value"": ""[variables('imagesku')]""}, ""imagepublisher"": {""value"": ""[variables('imagepublisher')]""}, ""imageoffer"": {""value"": ""[variables('imageoffer')]""}, ""userimagevhduri"": {""value"": """"}, ""userimagestorageaccount"": {""value"": """"}, ""osdiskvhduri"": {""value"": """"}, ""osdisktype"": {""value"": ""[variables('osdisktype')]""}, ""ostype"": {""value"": ""[variables('internalostype')]""}, ""sidlower"": {""value"": ""[variables('sidlower')]""}, ""vmname"": {""value"": ""[variables('vmname')]""}, ""storageaccounturi"": {""value"": ""[reference(variables('storageaccountname'), ""2021-01-01').primaryendpoints[""blob""]]""}}}}{""apiversion"": ""2021-04-01"", ""name"": ""[variables('nesteddeploymentnamepip')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('shared/"", parameters('neworexistingsubnet'), ""pip.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""publicipname"": {""value"": ""[variables('publicipname')]""}, ""publicipaddresstype"": {""value"": ""[variables('publicipaddresstype')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""apiversion"": ""2021-04-01"", ""name"": ""[variables('nesteddeploymentnamensg')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('shared/"", parameters('neworexistingsubnet'), ""nsg.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""nsgname"": {""value"": ""[variables('nsgname')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""ostype"": {""value"": ""[variables('internalostype')]""}}}}{""apiversion"": ""2021-04-01"", ""name"": ""[variables('nesteddeploymentname')]"", ""type"": ""microsoft.resources/deployments"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.resources/deployments/"", variables('nesteddeploymentnameprof'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('shared/cs-server-"", variables('vmsize'), ""_multinic_no.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""imagereference"": {""value"": ""[reference(variables('nesteddeploymentnameprof')).outputs.imagereference.value]""}, ""osdisk"": {""value"": ""[reference(variables('nesteddeploymentnameprof')).outputs.osdisk.value]""}, ""osdisktype"": {""value"": ""[variables('osdisktype')]""}, ""sidlower"": {""value"": ""[variables('sidlower')]""}, ""vmname"": {""value"": ""[variables('vmname')]""}, ""vmsize"": {""value"": ""[variables('vmsize')]""}, ""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""adminpassword"": {""value"": ""[parameters('adminpassword')]""}, ""storageaccounturi"": {""value"": ""[reference(variables('storageaccountname'), ""2021-01-01').primaryendpoints[""blob""]]""}, ""nicname"": {""value"": ""[variables('nicname')]""}, ""location"": {""value"": ""[parameters('location')]""}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-11-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('vmnsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""ssh"", ""properties"": {""description"": ""allows ssh traffic"", ""protocol"": ""tcp"", ""sourceportrange"": ""22"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}}{""apiversion"": ""2020-11-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('vmpipname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""static""}}{""apiversion"": ""2020-11-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('vmnicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.resources/deployments"", variables('esdeploymentname'))]"", ""[resourceid('microsoft.network/networksecuritygroups"", variables('vmnsgname'))]"", ""[resourceid('microsoft.network/publicipaddresses"", variables('vmpipname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig2"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('vmpipname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}], ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('vmnsgname'))]""}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('storageaccountname')]"", ""apiversion"": ""2016-01-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storage"", ""properties"": {}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('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'),""/newuserscript')]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/install_shibboleth_idp.sh"", parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('sh install_shibboleth_idp.sh"", "" "", parameters('uniquenameprefix'), "" "", parameters('location'))]""}}} " +A template for creating a new Azure Container Registry. Use this template as the framework for your custom deployment.,"{""name"": ""[parameters('acrname')]"", ""type"": ""microsoft.containerregistry/registries"", ""apiversion"": ""2019-12-01-preview"", ""location"": ""[parameters('location')]"", ""comments"": ""container registry for storing docker images"", ""dependson"": [""[variables('acrprivatednszoneid')]""], ""tags"": {""displayname"": ""container registry"", ""container.registry"": ""[parameters('acrname')]""}, ""sku"": {""name"": ""[parameters('acrsku')]"", ""tier"": ""[parameters('acrsku')]""}, ""properties"": {""adminuserenabled"": ""[parameters('acradminuserenabled')]""}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('storageaccountname')]"", ""apiversion"": ""2021-02-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage""} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[concat(variables('nsgname'))]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""properties"": {""securityrules"": ""[variables('selectedsecurityrules')]""}}{""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('vnetname')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('nsgname'))]""], ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""properties"": {""addressspace"": {""addressprefixes"": [""10.0.0.0/16""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""10.0.0.0/24"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('nsgname'))]""}}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipnamelbascs')]"", ""apiversion"": ""2020-05-01"", ""condition"": ""[and(greater(variables('ascsvmcount') , 1), greater(length(parameters('subnetid')), 0))]"", ""sku"": {""name"": ""standard""}, ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""static""}}{""type"": ""microsoft.network/loadbalancers"", ""name"": ""[variables('loadbalancernamepubascs')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[and(greater(variables('ascsvmcount') , 1), greater(length(parameters('subnetid')), 0))]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", variables('publicipnamelbascs'))]""], ""sku"": {""name"": ""standard""}, ""properties"": {""frontendipconfigurations"": [{""name"": ""[variables('frontendpubascs')]"", ""properties"": {""publicipaddress"": {""id"": ""[variables('pipidascs')]""}}}], ""outboundrules"": [{""name"": ""test"", ""properties"": {""frontendipconfigurations"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", variables('loadbalancernamepubascs'), variables('frontendpubascs'))]""}], ""allocatedoutboundports"": 1000, ""idletimeoutinminutes"": 4, ""enabletcpreset"": true, ""protocol"": ""all"", ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('loadbalancernamepubascs'), variables('backendpoolpubascs'))]""}}}], ""backendaddresspools"": [{""name"": ""[variables('backendpoolpubascs')]""}]}}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(variables('publicipnameascs'), ""-"", copyindex())]"", ""apiversion"": ""2020-05-01"", ""condition"": ""[equals(length(parameters('subnetid')), 0)]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]""], ""sku"": {""name"": ""standard""}, ""copy"": {""name"": ""piploop"", ""count"": ""[variables('ascsvmcount')]""}, ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""static""}}{""type"": ""microsoft.network/loadbalancers"", ""name"": ""[variables('loadbalancernameascs')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[greater(variables('ascsvmcount') , 1)]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]""], ""sku"": {""name"": ""standard""}, ""properties"": {""frontendipconfigurations"": ""[variables('lbfrontendconfigxscs')[parameters('stacktype')]]"", ""backendaddresspools"": ""[variables('lbbackendpoolxscs')[parameters('stacktype')]]"", ""loadbalancingrules"": ""[variables('lbrulexscs')[parameters('stacktype')]]"", ""probes"": ""[variables('lbprobexscs')[parameters('stacktype')]]""}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('nicnameascs'), ""-"", copyindex())]"", ""apiversion"": ""2020-05-01"", ""copy"": {""name"": ""nicascsloop"", ""count"": ""[variables('ascsvmcount')]""}, ""dependson"": [""piploop"", ""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]"", ""[resourceid('microsoft.network/loadbalancers"", variables('loadbalancernameascs'))]"", ""[resourceid('microsoft.network/loadbalancers"", variables('loadbalancernamepubascs'))]""], ""location"": ""[parameters('location')]"", ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": ""[if(equals(length(parameters(\""subnetid\')), 0), json(concat(\""{""id"": ""\"", resourceid(\""microsoft.network/publicipaddresses\"", concat(variables(\""publicipnameascs\'), \""-\"", copyindex())) ,\""""}\')), json(\""null\'))]"", ""subnet"": {""id"": ""[variables('selectedsubnetid')]""}, ""loadbalancerbackendaddresspools"": ""[if(greater(variables('ascsvmcount'), 1), variables('nicbackaddresspoolxscs')[parameters('stacktype')], json('null'))]""}}]}}{""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipnamelbdb')]"", ""apiversion"": ""2020-05-01"", ""sku"": {""name"": ""standard""}, ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""static""}}{""type"": ""microsoft.network/loadbalancers"", ""name"": ""[variables('loadbalancernamepubdb')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[greater(variables('ascsvmcount') , 1)]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"", variables('publicipnamelbdb'))]""], ""sku"": {""name"": ""standard""}, ""properties"": {""frontendipconfigurations"": [{""name"": ""[variables('frontendpubdb')]"", ""properties"": {""publicipaddress"": {""id"": ""[variables('pipiddb')]""}}}], ""outboundrules"": [{""name"": ""test"", ""properties"": {""frontendipconfigurations"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", variables('loadbalancernamepubdb'), variables('frontendpubdb'))]""}], ""allocatedoutboundports"": 1000, ""idletimeoutinminutes"": 4, ""enabletcpreset"": true, ""protocol"": ""all"", ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('loadbalancernamepubdb'), variables('backendpoolpubdb'))]""}}}], ""backendaddresspools"": [{""name"": ""[variables('backendpoolpubdb')]""}]}}{""type"": ""microsoft.network/loadbalancers"", ""name"": ""[variables('loadbalancernamedb')]"", ""apiversion"": ""2020-05-01"", ""location"": ""[parameters('location')]"", ""condition"": ""[greater(variables('dbvmcount') , 1)]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]""], ""sku"": {""name"": ""standard""}, ""properties"": {""frontendipconfigurations"": ""[variables('lbfrontendconfigsdb')[parameters('dbtype')][variables('internalostype')]]"", ""backendaddresspools"": ""[variables('lbbackendpoolsdb')[parameters('dbtype')][variables('internalostype')]]"", ""loadbalancingrules"": ""[variables('lbrulesdb')[parameters('dbtype')][variables('internalostype')]]"", ""probes"": ""[variables('lbprobesdb')[parameters('dbtype')][variables('internalostype')]]""}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('nicnamedb'), ""-"", copyindex())]"", ""apiversion"": ""2020-05-01"", ""copy"": {""name"": ""nicdbloop"", ""count"": ""[variables('dbvmcount')]""}, ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]"", ""[resourceid('microsoft.network/loadbalancers"", variables('loadbalancernamedb'))]"", ""[resourceid('microsoft.network/loadbalancers"", variables('loadbalancernamepubdb'))]""], ""location"": ""[parameters('location')]"", ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('selectedsubnetid')]""}, ""loadbalancerbackendaddresspools"": ""[if(greater(variables('dbvmcount'), 1), variables('nicbackaddresspoolsdb')[parameters('dbtype')][variables('internalostype')], json('null'))]""}}]}}{""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat(variables('nicnamedi'), ""-"", copyindex())]"", ""apiversion"": ""2020-05-01"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]""], ""copy"": {""name"": ""nicdiloop"", ""count"": ""[variables('divmcount')]""}, ""location"": ""[parameters('location')]"", ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('selectedsubnetid')]""}}}]}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""apiversion"": ""2020-06-01"", ""name"": ""deploy-virus-attack-oms-resource"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('omstemplateuri')]""}, ""parameters"": {""omsworkspacename"": {""value"": ""[variables('omsworkspacename')]""}, ""omssolutionsname"": {""value"": ""[variables('omssolutions')]""}, ""sku"": {""value"": ""[parameters('omssku')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2020-06-01"", ""name"": ""[concat(parameters('vnetname'),""-"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('vnettemplateuri')]""}, ""parameters"": {""vnetname"": {""value"": ""[parameters('vnetname')]""}, ""addressprefix"": {""value"": ""[parameters('vnetaddressspace')]""}, ""subnets"": {""value"": ""[variables('subnets')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}}{""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('nsgname'),""-"",""-resource')]"", ""type"": ""microsoft.resources/deployments"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('nsgtemplateuri')]""}, ""parameters"": {""nsgname"": {""value"": ""[variables('nsgname')]""}, ""securityrules"": {""value"": ""[variables('nsgsecurityrules')]""}, ""location"": {""value"": ""[parameters('location')]""}, ""tags"": {""value"": ""[variables('tags')]""}}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2017-06-01"", ""name"": ""[variables('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storage"", ""properties"": {}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2017-10-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[concat(parameters('tigdnsprefix'),uniquestring(resourcegroup().id))]""}}}{""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"": ""*""}}, {""name"": ""default-allow-3000"", ""properties"": {""priority"": 1001, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""3000"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}, {""name"": ""default-allow-8083"", ""properties"": {""priority"": 1002, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""8083"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}, {""name"": ""default-allow-8086"", ""properties"": {""priority"": 1003, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""8086"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}, {""name"": ""default-allow-8090"", ""properties"": {""priority"": 1004, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""8090"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}} " +"This template takes a minimum amount of parameters and deploys a trusted launch capable Windows virtual machine, using the latest patched version.","{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""identity"": {""type"": ""systemassigned""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", parameters('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": ""[variables('imagereference')[parameters('sku')]]"", ""osdisk"": {""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", parameters('nicname'))]""}]}, ""securityprofile"": {""uefisettings"": {""securebootenabled"": ""[parameters('secureboot')]"", ""vtpmenabled"": ""[parameters('vtpm')]""}, ""securitytype"": ""trustedlaunch""}}}{""condition"": ""[and(equals(parameters('vtpm'), ""true'), equals(parameters('secureboot'), ""true'))]"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'), ""/"", variables('extensionname'))]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", parameters('vmname'))]""], ""apiversion"": ""2020-06-01"", ""properties"": {""publisher"": ""[variables('extensionpublisher')]"", ""type"": ""[variables('extensionname')]"", ""typehandlerversion"": ""[variables('extensionversion')]"", ""autoupgrademinorversion"": true, ""settings"": {""attestationendpointcfg"": {""maaendpoint"": ""[parameters('maaendpoint')]"", ""maatenantname"": ""[variables('maatenantname')]"", ""ascreportingendpoint"": ""[variables('ascreportingendpoint')]"", ""usealternatetoken"": ""[variables('usealternatetoken')]"", ""disablealerts"": ""[variables('disablealerts')]""}}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""name"": ""jumpbox"", ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('jumpboxnicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""canonical"", ""offer"": ""ubuntuserver"", ""sku"": ""18.04-lts"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}}, ""osprofile"": {""computername"": ""jumpbox"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('jumpboxnicname'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts"", variables('storageaccountname'))).primaryendpoints.blob]""}}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('toolstorageaccountname')]"", ""apiversion"": ""2021-02-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storage"", ""properties"": {}} " +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()))]""}]}}} " +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""}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-04-01"", ""name"": ""[variables('supportlogstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""tags"": {""resourcetype"": ""service fabric"", ""clustername"": ""[parameters('clustername')]""}, ""properties"": {}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-04-01"", ""name"": ""[parameters('virtualnetwork_name')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('virtualnetwork_cidr')]""]}}}{""type"": ""microsoft.network/virtualnetworks/subnets"", ""apiversion"": ""2020-04-01"", ""name"": ""[concat(parameters('virtualnetwork_name'),""/"", parameters('subnet1_name'))]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetwork_name'))]""], ""properties"": {""addressprefix"": ""[parameters('subnet1_cidr')]"", ""privateendpointnetworkpolicies"": ""disabled""}}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2019-04-01"", ""name"": ""[parameters('privateendpoint_name')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.web/sites"", parameters('site_name'))]"", ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('virtualnetwork_name'), parameters('subnet1_name'))]""], ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('virtualnetwork_name'), parameters('subnet1_name'))]""}, ""privatelinkserviceconnections"": [{""name"": ""[parameters('privatelinkconnection_name')]"", ""properties"": {""privatelinkserviceid"": ""[resourceid('microsoft.web/sites"", parameters('site_name'))]"", ""groupids"": [""sites""]}}]}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2018-09-01"", ""name"": ""[parameters('privatednszone_name')]"", ""location"": ""global"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetwork_name'))]""]}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2018-09-01"", ""name"": ""[concat(parameters('privatednszone_name'), ""/"", parameters('privatednszone_name'), ""-link')]"", ""location"": ""global"", ""dependson"": [""[resourceid('microsoft.network/privatednszones"", parameters('privatednszone_name'))]"", ""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetwork_name'))]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetwork_name'))]""}}}{""type"": ""microsoft.network/privateendpoints/privatednszonegroups"", ""apiversion"": ""2020-03-01"", ""name"": ""[concat(parameters('privateendpoint_name'),""/dnsgroupname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/privatednszones"", parameters('privatednszone_name'))]"", ""[resourceid('microsoft.network/privateendpoints"" , parameters('privateendpoint_name'))]""], ""properties"": {""privatednszoneconfigs"": [{""name"": ""config1"", ""properties"": {""privatednszoneid"": ""[resourceid('microsoft.network/privatednszones"", parameters('privatednszone_name'))]""}}]}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[parameters('newstorageaccountname')]"", ""apiversion"": ""2021-04-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storagev2""} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('webavailsetname')]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""comments"": ""this is the availability set for all web vms"", ""tags"": {""displayname"": ""web avail set"", ""quickstartname"": ""[variables('quickstarttags').name]"", ""provider"": ""[variables('barracudanetworkstags').provider]""}, ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 2}}{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('bwafavailsetname')]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""comments"": ""this is the availability set for bwaf vm"", ""tags"": {""displayname"": ""bwaf avail set"", ""quickstartname"": ""[variables('quickstarttags').name]"", ""provider"": ""[variables('barracudanetworkstags').provider]""}, ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 2}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('webvmname'), copyindex(1))]"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""comments"": "" web server vms"", ""tags"": {""displayname"": ""web vms"", ""quickstartname"": ""[variables('quickstarttags').name]"", ""provider"": ""[variables('barracudanetworkstags').provider]""}, ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('webstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", concat(variables('webvmnicname'), copyindex(1)))]"", ""[resourceid('microsoft.compute/availabilitysets/"", variables('webavailsetname'))]""], ""copy"": {""name"": ""websrvmachineloop"", ""count"": ""[parameters('webvmcount')]""}, ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"",variables('webavailsetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[parameters('webvmsize')]""}, ""osprofile"": {""computername"": ""[concat('webserver"",copyindex(1))]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('webvmpublisher')]"", ""offer"": ""[variables('webvmoffer')]"", ""sku"": ""[variables('webvmsku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('webvmname'), copyindex(1),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('webvmnicname'), copyindex(1)))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts/"", variables('diagstorageaccountname'))).primaryendpoints.blob]""}}}, ""resources"": [{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('webvmname'), copyindex(1),""/"",concat(variables('webvmname'), copyindex(1),""-web-dsc'))]"", ""apiversion"": ""2015-06-15"", ""location"": ""[parameters('location')]"", ""comments"": ""this vm extension loops to setup iis in each web vms using dsc"", ""tags"": {""displayname"": ""web vm extensions"", ""quickstartname"": ""[variables('quickstarttags').name]"", ""provider"": ""[variables('barracudanetworkstags').provider]""}, ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", concat(variables('webvmname'), copyindex(1)))]""], ""properties"": {""publisher"": ""microsoft.powershell"", ""type"": ""dsc"", ""typehandlerversion"": ""2.19"", ""autoupgrademinorversion"": true, ""settings"": {""modulesurl"": ""[uri(parameters('_artifactslocation'),concat('scripts/webserverconfig.zip"",parameters('_artifactslocationsastoken')))]"", ""configurationfunction"": ""[variables('webvmextensionfunction')]"", ""wmfversion"": ""4.0"", ""properties"": {}}}}]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('apppublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnslabelprefix')]""}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""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}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat('nic"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicloop"", ""count"": ""[variables('numberofmasterinstances')]""}, ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared-resources')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[concat(parameters('sparknodeipaddressprefix'), copyindex())]"", ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +This module creates a key resource in an existing KeyVault with apiVersion 2019-09-01.,"{""type"": ""microsoft.keyvault/vaults"", ""apiversion"": ""2019-09-01"", ""name"": ""[parameters('stackname')]"", ""location"": ""[variables('location')]"", ""dependson"": [""[resourceid('microsoft.web/sites"",parameters('stackname'))]""], ""properties"": {""enablerbacauthorization"": false, ""enablesoftdelete"": false, ""enabledfordeployment"": false, ""enabledfordiskencryption"": false, ""enabledfortemplatedeployment"": false, ""tenantid"": ""[subscription().tenantid]"", ""accesspolicies"": [{""tenantid"": ""[subscription().tenantid]"", ""objectid"": ""[parameters('aaduserobjectid')]"", ""permissions"": {""secrets"": [""list"", ""get"", ""set""]}}, {""tenantid"": ""[reference(resourceid('microsoft.web/sites"", parameters('stackname')), ""2018-02-01"", ""full').identity.tenantid]"", ""objectid"": ""[reference(resourceid('microsoft.web/sites"", parameters('stackname')), ""2018-02-01"", ""full').identity.principalid]"", ""permissions"": {""secrets"": [""list"", ""get"", ""set""]}}], ""sku"": {""name"": ""standard"", ""family"": ""a""}, ""networkacls"": {""defaultaction"": ""allow"", ""bypass"": ""azureservices""}}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""name"": ""network"", ""properties"": {""expressionevaluationoptions"": {""scope"": ""inner""}, ""mode"": ""incremental"", ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""vnetipprefix"": {""value"": ""[parameters('vnetipprefix')]""}, ""containerinstancessubnetipprefix"": {""value"": ""[parameters('containerinstancessubnetipprefix')]""}, ""applicationgatewaysubnetipprefix"": {""value"": ""[parameters('applicationgatewaysubnetipprefix')]""}}, ""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"": ""2097233642399514556""}}, ""parameters"": {""location"": {""type"": ""string"", ""metadata"": {""description"": ""the location into which the virtual network resources should be deployed.""}}, ""vnetipprefix"": {""type"": ""string"", ""metadata"": {""description"": ""the ip address prefix (cidr range) to use when deploying the virtual network.""}}, ""containerinstancessubnetipprefix"": {""type"": ""string"", ""metadata"": {""description"": ""the ip address prefix (cidr range) to use when deploying the container group subnet within the virtual network.""}}, ""applicationgatewaysubnetipprefix"": {""type"": ""string"", ""metadata"": {""description"": ""the ip address prefix (cidr range) to use when deploying the application gateway subnet within the virtual network.""}}}, ""variables"": {""vnetname"": ""vnet"", ""containergroupsubnetname"": ""containers"", ""applicationgatewaysubnetname"": ""applicationgateway"", ""nsgname"": ""mynsg""}, ""resources"": [{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('vnetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('vnetipprefix')]""]}, ""subnets"": [{""name"": ""[variables('containergroupsubnetname')]"", ""properties"": {""addressprefix"": ""[parameters('containerinstancessubnetipprefix')]"", ""delegations"": [{""name"": ""delegationservice"", ""properties"": {""servicename"": ""microsoft.containerinstance/containergroups""}}]}}, {""name"": ""[variables('applicationgatewaysubnetname')]"", ""properties"": {""addressprefix"": ""[parameters('applicationgatewaysubnetipprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('nsgname'))]""}}}]}, ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('nsgname'))]""]}, {""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allow_front_door_to_send_http_traffic"", ""properties"": {""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportranges"": [""80"", ""443""], ""sourceaddressprefix"": ""azurefrontdoor.backend"", ""destinationaddressprefix"": ""virtualnetwork"", ""access"": ""allow"", ""priority"": 120, ""direction"": ""inbound""}}, {""name"": ""allow_gwm"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""65200-65535"", ""sourceaddressprefix"": ""gatewaymanager"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}, {""name"": ""allow_azureloadbalancer"", ""properties"": {""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""azureloadbalancer"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 110, ""direction"": ""inbound""}}]}}], ""outputs"": {""vnetname"": {""type"": ""string"", ""value"": ""[variables('vnetname')]""}, ""vnetresourceid"": {""type"": ""string"", ""value"": ""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]""}, ""applicationgatewaysubnetresourceid"": {""type"": ""string"", ""value"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('vnetname'), variables('applicationgatewaysubnetname'))]""}, ""containergroupsubnetresourceid"": {""type"": ""string"", ""value"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('vnetname'), variables('containergroupsubnetname'))]""}}}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/proximityplacementgroups"", ""name"": ""[variables('ppg_name')]"", ""location"": ""[parameters('location')]""} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-04-01"", ""name"": ""[parameters('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""kind"": ""storagev2"", ""sku"": {""name"": ""standard_lrs""}} " +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')]""}}}{""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'))]""}}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('bwafnsgname')]"", ""apiversion"": ""2016-03-30"", ""location"": ""[parameters('location')]"", ""comments"": "" nsg for bwaf subnet"", ""tags"": {""displayname"": ""bwaf nsg"", ""quickstartname"": ""[variables('quickstarttags').name]"", ""provider"": ""[variables('barracudanetworkstags').provider]""}, ""properties"": {""securityrules"": [{""name"": ""http-allow"", ""properties"": {""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""[parameters('remoteallowedcidr')]"", ""destinationaddressprefix"": ""10.0.0.0/24"", ""access"": ""allow"", ""priority"": 110, ""direction"": ""inbound""}}, {""name"": ""https-allow"", ""properties"": {""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""[parameters('remoteallowedcidr')]"", ""destinationaddressprefix"": ""10.0.0.0/24"", ""access"": ""allow"", ""priority"": 120, ""direction"": ""inbound""}}, {""name"": ""adminportal-allow"", ""properties"": {""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""8000"", ""sourceaddressprefix"": ""[parameters('remoteallowedcidr')]"", ""destinationaddressprefix"": ""10.0.0.0/24"", ""access"": ""allow"", ""priority"": 130, ""direction"": ""inbound""}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""name"": ""[parameters('vmname')]"", ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('networkinterfacename'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""osdisk"": {""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('osdisktype')]""}}, ""imagereference"": {""publisher"": ""microsoftvisualstudio"", ""offer"": ""visualstudio2019latest"", ""sku"": ""vs-2019-comm-latest-ws2019"", ""version"": ""latest""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]""}]}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]"", ""windowsconfiguration"": {""enableautomaticupdates"": true, ""provisionvmagent"": true}}}} " +Creates a Key Vault with a list of secrets,"{""type"": ""microsoft.keyvault/vaults"", ""apiversion"": ""2021-04-01-preview"", ""name"": ""[parameters('keyvaultname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""enabledfordeployment"": ""[parameters('enabledfordeployment')]"", ""enabledfortemplatedeployment"": ""[parameters('enabledfortemplatedeployment')]"", ""enabledfordiskencryption"": ""[parameters('enabledfordiskencryption')]"", ""tenantid"": ""[parameters('tenantid')]"", ""accesspolicies"": [{""objectid"": ""[parameters('objectid')]"", ""tenantid"": ""[parameters('tenantid')]"", ""permissions"": {""keys"": ""[parameters('keyspermissions')]"", ""secrets"": ""[parameters('secretspermissions')]""}}], ""sku"": {""name"": ""[parameters('skuname')]"", ""family"": ""a""}, ""networkacls"": {""defaultaction"": ""allow"", ""bypass"": ""azureservices""}}}{""copy"": {""name"": ""secrets"", ""count"": ""[length(parameters('secretsobject').secrets)]""}, ""type"": ""microsoft.keyvault/vaults/secrets"", ""apiversion"": ""2021-04-01-preview"", ""name"": ""[format('{0}/{1}"", parameters('keyvaultname'), parameters('secretsobject').secrets[copyindex()].secretname)]"", ""properties"": {""value"": ""[parameters('secretsobject').secrets[copyindex()].secretvalue]""}, ""dependson"": [""[resourceid('microsoft.keyvault/vaults"", parameters('keyvaultname'))]""]} " +Deploy a Web App with diagnostics logging to Storage Account Blob Container enabled.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.web/serverfarms"", ""name"": ""[parameters('appserviceplanname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('appserviceplanskuname')]""}}{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.web/sites"", ""name"": ""[parameters('webappname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.web/serverfarms"", parameters('appserviceplanname'))]"", ""[resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname'))]""], ""properties"": {""name"": ""[parameters('webappname')]"", ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms/"", parameters('appserviceplanname'))]""}, ""resources"": [{""apiversion"": ""2020-12-01"", ""type"": ""config"", ""name"": ""logs"", ""dependson"": [""[resourceid('microsoft.web/sites"", parameters('webappname'))]""], ""properties"": {""applicationlogs"": {""azureblobstorage"": {""level"": ""[parameters('diagnosticslogslevel')]"", ""sasurl"": ""[concat(reference(resourceid('microsoft.storage/storageaccounts/"", parameters('storageaccountname'))).primaryendpoints.blob, variables('blobcontainername'), ""?"", listaccountsas(parameters('storageaccountname'), ""2018-02-01"", variables('listaccountsasrequestcontent')).accountsastoken)]"", ""retentionindays"": ""[parameters('diagnosticslogsretentionindays')]""}}}}]} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-06-01"", ""name"": ""[variables('diagnosticstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storagev2"", ""tags"": {""displayname"": ""[format('key vault {0} diagnostics storage account"", parameters('keyvaultname'))]""}} " +This template takes deploys a VM by retrieving the password securely from a Key Vault,"{""apiversion"": ""2019-12-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')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('windowsosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage""}, ""datadisks"": [{""disksizegb"": 1023, ""lun"": 0, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(variables('storageaccountname')).primaryendpoints.blob]""}}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('defaultstorageaccount').name]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2021-08-01"", ""sku"": {""name"": ""[variables('defaultstorageaccount').type]""}, ""kind"": ""storage"", ""properties"": {}} " +"Creates an HDInsight cluster in an existing virtual network with a new SQL DB for Ambari+Hive Metastore. You must have an existing SQL Sever, storage account, and VNET.","{""name"": ""[parameters('clustername')]"", ""type"": ""microsoft.hdinsight/clusters"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2018-06-01-preview"", ""dependson"": [""sqldbdeployment""], ""properties"": {""clusterversion"": ""[parameters('clusterversion')]"", ""ostype"": ""linux"", ""clusterdefinition"": {""kind"": ""hadoop"", ""configurations"": {""gateway"": {""restauthcredential.isenabled"": true, ""restauthcredential.username"": ""[parameters('clusterloginusername')]"", ""restauthcredential.password"": ""[parameters('clusterloginpassword')]""}, ""hive-site"": {""javax.jdo.option.connectiondrivername"": ""com.microsoft.sqlserver.jdbc.sqlserverdriver"", ""javax.jdo.option.connectionurl"": ""[concat('jdbc:sqlserver://"", reference(resourceid(parameters('existingsqlserverresourcegroup'), ""microsoft.sql/servers"", parameters('existingsqlservername')), ""2020-02-02-preview').fullyqualifieddomainname, "";database="",parameters('newmetastoredbname'),"";encrypt=true;trustservercertificate=true;create=false;logintimeout=300')]"", ""javax.jdo.option.connectionusername"": ""[parameters('existingsqlserverusername')]"", ""javax.jdo.option.connectionpassword"": ""[parameters('existingsqlserverpassword')]""}, ""hive-env"": {""hive_database"": ""existing mssql server database with sql authentication"", ""hive_database_name"": ""[parameters('newmetastoredbname')]"", ""hive_database_type"": ""mssql"", ""hive_existing_mssql_server_database"": ""[parameters('newmetastoredbname')]"", ""hive_existing_mssql_server_host"": ""[reference(resourceid(parameters('existingsqlserverresourcegroup'),""microsoft.sql/servers"",parameters('existingsqlservername')), ""2020-02-02-preview').fullyqualifieddomainname]"", ""hive_hostname"": ""[reference(resourceid(parameters('existingsqlserverresourcegroup'),""microsoft.sql/servers"",parameters('existingsqlservername')), ""2020-02-02-preview').fullyqualifieddomainname]""}, ""ambari-conf"": {""database-server"": ""[reference(resourceid(parameters('existingsqlserverresourcegroup'),""microsoft.sql/servers"",parameters('existingsqlservername')), ""2020-02-02-preview').fullyqualifieddomainname]"", ""database-name"": ""[parameters('newmetastoredbname')]"", ""database-user-name"": ""[parameters('existingsqlserverusername')]"", ""database-user-password"": ""[parameters('existingsqlserverpassword')]""}}}, ""storageprofile"": {""storageaccounts"": [{""name"": ""[replace(replace(reference(resourceid(parameters('existingclusterstorageresourcegroup'), ""microsoft.storage/storageaccounts/"", parameters('existingclusterstorageaccountname')), ""2021-04-01').primaryendpoints.blob,""https:"",""'),""/"",""')]"", ""isdefault"": true, ""container"": ""[parameters('neworexistingclusterstoragecontainername')]"", ""key"": ""[listkeys(resourceid(parameters('existingclusterstorageresourcegroup'), ""microsoft.storage/storageaccounts"", parameters('existingclusterstorageaccountname')), ""2021-04-01').keys[0].value]""}]}, ""computeprofile"": {""roles"": [{""name"": ""headnode"", ""targetinstancecount"": 2, ""hardwareprofile"": {""vmsize"": ""[parameters('headnodevirtualmachinesize')]""}, ""osprofile"": {""linuxoperatingsystemprofile"": {""username"": ""[parameters('sshusername')]"", ""password"": ""[parameters('sshpassword')]""}}, ""virtualnetworkprofile"": {""id"": ""[resourceid(parameters('existingvirtualnetworkresourcegroup'), ""microsoft.network/virtualnetworks"", parameters('existingvirtualnetworkname'))]"", ""subnet"": ""[resourceid(parameters('existingvirtualnetworkresourcegroup'), ""microsoft.network/virtualnetworks/subnets"", parameters('existingvirtualnetworkname'), parameters('existingvirtualnetworksubnetname'))]""}}, {""name"": ""workernode"", ""targetinstancecount"": ""[parameters('workernodecount')]"", ""hardwareprofile"": {""vmsize"": ""[parameters('workernodevirtualmachinesize')]""}, ""osprofile"": {""linuxoperatingsystemprofile"": {""username"": ""[parameters('sshusername')]"", ""password"": ""[parameters('sshpassword')]""}}, ""virtualnetworkprofile"": {""id"": ""[resourceid(parameters('existingvirtualnetworkresourcegroup'), ""microsoft.network/virtualnetworks"", parameters('existingvirtualnetworkname'))]"", ""subnet"": ""[resourceid(parameters('existingvirtualnetworkresourcegroup'), ""microsoft.network/virtualnetworks/subnets"", parameters('existingvirtualnetworkname'), parameters('existingvirtualnetworksubnetname'))]""}}]}}} " +This template configures WAF client IP restriction for Azure Front Door endpoint,"{""apiversion"": ""2019-03-01"", ""type"": ""microsoft.network/frontdoorwebapplicationfirewallpolicies"", ""name"": ""[parameters('wafpolicyname')]"", ""location"": ""[variables('waflocation')]"", ""properties"": {""policysettings"": {""mode"": ""[parameters('wafmode')]"", ""enabledstate"": ""enabled""}, ""customrules"": {""rules"": [{""name"": ""rule1"", ""priority"": 1, ""enabledstate"": ""enabled"", ""ruletype"": ""matchrule"", ""matchconditions"": [{""matchvariable"": ""remoteaddr"", ""operator"": ""ipmatch"", ""matchvalue"": [""[parameters('ipmatch')]""]}], ""action"": ""[parameters('ipfilteringaction')]""}]}}} " +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')]""}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmnamers')]"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""rsmachine""}, ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('vhdstoragenamers'))]"", ""[resourceid('microsoft.storage/storageaccounts/"", variables('diagnosticsstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"",concat(variables('nicname')))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[variables('vmsizers')]""}, ""osprofile"": {""computername"": ""[variables('vmnamers')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('sqlimagepublisher')]"", ""offer"": ""[variables('vmimageofferrs')]"", ""sku"": ""[variables('sqlimagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmnamers'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""lun"": 0, ""name"": ""[concat(variables('vmnamers'),""_datadisk1')]"", ""createoption"": ""empty"", ""caching"": ""readonly"", ""disksizegb"": ""1023""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""}]}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts/"", variables('diagnosticsstorageaccountname'))).primaryendpoints.blob]""}}}, ""resources"": [{""name"": ""microsoft.insights.vmdiagnosticssettings"", ""type"": ""extensions"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2021-07-01"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmnamers'))]""], ""tags"": {""displayname"": ""diagnostics""}, ""properties"": {""publisher"": ""microsoft.azure.diagnostics"", ""type"": ""iaasdiagnostics"", ""typehandlerversion"": ""1.5"", ""autoupgrademinorversion"": true, ""settings"": {""xmlcfg"": ""[base64(concat(variables('wadcfgxstart'), variables('wadmetricsresourceid'), variables('vmnamers'), variables('wadcfgxend')))]"", ""storageaccount"": ""[variables('diagnosticsstorageaccountname')]""}, ""protectedsettings"": {""storageaccountname"": ""[variables('diagnosticsstorageaccountname')]"", ""storageaccountkey"": ""[listkeys(variables('accountid'), ""2015-06-15').key1]"", ""storageaccountendpoint"": ""[environment().suffixes.storage]""}}}, {""name"": ""ssrsconfiguration"", ""type"": ""extensions"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2021-07-01"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmnamers'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions"", variables('vmnamecatalog'), ""sqlconfigurationmixedauth')]""], ""tags"": {""displayname"": ""ssrsconfiguration""}, ""properties"": {""publisher"": ""microsoft.powershell"", ""type"": ""dsc"", ""typehandlerversion"": ""2.19"", ""autoupgrademinorversion"": true, ""settings"": {""modulesurl"": ""[variables('sqlmoduleurl')]"", ""configurationfunction"": ""[variables('rsconfigurationconfigurationfunction')]"", ""properties"": {""sqlsaadminauthcreds"": {""username"": ""[parameters('dbsausername')]"", ""password"": ""privatesettingsref:sapassword""}, ""catalogmachine"": ""[reference(variables('catalogpublicipid'),""2015-06-15').dnssettings.fqdn]""}}, ""protectedsettings"": {""items"": {""sapassword"": ""[parameters('dbsauserpassword')]""}}}}]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat(parameters('projectname'),""-vm"", copyindex(1), ""/"", ""installwebserver')]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""extensioncopy"", ""count"": 3}, ""dependson"": [""vmcopy""], ""properties"": {""publisher"": ""microsoft.compute"", ""type"": ""customscriptextension"", ""typehandlerversion"": ""1.7"", ""autoupgrademinorversion"": true, ""settings"": {""commandtoexecute"": ""powershell.exe install-windowsfeature -name web-server -includemanagementtools && powershell.exe remove-item ""c:\\inetpub\\wwwroot\\iisstart.htm"" && powershell.exe add-content -path ""c:\\inetpub\\wwwroot\\iisstart.htm"" -value $('hello world from "" + $env:computername)""}}} " +Create unbounded Logic Apps timer jobs,"{""name"": ""[parameters('createtimerjoblogicappname')]"", ""type"": ""microsoft.logic/workflows"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""logicapp""}, ""apiversion"": ""2019-05-01"", ""dependson"": [""[resourceid('microsoft.logic/workflows"", parameters('timerjoblogicappname'))]""], ""properties"": {""state"": ""enabled"", ""definition"": {""$schema"": ""https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#"", ""contentversion"": ""1.0.0.0"", ""triggers"": {""manual"": {""correlation"": {""clienttrackingid"": ""@triggerbody()[""timerjobid""]""}, ""type"": ""request"", ""kind"": ""http"", ""inputs"": {""schema"": {""properties"": {""jobrecurrence"": {""properties"": {""count"": {""minimum"": -1, ""title"": ""count (jobrecurrence)"", ""type"": ""integer""}, ""endtime"": {""title"": ""endtime (jobrecurrence)"", ""type"": ""string""}, ""frequency"": {""enum"": [""second"", ""minute"", ""hour"", ""day"", ""week"", ""month""], ""title"": ""frequency (jobrecurrence)"", ""type"": ""string""}, ""interval"": {""title"": ""interval (jobrecurrence)"", ""type"": ""integer""}}, ""required"": [""frequency"", ""interval""], ""type"": ""object""}, ""jobstatus"": {""properties"": {""executioncount"": {""title"": ""executioncount (jobstatus)"", ""type"": ""integer""}, ""faultedcount"": {""title"": ""faultedcount (jobstatus)"", ""type"": ""integer""}, ""lastexecutiontime"": {""title"": ""lastexecutiontime (jobstatus)"", ""type"": ""string""}, ""nextexecutiontime"": {""title"": ""nextexecutiontime (jobstatus)"", ""type"": ""string""}}, ""type"": ""object""}, ""starttime"": {""type"": ""string""}, ""timerjobid"": {""type"": ""string""}}, ""required"": [""jobrecurrence"", ""timerjobid""], ""type"": ""object""}}}}, ""actions"": {""if_not_past_endtime_or_exceeds_count"": {""actions"": {""catch_timerjob_error"": {""actions"": {""terminate_failed_to_create_job"": {""runafter"": {""timer_job_failed_response"": [""succeeded""]}, ""type"": ""terminate"", ""inputs"": {""runerror"": {""message"": ""failed to create timer job""}, ""runstatus"": ""failed""}}, ""timer_job_failed_response"": {""type"": ""response"", ""kind"": ""http"", ""inputs"": {""body"": ""failed to create timer job"", ""statuscode"": 400}}}, ""runafter"": {""timerjob"": [""failed"", ""timedout""]}, ""type"": ""scope""}, ""created_response"": {""runafter"": {""timerjob"": [""succeeded""]}, ""type"": ""response"", ""kind"": ""http"", ""inputs"": {""body"": ""next execution time will be at @{variables('nexttime')}"", ""statuscode"": 201}}, ""timerjob"": {""type"": ""workflow"", ""inputs"": {""body"": {""jobrecurrence"": {""count"": ""@triggerbody()?[""jobrecurrence""]?[""count""]"", ""endtime"": ""@triggerbody()?[""jobrecurrence""]?[""endtime""]"", ""frequency"": ""@triggerbody()?[""jobrecurrence""]?[""frequency""]"", ""interval"": ""@triggerbody()?[""jobrecurrence""]?[""interval""]""}, ""jobstatus"": {""executioncount"": ""@triggerbody()?[""jobstatus""]?[""executioncount""]"", ""faultedcount"": ""@triggerbody()?[""jobstatus""]?[""faultedcount""]"", ""lastexecutiontime"": ""@triggerbody()?[""jobstatus""]?[""lastexecutiontime""]"", ""nextexecutiontime"": ""@variables('nexttime')""}, ""starttime"": ""@triggerbody()?[""starttime""]"", ""timerjobid"": ""@triggerbody()[""timerjobid""]""}, ""host"": {""triggername"": ""manual"", ""workflow"": {""id"": ""[resourceid('microsoft.logic/workflows"",parameters('timerjoblogicappname'))]""}}}}}, ""runafter"": {""initialize_nexttime"": [""succeeded""]}, ""else"": {""actions"": {""cancelled"": {""runafter"": {""exceeded_criteria_response"": [""succeeded""]}, ""type"": ""terminate"", ""inputs"": {""runstatus"": ""cancelled""}}, ""exceeded_criteria_response"": {""type"": ""response"", ""kind"": ""http"", ""inputs"": {""body"": ""job completion criteria met.\ndetails: \neither\nendtime(@{triggerbody()?[""jobrecurrence""]?[""endtime""]}) < next execution time(@{variables('nexttime')})\nor\ncount(@{triggerbody()?[""jobrecurrence""]?[""count""]}) > execution count (@{triggerbody()?[""jobstatus""]?[""executioncount""]})"", ""statuscode"": 409}}}}, ""expression"": {""and"": [{""or"": [{""equals"": [""@coalesce(triggerbody()?[""jobrecurrence""]?[""endtime""],-1)"", -1]}, {""less"": [""@variables('nexttime')"", ""@{triggerbody()?[""jobrecurrence""]?[""endtime""]}""]}]}, {""or"": [{""equals"": [""@coalesce(triggerbody()?[""jobrecurrence""]?[""count""],-1)"", -1]}, {""greater"": [""@coalesce(triggerbody()?[""jobrecurrence""]?[""count""],1)"", ""@coalesce(triggerbody()?[""jobstatus""]?[""executioncount""],0)""]}]}]}, ""type"": ""if""}, ""initialize_nexttime"": {""runafter"": {""initialize_starttime"": [""succeeded""]}, ""type"": ""initializevariable"", ""inputs"": {""variables"": [{""name"": ""nexttime"", ""type"": ""string"", ""value"": ""@{addtotime(coalesce(triggerbody()?[""jobstatus""]?[""lastexecutiontime""],variables('starttime')),triggerbody()[""jobrecurrence""][""interval""],triggerbody()[""jobrecurrence""][""frequency""])}""}]}}, ""initialize_starttime"": {""type"": ""initializevariable"", ""inputs"": {""variables"": [{""name"": ""starttime"", ""type"": ""string"", ""value"": ""@{if(less(coalesce(triggerbody()?[""starttime""],utcnow()),utcnow()),utcnow(),coalesce(triggerbody()?[""starttime""],utcnow()))}""}]}}}}}}{""name"": ""[parameters('timerjoblogicappname')]"", ""type"": ""microsoft.logic/workflows"", ""location"": ""[parameters('location')]"", ""tags"": {""displayname"": ""logicapp""}, ""apiversion"": ""2019-05-01"", ""properties"": {""state"": ""enabled"", ""definition"": {""$schema"": ""https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#"", ""contentversion"": ""1.0.0.0"", ""triggers"": {""manual"": {""correlation"": {""clienttrackingid"": ""@triggerbody()[""timerjobid""]""}, ""type"": ""request"", ""kind"": ""http"", ""inputs"": {""schema"": {""properties"": {""jobrecurrence"": {""properties"": {""count"": {""minimum"": -1, ""title"": ""count (jobrecurrence)"", ""type"": ""integer""}, ""endtime"": {""title"": ""endtime (jobrecurrence)"", ""type"": ""string""}, ""frequency"": {""enum"": [""second"", ""minute"", ""hour"", ""day"", ""week"", ""month""], ""title"": ""frequency (jobrecurrence)"", ""type"": ""string""}, ""interval"": {""title"": ""interval (jobrecurrence)"", ""type"": ""integer""}}, ""required"": [""frequency"", ""interval""], ""type"": ""object""}, ""jobstatus"": {""properties"": {""executioncount"": {""title"": ""executioncount (jobstatus)"", ""type"": ""integer""}, ""faultedcount"": {""title"": ""faultedcount (jobstatus)"", ""type"": ""integer""}, ""lastexecutiontime"": {""title"": ""lastexecutiontime (jobstatus)"", ""type"": ""string""}, ""nextexecutiontime"": {""title"": ""nextexecutiontime (jobstatus)"", ""type"": ""string""}}, ""required"": [""nextexecutiontime""], ""type"": ""object""}, ""starttime"": {""type"": ""string""}, ""timerjobid"": {""type"": ""string""}}, ""required"": [""timerjobid"", ""jobrecurrence"", ""jobstatus""], ""type"": ""object""}}}}}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetname')]"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 5}}{""apiversion"": ""2019-12-01"", ""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'))]"", ""[resourceid('microsoft.compute/virtualmachines/extensions"", concat(variables('vmname'),""db'),""newuserscript')]""], ""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(variables('vmname'),copyindex(),""/newuserscript')]"", ""apiversion"": ""2019-12-01"", ""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"": [""[variables('installfrontendscripturi')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat(variables('installfrontendcommand'), "" "",listkeys(resourceid('microsoft.storage/storageaccounts"", variables('newstorageaccountname')), ""2016-01-01').keys[0].value, "" "",reference(resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname')),""2015-06-15').dnssettings.fqdn, "" "",reference(resourceid('microsoft.network/publicipaddresses"",variables('publicdbipaddressname')),""2015-06-15').dnssettings.fqdn, "" "",parameters('fullnameofsite'), "" "",parameters('shortnameofsite'), "" "",parameters('iomadadminusername'), "" "",parameters('iomadadminpassword'), "" "",parameters('iomadadminemail'))]""}}, ""copy"": {""name"": ""extensionscopy"", ""count"": ""[parameters('webvmcount')]""}}{""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[concat(variables('availabilitysetname'),""db')]"", ""apiversion"": ""2019-12-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 5}}{""apiversion"": ""2019-12-01"", ""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('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(variables('vmname'),""db"",""/newuserscript')]"", ""apiversion"": ""2019-12-01"", ""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"": [""[variables('installbackendscripturi')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat(variables('installbackendcommand'), "" "",listkeys(resourceid('microsoft.storage/storageaccounts"", variables('newstorageaccountname')), ""2016-01-01').keys[0].value)]""}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[concat(variables('storageaccountname'), copyindex())]"", ""apiversion"": ""2021-02-01"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""storageloop"", ""count"": ""[parameters('agentvmcount')]""}, ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storage"", ""properties"": {}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""10.0.0.0/16""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""10.0.2.0/24""}}]}}{""type"": ""microsoft.network/networkinterfaces"", ""apiversion"": ""2020-06-01"", ""name"": ""[concat(variables('networkinterfacename'), copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicloop"", ""count"": ""[variables('numberofinstances')]""}, ""dependson"": [""[variables('virtualnetworkname')]"", ""[variables('loadbalancername')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('subnetref')]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('loadbalancername'), ""backendpool1')]""}]}}]}}{""type"": ""microsoft.network/loadbalancers"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('loadbalancername')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""dependson"": [""[variables('virtualnetworkname')]""], ""properties"": {""frontendipconfigurations"": [{""properties"": {""subnet"": {""id"": ""[variables('subnetref')]""}, ""privateipaddress"": ""10.0.2.6"", ""privateipallocationmethod"": ""static""}, ""name"": ""loadbalancerfrontend""}], ""backendaddresspools"": [{""name"": ""backendpool1""}], ""loadbalancingrules"": [{""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", variables('loadbalancername'), ""loadbalancerfrontend')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('loadbalancername'), ""backendpool1')]""}, ""probe"": {""id"": ""[resourceid('microsoft.network/loadbalancers/probes"", variables('loadbalancername'), ""lbprobe')]""}, ""protocol"": ""tcp"", ""frontendport"": 80, ""backendport"": 80, ""idletimeoutinminutes"": 15}, ""name"": ""lbrule""}], ""probes"": [{""properties"": {""protocol"": ""tcp"", ""port"": 80, ""intervalinseconds"": 15, ""numberofprobes"": 2}, ""name"": ""lbprobe""}]}} " +This template adds and secures a custom domain to your Front Door with a customer-managed certificate.,"{""type"": ""microsoft.network/frontdoors"", ""apiversion"": ""2020-01-01"", ""name"": ""[parameters('frontdoorname')]"", ""location"": ""global"", ""properties"": {""enabledstate"": ""enabled"", ""frontendendpoints"": [{""name"": ""[variables('frontendendpointdefaultname')]"", ""properties"": {""hostname"": ""[variables('frontendendpointdefaulthostname')]"", ""sessionaffinityenabledstate"": ""disabled""}}, {""name"": ""[variables('frontendendpointcustomname')]"", ""properties"": {""hostname"": ""[parameters('customdomainname')]"", ""sessionaffinityenabledstate"": ""disabled""}}], ""loadbalancingsettings"": [{""name"": ""[variables('loadbalancingsettingsname')]"", ""properties"": {""samplesize"": 4, ""successfulsamplesrequired"": 2}}], ""healthprobesettings"": [{""name"": ""[variables('healthprobesettingsname')]"", ""properties"": {""path"": ""/"", ""protocol"": ""http"", ""intervalinseconds"": 120}}], ""backendpools"": [{""name"": ""[variables('backendpoolname')]"", ""properties"": {""backends"": [{""address"": ""[parameters('backendaddress')]"", ""backendhostheader"": ""[parameters('backendaddress')]"", ""httpport"": 80, ""httpsport"": 443, ""weight"": 50, ""priority"": 1, ""enabledstate"": ""enabled""}], ""loadbalancingsettings"": {""id"": ""[resourceid('microsoft.network/frontdoors/loadbalancingsettings"", parameters('frontdoorname'), variables('loadbalancingsettingsname'))]""}, ""healthprobesettings"": {""id"": ""[resourceid('microsoft.network/frontdoors/healthprobesettings"", parameters('frontdoorname'), variables('healthprobesettingsname'))]""}}}], ""routingrules"": [{""name"": ""[variables('routingrulename')]"", ""properties"": {""frontendendpoints"": [{""id"": ""[resourceid('microsoft.network/frontdoors/frontendendpoints"", parameters('frontdoorname'), variables('frontendendpointdefaultname'))]""}, {""id"": ""[resourceid('microsoft.network/frontdoors/frontendendpoints"", parameters('frontdoorname'), variables('frontendendpointcustomname'))]""}], ""acceptedprotocols"": [""http"", ""https""], ""patternstomatch"": [""/*""], ""routeconfiguration"": {""@odata.type"": ""#microsoft.azure.frontdoor.models.frontdoorforwardingconfiguration"", ""forwardingprotocol"": ""matchrequest"", ""backendpool"": {""id"": ""[resourceid('microsoft.network/frontdoors/backendpools"", parameters('frontdoorname'), variables('backendpoolname'))]""}}, ""enabledstate"": ""enabled""}}]}}{""type"": ""microsoft.network/frontdoors/frontendendpoints/customhttpsconfiguration"", ""apiversion"": ""2020-07-01"", ""name"": ""[format('{0}/{1}/{2}"", parameters('frontdoorname'), variables('frontendendpointcustomname'), ""default')]"", ""properties"": {""protocoltype"": ""servernameindication"", ""certificatesource"": ""azurekeyvault"", ""keyvaultcertificatesourceparameters"": {""vault"": {""id"": ""[parameters('certificatekeyvaultresourceid')]""}, ""secretname"": ""[parameters('certificatekeyvaultsecretname')]"", ""secretversion"": ""[if(equals(parameters('certificatekeyvaultsecretversion'), ""'), null(), parameters('certificatekeyvaultsecretversion'))]""}, ""minimumtlsversion"": ""1.2""}, ""dependson"": [""[resourceid('microsoft.network/frontdoors"", parameters('frontdoorname'))]""]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/availabilitysets"", ""name"": ""[variables('availabilitysetname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": ""[variables('platformfaultdomaincount')]"", ""platformupdatedomaincount"": ""[variables('platformupdatedomaincount')]""}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(parameters('dnslabelforvmip'), copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""virtualmachineloop"", ""count"": ""[variables('numberofinstances')]""}, ""dependson"": [""[concat('microsoft.network/networkinterfaces/"", concat(parameters('vmandloadbalancerexposure'),variables('nicname'), copyindex()))]"", ""[concat('microsoft.compute/availabilitysets/"", variables('availabilitysetname'))]""], ""properties"": {""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", variables('availabilitysetname'))]""}, ""hardwareprofile"": {""vmsize"": ""[if(equals(copyindex(), variables('monitornodeindex')), parameters('monitornodevmsize'), parameters('messageroutingnodevmsize'))]""}, ""osprofile"": {""computername"": ""[concat(parameters('dnslabelforvmip'), copyindex())]"", ""adminusername"": ""[parameters('vmadminusername')]"", ""adminpassword"": ""[parameters('vmadminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('centosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('dnslabelforvmip'), copyindex(), ""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": ""[variables('datadiskschoices')[if(or(equals(parameters('datadisksize'), ""0'), equals(copyindex(), variables('monitornodeindex'))), ""2"", string(copyindex()))]]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(parameters('vmandloadbalancerexposure'),variables('nicname'), copyindex()))]""}]}}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('dnslabelforvmip'), copyindex(), ""/dockerextension')]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""dockerloop"", ""count"": ""[variables('numberofinstances')]""}, ""dependson"": [""[concat('microsoft.compute/virtualmachines/"", parameters('dnslabelforvmip'), copyindex())]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""dockerextension"", ""typehandlerversion"": ""1.0"", ""autoupgrademinorversion"": true, ""settings"": {}}}{""condition"": ""[not(empty(parameters('workspacename')))]"", ""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('dnslabelforvmip'), copyindex(), ""/omsagentextension')]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""omsagentloop"", ""count"": ""[variables('numberofinstances')]""}, ""dependson"": [""[concat('microsoft.compute/virtualmachines/"", parameters('dnslabelforvmip'), copyindex(), ""/extensions/dockerextension')]"", ""[concat('microsoft.resources/deployments/"", variables('solaceworkspacename'))]""], ""properties"": {""publisher"": ""microsoft.enterprisecloud.monitoring"", ""type"": ""omsagentforlinux"", ""typehandlerversion"": ""1.4"", ""settings"": {""workspaceid"": ""[if(empty(parameters('workspacename')), """", reference(variables('solaceworkspacename')).outputs.workspaceid.value)]""}, ""protectedsettings"": {""workspacekey"": ""[if(empty(parameters('workspacename')), """", reference(variables('solaceworkspacename')).outputs.workspacekey.value)]""}}}{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('dnslabelforvmip'), copyindex(), ""/configuresolacecontainer')]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""solaceloop"", ""count"": ""[variables('numberofinstances')]""}, ""dependson"": [""[if(empty(parameters('workspacename')), concat('microsoft.compute/virtualmachines/"", parameters('dnslabelforvmip'), copyindex(), ""/extensions/dockerextension'), concat('microsoft.compute/virtualmachines/"", parameters('dnslabelforvmip'), copyindex(), ""/extensions/omsagentextension'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('solaceinstallscriptfileuri')]"", ""[variables('sempqueryscriptfileuri')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('mkdir -p -m 770 "", variables('adminpassworddir'), ""; echo "", parameters('solaceadminpassword'), "" > "", variables('adminpasswordfile'), ""; bash "", variables('solaceinstallscriptname'), "" -c "", copyindex(), "" -d "", parameters('dnslabelforvmip'), "" -i "", variables('numberofinstances'), "" -p "", variables('adminpasswordfile'), "" -n "", parameters('maxnumberofclientconnections'), "" -q "", parameters('maxnumberofqueuemessages'), "" -s "", if(equals(copyindex(), variables('monitornodeindex')), ""0"", parameters('datadisksize')), if(empty(parameters('workspacename')), """", concat(' -w "", reference(variables('solaceworkspacename')).outputs.workspaceid.value)), "" -u "", parameters('brokerdockerimagereference'))]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-3389"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""3389"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-05-01-preview"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat('niczoo"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicloop"", ""count"": ""[variables('numberofzookeeperinstances')]""}, ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared-resources')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[concat(parameters('kafkazoonodeipaddressprefix'), copyindex())]"", ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}}{""apiversion"": ""2015-05-01-preview"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[concat('nic"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""nicloop"", ""count"": ""[variables('numberofkafkainstances')]""}, ""dependson"": [""[resourceid('microsoft.resources/deployments/"", ""shared-resources')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""static"", ""privateipaddress"": ""[concat(parameters('kafkanodeipaddressprefix'), copyindex())]"", ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +This template disables encryption on a running Windows VM Scale Set,"{""type"": ""microsoft.compute/virtualmachinescalesets/extensions"", ""name"": ""[concat(parameters('vmssname'),""/"", ""azurediskencryption')]"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-12-01"", ""properties"": {""publisher"": ""microsoft.azure.security"", ""type"": ""azurediskencryption"", ""typehandlerversion"": ""2.2"", ""autoupgrademinorversion"": true, ""forceupdatetag"": ""[parameters('forceupdatetag')]"", ""settings"": {""encryptionoperation"": ""disableencryption"", ""volumetype"": ""[parameters('volumetype')]""}}} " +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]""}} " +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""} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""mysql"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2020-10-01"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[uri(parameters('_artifactslocation'), concat('nested/mysql-replication.json"", parameters('_artifactslocationsastoken')))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""location"": {""value"": ""[parameters('location')]""}, ""dnsname"": {""value"": ""[parameters('dnsname')]""}, ""vmusername"": {""value"": ""[parameters('vmusername')]""}, ""mysqlrootpassword"": {""value"": ""[parameters('mysqlrootpassword')]""}, ""mysqlreplicationpassword"": {""value"": ""[parameters('mysqlreplicationpassword')]""}, ""mysqlprobepassword"": {""value"": ""[parameters('mysqlprobepassword')]""}, ""vmsize"": {""value"": ""[parameters('vmsize')]""}, ""virtualnetworkname"": {""value"": ""[parameters('virtualnetworkname')]""}, ""vnetneworexisting"": {""value"": ""[parameters('vnetneworexisting')]""}, ""dbsubnetname"": {""value"": ""[parameters('dbsubnetname')]""}, ""vnetaddressprefix"": {""value"": ""[parameters('vnetaddressprefix')]""}, ""dbsubnetaddressprefix"": {""value"": ""[parameters('dbsubnetaddressprefix')]""}, ""dbsubnetstartaddress"": {""value"": ""[parameters('dbsubnetstartaddress')]""}, ""imagepublisher"": {""value"": ""[parameters('imagepublisher')]""}, ""imageoffer"": {""value"": ""[parameters('imageoffer')]""}, ""imagesku"": {""value"": ""[parameters('imagesku')]""}, ""mysqlfrontendport0"": {""value"": ""[parameters('mysqlfrontendport0')]""}, ""mysqlfrontendport1"": {""value"": ""[parameters('mysqlfrontendport1')]""}, ""sshnatrulefrontendport0"": {""value"": ""[parameters('sshnatrulefrontendport0')]""}, ""sshnatrulefrontendport1"": {""value"": ""[parameters('sshnatrulefrontendport1')]""}, ""mysqlprobeport0"": {""value"": ""[parameters('mysqlprobeport0')]""}, ""mysqlprobeport1"": {""value"": ""[parameters('mysqlprobeport1')]""}, ""publicipname"": {""value"": ""[parameters('publicipname')]""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}, ""_artifactslocation"": {""value"": ""[parameters('_artifactslocation')]""}, ""_artifactslocationsastoken"": {""value"": ""[parameters('_artifactslocationsastoken')]""}}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-12-01"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('networkinterfacename'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""storageprofile"": {""osdisk"": {""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[variables('osdisktype')]""}}, ""imagereference"": {""publisher"": ""canonical"", ""offer"": ""ubuntuserver"", ""sku"": ""18.04-lts"", ""version"": ""latest""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]""}]}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminkey')]"", ""linuxconfiguration"": {""disablepasswordauthentication"": true, ""ssh"": {""publickeys"": [{""path"": ""[concat('/home/"", parameters('adminusername'), ""/.ssh/authorized_keys')]"", ""keydata"": ""[parameters('adminkey')]""}]}}}}} " +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('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[parameters('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-11-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('vmnsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""ssh"", ""properties"": {""description"": ""allows ssh traffic"", ""protocol"": ""tcp"", ""sourceportrange"": ""22"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}}{""apiversion"": ""2020-11-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('vmpipname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""static""}} " +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/publicipprefixes"", ""apiversion"": ""2021-02-01"", ""name"": ""[variables('publicipprefixname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard"", ""tier"": ""regional""}, ""properties"": {""prefixlength"": ""[parameters('publicipprefixlength')]"", ""publicipaddressversion"": ""ipv4""}}{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2021-02-01"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard"", ""tier"": ""regional""}, ""properties"": {""publicipallocationmethod"": ""static"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsname')]""}}}{""type"": ""microsoft.network/loadbalancers"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('loadbalancername')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""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'))]""]} " +Enable Azure Sentinel,"{""name"": ""[variables('omssolutions').customsolution.solutionname]"", ""type"": ""microsoft.operationsmanagement/solutions"", ""apiversion"": ""2015-11-01-preview"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.operationalinsights/workspaces/"", parameters('omsworkspacename'))]"", ""[resourceid('microsoft.operationalinsights/workspaces/views"", parameters('omsworkspacename'), variables('omssolutions').customsolution.name)]"", ""[resourceid('microsoft.automation/automationaccounts/schedules"", parameters('omsautomationaccountname'), variables('assets').runbooks.schedulerunbook.ingestschedulename)]""], ""plan"": {""name"": ""[variables('omssolutions').customsolution.solutionname]"", ""product"": ""[variables('omssolutions').customsolution.name]"", ""publisher"": ""[variables('omssolutions').customsolution.publisher]"", ""promotioncode"": """"}, ""properties"": {""workspaceresourceid"": ""[resourceid('microsoft.operationalinsights/workspaces/"", parameters('omsworkspacename'))]"", ""referencedresources"": [""[resourceid('microsoft.automation/automationaccounts/variables/"", parameters('omsautomationaccountname'), variables('assets').aavariables.azuresubscriptionid.name)]"", ""[resourceid('microsoft.automation/automationaccounts/variables/"", parameters('omsautomationaccountname'), variables('assets').aavariables.omsworkspaceid.name)]"", ""[resourceid('microsoft.automation/automationaccounts/variables/"", parameters('omsautomationaccountname'), variables('assets').aavariables.omsworkspacekey.name)]""], ""containedresources"": [""[resourceid('microsoft.operationalinsights/workspaces/views/"", parameters('omsworkspacename'), variables('omssolutions').customsolution.name)]""]}} " +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('dnsnameforpublicip')]""}}}{""comments"": ""simple network security group for subnet [variables('subnetname')]"", ""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2019-08-01"", ""name"": ""[variables('networksecuritygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""default-allow-22"", ""properties"": {""priority"": 1000, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('addressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", variables('networksecuritygroupname'))]""}}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses/"", variables('publicipaddressname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetref')]""}}}]}} " +This template creates an Azure storage account and multiple file shares.,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-04-01"", ""name"": ""[parameters('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""kind"": ""storagev2"", ""sku"": {""name"": ""standard_lrs""}, ""properties"": {""accesstier"": ""hot""}}{""copy"": {""name"": ""fileshares"", ""count"": ""[length(range(0, parameters('sharecopy')))]""}, ""type"": ""microsoft.storage/storageaccounts/fileservices/shares"", ""apiversion"": ""2021-04-01"", ""name"": ""[format('{0}/default/{1}{2}"", parameters('storageaccountname'), parameters('shareprefix'), range(0, parameters('sharecopy'))[copyindex()])]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname'))]""]} " +"This template deploys a Service Bus namespace, a topic, and a subscription.","{""apiversion"": ""2018-01-01-preview"", ""name"": ""[parameters('service_busnamespace_name')]"", ""type"": ""microsoft.servicebus/namespaces"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""properties"": {}, ""resources"": [{""apiversion"": ""2017-04-01"", ""name"": ""[parameters('servicebustopicname')]"", ""type"": ""topics"", ""dependson"": [""[resourceid('microsoft.servicebus/namespaces/"", parameters('service_busnamespace_name'))]""], ""properties"": {""defaultmessagetimetolive"": ""p10675199dt2h48m5.4775807s"", ""maxsizeinmegabytes"": 1024, ""requiresduplicatedetection"": false, ""duplicatedetectionhistorytimewindow"": ""pt10m"", ""enablebatchedoperations"": false, ""supportordering"": false, ""autodeleteonidle"": ""p10675199dt2h48m5.4775807s"", ""enablepartitioning"": false, ""enableexpress"": false}, ""resources"": [{""apiversion"": ""2017-04-01"", ""name"": ""[parameters('servicebussubscriptionname')]"", ""type"": ""subscriptions"", ""dependson"": [""[parameters('servicebustopicname')]""], ""properties"": {""lockduration"": ""pt1m"", ""requiressession"": false, ""defaultmessagetimetolive"": ""p10675199dt2h48m5.4775807s"", ""deadletteringonmessageexpiration"": false, ""maxdeliverycount"": 10, ""enablebatchedoperations"": false, ""autodeleteonidle"": ""p10675199dt2h48m5.4775807s""}}]}]} " +Provision a Mobile App with a SQL Database,"{""type"": ""microsoft.web/serverfarms"", ""apiversion"": ""2019-08-01"", ""name"": ""[variables('hostingplanname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('hostingplansettings').skuname]"", ""tier"": ""[parameters('hostingplansettings').tier]"", ""capacity"": ""[parameters('hostingplansettings').capacity]""}, ""properties"": {""numberofworkers"": 1}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.web/sites"", ""name"": ""[variables('uniqueappname')]"", ""location"": ""[parameters('location')]"", ""kind"": ""mobileapp"", ""properties"": {""name"": ""[variables('uniqueappname')]"", ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms"", variables('hostingplanname'))]""}, ""dependson"": [""[variables('hostingplanname')]""], ""resources"": [{""apiversion"": ""2019-08-01"", ""name"": ""appsettings"", ""type"": ""config"", ""dependson"": [""[variables('uniqueappname')]""], ""properties"": {""ms_mobileservicename"": ""[variables('uniqueappname')]"", ""ms_notificationhubname"": ""[variables('notificationhubname')]""}}, {""apiversion"": ""2019-08-01"", ""name"": ""connectionstrings"", ""type"": ""config"", ""dependson"": [""[variables('uniqueappname')]"", ""[variables('notificationhubname')]"", ""[variables('databasename')]""], ""properties"": {""ms_tableconnectionstring"": {""value"": ""[concat('data source=tcp:"", reference(resourceid('microsoft.sql/servers"", variables('databaseservername'))).fullyqualifieddomainname, "",1433;initial catalog="", variables('databasename'), "";user id="", parameters('sqlserveradminlogin'), ""@"", variables('databaseservername'), "";password="", parameters('sqlserveradminpassword'), "";')]"", ""type"": ""sqlserver""}, ""ms_notificationhubconnectionstring"": {""value"": ""[listkeys(resourceid('microsoft.notificationhubs/namespaces/notificationhubs/authorizationrules"", variables('notificationhubnamespace'), variables('notificationhubname'), ""defaultfullsharedaccesssignature'), ""2017-04-01').primaryconnectionstring]"", ""type"": ""custom""}}}, {""apiversion"": ""2019-08-01"", ""type"": ""providers/links"", ""name"": ""microsoft.resources/sitetohub"", ""dependson"": [""[variables('uniqueappname')]"", ""[variables('notificationhubname')]""], ""properties"": {""targetid"": ""[resourceid('microsoft.notificationhubs/namespaces/notificationhubs"", variables('notificationhubnamespace'), variables('notificationhubname'))]""}}]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('vnetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetaddressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefix"": ""[variables('subnetaddressprefix')]"", ""delegations"": [{""name"": ""delegation"", ""properties"": {""servicename"": ""microsoft.web/serverfarms""}}]}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-05-01"", ""name"": ""[variables('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('networksettings').virtualnetworkaddressprefix]""]}, ""subnets"": [{""name"": ""default"", ""properties"": {""addressprefix"": ""[variables('networksettings').subnetaddressprefix]""}}]}} " +Application Gateway routing Internet traffic to a virtual network (internal mode) API Management instance which services a web API hosted in an Azure Web App.,"{""apiversion"": ""2014-06-01"", ""name"": ""[variables('appserviceplanname')]"", ""type"": ""microsoft.web/serverfarms"", ""location"": ""[parameters('location')]"", ""properties"": {""name"": ""[variables('appserviceplanname')]"", ""appservicetier"": ""[parameters('appservicetier')]"", ""workersize"": ""[parameters('appserviceworkersize')]"", ""numberofworkers"": 1}}{""apiversion"": ""2015-02-01"", ""name"": ""[parameters('appname')]"", ""type"": ""microsoft.web/sites"", ""location"": ""[parameters('location')]"", ""tags"": {""[concat('hidden-related:"", ""/subscriptions/"", subscription().subscriptionid,""/resourcegroups/"", resourcegroup().name, ""/providers/microsoft.web/serverfarms/"", variables('appserviceplanname'))]"": ""empty""}, ""dependson"": [""[resourceid('microsoft.web/serverfarms/"", variables('appserviceplanname'))]""], ""properties"": {""name"": ""[parameters('appname')]"", ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms/"", variables('appserviceplanname'))]""}, ""resources"": [{""apiversion"": ""2014-06-01"", ""name"": ""msdeploy"", ""type"": ""extensions"", ""dependson"": [""[resourceid('microsoft.web/sites/"", parameters('appname'))]"", ""[resourceid('microsoft.web/sites/config"", parameters('appname'), ""web')]"", ""[resourceid('microsoft.sql/servers/databases"", parameters('dbservername'), parameters('dbname'))]"", ""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]""], ""properties"": {""packageuri"": ""[parameters('packageuri')]"", ""dbtype"": ""sql"", ""connectionstring"": ""[concat('data source=tcp:"", reference(resourceid('microsoft.sql/servers/"", parameters('dbservername'))).fullyqualifieddomainname, "",1433;initial catalog="", parameters('dbname'), "";user id="", parameters('dbadministratorlogin'), ""@"", parameters('dbservername'), "";password="", parameters('dbadministratorloginpassword'), "";')]"", ""setparameters"": {""application path"": ""[parameters('appname')]"", ""database server"": ""[reference(resourceid('microsoft.sql/servers/"", parameters('dbservername'))).fullyqualifieddomainname]"", ""database name"": ""[parameters('dbname')]"", ""database username"": ""[parameters('nonadmindatabaseusername')]"", ""database password"": ""[parameters('nonadmindatabasepassword')]"", ""database administrator"": ""[parameters('dbadministratorlogin')]"", ""database administrator password"": ""[parameters('dbadministratorloginpassword')]"", ""azurestoragerooturl"": ""[format('https://{0}.blob.{1}"",variables('storageaccountname'), environment().suffixes.storage)]"", ""azurestoragecontainername"": ""media"", ""azurestorageconnectionstring"": ""[concat('defaultendpointsprotocol=https;accountname="",variables('storageaccountname'),"";accountkey="",concat(listkeys(variables('storageaccountname'),""2021-04-01').keys[0].value))]"", ""rediscachehost"": ""[concat(parameters('rediscachename'), "".redis.cache.windows.net')]"", ""rediscacheport"": ""6379"", ""rediscacheaccesskey"": ""[listkeys(resourceid('microsoft.cache/redis"", parameters('rediscachename')), ""2020-06-01').primarykey]"", ""azurestoragecachecontrol"": ""*|public, max-age=31536000;js|no-cache""}}}, {""apiversion"": ""2020-12-01"", ""name"": ""connectionstrings"", ""type"": ""config"", ""dependson"": [""[resourceid('microsoft.web/sites"", parameters('appname'))]"", ""[resourceid('microsoft.sql/servers/databases"", parameters('dbservername'), parameters('dbname'))]"", ""[resourceid('microsoft.web/sites/extensions"", parameters('appname'), ""msdeploy')]""], ""properties"": {""defaultconnection"": {""value"": ""[concat('data source=tcp:"", reference(resourceid('microsoft.sql/servers/"", parameters('dbservername'))).fullyqualifieddomainname, "",1433;initial catalog="", parameters('dbname'), "";user id="", parameters('dbadministratorlogin'), ""@"", parameters('dbservername'), "";password="", parameters('dbadministratorloginpassword'), "";')]"", ""type"": ""sqlazure""}}}, {""apiversion"": ""2020-12-01"", ""name"": ""web"", ""type"": ""config"", ""dependson"": [""[resourceid('microsoft.web/sites/"", parameters('appname'))]""], ""properties"": {""phpversion"": ""off"", ""netframeworkversion"": ""v4.5"", ""use32bitworkerprocess"": ""true"", ""websocketsenabled"": true, ""alwayson"": ""true"", ""httploggingenabled"": true, ""logsdirectorysizelimit"": 40}}]}{""apiversion"": ""2015-02-01"", ""name"": ""[variables('umbracoadminwebappname')]"", ""type"": ""microsoft.web/sites"", ""location"": ""[parameters('location')]"", ""tags"": {""[concat('hidden-related:"", ""/subscriptions/"", subscription().subscriptionid,""/resourcegroups/"", resourcegroup().name, ""/providers/microsoft.web/serverfarms/"", variables('appserviceplanname'))]"": ""empty""}, ""dependson"": [""[resourceid('microsoft.web/serverfarms/"", variables('appserviceplanname'))]""], ""properties"": {""name"": ""[variables('umbracoadminwebappname')]"", ""serverfarmid"": ""[resourceid('microsoft.web/serverfarms/"", variables('appserviceplanname'))]""}, ""resources"": [{""apiversion"": ""2014-06-01"", ""name"": ""msdeploy"", ""type"": ""extensions"", ""dependson"": [""[resourceid('microsoft.web/sites/"", variables('umbracoadminwebappname'))]"", ""[resourceid('microsoft.web/sites/config"",variables('umbracoadminwebappname'), ""web')]"", ""[resourceid('microsoft.sql/servers/databases"", parameters('dbservername'), parameters('dbname'))]"", ""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]""], ""properties"": {""packageuri"": ""[parameters('packageuri')]"", ""dbtype"": ""sql"", ""connectionstring"": ""[concat('data source=tcp:"", reference(resourceid('microsoft.sql/servers/"", parameters('dbservername'))).fullyqualifieddomainname, "",1433;initial catalog="", parameters('dbname'), "";user id="", parameters('dbadministratorlogin'), ""@"", parameters('dbservername'), "";password="", parameters('dbadministratorloginpassword'), "";')]"", ""setparameters"": {""application path"": ""[variables('umbracoadminwebappname')]"", ""database server"": ""[reference(resourceid('microsoft.sql/servers/"", parameters('dbservername'))).fullyqualifieddomainname]"", ""database name"": ""[parameters('dbname')]"", ""database username"": ""[concat(parameters('nonadmindatabaseusername'),""admin')]"", ""database password"": ""[parameters('nonadmindatabasepassword')]"", ""database administrator"": ""[parameters('dbadministratorlogin')]"", ""database administrator password"": ""[parameters('dbadministratorloginpassword')]"", ""azurestoragerooturl"": ""[format('https://{0}.blob.{1}"",variables('storageaccountname'), environment().suffixes.storage)]"", ""azurestoragecontainername"": ""media"", ""azurestorageconnectionstring"": ""[concat('defaultendpointsprotocol=https;accountname="",variables('storageaccountname'),"";accountkey="",concat(listkeys(variables('storageaccountname'),""2021-04-01').keys[0].value))]"", ""rediscachehost"": ""[concat(parameters('rediscachename'), "".redis.cache.windows.net')]"", ""rediscacheport"": ""6379"", ""rediscacheaccesskey"": ""[listkeys(resourceid('microsoft.cache/redis"", parameters('rediscachename')), ""2020-06-01').primarykey]"", ""azurestoragecachecontrol"": ""*|public, max-age=31536000;js|no-cache""}}}, {""apiversion"": ""2020-12-01"", ""name"": ""connectionstrings"", ""type"": ""config"", ""dependson"": [""[resourceid('microsoft.web/sites"", variables('umbracoadminwebappname'))]"", ""[resourceid('microsoft.sql/servers/databases"", parameters('dbservername'), parameters('dbname'))]"", ""[resourceid('microsoft.web/sites/extensions"", variables('umbracoadminwebappname'), ""msdeploy')]""], ""properties"": {""defaultconnection"": {""value"": ""[concat('data source=tcp:"", reference(resourceid('microsoft.sql/servers/"", parameters('dbservername'))).fullyqualifieddomainname, "",1433;initial catalog="", parameters('dbname'), "";user id="", parameters('dbadministratorlogin'), ""@"", parameters('dbservername'), "";password="", parameters('dbadministratorloginpassword'), "";')]"", ""type"": ""sqlazure""}}}, {""apiversion"": ""2020-12-01"", ""name"": ""web"", ""type"": ""config"", ""dependson"": [""[resourceid('microsoft.web/sites/"", variables('umbracoadminwebappname'))]""], ""properties"": {""phpversion"": ""off"", ""netframeworkversion"": ""v4.5"", ""use32bitworkerprocess"": ""true"", ""websocketsenabled"": true, ""alwayson"": ""true"", ""httploggingenabled"": true, ""logsdirectorysizelimit"": 40}}]} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""sku"": {""name"": ""standard_lrs""}, ""type"": ""microsoft.storage/storageaccounts"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2021-04-01"", ""name"": ""[variables('storageaccountname')]""} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2019-07-01"", ""name"": ""[parameters('networksecuritygroup_name')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""rdp"", ""properties"": {""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3389"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 300, ""direction"": ""inbound""}}]}}{""type"": ""microsoft.network/virtualnetworks/subnets"", ""apiversion"": ""2019-07-01"", ""name"": ""[concat(parameters('virtualnetwork_name'), ""/default')]"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", parameters('virtualnetwork_name'))]""], ""properties"": {""addressprefix"": ""10.0.4.0/24"", ""privateendpointnetworkpolicies"": ""enabled"", ""privatelinkservicenetworkpolicies"": ""enabled""}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachinescalesets"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('vmssname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", variables('diagnosticsstorageaccountname'))]"", ""[resourceid('microsoft.network/loadbalancers"", variables('loadbalancername'))]"", ""mysql""], ""sku"": {""name"": ""[parameters('drupalvmsku')]"", ""tier"": ""standard"", ""capacity"": ""[parameters('instancecount')]""}, ""properties"": {""overprovision"": true, ""upgradepolicy"": {""mode"": ""manual""}, ""virtualmachineprofile"": {""storageprofile"": {""osdisk"": {""caching"": ""readonly"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""[parameters('drupalvmdisksku')]""}}, ""imagereference"": ""[variables('imagereference')]""}, ""osprofile"": {""computernameprefix"": ""[parameters('vmssname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""networkprofile"": {""networkinterfaceconfigurations"": [{""name"": ""[variables('nicname')]"", ""properties"": {""primary"": true, ""ipconfigurations"": [{""name"": ""[variables('ipconfigname')]"", ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", parameters('virtualnetworkname'), parameters('subnetname'))]""}, ""loadbalancerbackendaddresspools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", variables('loadbalancername'), variables('bepoolname'))]""}], ""loadbalancerinboundnatpools"": [{""id"": ""[resourceid('microsoft.network/loadbalancers/inboundnatpools"", variables('loadbalancername'), variables('natpoolname'))]""}]}}]}}]}, ""extensionprofile"": {""extensions"": [{""name"": ""drupalextension"", ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/mount-azure-fileshare.sh"", parameters('_artifactslocationsastoken')))]"", ""[uri(parameters('_artifactslocation'), concat('scripts/install_drupal.sh"", parameters('_artifactslocationsastoken')))]""]}, ""protectedsettings"": {""commandtoexecute"": ""[format('bash mount-azure-fileshare.sh {0} """"{1}"""" """"{2}"""" """"{3}"""" {4} {5};sudo bash install_drupal.sh -d """"{6}"""" -u {7} -p """"{8}"""" -s """"{9}"""" -n {10} -p """"{11}"""" -k {12} -z {13} -s {14}"", parameters('storageaccountname'), listkeys(parameters('storageaccountname'), ""2019-06-01').keys[0].value, parameters('filesharename'), ""/mnt/azurefiles-drupal"", parameters('adminusername'), environment().suffixes.storage, parameters('drupalversion'), parameters('drupaladminuser'), parameters('drupaladminpassword'), parameters('existingmysqlfqdn'), parameters('mysqluser'), parameters('mysqluserpassword'), parameters('drupalinstallationdatabasename'), parameters('createnewmysqlserver'), reference('mysql').outputs.fqdn.value)]""}}}, {""name"": ""linuxdiagnostic"", ""properties"": {""publisher"": ""microsoft.ostcextensions"", ""type"": ""linuxdiagnostic"", ""typehandlerversion"": ""2.3"", ""autoupgrademinorversion"": true, ""settings"": {""xmlcfg"": ""[base64(concat(variables('wadcfgxstart'),variables('wadmetricsresourceid'),variables('wadcfgxend')))]"", ""storageaccount"": ""[variables('diagnosticsstorageaccountname')]""}, ""protectedsettings"": {""storageaccountname"": ""[variables('diagnosticsstorageaccountname')]"", ""storageaccountkey"": ""[listkeys(variables('accountid'), ""2019-06-01').keys[0].value]"", ""storageaccountendpoint"": ""[concat('http://"", environment().suffixes.storage)]""}}}]}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-07-01"", ""name"": ""[variables('vnetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetaddressprefix')]""]}, ""subnets"": [{""name"": ""[variables('subnet1name')]"", ""properties"": {""addressprefix"": ""[variables('subnet1prefix')]"", ""privateendpointnetworkpolicies"": ""disabled""}}, {""name"": ""[variables('subnetappservicename')]"", ""properties"": {""addressprefix"": ""[variables('subnetappserviceprefix')]"", ""delegations"": [{""name"": ""delegation"", ""properties"": {""servicename"": ""microsoft.web/serverfarms""}}]}}]}}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-07-01"", ""name"": ""[variables('privateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetname')]"", ""[variables('sqlservername')]""], ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('vnetname'), variables('subnet1name'))]""}, ""privatelinkserviceconnections"": [{""name"": ""[variables('privateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[resourceid('microsoft.sql/servers"",variables('sqlservername'))]"", ""groupids"": [""sqlserver""]}}]}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""name"": ""[variables('clustervnetname')]"", ""type"": ""microsoft.network/virtualnetworks"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-07-01"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('clustervnetaddressspace')]""]}, ""subnets"": [{""name"": ""[parameters('clustervnetsubnetname')]"", ""properties"": {""addressprefix"": ""[parameters('clustervnetsubnetaddressrange')]""}}]}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""shared-resources"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2016-09-01"", ""comments"": ""azure resources that are shared within the infrastructure environment"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[concat(parameters('_artifactslocation'),""/nested/"", variables('sharedresourcestemplatefilename'),parameters('_artifactslocationsastoken'))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""webnsgname"": {""value"": ""[variables('webnsgname')]""}, ""datansgname"": {""value"": ""[variables('datansgname')]""}, ""virtualnetworkname"": {""value"": ""[variables('virtualnetworkname')]""}, ""datasubnetname"": {""value"": ""[variables('datasubnetname')]""}, ""websubnetname"": {""value"": ""[variables('websubnetname')]""}, ""addressprefix"": {""value"": ""[variables('addressprefix')]""}, ""websubnetprefix"": {""value"": ""[variables('websubnetprefix')]""}, ""datasubnetprefix"": {""value"": ""[variables('datasubnetprefix')]""}, ""remoteallowedcidr"": {""value"": ""[parameters('remoteallowedcidr')]""}, ""netapptags"": {""value"": ""[variables('netapptags')]""}, ""quickstarttags"": {""value"": ""[variables('quickstarttags')]""}}}}{""name"": ""jump-vm"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2016-09-01"", ""comments"": ""jump server deployment"", ""dependson"": [""microsoft.resources/deployments/shared-resources""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[concat(parameters('_artifactslocation'),""/nested/"", variables('jumpvmtemplatefilename'),parameters('_artifactslocationsastoken'))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""adminpassword"": {""value"": ""[parameters('adminpassword')]""}, ""vnetid"": {""value"": ""[variables('vnetid')]""}, ""websubnetname"": {""value"": ""[variables('websubnetname')]""}, ""jumpvmname"": {""value"": ""[variables('jumpvmname')]""}, ""jumpvmsize"": {""value"": ""[variables('jumpvmsize')]""}, ""jumpvmnicname"": {""value"": ""[variables('jumpvmnicname')]""}, ""jumpvmpublicipaddressname"": {""value"": ""[variables('jumpvmpublicipaddressname')]""}, ""jumpvmdnsname"": {""value"": ""[variables('jumpvmdnsname')]""}, ""netapptags"": {""value"": ""[variables('netapptags')]""}, ""quickstarttags"": {""value"": ""[variables('quickstarttags')]""}}}}{""name"": ""sql-vm"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2016-09-01"", ""comments"": ""sql server deployment"", ""dependson"": [""microsoft.resources/deployments/shared-resources""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[concat(parameters('_artifactslocation'),""/nested/"", variables('sqlvmtemplatefilename'),parameters('_artifactslocationsastoken'))]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""adminpassword"": {""value"": ""[parameters('adminpassword')]""}, ""vnetid"": {""value"": ""[variables('vnetid')]""}, ""datasubnetname"": {""value"": ""[variables('datasubnetname')]""}, ""sqlvmname"": {""value"": ""[variables('sqlvmname')]""}, ""sqlvmnicname"": {""value"": ""[variables('sqlvmnicname')]""}, ""sqlvmsize"": {""value"": ""[variables('sqlvmsize')]""}, ""_artifactslocation"": {""value"": ""[parameters('_artifactslocation')]""}, ""_artifactslocationsastoken"": {""value"": ""[parameters('_artifactslocationsastoken')]""}, ""netapptags"": {""value"": ""[variables('netapptags')]""}, ""quickstarttags"": {""value"": ""[variables('quickstarttags')]""}}}} " +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')]""}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""shared"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-05-10"", ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('sharedtemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""networksettings"": {""value"": ""[variables('networksettings')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""name"": ""lamplapnode"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-05-10"", ""dependson"": [""shared""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('lamplaptemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""namespace"": {""value"": ""[variables('namespace')]""}, ""vmbasename"": {""value"": ""lap""}, ""subnet"": {""value"": ""[variables('networksettings').subnet.dse]""}, ""dnsname"": {""value"": ""[parameters('dnsnameprefix')]""}, ""staticip"": {""value"": ""[variables('networksettings').statics.lapip]""}, ""vmsize"": {""value"": ""[parameters('lapvmsize')]""}, ""ossettings"": {""value"": ""[variables('lapossettings')]""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}, ""location"": {""value"": ""[parameters('location')]""}}}}{""name"": ""[concat('lampmysqlnode"", copyindex())]"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2019-05-10"", ""dependson"": [""shared"", ""lamplapnode""], ""copy"": {""name"": ""vmloop"", ""count"": ""[parameters('mysqlnodes')]""}, ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('lampmysqltemplateurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""adminusername"": {""value"": ""[parameters('adminusername')]""}, ""namespace"": {""value"": ""[variables('namespace')]""}, ""vmbasename"": {""value"": ""[concat('mysql"", copyindex())]""}, ""lapnode"": {""value"": ""[variables('networksettings').statics.lapip]""}, ""mysqlstaticip"": {""value"": ""[variables('networksettings').statics.mysqlip]""}, ""subnet"": {""value"": ""[variables('networksettings').subnet.dse]""}, ""vmsize"": {""value"": ""[parameters('mysqlvmsize')]""}, ""ossettings"": {""value"": ""[variables('mysqlossettings')]""}, ""authenticationtype"": {""value"": ""[parameters('authenticationtype')]""}, ""adminpasswordorkey"": {""value"": ""[parameters('adminpasswordorkey')]""}, ""location"": {""value"": ""[parameters('location')]""}}}} " +This template creates an Application Insights availability test along with a metric alert rule that monitors it.,"{""name"": ""[variables('pingtestname')]"", ""type"": ""microsoft.insights/webtests"", ""apiversion"": ""2015-05-01"", ""location"": ""[parameters('location')]"", ""tags"": {""[concat('hidden-link:"", parameters('appinsightsresource'))]"": ""resource""}, ""properties"": {""name"": ""[variables('pingtestname')]"", ""description"": ""basic ping test"", ""enabled"": true, ""frequency"": 300, ""timeout"": 120, ""kind"": ""ping"", ""retryenabled"": true, ""locations"": [{""id"": ""[parameters('webtestlocations')]""}], ""configuration"": {""webtest"": ""[concat(\"" \')]""}, ""syntheticmonitorid"": ""[variables('pingtestname')]""}}{""name"": ""[variables('pingalertrulename')]"", ""type"": ""microsoft.insights/metricalerts"", ""apiversion"": ""2018-03-01"", ""location"": ""global"", ""dependson"": [""[resourceid('microsoft.insights/webtests"", variables('pingtestname'))]""], ""tags"": {""[concat('hidden-link:"", parameters('appinsightsresource'))]"": ""resource"", ""[concat('hidden-link:"", resourceid('microsoft.insights/webtests"", variables('pingtestname')))]"": ""resource""}, ""properties"": {""description"": ""alert for web test"", ""severity"": 1, ""enabled"": true, ""scopes"": [""[resourceid('microsoft.insights/webtests"",variables('pingtestname'))]"", ""[parameters('appinsightsresource')]""], ""evaluationfrequency"": ""pt1m"", ""windowsize"": ""pt5m"", ""criteria"": {""odata.type"": ""microsoft.azure.monitor.webtestlocationavailabilitycriteria"", ""webtestid"": ""[resourceid('microsoft.insights/webtests"", variables('pingtestname'))]"", ""componentid"": ""[parameters('appinsightsresource')]"", ""failedlocationcount"": 2}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""apiversion"": ""2019-06-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('newstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storagev2""} " +This template creates a new Azure App Configuration store with one feature flag.,"{""type"": ""microsoft.appconfiguration/configurationstores"", ""apiversion"": ""2020-07-01-preview"", ""name"": ""[parameters('configstorename')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard""}, ""resources"": [{""type"": ""keyvalues"", ""apiversion"": ""2020-07-01-preview"", ""name"": ""[concat('.appconfig.featureflag~2f"", parameters('featureflagkey'), ""$"", parameters('featureflaglabel'))]"", ""dependson"": [""[parameters('configstorename')]""], ""properties"": {""value"": ""[string(variables('featureflagvalue'))]"", ""contenttype"": ""application/vnd.microsoft.appconfig.ff+json;charset=utf-8""}}]} " +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'))]""}]}}} " +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-12-01"", ""name"": ""[parameters('appsvcplanname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('svcplansize')]"", ""tier"": ""[parameters('svcplansku')]"", ""capacity"": 1}}{""type"": ""microsoft.web/sites"", ""apiversion"": ""2020-12-01"", ""name"": ""[parameters('webappname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.web/serverfarms/"", parameters('appsvcplanname'))]""], ""properties"": {""name"": ""[parameters('webappname')]"", ""serverfarmid"": ""[parameters('appsvcplanname')]""}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/availabilitysets"", ""comments"": ""availability set for creating a ha cluster, run the template multiple times to get multiple dns servers"", ""name"": ""[variables('asetname')]"", ""apiversion"": ""2019-12-01"", ""location"": ""[variables('location')]"", ""sku"": {""name"": ""aligned""}, ""properties"": {""platformfaultdomaincount"": 2, ""platformupdatedomaincount"": 2}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""name"": ""sqvnet"", ""type"": ""microsoft.network/virtualnetworks"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-05-01"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups"", ""sqnsgapp')]""], ""tags"": {""displayname"": ""sqvnet""}, ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('sqvnetprefix')]""]}, ""subnets"": [{""name"": ""[variables('sqvnetexternalsubnetname')]"", ""properties"": {""addressprefix"": ""[variables('sqvnetexternalsubnetprefix')]"", ""networksecuritygroup"": {""id"": ""[resourceid('microsoft.network/networksecuritygroups"", ""sqnsgapp')]""}}}]}}{""name"": ""[variables('sqvmappnicname')]"", ""type"": ""microsoft.network/networkinterfaces"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-05-01"", ""dependson"": [""[resourceid('microsoft.network/virtualnetworks"", ""sqvnet')]"", ""[resourceid('microsoft.network/publicipaddresses"", variables('sqpublicipname'))]""], ""tags"": {""displayname"": ""sqvmappnic""}, ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""subnet"": {""id"": ""[variables('sqvmappsubnetref')]""}, ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", variables('sqpublicipname'))]""}}}]}}{""name"": ""[variables('sqpublicipname')]"", ""type"": ""microsoft.network/publicipaddresses"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-05-01"", ""tags"": {""displayname"": ""sqpublicip""}, ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('sq_publicip_dnsprefix')]""}}}{""name"": ""sqnsgapp"", ""type"": ""microsoft.network/networksecuritygroups"", ""location"": ""[parameters('location')]"", ""apiversion"": ""2020-05-01"", ""tags"": {""displayname"": ""sqnsgapp""}, ""properties"": {""securityrules"": [{""name"": ""allow_rdp_in"", ""properties"": {""description"": ""allow rdp in"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3389"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}, {""name"": ""allow_https_in"", ""properties"": {""description"": ""allow https in"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""443"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 101, ""direction"": ""inbound""}}, {""name"": ""allow_rdp_out"", ""properties"": {""description"": ""allow rdp out"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3389"", ""sourceaddressprefix"": ""[variables('sqvnetexternalsubnetprefix')]"", ""destinationaddressprefix"": ""[variables('sqvnetinternalsubnetprefix')]"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""outbound""}}, {""name"": ""allow_sonarqube_in"", ""properties"": {""description"": ""allow sonarqube in"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""9000"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 102, ""direction"": ""inbound""}}, {""name"": ""block_all_in"", ""properties"": {""description"": ""block everything else"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""internet"", ""destinationaddressprefix"": ""*"", ""access"": ""deny"", ""priority"": 200, ""direction"": ""inbound""}}]}} " +"This template will create N number of VM's with managed disks, public IPs and network interfaces.","{""type"": ""microsoft.compute/availabilitysets"", ""apiversion"": ""2020-06-01"", ""name"": ""[parameters('availabilitysetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""platformfaultdomaincount"": ""[variables('availabilitysetplatformfaultdomaincount')]"", ""platformupdatedomaincount"": ""[variables('availabilitysetplatformupdatedomaincount')]""}, ""sku"": {""name"": ""aligned""}}{""copy"": {""name"": ""virtualmachines"", ""count"": ""[length(range(0, parameters('virtualmachinecount')))]""}, ""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-06-01"", ""name"": ""[format('{0}{1}"", parameters('virtualmachinenameprefix'), add(range(0, parameters('virtualmachinecount'))[copyindex()], 1))]"", ""location"": ""[parameters('location')]"", ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('virtualmachinesize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('operatingsystemvalues')[parameters('operatingsystem')].publishervalue]"", ""offer"": ""[variables('operatingsystemvalues')[parameters('operatingsystem')].offervalue]"", ""sku"": ""[variables('operatingsystemvalues')[parameters('operatingsystem')].skuvalue]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[format('{0}{1}"", parameters('virtualmachinenameprefix'), add(range(0, parameters('virtualmachinecount'))[copyindex()], 1))]"", ""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}, ""caching"": ""readwrite""}}, ""osprofile"": {""computername"": ""[format('{0}{1}"", parameters('virtualmachinenameprefix'), add(range(0, parameters('virtualmachinecount'))[copyindex()], 1))]"", ""adminusername"": ""[parameters('virtualmachineadminusername')]"", ""windowsconfiguration"": {""provisionvmagent"": true}, ""adminpassword"": ""[parameters('virtualmachineadminpassword')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", format('{0}{1}-nic1"", parameters('virtualmachinenameprefix'), add(range(0, parameters('virtualmachinecount'))[range(0, parameters('virtualmachinecount'))[copyindex()]], 1)))]""}]}, ""availabilityset"": {""id"": ""[resourceid('microsoft.compute/availabilitysets"", parameters('availabilitysetname'))]""}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts"", variables('diagnosticstorageaccountname'))).primaryendpoints.blob]""}}}, ""dependson"": [""[resourceid('microsoft.compute/availabilitysets"", parameters('availabilitysetname'))]"", ""[resourceid('microsoft.network/networkinterfaces"", format('{0}{1}-nic1"", parameters('virtualmachinenameprefix'), add(range(0, parameters('virtualmachinecount'))[range(0, parameters('virtualmachinecount'))[copyindex()]], 1)))]"", ""[resourceid('microsoft.storage/storageaccounts"", variables('diagnosticstorageaccountname'))]""]} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allowsshinbound"", ""properties"": {""priority"": 100, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('virtualnetworkaddressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetaddressprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}, ""privateendpointnetworkpolicies"": ""disabled"", ""privatelinkservicenetworkpolicies"": ""enabled""}}]}}{""apiversion"": ""2020-04-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('publicipid')]"", ""[variables('vnetid')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetid')]""}}}]}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2018-09-01"", ""name"": ""[variables('servicebusnamespaceprivatednszonename')]"", ""location"": ""global"", ""properties"": {""maxnumberofrecordsets"": 25000, ""maxnumberofvirtualnetworklinks"": 1000, ""maxnumberofvirtualnetworklinkswithregistration"": 100}} " +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')]""}}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2020-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[parameters('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", parameters('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[parameters('imagepublisher')]"", ""offer"": ""[parameters('imageoffer')]"", ""sku"": ""[parameters('imagesku')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(parameters('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",parameters('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(parameters('vmname'),""/"", parameters('vmextensionname'))]"", ""apiversion"": ""2020-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", parameters('vmname'))]""], ""properties"": {""publisher"": ""symantec"", ""type"": ""symantecendpointprotection"", ""typehandlerversion"": ""12.1""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-07-01"", ""name"": ""[parameters('filestorageaccountprivateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('filestorageaccountid')]"", ""[variables('fileshareid')]""], ""properties"": {""privatelinkserviceconnections"": [{""name"": ""[parameters('filestorageaccountprivateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[variables('filestorageaccountid')]"", ""groupids"": [""[variables('filestorageaccountprivateendpointgroupname')]""]}}], ""subnet"": {""id"": ""[variables('subnetid')]""}}}{""type"": ""microsoft.network/privateendpoints/privatednszonegroups"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('fileprivatednszonegroup')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('fileprivatednszoneid')]"", ""[variables('filestorageaccountprivateendpointid')]""], ""properties"": {""privatednszoneconfigs"": [{""name"": ""dnsconfig"", ""properties"": {""privatednszoneid"": ""[variables('fileprivatednszoneid')]""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[concat(tolower(parameters('vmname')), uniquestring(resourcegroup().id))]""}}}{""apiversion"": ""2019-08-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('nsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allowsshinbound"", ""properties"": {""priority"": 100, ""access"": ""allow"", ""direction"": ""inbound"", ""destinationportrange"": ""22"", ""protocol"": ""tcp"", ""sourceaddressprefix"": ""*"", ""sourceportrange"": ""*"", ""destinationaddressprefix"": ""*""}}]}}{""apiversion"": ""2019-11-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('nsgid')]""], ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('virtualnetworkaddressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetaddressprefix')]"", ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}, ""privateendpointnetworkpolicies"": ""disabled"", ""privatelinkservicenetworkpolicies"": ""enabled""}}]}}{""apiversion"": ""2020-07-01"", ""type"": ""microsoft.network/networkinterfaces"", ""name"": ""[variables('nicname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('publicipid')]"", ""[variables('vnetid')]""], ""properties"": {""ipconfigurations"": [{""name"": ""ipconfig1"", ""properties"": {""privateipallocationmethod"": ""dynamic"", ""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",variables('publicipaddressname'))]""}, ""subnet"": {""id"": ""[variables('subnetid')]""}}}]}} " +This sample contains a script to easily migrate template gallery templates to templateSpec resources.,"{""name"": ""updatevm"", ""type"": ""microsoft.resources/deployments"", ""apiversion"": ""2015-01-01"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/extensions"", parameters('vmname'), variables('extensionname'))]""], ""properties"": {""mode"": ""incremental"", ""templatelink"": {""uri"": ""[variables('updatevmurl')]"", ""contentversion"": ""1.0.0.0""}, ""parameters"": {""vmname"": {""value"": ""[parameters('vmname')]""}, ""keyvaultresourceid"": {""value"": ""[variables('keyvaultresourceid')]""}, ""keyvaultsecreturl"": {""value"": ""[reference(resourceid('microsoft.compute/virtualmachines/extensions"", parameters('vmname'), variables('extensionname'))).instanceview.statuses[0].message]""}, ""keyencryptionkeyurl"": {""value"": ""[parameters('keyencryptionkeyurl')]""}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""[parameters('virtualnetworkname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[parameters('addressprefix')]""]}, ""subnets"": [{""name"": ""[parameters('subnetname')]"", ""properties"": {""addressprefix"": ""[parameters('subnetprefix')]""}}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat('publicip"", copyindex())]"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""publiciploop"", ""count"": ""[variables('numberofinstances')]""}, ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[parameters('domainname')]""}}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""[variables('securitygroupname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""ssh"", ""properties"": {""description"": ""allows ssh traffic"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""22"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 100, ""direction"": ""inbound""}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""apiversion"": ""2019-12-01"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmsettings')[copyindex()].name]"", ""location"": ""[variables('vmsettings')[copyindex()].location]"", ""copy"": {""name"": ""vmcopy"", ""count"": 2}, ""dependson"": [""niccopy""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmsettings')[copyindex()].name]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""storageprofile"": {""imagereference"": ""[variables('vmsettings')[copyindex()].imagereference]"", ""osdisk"": {""caching"": ""readwrite"", ""createoption"": ""fromimage""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('nicname'), copyindex(1)))]""}]}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-08-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/publicipaddresses"", ""apiversion"": ""2021-02-01"", ""name"": ""[parameters('hostpublicipaddressname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""basic""}, ""properties"": {""publicipallocationmethod"": ""dynamic"", ""dnssettings"": {""domainnamelabel"": ""[tolower(format('{0}-{1}"", parameters('hostvirtualmachinename'), uniquestring(resourcegroup().id)))]""}}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2021-02-01"", ""name"": ""[variables('natsubnetnsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2021-02-01"", ""name"": ""[variables('hypervsubnetnsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {}}{""type"": ""microsoft.network/networksecuritygroups"", ""apiversion"": ""2021-02-01"", ""name"": ""[variables('ghostedsubnetnsgname')]"", ""location"": ""[parameters('location')]"", ""properties"": {}} " +This template creates a VNet with multiple subnets and deploys a Ubuntu VM with multiple NICs,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2020-06-01"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nic1name'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nic2name'))]""], ""location"": ""[parameters('location')]"", ""name"": ""[parameters('vmname')]"", ""properties"": {""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[reference(resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname')), ""2019-06-01').primaryendpoints.blob]""}}, ""hardwareprofile"": {""vmsize"": ""[parameters('vmsize')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nic1name'))]"", ""properties"": {""primary"": true}}, {""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('nic2name'))]"", ""properties"": {""primary"": false}}]}, ""osprofile"": {""computername"": ""[parameters('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""}}}} " +This sample shows how to add custom resources to Resource Manager Templates using custom providers and logic apps.,"{""type"": ""microsoft.customproviders/resourceproviders"", ""apiversion"": ""2018-09-01-preview"", ""name"": ""[parameters('customresourceprovidername')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.logic/workflows"", parameters('logicappname'))]""], ""properties"": {""resourcetypes"": [{""name"": ""customresources"", ""mode"": ""secure"", ""routingtype"": ""webhook,cache"", ""endpoint"": ""[listcallbackurl(resourceid('microsoft.logic/workflows/triggers"", parameters('logicappname'), ""customproviderwebhook'), ""2019-05-01').value]""}]}}{""type"": ""microsoft.customproviders/resourceproviders/customresources"", ""apiversion"": ""2018-09-01-preview"", ""name"": ""[concat(parameters('customresourceprovidername'), ""/"", parameters('customresourcename'))]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.customproviders/resourceproviders"", parameters('customresourceprovidername'))]""], ""properties"": {""mycustominputproperty"": ""mycustominputvalue"", ""mycustominputobject"": {""property1"": ""value1""}}} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2021-02-01"", ""name"": ""[variables('bootstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('storageaccounttype')]""}, ""kind"": ""storage"", ""tags"": {""quickstartname"": ""jboss eap on rhel (clustered, multi-vm)""}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""type"": ""microsoft.network/virtualnetworks"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('vnetname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetaddressprefix')]""]}}, ""resources"": [{""type"": ""subnets"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('subnet1name')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetname')]""], ""properties"": {""addressprefix"": ""[variables('subnet1prefix')]"", ""privateendpointnetworkpolicies"": ""disabled""}}]}{""type"": ""microsoft.network/privateendpoints"", ""apiversion"": ""2020-06-01"", ""name"": ""[variables('privateendpointname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[variables('vnetname')]"", ""[variables('sqlservername')]""], ""properties"": {""subnet"": {""id"": ""[resourceid('microsoft.network/virtualnetworks/subnets"", variables('vnetname'), variables('subnet1name'))]""}, ""privatelinkserviceconnections"": [{""name"": ""[variables('privateendpointname')]"", ""properties"": {""privatelinkserviceid"": ""[resourceid('microsoft.sql/servers"",variables('sqlservername'))]"", ""groupids"": [""sqlserver""]}}]}}{""type"": ""microsoft.network/privatednszones"", ""apiversion"": ""2020-01-01"", ""name"": ""[variables('privatednszonename')]"", ""location"": ""global"", ""dependson"": [""[variables('vnetname')]""], ""properties"": """"}{""type"": ""microsoft.network/privatednszones/virtualnetworklinks"", ""apiversion"": ""2020-01-01"", ""name"": ""[concat(variables('privatednszonename'), ""/"", variables('privatednszonename'), ""-link')]"", ""location"": ""global"", ""dependson"": [""[resourceid('microsoft.network/privatednszones"", variables('privatednszonename'))]"", ""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]""], ""properties"": {""registrationenabled"": false, ""virtualnetwork"": {""id"": ""[resourceid('microsoft.network/virtualnetworks"", variables('vnetname'))]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[concat(variables('publicipname'), copyindex())]"", ""copy"": {""name"": ""publiciploop"", ""count"": ""[variables('numberofinstances')]""}, ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""lbpublicip"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic""}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""lbpublicip-v6"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""dynamic"", ""publicipaddressversion"": ""ipv6""}}{""apiversion"": ""2020-05-01"", ""name"": ""loadbalancer"", ""type"": ""microsoft.network/loadbalancers"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/publicipaddresses"",""lbpublicip')]"", ""[resourceid('microsoft.network/publicipaddresses"",""lbpublicip-v6')]""], ""properties"": {""frontendipconfigurations"": [{""name"": ""lbfe"", ""properties"": {""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"", ""lbpublicip')]""}}}, {""name"": ""lbfe-v6"", ""properties"": {""publicipaddress"": {""id"": ""[resourceid('microsoft.network/publicipaddresses"",""lbpublicip-v6')]""}}}], ""backendaddresspools"": [{""name"": ""lbbap""}, {""name"": ""lbbap-v6""}], ""loadbalancingrules"": [{""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", ""loadbalancer"", ""lbfe')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", ""loadbalancer"", ""lbbap')]""}, ""protocol"": ""tcp"", ""frontendport"": 80, ""backendport"": 80, ""idletimeoutinminutes"": 15}, ""name"": ""lbrule""}, {""properties"": {""frontendipconfiguration"": {""id"": ""[resourceid('microsoft.network/loadbalancers/frontendipconfigurations"", ""loadbalancer"", ""lbfe-v6')]""}, ""backendaddresspool"": {""id"": ""[resourceid('microsoft.network/loadbalancers/backendaddresspools"", ""loadbalancer"", ""lbbap-v6')]""}, ""protocol"": ""tcp"", ""frontendport"": 80, ""backendport"": 80}, ""name"": ""lbrule-v6""}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/virtualnetworks"", ""name"": ""vnet"", ""location"": ""[parameters('location')]"", ""properties"": {""addressspace"": {""addressprefixes"": [""[variables('vnetv4addressrange')]"", ""[variables('vnetv6addressrange')]""]}, ""subnets"": [{""name"": ""[variables('subnetname')]"", ""properties"": {""addressprefixes"": [""[variables('subnetv4addressrange')]"", ""[variables('subnetv6addressrange')]""]}}]}}{""apiversion"": ""2020-05-01"", ""type"": ""microsoft.network/networksecuritygroups"", ""name"": ""dsnsg"", ""location"": ""[parameters('location')]"", ""properties"": {""securityrules"": [{""name"": ""allow-http-in"", ""properties"": {""description"": ""allow http"", ""protocol"": ""tcp"", ""sourceportrange"": ""80"", ""destinationportrange"": ""80"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1001, ""direction"": ""inbound""}}, {""name"": ""allow-all-out"", ""properties"": {""description"": ""allow out all"", ""protocol"": ""*"", ""sourceportrange"": ""*"", ""destinationportrange"": ""*"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1002, ""direction"": ""outbound""}}, {""name"": ""allow-rdp-in"", ""properties"": {""description"": ""allow rdp"", ""protocol"": ""tcp"", ""sourceportrange"": ""*"", ""destinationportrange"": ""3389"", ""sourceaddressprefix"": ""*"", ""destinationaddressprefix"": ""*"", ""access"": ""allow"", ""priority"": 1003, ""direction"": ""inbound""}}, {""name"": ""allow-myipv6app-out"", ""properties"": {""description"": ""allow my ipv6 app"", ""protocol"": ""tcp"", ""sourceportrange"": ""33819-33829"", ""destinationportrange"": ""5000-6000"", ""sourceaddressprefix"": ""ace:cab:deca:deed::/64"", ""destinationaddressprefixes"": [""cab:cab:aaaa:bbbb::/64"", ""cab:cab:1111:2222::/64""], ""access"": ""allow"", ""priority"": 1004, ""direction"": ""outbound""}}]}} " +This module creates a Shared Image Gallery resource with apiVersion 2019-12-01.,"{""type"": ""microsoft.compute/virtualmachines"", ""apiversion"": ""2019-07-01"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces/"", variables('networkinterfacename'))]"", ""[resourceid('microsoft.storage/storageaccounts/"", variables('storageaccountname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[variables('vmsize')[parameters('cpu-gpu')]]""}, ""storageprofile"": {""osdisk"": {""createoption"": ""fromimage"", ""manageddisk"": {""storageaccounttype"": ""standardssd_lrs""}}, ""datadisks"": [{""lun"": 0, ""name"": ""[concat('datadisk"", parameters('vmname'))]"", ""createoption"": ""empty"", ""disksizegb"": ""[parameters('disksizegb')]""}], ""imagereference"": {""publisher"": ""canonical"", ""offer"": ""ubuntuserver"", ""sku"": ""18.04-lts"", ""version"": ""latest""}}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", variables('networkinterfacename'))]""}]}, ""osprofile"": {""computername"": ""[parameters('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""diagnosticsprofile"": {""bootdiagnostics"": {""enabled"": true, ""storageuri"": ""[concat(reference(variables('storageaccountname')).primaryendpoints.blob)]""}}}, ""resources"": [{""type"": ""microsoft.compute/virtualmachines/extensions"", ""apiversion"": ""2019-07-01"", ""name"": ""[concat(variables('vmname'),""/installscript')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", variables('vmname'))]""], ""tags"": {""displayname"": ""execute my custom script""}, ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""protectedsettings"": {""commandtoexecute"": ""[concat('bash install.sh "", parameters('adminusername'))]"", ""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/install.sh"", parameters('_artifactslocationsastoken')))]""]}}}]} " +This module allows you to create a user-assigned managed identity and a role assignment scoped to the resource group.,"{""type"": ""microsoft.managedidentity/userassignedidentities"", ""name"": ""[parameters('identityname')]"", ""apiversion"": ""2018-11-30"", ""location"": ""[parameters('location')]""} " +This template uses Azure Managed Identity to assign access to Azure Maps. See more at https://aka.ms/amauth,"{""condition"": ""[parameters('protectwithlocks')]"", ""type"": ""microsoft.authorization/locks"", ""apiversion"": ""2017-04-01"", ""scope"": ""[format('microsoft.keyvault/vaults/{0}"", parameters('keyvaultname'))]"", ""name"": ""keyvaultdonotdelete"", ""properties"": {""level"": ""cannotdelete""}, ""dependson"": [""[resourceid('microsoft.keyvault/vaults"", parameters('keyvaultname'))]""]} " +Storage Account with Storage Service Encryption and a blob deletion retention policy,"{""type"": ""microsoft.storage/storageaccounts"", ""apiversion"": ""2019-06-01"", ""name"": ""[parameters('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs"", ""tier"": ""standard""}, ""kind"": ""storagev2"", ""properties"": {""accesstier"": ""hot""}} " +"Create a SQL Server Virtual Machine with performance optimized storage settings, using UltraSSD for SQL Log files","{""type"": ""microsoft.sqlvirtualmachine/sqlvirtualmachines"", ""apiversion"": ""2017-03-01-preview"", ""name"": ""[parameters('virtualmachinename')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", parameters('virtualmachinename'))]""], ""properties"": {""virtualmachineresourceid"": ""[resourceid('microsoft.compute/virtualmachines"", parameters('virtualmachinename'))]"", ""sqlmanagement"": ""full"", ""sqlserverlicensetype"": ""payg"", ""storageconfigurationsettings"": {""diskconfigurationtype"": ""[variables('diskconfigurationtype')]"", ""storageworkloadtype"": ""[parameters('storageworkloadtype')]"", ""sqldatasettings"": {""luns"": ""[variables('datadisksluns')]"", ""defaultfilepath"": ""[parameters('datapath')]""}, ""sqllogsettings"": {""luns"": ""[variables('logdisksluns')]"", ""defaultfilepath"": ""[parameters('logpath')]""}, ""sqltempdbsettings"": {""defaultfilepath"": ""[variables('tempdbpath')]""}}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""apiversion"": ""2021-02-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[parameters('storageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[parameters('storageaccountskuname')]""}, ""kind"": ""[parameters('storageaccountkind')]"", ""resources"": [{""name"": ""[concat('default/"", variables('blobcontainername'))]"", ""type"": ""blobservices/containers"", ""apiversion"": ""2021-02-01"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts"", parameters('storageaccountname'))]""], ""properties"": {""publicaccess"": ""blob""}}]} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('clustername'), ""-dev')]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", concat(variables('clustername'), ""-dev"", ""-vmnic'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('infravmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage"", ""caching"": ""readwrite"", ""manageddisk"": {""storageaccounttype"": ""[variables('standardstorageaccounttype')]""}}}, ""osprofile"": {""computername"": ""[concat(variables('clustername'), ""-dev')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('clustername'), ""-dev"", ""-vmnic'))]""}]}}}{""apiversion"": ""2017-12-01"", ""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('clustername'), ""-dev"", ""/setupdevbox')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines"", concat(variables('clustername'), ""-dev'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[variables('scriptfileuri')]""]}, ""protectedsettings"": {""commandtoexecute"": ""[concat('bash setupdevbox.sh "", parameters('adminusername'), "" --cluster_name "", variables('clustername'), "" --cluster_location "", parameters('location'), "" --worker_vm_size "", parameters('workervmsize'), "" --infra_vm_size "", parameters('infravmsize'), "" --worker_node_num "", parameters('numberofworkervm'), "" --infra_node_num "", parameters('numberofinfravm'), "" --password "", variables('adminpasswordq'), "" --users "", variables('dlwsadminsq'), "" --openid_name "", variables('openidproviderq'), "" --openid_tenant "", variables('openidtenantq'), "" --openid_clientid "", variables('openidclientidq'), "" --openid_clientsecret "", variables('openidclientsecretq'))]""}}}{""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[concat(variables('clustername'), ""-infra0"", copyindex(1))]"", ""apiversion"": ""2017-12-01"", ""location"": ""[parameters('location')]"", ""copy"": {""name"": ""infravmloop"", ""count"": ""[parameters('numberofinfravm')]""}, ""dependson"": [""[resourceid('microsoft.network/networkinterfaces"", concat(variables('clustername'), ""-infra0"", copyindex(1), ""-vmnic'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[parameters('infravmsize')]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""createoption"": ""fromimage"", ""caching"": ""readwrite"", ""manageddisk"": {""storageaccounttype"": ""[variables('standardstorageaccounttype')]""}}}, ""osprofile"": {""computername"": ""[concat(variables('clustername'), ""-infra0"", copyindex(1))]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpassword')]""}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"", concat(variables('clustername'), ""-infra0"", copyindex(1), ""-vmnic'))]""}]}}} " +Create a VM from a Windows Image with 4 Empty Data Disks,"{""apiversion"": ""2017-03-30"", ""type"": ""microsoft.compute/virtualmachines"", ""name"": ""[variables('vmname')]"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.storage/storageaccounts/"", parameters('newstorageaccountname'))]"", ""[resourceid('microsoft.network/networkinterfaces/"", variables('nicname'))]""], ""properties"": {""hardwareprofile"": {""vmsize"": ""[variables('vmsize')]""}, ""osprofile"": {""computername"": ""[variables('vmname')]"", ""adminusername"": ""[parameters('adminusername')]"", ""adminpassword"": ""[parameters('adminpasswordorkey')]"", ""linuxconfiguration"": ""[if(equals(parameters('authenticationtype'), ""password'), json('null'), variables('linuxconfiguration'))]""}, ""storageprofile"": {""imagereference"": {""publisher"": ""[variables('imagepublisher')]"", ""offer"": ""[variables('imageoffer')]"", ""sku"": ""[variables('ubuntuosversion')]"", ""version"": ""latest""}, ""osdisk"": {""name"": ""[concat(variables('vmname'),""_osdisk')]"", ""caching"": ""readwrite"", ""createoption"": ""fromimage""}, ""datadisks"": [{""name"": ""[concat(variables('vmname'),""_datadisk1')]"", ""disksizegb"": ""10"", ""lun"": 0, ""createoption"": ""empty""}]}, ""networkprofile"": {""networkinterfaces"": [{""id"": ""[resourceid('microsoft.network/networkinterfaces"",variables('nicname'))]""}]}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'), ""/setupdatadisk')]"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/"", variables('vmname'))]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""customscript"", ""typehandlerversion"": ""2.0"", ""autoupgrademinorversion"": true, ""settings"": {""fileuris"": [""[uri(parameters('_artifactslocation'), concat('scripts/setup_data_disk.sh"", parameters('_artifactslocationsastoken')))]""], ""commandtoexecute"": ""bash setup_data_disk.sh""}}}{""type"": ""microsoft.compute/virtualmachines/extensions"", ""name"": ""[concat(variables('vmname'), ""/neo4jdocker')]"", ""apiversion"": ""2017-03-30"", ""location"": ""[parameters('location')]"", ""dependson"": [""[resourceid('microsoft.compute/virtualmachines/extensions"", variables('vmname'),""setupdatadisk')]""], ""properties"": {""publisher"": ""microsoft.azure.extensions"", ""type"": ""dockerextension"", ""typehandlerversion"": ""1.0"", ""autoupgrademinorversion"": true, ""settings"": {""compose"": {""neo4j"": {""image"": ""tpires/neo4j"", ""ports"": [""7474:7474"", ""7473:7473""], ""volumes"": [""/datadisk:/var/lib/neo4j/data""]}}}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""name"": ""[variables('networkinterfacename')]"", ""type"": ""microsoft.network/networkinterfaces"", ""apiversion"": ""2020-07-01"", ""location"": ""[variables('location')]"", ""dependson"": [""[resourceid('microsoft.network/networksecuritygroups/"", variables('networksecuritygroupname'))]"", ""[resourceid('microsoft.network/virtualnetworks/"", variables('virtualnetworkname'))]"", ""[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'))]""}}}], ""networksecuritygroup"": {""id"": ""[variables('nsgid')]""}}} " +Establish connection to a VNET via an ExpressRoute circuit,"{""apiversion"": ""2015-06-15"", ""type"": ""microsoft.network/publicipaddresses"", ""name"": ""[variables('publicipaddressname')]"", ""location"": ""[parameters('location')]"", ""properties"": {""publicipallocationmethod"": ""[variables('publicipaddresstype')]"", ""dnssettings"": {""domainnamelabel"": ""[parameters('dnsnameprefix')]""}}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""apiversion"": ""2019-06-01"", ""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('newstorageaccountname')]"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""standard_lrs""}, ""kind"": ""storagev2"", ""properties"": {}} " +This module creates a storageAccount resource with apiVersion 2021-01-01.,"{""type"": ""microsoft.storage/storageaccounts"", ""name"": ""[variables('storageaccountname')]"", ""apiversion"": ""2021-01-01"", ""location"": ""[parameters('location')]"", ""sku"": {""name"": ""[variables('internalstoragetype')]""}} "