Description
stringlengths 19
200
| IaC
stringlengths 159
7.6k
|
---|---|
This module creates a KeyVault resource with apiVersion 2019-09-01. | {"name": "[parameters('vaultname')]", "type": "microsoft.keyvault/vaults", "apiversion": "2019-09-01", "location": "[parameters('location')]", "tags": "[parameters('tags')]", "properties": {"tenantid": "[parameters('tenantid')]", "sku": {"family": "a", "name": "[parameters('skuname')]"}, "copy": [{"name": "accesspolicies", "count": "[length(parameters('accesspolicies'))]", "input": {"tenantid": "[parameters('accesspolicies')[copyindex('accesspolicies')].tenantid]", "objectid": "[parameters('accesspolicies')[copyindex('accesspolicies')].objectid]", "permissions": "[parameters('accesspolicies')[copyindex('accesspolicies')].permissions]"}}], "enabledfordeployment": "[parameters('enabledfordeployment')]", "enabledfordiskencryption": "[parameters('enabledfordiskencryption')]", "enabledfortemplatedeployment": "[parameters('enabledfortemplatedeployment')]", "enablesoftdelete": "[parameters('enablesoftdelete')]", "softdeleteretentionindays": "[if(parameters('enablesoftdelete'), parameters('softdeleteretentionindays'), json('null'))]", "enablerbacauthorization": "[parameters('enablerbacauthorization')]", "enablepurgeprotection": "[if(parameters('enablepurgeprotection'), parameters('enablepurgeprotection'), json('null'))]", "networkacls": {"bypass": "[parameters('networkrulebypassoptions')]", "defaultaction": "[parameters('networkruleaction')]", "copy": [{"name": "iprules", "count": "[length(parameters('iprules'))]", "input": {"value": "[parameters('iprules')[copyindex('iprules')]]"}}, {"name": "virtualnetworkrules", "count": "[length(parameters('virtualnetworkrules'))]", "input": {"id": "[parameters('virtualnetworkrules')[copyindex('virtualnetworkrules')]]"}}]}}} |
The Azure Database Migration Service is a fully managed service designed to enable seamless migrations from multiple database sources to Azure Data platforms with minimal downtime. | {"type": "microsoft.datamigration/services", "sku": {"name": "standard_4vcores", "tier": "standard", "size": "4 vcores"}, "name": "[variables('dmsservicename')]", "apiversion": "2018-07-15-preview", "location": "[parameters('location')]", "properties": {"virtualsubnetid": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('advnet'), variables('defaultsubnetname'))]"}, "resources": [{"type": "projects", "name": "sqltosqldbmigrationproject", "apiversion": "2018-07-15-preview", "location": "[parameters('location')]", "properties": {"sourceplatform": "sql", "targetplatform": "sqldb"}, "dependson": ["[resourceid('microsoft.datamigration/services", variables('dmsservicename'))]"]}], "dependson": ["[resourceid('microsoft.network/virtualnetworks/subnets", variables('advnet'), variables('defaultsubnetname'))]"]} |
Deploy Azure Database Migration Service (DMS) | {"type": "microsoft.datamigration/services", "apiversion": "2018-07-15-preview", "name": "[parameters('servicename')]", "location": "[parameters('location')]", "sku": {"tier": "standard", "size": "1 vcores", "name": "standard_1vcores"}, "dependson": ["[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnetname'))]"], "properties": {"virtualsubnetid": "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnetname'))]"}} |
This template creates a storage account, 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": [{"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('storageaccountname'))]", "properties": {"objecttype": "backupinstance", "datasourceinfo": {"objecttype": "datasource", "resourceid": "[resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname'))]", "resourcename": "[parameters('storageaccountname')]", "resourcetype": "[variables('resourcetype')]", "resourceuri": "[resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname'))]", "resourcelocation": "[parameters('location')]", "datasourcetype": "[variables('datasourcetype')]"}, "policyinfo": {"policyid": "[resourceid('microsoft.dataprotection/backupvaults/backuppolicies", parameters('vaultname'), parameters('backuppolicyname'))]", "name": "[parameters('backuppolicyname')]"}}, "dependson": ["[resourceid('microsoft.dataprotection/backupvaults/backuppolicies", parameters('vaultname'), parameters('backuppolicyname'))]", "[resourceid('microsoft.dataprotection/backupvaults", parameters('vaultname'))]", "[extensionresourceid(resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname')), "microsoft.authorization/roleassignments", guid(resourceid('microsoft.dataprotection/backupvaults", parameters('vaultname')), variables('roledefinitionid'), resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname'))))]", "[resourceid('microsoft.storage/storageaccounts", parameters('storageaccountname'))]"]} |
This template creates a Backup Vault without any advanced features or additional resources | {"type": "microsoft.dataprotection/backupvaults", "apiversion": "2021-01-01", "name": "[parameters('vaultname')]", "location": "[parameters('location')]", "identity": {"type": "systemassigned"}, "properties": {"storagesettings": [{"datastoretype": "vaultstore", "type": "[parameters('vaultstorageredundancy')]"}]}} |
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'))]"]} |
Create a Data Share | {"type": "microsoft.datashare/accounts", "apiversion": "2021-08-01", "name": "[parameters('accountname')]", "location": "[parameters('location')]", "identity": {"type": "systemassigned"}}{"type": "microsoft.datashare/accounts/shares", "apiversion": "2021-08-01", "name": "[format('{0}/{1}", parameters('accountname'), parameters('sharename'))]", "properties": {"sharekind": "copybased"}, "dependson": ["[resourceid('microsoft.datashare/accounts", parameters('accountname'))]"]} |
Create a Data Share from a storage account | {"type": "microsoft.datashare/accounts", "apiversion": "2021-08-01", "name": "[variables('datashareaccountname')]", "location": "[parameters('location')]", "identity": {"type": "systemassigned"}, "properties": {}}{"type": "microsoft.datashare/accounts/shares", "apiversion": "2021-08-01", "name": "[format('{0}/{1}", variables('datashareaccountname'), variables('datasharename'))]", "properties": {"sharekind": "copybased"}, "dependson": ["[resourceid('microsoft.datashare/accounts", variables('datashareaccountname'))]"]}{"type": "microsoft.datashare/accounts/shares/datasets", "apiversion": "2021-08-01", "name": "[format('{0}/{1}/{2}", variables('datashareaccountname'), variables('datasharename'), variables('containername'))]", "kind": "container", "properties": {"subscriptionid": "[subscription().subscriptionid]", "resourcegroup": "[resourcegroup().name]", "storageaccountname": "[variables('storageaccountname')]", "containername": "[variables('containername')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/blobservices/containers", split(format('{0}/default/{1}", variables('storageaccountname'), variables('containername')), "/')[0], split(format('{0}/default/{1}", variables('storageaccountname'), variables('containername')), "/')[1], split(format('{0}/default/{1}", variables('storageaccountname'), variables('containername')), "/')[2])]", "[resourceid('microsoft.datashare/accounts/shares", variables('datashareaccountname'), variables('datasharename'))]", "[resourceid('microsoft.datashare/accounts", variables('datashareaccountname'))]", "[resourceid('microsoft.datashare/accounts/shares/invitations", variables('datashareaccountname'), variables('datasharename'), variables('invitename'))]", "[resourceid('microsoft.storage/storageaccounts", variables('storageaccountname'))]", "[resourceid('microsoft.datashare/accounts/shares/synchronizationsettings", variables('datashareaccountname'), variables('datasharename'), format('{0}_synchronizationsetting", variables('datasharename')))]"]}{"type": "microsoft.datashare/accounts/shares/invitations", "apiversion": "2021-08-01", "name": "[format('{0}/{1}/{2}", variables('datashareaccountname'), variables('datasharename'), variables('invitename'))]", "properties": {"targetemail": "[parameters('invitationemail')]"}, "dependson": ["[resourceid('microsoft.datashare/accounts/shares", variables('datashareaccountname'), variables('datasharename'))]", "[resourceid('microsoft.datashare/accounts", variables('datashareaccountname'))]"]}{"type": "microsoft.datashare/accounts/shares/synchronizationsettings", "apiversion": "2021-08-01", "name": "[format('{0}/{1}/{2}", variables('datashareaccountname'), variables('datasharename'), format('{0}_synchronizationsetting", variables('datasharename')))]", "kind": "schedulebased", "properties": {"recurrenceinterval": "[parameters('syncinterval')]", "synchronizationtime": "[parameters('synctime')]"}, "dependson": ["[resourceid('microsoft.datashare/accounts/shares", variables('datashareaccountname'), variables('datasharename'))]", "[resourceid('microsoft.datashare/accounts", variables('datashareaccountname'))]"]} |
Deploy an Azure Databricks workspace and configure CMK. | {"type": "microsoft.databricks/workspaces", "apiversion": "2018-04-01", "name": "[parameters('workspacename')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('pricingtier')]"}, "properties": {"managedresourcegroupid": "[subscriptionresourceid('microsoft.resources/resourcegroups", variables('managedresourcegroupname'))]", "parameters": {"prepareencryption": {"value": true}}}} |
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')]"}}}} |
Deploy an Azure Databricks workspace. | {"type": "microsoft.databricks/workspaces", "apiversion": "2018-04-01", "name": "[parameters('workspacename')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('pricingtier')]"}, "properties": {"managedresourcegroupid": "[subscriptionresourceid('microsoft.resources/resourcegroups", variables('managedresourcegroupname'))]", "parameters": {"enablenopublicip": {"value": "[parameters('disablepublicip')]"}}}} |
Deploy a Network Security Group, a Virtual Network and an Azure Databricks Workspace with the Virtual Network. | {"type": "microsoft.databricks/workspaces", "apiversion": "2018-04-01", "name": "[parameters('workspacename')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('pricingtier')]"}, "properties": {"managedresourcegroupid": "[subscriptionresourceid('microsoft.resources/resourcegroups", variables('managedresourcegroupname'))]", "parameters": {"customvirtualnetworkid": {"value": "[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"}, "custompublicsubnetname": {"value": "[parameters('publicsubnetname')]"}, "customprivatesubnetname": {"value": "[parameters('privatesubnetname')]"}, "enablenopublicip": {"value": "[parameters('disablepublicip')]"}}}, "dependson": ["[resourceid('microsoft.network/virtualnetworks", parameters('vnetname'))]"]} |
Deploy an Azure Databricks workspace with a custom virtual network address range. | {"type": "microsoft.databricks/workspaces", "name": "[parameters('workspacename')]", "location": "[parameters('location')]", "apiversion": "2018-04-01", "sku": {"name": "[parameters('pricingtier')]"}, "properties": {"managedresourcegroupid": "[subscriptionresourceid('microsoft.resources/resourcegroups", variables('managedresourcegroupname'))]", "parameters": {"vnetaddressprefix": {"value": "[parameters('vnetaddressprefix')]"}, "enablenopublicip": {"value": "[parameters('disablepublicip')]"}}}} |
Deploy a a Load Balancer, 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/loadbalancers", parameters('loadbalancername'))]", "[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')]"}, "loadbalancerid": {"value": "[variables('loadbalancerid')]"}, "loadbalancerbackendpoolname": {"value": "[parameters('loadbalancerbackendpoolname')]"}}}} |
Deploy an Azure Databricks workspace with a custom virtual network. | {"comments": "the resource group specified will be locked after deployment.", "type": "microsoft.databricks/workspaces", "apiversion": "2018-04-01", "name": "[parameters('workspacename')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('pricingtier')]"}, "properties": {"managedresourcegroupid": "[variables('managedresourcegroupid')]", "parameters": {"customvirtualnetworkid": {"value": "[parameters('customvirtualnetworkid')]"}, "custompublicsubnetname": {"value": "[parameters('custompublicsubnetname')]"}, "customprivatesubnetname": {"value": "[parameters('customprivatesubnetname')]"}, "enablenopublicip": {"value": "[parameters('disablepublicip')]"}}}} |
This template creates a lab in Azure DevTest Labs with a claimed Windows Server 2019 Datacenter VM | {"type": "microsoft.devtestlab/labs", "apiversion": "2018-10-15-preview", "name": "[parameters('labname')]", "location": "[parameters('location')]", "resources": [{"type": "virtualnetworks", "apiversion": "2018-10-15-preview", "name": "[variables('labvirtualnetworkname')]", "dependson": ["[resourceid('microsoft.devtestlab/labs", parameters('labname'))]"]}, {"type": "virtualmachines", "apiversion": "2018-10-15-preview", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.devtestlab/labs", parameters('labname'))]", "[resourceid('microsoft.devtestlab/labs/virtualnetworks", parameters('labname'), variables('labvirtualnetworkname'))]"], "properties": {"username": "[parameters('username')]", "password": "[parameters('password')]", "labvirtualnetworkid": "[variables('labvirtualnetworkid')]", "labsubnetname": "[variables('labsubnetname')]", "size": "[parameters('vmsize')]", "allowclaim": "false", "galleryimagereference": {"offer": "windowsserver", "publisher": "microsoftwindowsserver", "sku": "2019-datacenter", "ostype": "windows", "version": "latest"}}}]} |
This template creates a lab in Azure DevTest Labs with a Windows Server 2019 Datacenter VM | {"type": "microsoft.devtestlab/labs", "apiversion": "2018-10-15-preview", "name": "[parameters('labname')]", "location": "[parameters('location')]", "resources": [{"type": "virtualnetworks", "apiversion": "2018-10-15-preview", "name": "[variables('labvirtualnetworkname')]", "dependson": ["[resourceid('microsoft.devtestlab/labs", parameters('labname'))]"]}, {"type": "virtualmachines", "apiversion": "2018-10-15-preview", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.devtestlab/labs", parameters('labname'))]", "[resourceid('microsoft.devtestlab/labs/virtualnetworks", parameters('labname'), variables('labvirtualnetworkname'))]"], "properties": {"username": "[parameters('username')]", "password": "[parameters('password')]", "labvirtualnetworkid": "[variables('labvirtualnetworkid')]", "labsubnetname": "[variables('labsubnetname')]", "size": "[parameters('vmsize')]", "allowclaim": "true", "galleryimagereference": {"offer": "windowsserver", "publisher": "microsoftwindowsserver", "sku": "2019-datacenter", "ostype": "windows", "version": "latest"}}}]} |
This template takes a minimum amount of parameters and deploys 5 Node Service Fabric Cluster running Ubuntu | {"apiversion": "2017-07-01-preview", "type": "microsoft.servicefabric/clusters", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('supportlogstorageaccountname'))]"], "properties": {"addonfeatures": ["dnsservice", "repairmanager"], "certificate": {"thumbprint": "[parameters('certificatethumbprint')]", "x509storename": "[parameters('certificatestorevalue')]"}, "clusterstate": "default", "diagnosticsstorageaccountconfig": {"blobendpoint": "[reference(variables('supportlogstorageaccountname'), "2020-08-01-preview').primaryendpoints["blob"]]", "protectedaccountkeyname": "storageaccountkey1", "queueendpoint": "[reference(variables('supportlogstorageaccountname'), "2020-08-01-preview').primaryendpoints["queue"]]", "storageaccountname": "[variables('supportlogstorageaccountname')]", "tableendpoint": "[reference(variables('supportlogstorageaccountname'), "2020-08-01-preview').primaryendpoints["table"]]"}, "fabricsettings": [{"parameters": [{"name": "clusterprotectionlevel", "value": "[parameters('clusterprotectionlevel')]"}], "name": "security"}], "managementendpoint": "[concat('https://",reference(resourceid('microsoft.network/publicipaddresses",concat(variables('lbipname'),"-",variables('vmnodetype0name')))).dnssettings.fqdn,":",variables('nt0fabrichttpgatewayport'))]", "nodetypes": [{"name": "[variables('vmnodetype0name')]", "applicationports": {"endport": "[variables('nt0applicationendport')]", "startport": "[variables('nt0applicationstartport')]"}, "clientconnectionendpointport": "[variables('nt0fabrictcpgatewayport')]", "durabilitylevel": "bronze", "ephemeralports": {"endport": "[variables('nt0ephemeralendport')]", "startport": "[variables('nt0ephemeralstartport')]"}, "httpgatewayendpointport": "[variables('nt0fabrichttpgatewayport')]", "isprimary": true, "vminstancecount": "[parameters('nt0instancecount')]"}], "provisioningstate": "default", "reliabilitylevel": "silver", "upgrademode": "automatic", "vmimage": "linux"}, "tags": {"resourcetype": "service fabric", "clustername": "[parameters('clustername')]"}} |
This template takes a minimum amount of parameters and deploys 5 Node Service Fabric Cluster | {"apiversion": "2019-03-01", "type": "microsoft.servicefabric/clusters", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "dependson": ["[variables('supportlogstorageaccountname')]"], "tags": {"resourcetype": "service fabric", "clustername": "[parameters('clustername')]"}, "properties": {"certificate": {"thumbprint": "[parameters('certificatethumbprint')]", "x509storename": "[parameters('certificatestorevalue')]"}, "clusterstate": "default", "diagnosticsstorageaccountconfig": {"blobendpoint": "[reference(resourceid('microsoft.storage/storageaccounts", variables('supportlogstorageaccountname')), "2021-01-01').primaryendpoints.blob]", "protectedaccountkeyname": "storageaccountkey1", "queueendpoint": "[reference(resourceid('microsoft.storage/storageaccounts", variables('supportlogstorageaccountname')), "2021-01-01').primaryendpoints.queue]", "storageaccountname": "[variables('supportlogstorageaccountname')]", "tableendpoint": "[reference(resourceid('microsoft.storage/storageaccounts", variables('supportlogstorageaccountname')), "2021-01-01').primaryendpoints.table]"}, "fabricsettings": [{"parameters": [{"name": "clusterprotectionlevel", "value": "[parameters('clusterprotectionlevel')]"}], "name": "security"}], "managementendpoint": "[concat('https://",reference(variables('lbipname')).dnssettings.fqdn,":",variables('nt0fabrichttpgatewayport'))]", "nodetypes": [{"name": "[variables('vmnodetype0name')]", "applicationports": {"endport": "[variables('nt0applicationendport')]", "startport": "[variables('nt0applicationstartport')]"}, "clientconnectionendpointport": "[variables('nt0fabrictcpgatewayport')]", "durabilitylevel": "silver", "ephemeralports": {"endport": "[variables('nt0ephemeralendport')]", "startport": "[variables('nt0ephemeralstartport')]"}, "httpgatewayendpointport": "[variables('nt0fabrichttpgatewayport')]", "isprimary": true, "vminstancecount": "[parameters('nt0instancecount')]"}], "provisioningstate": "default", "reliabilitylevel": "silver", "upgrademode": "automatic", "vmimage": "windows"}} |
This template deploys 3 Nodetype Service Fabric Cluster. it also allows you to allows you to control the inbound and outbound network traffic using Network Security Groups | {"apiversion": "2018-02-01", "type": "microsoft.servicefabric/clusters", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('supportlogstorageaccountname'))]"], "properties": {"certificate": {"thumbprint": "[parameters('certificatethumbprint')]", "x509storename": "[parameters('certificatestorevalue')]"}, "clusterstate": "default", "diagnosticsstorageaccountconfig": {"blobendpoint": "[reference(resourceid('microsoft.storage/storageaccounts/", variables('supportlogstorageaccountname')), "2021-04-01').primaryendpoints.blob]", "protectedaccountkeyname": "storageaccountkey1", "queueendpoint": "[reference(resourceid('microsoft.storage/storageaccounts/", variables('supportlogstorageaccountname')), "2021-04-01').primaryendpoints.queue]", "storageaccountname": "[variables('supportlogstorageaccountname')]", "tableendpoint": "[reference(resourceid('microsoft.storage/storageaccounts/", variables('supportlogstorageaccountname')), "2021-04-01').primaryendpoints.table]"}, "fabricsettings": [{"parameters": [{"name": "clusterprotectionlevel", "value": "[parameters('clusterprotectionlevel')]"}], "name": "security"}], "managementendpoint": "[concat('https://", reference(variables('lbipnameurl')).dnssettings.fqdn,":",variables('nodesettings')[0].fabrichttpgatewayport)]", "copy": [{"name": "nodetypes", "count": "[length(variables('nodesettings'))]", "input": {"name": "[variables('nodesettings')[copyindex('nodetypes')].vmnodetypename]", "applicationports": {"endport": "[variables('nodesettings')[copyindex('nodetypes')].applicationendport]", "startport": "[variables('nodesettings')[copyindex('nodetypes')].applicationstartport]"}, "clientconnectionendpointport": "[variables('nodesettings')[copyindex('nodetypes')].fabrictcpgatewayport]", "durabilitylevel": "bronze", "ephemeralports": {"endport": "[variables('nodesettings')[copyindex('nodetypes')].ephemeralendport]", "startport": "[variables('nodesettings')[copyindex('nodetypes')].ephemeralstartport]"}, "httpgatewayendpointport": "[variables('nodesettings')[copyindex('nodetypes')].fabrichttpgatewayport]", "isprimary": true, "vminstancecount": "[variables('nodesettings')[0].instancecount]"}}], "provisioningstate": "default", "reliabilitylevel": "silver", "upgrademode": "automatic", "vmimage": "windows"}, "tags": {"resourcetype": "service fabric", "clustername": "[parameters('clustername')]"}} |
This template creates a new Azure App Configuration store with one Key Vault reference. | {"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": "[parameters('keyvaluename')]", "dependson": ["[parameters('configstorename')]"], "properties": {"value": "[string(variables('keyvaultref'))]", "contenttype": "application/vnd.microsoft.appconfig.keyvaultref+json;charset=utf-8"}}]} |
This template creates a new Azure App Configuration store with two key-values. | {"type": "microsoft.appconfiguration/configurationstores", "apiversion": "2020-07-01-preview", "name": "[parameters('configstorename')]", "location": "[parameters('location')]", "sku": {"name": "standard"}}{"type": "microsoft.appconfiguration/configurationstores/keyvalues", "apiversion": "2020-07-01-preview", "name": "[concat(parameters('configstorename'), "/", parameters('keyvaluenames')[copyindex()])]", "copy": {"name": "keyvaluecopy", "count": "[length(parameters('keyvaluenames'))]"}, "dependson": ["[parameters('configstorename')]"], "properties": {"value": "[parameters('keyvaluevalues')[copyindex()]]", "contenttype": "[parameters('contenttype')]", "tags": "[parameters('tags')]"}} |
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"}}]} |
This template creates a new Azure App Configuration store with three key-values controlled by a copy function. | {"type": "microsoft.appconfiguration/configurationstores", "apiversion": "2020-07-01-preview", "name": "[parameters('configstorename')]", "location": "[parameters('location')]", "sku": {"name": "standard"}}{"type": "microsoft.appconfiguration/configurationstores/keyvalues", "apiversion": "2020-07-01-preview", "name": "[concat(parameters('configstorename'), "/", if(contains(parameters('keydata')[copyindex()], "label'), format('{0}${1}", parameters('keydata')[copyindex()].key, parameters('keydata')[copyindex()].label), parameters('keydata')[copyindex()].key)) ]", "copy": {"name": "keyvaluecopy", "count": "[length(parameters('keydata'))]"}, "dependson": ["[parameters('configstorename')]"], "properties": {"value": "[parameters('keydata')[copyindex()].value]", "contenttype": "[if(contains(parameters('keydata')[copyindex()], "contenttype'), parameters('keydata')[copyindex()].contenttype, json('null'))]", "tags": "[if(contains(parameters('keydata')[copyindex()], "tag'), parameters('keydata')[copyindex()].tag, json('null'))]"}} |
This template creates an Azure App Configuration store. | {"type": "microsoft.appconfiguration/configurationstores", "apiversion": "2019-10-01", "name": "[parameters('configstorename')]", "location": "[parameters('location')]", "sku": {"name": "[parameters('skuname')]"}} |
Create a Data Factory account, Provision SSIS runtime in Azure. | {"name": "[parameters('datafactoryname')]", "apiversion": "2018-06-01", "type": "microsoft.datafactory/factories", "location": "[parameters('location')]", "properties": {}, "resources": [{"name": "[concat(parameters('datafactoryname'), "/spazuressisir')]", "type": "microsoft.datafactory/factories/integrationruntimes", "dependson": ["[parameters('datafactoryname')]"], "apiversion": "2018-06-01", "properties": {"type": "managed", "typeproperties": {"computeproperties": {"location": "[parameters('location')]", "nodesize": "[parameters('nodesize')]", "numberofnodes": "[parameters('nodenumber')]", "maxparallelexecutionspernode": "[parameters('maximumparallelexecutionspernode')]", "vnetproperties": {"vnetid": "[resourceid('microsoft.network/virtualnetworks", parameters('virtualnetworkname'))]", "subnet": "[parameters('subnetname')]"}}, "ssisproperties": {"cataloginfo": {"catalogserverendpoint": "[parameters('azuresqlservername')]", "catalogadminusername": "[parameters('databaseadminusername')]", "catalogadminpassword": {"type": "securestring", "value": "[parameters('databaseadminpassword')]"}, "catalogpricingtier": "[parameters('catalogpricingtier')]"}}}}}]} |
This sample demonstrates copying a number of tables from Azure SQL Database to Azure SQL Data Warehouse. You can apply the same pattern in other copy scenarios as well. | {"name": "[parameters('datafactoryname')]", "apiversion": "2018-06-01", "type": "microsoft.datafactory/factories", "location": "[parameters('location')]", "properties": {}, "resources": [{"type": "linkedservices", "name": "[variables('azurestoragelinkedservicename')]", "dependson": ["[parameters('datafactoryname')]"], "apiversion": "2018-06-01", "properties": {"type": "azurestorage", "description": "azure storage linked service", "typeproperties": {"connectionstring": {"value": "[concat('defaultendpointsprotocol=https;accountname=", parameters('azurestorageaccountname'),";accountkey=",listkeys(parameters('azurestorageaccountresourceid'), "2021-01-01').keys[0].value)]", "type": "securestring"}}}}, {"type": "linkedservices", "name": "[variables('azuresqldatabaselinkedservicename')]", "dependson": ["[parameters('datafactoryname')]"], "apiversion": "2018-06-01", "properties": {"type": "azuresqldatabase", "description": "azure sql database linked service", "typeproperties": {"connectionstring": {"value": "[variables('azuresqldatabaseconnectionstring')]", "type": "securestring"}}}}, {"type": "linkedservices", "name": "[variables('azuresqldatawarehouselinkedservicename')]", "dependson": ["[parameters('datafactoryname')]"], "apiversion": "2018-06-01", "properties": {"type": "azuresqldw", "description": "azure sql data warehouse linked service", "typeproperties": {"connectionstring": {"value": "[variables('azuresqlldatawarehouseconnectionstring')]", "type": "securestring"}}}}, {"name": "[variables('inputdatasetname')]", "type": "datasets", "apiversion": "2018-06-01", "properties": {"linkedservicename": {"referencename": "[variables('azuresqldatabaselinkedservicename')]", "type": "linkedservicereference"}, "type": "azuresqltable", "typeproperties": {"tablename": ""dummy""}}, "dependson": ["[parameters('datafactoryname')]", "[variables('azuresqldatabaselinkedservicename')]"]}, {"name": "[variables('outputdatasetname')]", "type": "datasets", "apiversion": "2018-06-01", "properties": {"linkedservicename": {"referencename": "[variables('azuresqldatawarehouselinkedservicename')]", "type": "linkedservicereference"}, "parameters": {"dwtablename": {"type": "string"}}, "type": "azuresqldwtable", "typeproperties": {"tablename": {"value": "@{dataset().dwtablename}", "type": "expression"}}}, "dependson": ["[parameters('datafactoryname')]", "[variables('azuresqldatawarehouselinkedservicename')]"]}, {"type": "pipelines", "name": "[variables('pipelinename')]", "dependson": ["[parameters('datafactoryname')]", "[variables('inputdatasetname')]", "[variables('outputdatasetname')]"], "apiversion": "2018-06-01", "properties": {"activities": [{"name": "iteratesqltables", "type": "foreach", "typeproperties": {"items": {"value": "@pipeline().parameters.tablelist", "type": "expression"}, "activities": [{"name": "copydata", "type": "copy", "typeproperties": {"source": {"type": "sqlsource", "sqlreaderquery": "select * from [@{item().table_schema}].[@{item().table_name}]"}, "sink": {"type": "sqldwsink", "allowpolybase": true, "writebatchsize": 10000, "precopyscript": "truncate table [@{item().table_schema}].[@{item().table_name}]", "polybasesettings": {"rejectvalue": 0, "rejecttype": "value", "usetypedefault": false}}, "enablestaging": true, "stagingsettings": {"linkedservicename": {"referencename": "[variables('azurestoragelinkedservicename')]", "type": "linkedservicereference"}}, "clouddatamovementunits": 0}, "inputs": [{"referencename": "[variables('inputdatasetname')]", "type": "datasetreference", "parameters": {}}], "outputs": [{"referencename": "[variables('outputdatasetname')]", "type": "datasetreference", "parameters": {"dwtablename": "[concat(variables('leftbracket'), "@{item().table_schema}].[@{item().table_name}]')]"}}]}]}}], "parameters": {"tablelist": {"type": "array"}}}}, {"name": "[variables('pipelinename2')]", "type": "pipelines", "apiversion": "2018-06-01", "properties": {"activities": [{"name": "lookuptablelist", "description": " retrieve the table list from azure sql database", "type": "lookup", "typeproperties": {"source": {"type": "sqlsource", "sqlreaderquery": "select table_schema, table_name from information_schema.tables where table_type = "base table" and table_schema = "saleslt" and table_name <> "productmodel""}, "dataset": {"referencename": "[variables('inputdatasetname')]", "type": "datasetreference", "parameters": {}}, "firstrowonly": false}}, {"name": "triggercopy", "type": "executepipeline", "dependson": [{"activity": "lookuptablelist", "dependencyconditions": ["succeeded"]}], "typeproperties": {"pipeline": {"referencename": "[variables('pipelinename')]", "type": "pipelinereference"}, "parameters": {"tablelist": "@activity('lookuptablelist').output.value"}}}]}, "dependson": ["[parameters('datafactoryname')]", "[variables('inputdatasetname')]", "[variables('outputdatasetname')]", "[variables('pipelinename')]"]}]} |
The template creates a data factory, linked services for on-premises SQL server and Azure blob storage, datasets to represent input and output data, and then the pipeline that copies the data. | {"name": "[parameters('datafactoryname')]", "apiversion": "2018-06-01", "type": "microsoft.datafactory/factories", "location": "[parameters('datafactorylocation')]", "properties": {}, "resources": [{"type": "linkedservices", "name": "[variables('azurestoragelinkedservicename')]", "dependson": ["[parameters('datafactoryname')]"], "apiversion": "2018-06-01", "properties": {"type": "azurestorage", "description": "azure storage linked service", "typeproperties": {"connectionstring": {"value": "[concat('defaultendpointsprotocol=https;accountname=",parameters('storageaccountname'),";accountkey=",listkeys(variables('storageaccountid'), "2021-01-01').keys[0].value)]", "type": "securestring"}}}}, {"name": "[variables('selfhostedirname')]", "type": "integrationruntimes", "apiversion": "2018-06-01", "properties": {"type": "selfhosted"}, "dependson": ["[parameters('datafactoryname')]"]}, {"name": "[variables('onpremsqlserverlinkedservicename')]", "type": "linkedservices", "apiversion": "2018-06-01", "properties": {"type": "sqlserver", "typeproperties": {"connectionstring": {"type": "securestring", "value": "[parameters('onpremsqlserverconnectionstring')]"}}, "connectvia": {"referencename": "[variables('selfhostedirname')]", "type": "integrationruntimereference"}}, "dependson": ["[parameters('datafactoryname')]", "[variables('selfhostedirname')]"]}, {"name": "[variables('inputdatasetname')]", "type": "datasets", "apiversion": "2018-06-01", "properties": {"linkedservicename": {"referencename": "[variables('onpremsqlserverlinkedservicename')]", "type": "linkedservicereference"}, "type": "sqlservertable", "typeproperties": {"tablename": "[parameters('sqltablename')]"}}, "dependson": ["[parameters('datafactoryname')]", "[variables('onpremsqlserverlinkedservicename')]"]}, {"name": "[variables('outputdatasetname')]", "type": "datasets", "apiversion": "2018-06-01", "properties": {"linkedservicename": {"referencename": "[variables('azurestoragelinkedservicename')]", "type": "linkedservicereference"}, "type": "azureblob", "typeproperties": {"filename": "@concat(pipeline().runid, ".txt')", "folderpath": "[concat(parameters('blobcontainer'), "\\", parameters('outputblobfolder'))]"}}, "dependson": ["[parameters('datafactoryname')]", "[variables('azurestoragelinkedservicename')]"]}, {"type": "pipelines", "name": "[variables('pipelinename')]", "dependson": ["[parameters('datafactoryname')]", "[variables('inputdatasetname')]", "[variables('outputdatasetname')]"], "apiversion": "2018-06-01", "properties": {"activities": [{"type": "copy", "typeproperties": {"source": {"type": "blobsource", "recursive": true}, "sink": {"type": "sqlsink", "writebatchsize": 10000}}, "name": "mycopyactivity", "inputs": [{"referencename": "[variables('inputdatasetname')]", "type": "datasetreference"}], "outputs": [{"referencename": "[variables('outputdatasetname')]", "type": "datasetreference"}]}]}}]} |
Two-Activity Chained Data Factory Pipeline On-Prem SQL -> Azure Data Lake Store -> Azure SQL | {"name": "[variables('datafactoryname')]", "apiversion": "2015-10-01", "type": "microsoft.datafactory/datafactories", "location": "[parameters('location')]", "resources": [{"dependson": ["[resourceid('microsoft.datafactory/datafactories/", variables('datafactoryname'))]"], "type": "gateways", "apiversion": "2015-10-01", "name": "[variables('gatewayname')]", "properties": {"description": "adf on-premises data management gateway"}}, {"type": "linkedservices", "name": "[variables('datalakelinkedservicename')]", "apiversion": "2015-10-01", "dependson": ["[variables('datafactoryname')]"], "properties": {"type": "azuredatalakestore", "typeproperties": {"datalakestoreuri": "[parameters('datalakestoreuri')]", "serviceprincipalid": "[parameters('datalakestoreserviceprincipalid')]", "serviceprincipalkey": "[parameters('datalakestoreserviceprincipalkey')]", "tenant": "[subscription().tenantid]", "subscriptionid": "[subscription().subscriptionid]", "resourcegroupname": "[resourcegroup().name]"}}}, {"type": "linkedservices", "name": "[variables('sqllinkedservicename')]", "apiversion": "2015-10-01", "dependson": ["[variables('datafactoryname')]", "[variables('gatewayname')]"], "properties": {"type": "onpremisessqlserver", "typeproperties": {"connectionstring": "placeholder-connectionstring-replace-post-deployment", "gatewayname": "[variables('gatewayname')]", "password": "**********"}}}, {"type": "linkedservices", "name": "[variables('azuresqllinkedservicename')]", "apiversion": "2015-10-01", "dependson": ["[variables('datafactoryname')]"], "properties": {"type": "azuresqldatabase", "typeproperties": {"connectionstring": "[parameters('azuresqlconnectionstring')]"}}}, {"type": "datasets", "name": "[variables('datalakedatasetname')]", "dependson": ["[variables('datafactoryname')]", "[variables('datalakelinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"structure": [{"name": "currencycode", "type": "string"}, {"name": "name", "type": "string"}, {"name": "modifieddate", "type": "datetime"}], "published": false, "type": "azuredatalakestore", "linkedservicename": "[variables('datalakelinkedservicename')]", "typeproperties": {"filename": "data.orc", "folderpath": "[concat(variables('datafactoryname'), "/{year}/{month}/{day}/{hour}/{minute}/')]", "format": {"type": "orcformat"}, "partitionedby": [{"name": "year", "value": {"type": "datetime", "date": "slicestart", "format": "yy"}}, {"name": "month", "value": {"type": "datetime", "date": "slicestart", "format": "mm"}}, {"name": "day", "value": {"type": "datetime", "date": "slicestart", "format": "dd"}}, {"name": "hour", "value": {"type": "datetime", "date": "slicestart", "format": "hh"}}, {"name": "minute", "value": {"type": "datetime", "date": "slicestart", "format": "mm"}}]}, "availability": {"frequency": "day", "interval": 1}, "external": false}}, {"type": "datasets", "name": "[variables('sqldatasetname')]", "dependson": ["[variables('datafactoryname')]", "[variables('sqllinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"structure": [{"name": "currencycode", "type": "string"}, {"name": "name", "type": "string"}, {"name": "modifieddate", "type": "datetime"}], "published": false, "type": "sqlservertable", "linkedservicename": "[variables('sqllinkedservicename')]", "typeproperties": {"tablename": "sales.currency"}, "availability": {"frequency": "day", "interval": 1}, "external": true}}, {"type": "datasets", "name": "[variables('azuresqldatasetname')]", "dependson": ["[variables('datafactoryname')]", "[variables('azuresqllinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"structure": [{"name": "currencycode", "type": "string"}, {"name": "name", "type": "string"}, {"name": "modifieddate", "type": "datetime"}], "published": false, "type": "azuresqltable", "linkedservicename": "[variables('azuresqllinkedservicename')]", "typeproperties": {"tablename": "sales.currency"}, "availability": {"frequency": "day", "interval": 1}, "external": false}}, {"type": "datapipelines", "name": "[variables('pipelinename')]", "dependson": ["[variables('datafactoryname')]", "[variables('datalakelinkedservicename')]", "[variables('sqllinkedservicename')]", "[variables('azuresqllinkedservicename')]", "[variables('datalakedatasetname')]"], "apiversion": "2015-10-01", "properties": {"activities": [{"type": "copy", "typeproperties": {"source": {"type": "sqlsource", "sqlreaderquery": "$$text.format('select * from sales.currency where modifieddate >= \\"{0:yyyy-mm-dd hh:mm}\\" and modifieddate < \\"{1:yyyy-mm-dd hh:mm}\\"", windowstart, windowend)"}, "sink": {"type": "azuredatalakestoresink", "writebatchsize": 0, "writebatchtimeout": "00:00:00"}}, "inputs": [{"name": "[variables('sqldatasetname')]"}], "outputs": [{"name": "[variables('datalakedatasetname')]"}], "policy": {"timeout": "1.00:00:00", "concurrency": 10, "executionpriorityorder": "newestfirst", "style": "startofinterval", "retry": 3, "longretry": 0, "longretryinterval": "00:00:00"}, "scheduler": {"frequency": "day", "interval": 1}, "name": "activity-onpremsql->adl"}, {"type": "copy", "typeproperties": {"source": {"type": "azuredatalakestoresource", "recursive": false}, "sink": {"type": "sqlsink", "sqlwritercleanupscript": "$$text.format('delete [sales].[currency] where [modifieddate] >= \\"{0:yyyy-mm-dd hh:mm}\\" and [modifieddate] <\\"{1:yyyy-mm-dd hh:mm}\\"", windowstart, windowend)", "writebatchsize": 0, "writebatchtimeout": "00:00:00"}, "translator": {"type": "tabulartranslator", "columnmappings": "currencycode:currencycode,modifieddate:modifieddate,name:name"}}, "inputs": [{"name": "[variables('datalakedatasetname')]"}], "outputs": [{"name": "[variables('azuresqldatasetname')]"}], "policy": {"timeout": "1.00:00:00", "concurrency": 10, "executionpriorityorder": "newestfirst", "style": "startofinterval", "retry": 3, "longretry": 0, "longretryinterval": "00:00:00"}, "scheduler": {"frequency": "day", "interval": 1}, "name": "activity-adl->azuresql"}], "start": "2017-08-16t00:00:00z", "end": "2099-08-16t00:00:00z", "ispaused": true, "pipelinemode": "scheduled"}}]} |
Create a data factory with one pipeline. Pipeline has a HDInsight Hive activity that runs hive script on an Azure HDInsight cluster to transform data. | {"name": "[variables('datafactoryname')]", "apiversion": "2015-10-01", "type": "microsoft.datafactory/datafactories", "location": "[parameters('location')]", "resources": [{"type": "linkedservices", "name": "[variables('azurestoragelinkedservicename')]", "dependson": ["[variables('datafactoryname')]"], "apiversion": "2015-10-01", "properties": {"type": "azurestorage", "description": "azure storage linked service", "typeproperties": {"connectionstring": "[concat('defaultendpointsprotocol=https;accountname=",parameters('storageaccountname'),";accountkey=",parameters('storageaccountkey'))]"}}}, {"type": "linkedservices", "name": "[variables('hdinsightondemandlinkedservicename')]", "dependson": ["[variables('datafactoryname')]", "[variables('azurestoragelinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "hdinsightondemand", "typeproperties": {"clustersize": 1, "version": "3.2", "timetolive": "00:05:00", "ostype": "windows", "linkedservicename": "[variables('azurestoragelinkedservicename')]"}}}, {"type": "datasets", "name": "[variables('blobinputdatasetname')]", "dependson": ["[variables('datafactoryname')]", "[variables('azurestoragelinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "azureblob", "linkedservicename": "[variables('azurestoragelinkedservicename')]", "typeproperties": {"filename": "[parameters('inputblobname')]", "folderpath": "[concat(parameters('blobcontainer'), "/", parameters('inputblobfolder'))]", "format": {"type": "textformat", "columndelimiter": ","}}, "availability": {"frequency": "month", "interval": 1}, "external": true}}, {"type": "datasets", "name": "[variables('bloboutputdatasetname')]", "dependson": ["[variables('datafactoryname')]", "[variables('azurestoragelinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "azureblob", "linkedservicename": "[variables('azurestoragelinkedservicename')]", "typeproperties": {"folderpath": "[concat(parameters('blobcontainer'), "/", parameters('outputblobfolder'))]", "format": {"type": "textformat", "columndelimiter": ","}}, "availability": {"frequency": "month", "interval": 1}}}, {"type": "datapipelines", "name": "[variables('pipelinename')]", "dependson": ["[variables('datafactoryname')]", "[variables('azurestoragelinkedservicename')]", "[variables('hdinsightondemandlinkedservicename')]", "[variables('blobinputdatasetname')]", "[variables('bloboutputdatasetname')]"], "apiversion": "2015-10-01", "properties": {"description": "pipeline that transforms data using hive script.", "activities": [{"type": "hdinsighthive", "typeproperties": {"scriptpath": "[concat(parameters('blobcontainer'), "/", parameters('hivescriptfolder'), "/", parameters('hivescriptfile'))]", "scriptlinkedservice": "[variables('azurestoragelinkedservicename')]", "defines": {"inputtable": "[concat(replace(reference(resourceid(parameters('storageaccountresourcegroupname'), "microsoft.storage/storageaccounts/", parameters('storageaccountname')), "2016-01-01').primaryendpoints.blob, "https://", concat('wasb://", parameters('blobcontainer'), "@')), parameters('inputblobfolder'))]", "partitionedtable": "[concat(replace(reference(resourceid(parameters('storageaccountresourcegroupname'), "microsoft.storage/storageaccounts/", parameters('storageaccountname')), "2016-01-01').primaryendpoints.blob, "https://", concat('wasb://", parameters('blobcontainer'), "@')), parameters('outputblobfolder'))]"}}, "inputs": [{"name": "[variables('blobinputdatasetname')]"}], "outputs": [{"name": "[variables('bloboutputdatasetname')]"}], "policy": {"concurrency": 1, "retry": 2}, "scheduler": {"frequency": "month", "interval": 1}, "name": "runsamplehiveactivity", "linkedservicename": "[variables('hdinsightondemandlinkedservicename')]"}], "start": "2016-09-01t00:00:00z", "end": "2016-09-02t00:00:00z", "ispaused": false}}]} |
Create an empty data factory | {"type": "microsoft.datafactory/factories", "apiversion": "2018-06-01", "name": "[parameters('name')]", "location": "[parameters('location')]", "identity": {"type": "systemassigned"}, "properties": {}} |
Create a Data Factory account, Blob source, MySQL sink and Copy Activity Pipeline | {"name": "[parameters('datafactoryname')]", "apiversion": "2018-06-01", "type": "microsoft.datafactory/factories", "location": "[parameters('location')]", "properties": {}, "resources": [{"type": "linkedservices", "name": "[variables('azurestoragelinkedservicename')]", "dependson": ["[parameters('datafactoryname')]"], "apiversion": "2018-06-01", "properties": {"type": "azurestorage", "description": "azure storage linked service", "typeproperties": {"connectionstring": {"value": "[concat('defaultendpointsprotocol=https;accountname=", split(split(reference(parameters('storageaccountresourceid'), "2019-04-01').primaryendpoints.blob, "/')[2], ".')[0], ";accountkey=", listkeys(parameters('storageaccountresourceid'), "2019-04-01').keys[0].value)]", "type": "securestring"}}}}, {"type": "linkedservices", "name": "[variables('azuremysqldatabaselinkedservicename')]", "dependson": ["[parameters('datafactoryname')]"], "apiversion": "2018-06-01", "properties": {"type": "azuremysql", "description": "azure database for mysql linked service", "typeproperties": {"connectionstring": {"value": "[concat('server=", reference(parameters('mysqlresourceid'), "2017-12-01').fullyqualifieddomainname, ";port=3306;database=" ,parameters('mysqldatabase'), ";uid=", parameters('mysqlusername'), ";pwd=", parameters('mysqlpassword'), ";sslmode=preferred;')]", "type": "securestring"}}}}, {"type": "datasets", "name": "[variables('inputdatasetname')]", "dependson": ["[parameters('datafactoryname')]", "[variables('azurestoragelinkedservicename')]"], "apiversion": "2018-06-01", "properties": {"type": "azureblob", "structure": [{"name": "firstname", "type": "string"}, {"name": "lastname", "type": "string"}], "typeproperties": {"format": {"type": "textformat", "columndelimiter": ",", "nullvalue": "\\n", "treatemptyasnull": false, "firstrowasheader": false}, "folderpath": "[concat(parameters('blobcontainer'), "/", parameters('inputblobfolder'), "/')]", "filename": "[parameters('inputblobname')]"}, "linkedservicename": {"referencename": "[variables('azurestoragelinkedservicename')]", "type": "linkedservicereference"}}}, {"type": "datasets", "name": "[variables('outputdatasetname')]", "dependson": ["[parameters('datafactoryname')]", "[variables('azuremysqldatabaselinkedservicename')]"], "apiversion": "2018-06-01", "properties": {"type": "azuremysqltable", "typeproperties": {"tablename": "[parameters('mysqltablename')]"}, "linkedservicename": {"referencename": "[variables('azuremysqldatabaselinkedservicename')]", "type": "linkedservicereference"}}}, {"type": "pipelines", "name": "[variables('pipelinename')]", "dependson": ["[parameters('datafactoryname')]", "[variables('inputdatasetname')]", "[variables('outputdatasetname')]"], "apiversion": "2018-06-01", "properties": {"activities": [{"type": "copy", "typeproperties": {"source": {"type": "blobsource", "recursive": true}, "sink": {"type": "azuremysqlsink", "writebatchsize": 10000}}, "name": "mycopyactivity", "inputs": [{"referencename": "[variables('inputdatasetname')]", "type": "datasetreference"}], "outputs": [{"referencename": "[variables('outputdatasetname')]", "type": "datasetreference"}]}]}}]} |
Create a Data Factory, Copy from Blob to SQL with Sproc | {"name": "[variables('datafactoryname')]", "apiversion": "2015-10-01", "type": "microsoft.datafactory/datafactories", "location": "[parameters('location')]", "resources": [{"type": "linkedservices", "name": "[variables('storagelinkedservicename')]", "apiversion": "2015-10-01", "dependson": ["[variables('datafactoryname')]"], "properties": {"type": "azurestorage", "description": "azure storage linked service", "typeproperties": {"connectionstring": "[concat('defaultendpointsprotocol=https;accountname=",parameters('storageaccountname'),";accountkey=",parameters('storageaccountkey'))]"}}}, {"type": "linkedservices", "name": "[variables('sqllinkedservicename')]", "apiversion": "2015-10-01", "dependson": ["[variables('datafactoryname')]"], "properties": {"type": "azuresqldatabase", "description": "azure sql linked service", "typeproperties": {"connectionstring": "[concat('data source=tcp:", parameters('sqlservername'), ".database.windows.net,1433;initial catalog=", parameters('sqldatabasename'), ";integrated security=false;user id=", parameters('sqluserid'), ";password=", parameters('sqlpassword'), ";connect timeout=30;encrypt=true')]"}}}, {"type": "datasets", "name": "[variables('storagedataset')]", "dependson": ["[variables('datafactoryname')]", "[variables('storagelinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "azureblob", "linkedservicename": "[variables('storagelinkedservicename')]", "typeproperties": {"folderpath": "[concat(parameters('sourceblobcontainer'), "/')]", "filename": "[parameters('sourceblobname')]", "format": {"type": "textformat"}}, "availability": {"frequency": "hour", "interval": 1}, "external": true}}, {"type": "datasets", "name": "[variables('intermediatedataset')]", "dependson": ["[variables('datafactoryname')]", "[variables('sqllinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "azuresqltable", "linkedservicename": "[variables('sqllinkedservicename')]", "typeproperties": {"tablename": "[variables('intermediatedataset')]"}, "availability": {"frequency": "hour", "interval": 1}}}, {"type": "datasets", "name": "[variables('sqldataset')]", "dependson": ["[variables('datafactoryname')]", "[variables('sqllinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "azuresqltable", "linkedservicename": "[variables('sqllinkedservicename')]", "typeproperties": {"tablename": "[parameters('sqltargettable')]"}, "availability": {"frequency": "hour", "interval": 1}}}, {"type": "datapipelines", "name": "[variables('pipelinename')]", "dependson": ["[variables('datafactoryname')]", "[variables('storagelinkedservicename')]", "[variables('sqllinkedservicename')]", "[variables('storagedataset')]", "[variables('sqldataset')]"], "apiversion": "2015-10-01", "properties": {"description": "copies data from azure blob to sql db while invoking stored procedure", "activities": [{"name": "blobtosqltablecopyactivity", "type": "copy", "typeproperties": {"source": {"type": "blobsource"}, "sink": {"type": "sqlsink", "writebatchsize": 0, "writebatchtimeout": "00:00:00"}}, "inputs": [{"name": "[variables('storagedataset')]"}], "outputs": [{"name": "[variables('intermediatedataset')]"}]}, {"name": "sqltabletosqldbsprocactivity", "type": "sqlserverstoredprocedure", "inputs": [{"name": "[variables('intermediatedataset')]"}], "outputs": [{"name": "[variables('sqldataset')]"}], "typeproperties": {"storedprocedurename": "[parameters('sqlwriterstoredprocedurename')]"}, "scheduler": {"frequency": "hour", "interval": 1}, "policy": {"timeout": "02:00:00", "concurrency": 1, "executionpriorityorder": "newestfirst", "retry": 3}}], "start": "2016-10-01t00:00:00z", "end": "2016-10-02t00:00:00z"}}]} |
Create a data factory with one pipeline with the following sequence of activities: Copy -> HDInsight Hive -> Copy. | {"name": "[variables('datafactoryname')]", "apiversion": "2015-10-01", "type": "microsoft.datafactory/datafactories", "location": "west us", "resources": [{"type": "linkedservices", "name": "[variables('ftplinkedservicename')]", "dependson": ["[variables('datafactoryname')]"], "apiversion": "2015-10-01", "properties": {"type": "ftpserver", "typeproperties": {"host": "[parameters('ftphost')]", "port": 21, "authenticationtype": "basic", "username": "[parameters('ftpuser')]", "password": "[parameters('ftppassword')]", "enablessl": false, "enableservercertificatevalidation": false}}}, {"type": "linkedservices", "name": "[variables('azurestoragelinkedservicename')]", "dependson": ["[variables('datafactoryname')]"], "apiversion": "2015-10-01", "properties": {"type": "azurestorage", "description": "azure storage linked service", "typeproperties": {"connectionstring": "[concat('defaultendpointsprotocol=https;accountname=",parameters('storageaccountname'),";accountkey=",parameters('storageaccountkey'))]"}}}, {"type": "linkedservices", "name": "[variables('hdinsightondemandlinkedservicename')]", "dependson": ["[variables('datafactoryname')]", "[variables('azurestoragelinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "hdinsightondemand", "typeproperties": {"clustersize": 1, "version": "3.2", "timetolive": "00:05:00", "ostype": "windows", "linkedservicename": "[variables('azurestoragelinkedservicename')]"}}}, {"type": "linkedservices", "name": "[variables('azuresqllinkedservicename')]", "dependson": ["[variables('datafactoryname')]"], "apiversion": "2015-10-01", "properties": {"type": "azuresqldatabase", "description": "azure sql linked service", "typeproperties": {"connectionstring": "[concat('server=tcp:",parameters('sqlservername'),".database.windows.net,1433;database=", parameters('sqldatabasename'), ";user id=",parameters('sqlserverusername'),";password=",parameters('sqlserverpassword'),";trusted_connection=false;encrypt=true;connection timeout=30')]"}}}, {"type": "datasets", "name": "[variables('ftpdatasetname')]", "dependson": ["[variables('datafactoryname')]", "[variables('ftplinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "fileshare", "linkedservicename": "[variables('ftplinkedservicename')]", "typeproperties": {"folderpath": "[parameters('ftpfoldername')]", "filename": "[parameters('ftpfilename')]"}, "availability": {"frequency": "day", "interval": 1}, "external": true}}, {"type": "datasets", "name": "[variables('blobinputdatasetname')]", "dependson": ["[variables('datafactoryname')]", "[variables('azurestoragelinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "azureblob", "linkedservicename": "[variables('azurestoragelinkedservicename')]", "typeproperties": {"filename": "[parameters('inputblobname')]", "folderpath": "[concat(parameters('blobcontainer'), "/", parameters('inputblobfolder'))]"}, "availability": {"frequency": "day", "interval": 1}}}, {"type": "datasets", "name": "[variables('bloboutputdatasetname')]", "dependson": ["[variables('datafactoryname')]", "[variables('azurestoragelinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "azureblob", "linkedservicename": "[variables('azurestoragelinkedservicename')]", "typeproperties": {"folderpath": "[concat(parameters('blobcontainer'), "/", parameters('outputblobfolder'))]", "format": {"type": "textformat", "columndelimiter": ","}}, "availability": {"frequency": "day", "interval": 1}}}, {"type": "datasets", "name": "[variables('sqldatasetname')]", "dependson": ["[variables('datafactoryname')]", "[variables('azuresqllinkedservicename')]"], "apiversion": "2015-10-01", "properties": {"type": "azuresqltable", "linkedservicename": "[variables('azuresqllinkedservicename')]", "typeproperties": {"tablename": "[parameters('targetsqltable')]"}, "availability": {"frequency": "day", "interval": 1}, "policy": {}}}, {"type": "datapipelines", "name": "[variables('pipelinename')]", "dependson": ["[variables('datafactoryname')]", "[variables('azurestoragelinkedservicename')]", "[variables('hdinsightondemandlinkedservicename')]", "[variables('ftplinkedservicename')]", "[variables('azuresqllinkedservicename')]", "[variables('ftpdatasetname')]", "[variables('blobinputdatasetname')]", "[variables('bloboutputdatasetname')]", "[variables('sqldatasetname')]"], "apiversion": "2015-10-01", "properties": {"description": "pipeline that copies data from an ftp server to azure blobs, invokes a hive script on an on-demand hdinsightcluster to transform the data", "activities": [{"type": "copy", "name": "ftptoblobcopy", "typeproperties": {"source": {"type": "filesystemsource", "recursive": false}, "sink": {"type": "blobsink", "copybehavior": "preservehierarchy", "writebatchsize": 0, "writebatchtimeout": "00:00:00"}}, "inputs": [{"name": "[variables('ftpdatasetname')]"}], "outputs": [{"name": "[variables('blobinputdatasetname')]"}], "policy": {"concurrency": 1, "executionpriorityorder": "newestfirst", "retry": 1, "timeout": "00:05:00"}}, {"type": "hdinsighthive", "typeproperties": {"scriptpath": "[concat(parameters('blobcontainer'), "/", parameters('hivescriptfolder'), "/", parameters('hivescriptfile'))]", "scriptlinkedservice": "[variables('azurestoragelinkedservicename')]", "defines": {"inputtable": "[concat(replace(reference(resourceid(parameters('storageaccountresourcegroupname'), "microsoft.storage/storageaccounts/", parameters('storageaccountname')), "2016-01-01').primaryendpoints.blob, "https://", concat('wasb://", parameters('blobcontainer'), "@')), parameters('inputblobfolder'))]", "outputtable": "[concat(replace(reference(resourceid(parameters('storageaccountresourcegroupname'), "microsoft.storage/storageaccounts/", parameters('storageaccountname')), "2016-01-01').primaryendpoints.blob, "https://", concat('wasb://", parameters('blobcontainer'), "@')), parameters('outputblobfolder'))]"}}, "inputs": [{"name": "[variables('blobinputdatasetname')]"}], "outputs": [{"name": "[variables('bloboutputdatasetname')]"}], "policy": {"concurrency": 1, "retry": 2}, "name": "runsamplehiveactivity", "linkedservicename": "[variables('hdinsightondemandlinkedservicename')]"}, {"type": "copy", "typeproperties": {"source": {"type": "blobsource"}, "sink": {"type": "sqlsink", "writebatchsize": 0, "writebatchtimeout": "00:00:00"}}, "inputs": [{"name": "[variables('bloboutputdatasetname')]"}], "outputs": [{"name": "[variables('sqldatasetname')]"}], "policy": {"timeout": "1.00:00:00", "concurrency": 1, "executionpriorityorder": "newestfirst", "style": "startofinterval", "retry": 3, "longretry": 0, "longretryinterval": "00:00:00"}, "name": "blobtosqlcopy"}], "start": "2015-10-01t00:00:00z", "end": "2015-10-02t00:00:00z", "ispaused": false}}]} |
Deploy an HDInsight cluster running Linux (with Azure Storage) with an SSH public key | {"name": "[parameters('clustername')]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts",variables('storageaccountname'))]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "[parameters('clustertype')]", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(concat(reference(resourceid('microsoft.storage/storageaccounts", variables('storageaccountname')), "2019-06-01').primaryendpoints.blob),"https:","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('storageaccountname')), "2019-06-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "sshprofile": {"publickeys": [{"certificatedata": "[parameters('sshpublickey')]"}]}}}}, {"name": "workernode", "targetinstancecount": "[parameters('clusterworkernodecount')]", "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "sshprofile": {"publickeys": [{"certificatedata": "[parameters('sshpublickey')]"}]}}}}]}}} |
Deploy an empty edge node and add it to an existing HDInsight cluster | {"name": "[concat(parameters('clustername'),"/", variables('applicationname'))]", "type": "microsoft.hdinsight/clusters/applications", "apiversion": "2021-06-01", "properties": {"marketplaceidentifier": "emptynode", "computeprofile": {"roles": [{"name": "edgenode", "targetinstancecount": 1, "hardwareprofile": {"vmsize": "[parameters('edgenodevirtualmachinesize')]"}}]}, "installscriptactions": [{"name": "[concat('emptynode","-" ,uniquestring(variables('applicationname')))]", "uri": "[uri(parameters('_artifactslocation'), concat(parameters('installscriptactionfolder'), "/", parameters('installscriptaction'), parameters('_artifactslocationsastoken')))]", "roles": ["edgenode"]}], "sshendpoints": [{"location": "[concat(variables('applicationname'),".",parameters('clustername'),"-ssh.azurehdinsight.net')]", "destinationport": 22, "publicport": 22}], "applicationtype": "customapplication"}} |
Deploy two HBase clustes with each in its own VNet in the same region | {"name": "[variables('clusternode1').name]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts/",variables('clusternode1').defaultstorageaccount.name)]", "[resourceid('microsoft.network/virtualnetworks/",variables('vnet1').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "hbase", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('clusternode1').defaultstorageaccount.name), "2019-06-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[variables('clusternode1').name]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('clusternode1').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')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet1').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet1').name, variables('vnet1').subnetname)]"}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet1').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet1').name, variables('vnet1').subnetname)]"}}, {"name": "zookeepernode", "targetinstancecount": 3, "hardwareprofile": {"vmsize": "[parameters('zookeepernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet1').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet1').name, variables('vnet1').subnetname)]"}}]}}}{"name": "[variables('clusternode2').name]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts/",variables('clusternode2').defaultstorageaccount.name)]", "[resourceid('microsoft.network/virtualnetworks/",variables('vnet2').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "hbase", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('clusternode2').defaultstorageaccount.name), "2019-06-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[variables('clusternode2').name]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('clusternode2').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')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet2').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet2').name, variables('vnet2').subnetname)]"}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet2').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet2').name, variables('vnet2').subnetname)]"}}, {"name": "zookeepernode", "targetinstancecount": 3, "hardwareprofile": {"vmsize": "[parameters('zookeepernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet2').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet2').name, variables('vnet2').subnetname)]"}}]}}} |
Deploy an Azure VNet and an HDInsight Spark cluster within the VNet | {"type": "microsoft.hdinsight/clusters", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('defaultstorageaccount').name)]", "[resourceid('microsoft.network/virtualnetworks/", variables('vnet').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "tier": "standard", "clusterdefinition": {"kind": "spark", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[variables('vnet').id]", "subnet": "[variables('vnet').subnet]"}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[variables('vnet').id]", "subnet": "[variables('vnet').subnet]"}}]}}} |
Deploy a HDInsight cluster and a SQL Database | {"name": "[parameters('clustername')]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('defaultstorageaccount').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "hadoop", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2021-04-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2021-04-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}} |
Deploy a Linux-based HBase cluster with enhanced writes in Azure HDInsight | {"name": "[parameters('clustername')]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts/",variables('defaultstorageaccount').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "hbase", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2018-07-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2018-07-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": 3, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "datadisksgroups": [{"diskspernode": 1}]}, {"name": "zookeepernode", "targetinstancecount": 3, "hardwareprofile": {"vmsize": "[parameters('zookeepernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}} |
Deploy an Linux-based Interative Hive cluster in HDInsight. | {"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": "4.0", "ostype": "linux", "tier": "standard", "clusterdefinition": {"kind": "interactivehive", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(concat(reference(resourceid('microsoft.storage/storageaccounts/", variables('defaultstorageaccount').name), "2019-06-01').primaryendpoints.blob),"https:","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "mininstancecount": 1, "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "workernode", "mininstancecount": 1, "targetinstancecount": 2, "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')]"}}}]}}} |
Deploy a Linux-based HBase cluster in Azure HDInsight | {"type": "microsoft.hdinsight/clusters", "apiversion": "2021-06-01", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "hbase", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "zookeepernode", "targetinstancecount": 3, "hardwareprofile": {"vmsize": "[parameters('zookeepernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}} |
Deploy an HDInsight cluster running Linux (with Azure Storage) with an SSH password | {"type": "microsoft.hdinsight/clusters", "apiversion": "2021-06-01", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts",variables('defaultstorageaccount').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "[parameters('clustertype')]", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(concat(reference(resourceid('microsoft.storage/storageaccounts", 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": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}} |
Deploy an Azure VNet and two HDInsight Linux-based HBase clusters within the VNet | {"name": "[variables('clusternode1').name]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts",variables('clusternode1').defaultstorageaccount.name)]", "[resourceid('microsoft.network/virtualnetworks",variables('vnet').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "hbase", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('clusternode1').defaultstorageaccount.name), "2019-06-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[variables('clusternode1').name]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('clusternode1').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')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet').name, variables('vnet').subnetname)]"}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet').name, variables('vnet').subnetname)]"}}, {"name": "zookeepernode", "targetinstancecount": 3, "hardwareprofile": {"vmsize": "[parameters('zookeepernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet').name, variables('vnet').subnetname)]"}}]}}}{"name": "[variables('clusternode2').name]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts",variables('clusternode2').defaultstorageaccount.name)]", "[resourceid('microsoft.network/virtualnetworks",variables('vnet').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "hbase", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('clusternode2').defaultstorageaccount.name), "2019-06-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[variables('clusternode2').name]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('clusternode2').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')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet').name, variables('vnet').subnetname)]"}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet').name, variables('vnet').subnetname)]"}}, {"name": "zookeepernode", "targetinstancecount": 3, "hardwareprofile": {"vmsize": "[parameters('zookeepernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks", variables('vnet').name)]", "subnet": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('vnet').name, variables('vnet').subnetname)]"}}]}}} |
Deploy a Linux-based Spark cluster in Azure HDInsight | {"type": "microsoft.hdinsight/clusters", "apiversion": "2018-06-01-preview", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "properties": {"clusterversion": "4.0", "ostype": "linux", "tier": "standard", "clusterdefinition": {"kind": "spark", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", format('storage{0}", uniquestring(resourcegroup().id)))).primaryendpoints.blob, "https://", "'), "/", "')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", format('storage{0}", uniquestring(resourcegroup().id))), "2021-04-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}, "dependson": ["[resourceid('microsoft.storage/storageaccounts", format('storage{0}", uniquestring(resourcegroup().id)))]"]} |
Deploy an HDInsight cluster with an existing linked storage account | {"type": "microsoft.hdinsight/clusters", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "properties": {"clusterversion": "[parameters('clusterversion')]", "ostype": "linux", "tier": "standard", "clusterdefinition": {"kind": "[parameters('clustertype')]", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts/", parameters('defaultstorageaccountname')), "2021-04-01').primaryendpoints.blob,"https:","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", parameters('defaultstorageaccountname')), "2021-04-01').keys[0].value]"}, {"name": "[replace(replace(reference(resourceid(parameters('storageaccountresourcegroup'), "microsoft.storage/storageaccounts/", parameters('storageaccountname')), "2021-04-01').primaryendpoints.blob,"https:","'),"/","')]", "isdefault": false, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid(parameters('storageaccountresourcegroup'), "microsoft.storage/storageaccounts", parameters('storageaccountname')), "2021-04-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}} |
Deploy a new Linux HDInsight cluster with new Data Lake Store and Storage accounts. | {"type": "microsoft.hdinsight/clusters", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "apiversion": "2021-06-01", "properties": {"clusterversion": "4.0", "ostype": "linux", "tier": "standard", "clusterdefinition": {"kind": "hadoop", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts/", variables('defaultstorageaccount').name), "2021-08-01').primaryendpoints.blob,"https:","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2021-08-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}} |
HDInsight cluster with TLS version 1.2 or newer | {"name": "[parameters('clustername')]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "properties": {"clusterversion": "[parameters('clusterversion')]", "ostype": "linux", "clusterdefinition": {"kind": "hadoop", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid(parameters('existingclusterstorageresourcegroup'), "microsoft.storage/storageaccounts/", parameters('existingclusterstorageaccountname')), "2019-06-01').primaryendpoints.blob,"https:","'),"/","')]", "isdefault": true, "container": "[parameters('neworexistingclusterstoragecontainername')]", "key": "[listkeys(resourceid(parameters('existingclusterstorageresourcegroup'), "microsoft.storage/storageaccounts", parameters('existingclusterstorageaccountname')), "2019-06-01').keys[0].value]"}]}, "minsupportedtlsversion": "1.2", "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodesize')]"}, "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('workernodesize')]"}, "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'))]"}}]}}} |
Deploy a Linux-based HDInsight cluster with a schema registry edge node | {"name": "[parameters('clustername')]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts",variables('clstgacnt'))]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "kafka", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('clstgacnt')), "2019-06-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('clstgacnt')), "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')]"}, "datadisksgroups": [{"diskspernode": 2}], "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "zookeepernode", "targetinstancecount": 3, "hardwareprofile": {"vmsize": "[parameters('zookeepernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}}{"name": "[concat(parameters('clustername'),"/", variables('applicationname'))]", "type": "microsoft.hdinsight/clusters/applications", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.hdinsight/clusters",parameters('clustername'))]"], "properties": {"computeprofile": {"roles": [{"name": "edgenode", "targetinstancecount": 1, "hardwareprofile": {"vmsize": "standard_e4_v3"}}]}, "installscriptactions": [{"name": "[concat('schemaregistry","-" ,uniquestring(variables('applicationname')))]", "uri": "[uri(parameters('_artifactslocation'), concat(parameters('installscriptactionfolder'), "/", parameters('installscriptaction'), parameters('_artifactslocationsastoken')))]", "roles": ["edgenode"]}], "sshendpoints": [{"location": "[concat(variables('applicationname'),".",parameters('clustername'),"-ssh.azurehdinsight.net')]", "destinationport": 22, "publicport": 22}], "applicationtype": "customapplication"}} |
Deploy an HDInsight cluster using an existing default storage account | {"type": "microsoft.hdinsight/clusters", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "properties": {"clusterversion": "[parameters('clusterversion')]", "ostype": "linux", "tier": "standard", "clusterdefinition": {"kind": "[parameters('clustertype')]", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid(parameters('clusterstorageresourcegroup'), "microsoft.storage/storageaccounts/", parameters('storageaccountname')), "2021-04-01').primaryendpoints.blob,"https:","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid(parameters('clusterstorageresourcegroup'), "microsoft.storage/storageaccounts", parameters('storageaccountname')), "2021-04-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}} |
Deploy an Azure VNet and an HDInsight Linux-based HBase cluster within the VNet | {"name": "[parameters('clustername')]", "type": "microsoft.hdinsight/clusters", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('defaultstorageaccount').name)]", "[resourceid('microsoft.network/virtualnetworks/", variables('vnet').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "hbase", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2016-01-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2016-01-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[variables('vnet').id]", "subnet": "[variables('vnet').subnet]"}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[variables('vnet').id]", "subnet": "[variables('vnet').subnet]"}}, {"name": "zookeepernode", "targetinstancecount": 3, "hardwareprofile": {"vmsize": "[parameters('zookeepernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[variables('vnet').id]", "subnet": "[variables('vnet').subnet]"}}]}}} |
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'))]"}}]}}} |
Deploy an Azure VNet and an HDInsight Linux-based Hadoop cluster within the VNet | {"type": "microsoft.hdinsight/clusters", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "apiversion": "2018-06-01-preview", "dependson": ["[resourceid('microsoft.storage/storageaccounts",variables('defaultstorageaccount').name)]", "[resourceid('microsoft.network/virtualnetworks",variables('vnet').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "hadoop", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(concat(reference(resourceid('microsoft.storage/storageaccounts/", variables('defaultstorageaccount').name), "2019-06-01').primaryendpoints.blob),"https:","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "standard_e4_v3"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks",variables('vnet').name)]", "subnet": "[variables('vnet').subnet]"}}, {"name": "workernode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "standard_e4_v3"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}, "virtualnetworkprofile": {"id": "[resourceid('microsoft.network/virtualnetworks",variables('vnet').name)]", "subnet": "[variables('vnet').subnet]"}}]}}} |
Deploy a Kafka on HDInsight cluster in an Azure Virtual Network | {"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": "4.0", "ostype": "linux", "clusterdefinition": {"kind": "kafka", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(concat(reference(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').primaryendpoints.blob),"https:","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "workernode", "targetinstancecount": 4, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "datadisksgroups": [{"diskspernode": 2}], "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "zookeepernode", "targetinstancecount": 3, "hardwareprofile": {"vmsize": "[parameters('zookeepernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}} |
Creates an HDInsight cluster with Load-based Autoscale Enabled. Your cluster will scale up and down based on cluster resource need | {"type": "microsoft.hdinsight/clusters", "name": "[parameters('clustername')]", "location": "[parameters('location')]", "apiversion": "2021-06-01", "dependson": ["[resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name)]"], "properties": {"clusterversion": "4.0", "ostype": "linux", "tier": "standard", "clusterdefinition": {"kind": "spark", "configurations": {"gateway": {"restauthcredential.isenabled": true, "restauthcredential.username": "[parameters('clusterloginusername')]", "restauthcredential.password": "[parameters('clusterloginpassword')]"}}}, "storageprofile": {"storageaccounts": [{"name": "[replace(replace(reference(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').primaryendpoints.blob,"https://","'),"/","')]", "isdefault": true, "container": "[parameters('clustername')]", "key": "[listkeys(resourceid('microsoft.storage/storageaccounts", variables('defaultstorageaccount').name), "2019-06-01').keys[0].value]"}]}, "computeprofile": {"roles": [{"name": "headnode", "targetinstancecount": 2, "hardwareprofile": {"vmsize": "[parameters('headnodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}, {"name": "workernode", "targetinstancecount": 3, "autoscale": {"capacity": {"mininstancecount": 3, "maxinstancecount": 10}}, "hardwareprofile": {"vmsize": "[parameters('workernodevirtualmachinesize')]"}, "osprofile": {"linuxoperatingsystemprofile": {"username": "[parameters('sshusername')]", "password": "[parameters('sshpassword')]"}}}]}}} |
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')]"}}}]}}} |
Create a Logic App using a template. | {"type": "microsoft.logic/workflows", "apiversion": "2019-05-01", "name": "[parameters('logicappname')]", "location": "[parameters('location')]", "tags": {"displayname": "[parameters('logicappname')]"}, "properties": {"definition": {"$schema": "[variables('workflowschema')]", "contentversion": "1.0.0.0", "parameters": {"testuri": {"type": "string", "defaultvalue": "[parameters('testuri')]"}}, "triggers": {"recurrence": {"type": "[variables('type')]", "recurrence": {"frequency": "[variables('frequency')]", "interval": "[variables('interval')]"}}}, "actions": {"actiontype": {"type": "[variables('actiontype')]", "inputs": {"method": "[variables('method')]", "uri": "[parameters('testuri')]"}}}}}} |
Call an Azure Function from a Logic App | {"name": "[parameters('logicappname')]", "type": "microsoft.logic/workflows", "location": "[variables('logicapplocation')]", "apiversion": "2019-05-01", "dependson": ["[resourceid('microsoft.web/sites/sourcecontrols", parameters('functionappname'), "web')]"], "tags": {"displayname": "logicapp"}, "properties": {"definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "actions": {"azure_function": {"type": "function", "inputs": {"body": "@triggerbody()", "function": {"id": "[resourceid('microsoft.web/sites/functions", parameters('functionappname'), variables('functionname'))]"}}}, "response": {"type": "response", "inputs": {"statuscode": 200, "body": "@body('azure_function')"}, "runafter": {"azure_function": ["succeeded"]}}}, "parameters": {}, "triggers": {"request": {"type": "request", "kind": "http", "inputs": {}}}, "contentversion": "1.0.0.0", "outputs": {}}, "parameters": {}}} |
Creates a request-response Logic Apps which perform XSLT based transformation using parameters. | {"properties": {}, "sku": {"name": "standard"}, "name": "[parameters('integrationaccountname')]", "type": "microsoft.logic/integrationaccounts", "location": "[parameters('location')]", "apiversion": "2019-05-01"}{"properties": {"maptype": "xslt", "content": "<?xml version="1.0" encoding="utf-16"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/xsl/transform" xmlns:input="urn:my-input-variables" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="https://schemas.microsoft.com/biztalk/2003/var" exclude-result-prefixes="msxsl var s0 usercsharp" version="1.0" xmlns:ns0="https://integration.destination" xmlns:s0="https://integration.source" xmlns:usercsharp="https://schemas.microsoft.com/biztalk/2003/usercsharp"><xsl:import href="https://az818438.vo.msecnd.net/functoids/functoidsscript.xslt" /><xsl:output omit-xml-declaration="yes" method="xml" version="1.0" /> <xsl:param name="input:x"></xsl:param><xsl:param name="input:y"></xsl:param><xsl:template match="/"><xsl:apply-templates select="/s0:root" /></xsl:template><xsl:template match="/s0:root"><ns0:root><sum><xsl:value-of select="usercsharp:mathadd($input:x, $input:y)" /></sum><diff><xsl:value-of select="usercsharp:mathsubtract($input:x, $input:y)" /></diff><product><xsl:value-of select="usercsharp:mathmultiply($input:x, $input:y)" /></product><division><xsl:value-of select="usercsharp:mathdivide($input:x, $input:y)" /></division></ns0:root></xsl:template></xsl:stylesheet>", "contenttype": "application/xml"}, "name": "[concat(parameters('integrationaccountname'), "/map-with-params')]", "type": "microsoft.logic/integrationaccounts/maps", "apiversion": "2016-06-01", "dependson": ["[parameters('integrationaccountname')]"]}{"name": "[parameters('logicappname')]", "type": "microsoft.logic/workflows", "location": "[parameters('location')]", "tags": {"displayname": "logicapp"}, "apiversion": "2016-06-01", "properties": {"state": "enabled", "integrationaccount": {"id": "[resourceid('microsoft.logic/integrationaccounts", parameters('integrationaccountname'))]"}, "definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "actions": {"response": {"inputs": {"body": "@body('transform_xml')", "statuscode": 200}, "runafter": {"transform_xml": ["succeeded"]}, "type": "response"}, "transform_xml": {"inputs": {"content": "@{triggerbody()}", "integrationaccount": {"map": {"name": "map-with-params"}}, "xsltparameters": {"input:x": "20", "input:y": "10"}}, "type": "xslt"}}, "contentversion": "1.0.0.0", "outputs": {}, "parameters": {}, "triggers": {"manual": {"inputs": {}, "kind": "http", "type": "request"}}}}, "dependson": ["[parameters('integrationaccountname')]"]} |
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"}}}}}}} |
Creates a VETER (Validate, Extract, Transform) pipeline using Logic Apps | {"properties": {}, "sku": {"name": "standard"}, "name": "[parameters('integrationaccountname')]", "type": "microsoft.logic/integrationaccounts", "location": "[parameters('location')]", "apiversion": "2019-05-01"}{"properties": {"schematype": "xml", "content": "<?xml version="1.0" encoding="utf-8"?><xs:schema xmlns="http://integration.order" xmlns:b="https://schemas.microsoft.com/biztalk/2003" targetnamespace="http://integration.order" xmlns:xs="http://www.w3.org/2001/xmlschema"><xs:element name="order"><xs:complextype><xs:sequence><xs:element name="orderheader"><xs:complextype><xs:sequence><xs:element name="orderdate" type="xs:string" /><xs:element name="estimateddeliverydate" type="xs:string" /><xs:element name="ordernumber" type="xs:string" /></xs:sequence></xs:complextype></xs:element><xs:element name="customdetails"><xs:complextype><xs:sequence><xs:element name="name" type="xs:string" /><xs:element name="address" type="xs:string" /></xs:sequence></xs:complextype></xs:element><xs:element name="orderdetails"><xs:complextype><xs:sequence><xs:element name="itemdescription" type="xs:string" /><xs:element name="itemcustomercode" type="xs:string" /><xs:element name="totalamount" type="xs:string" /><xs:element name="unittype" type="xs:string" /></xs:sequence></xs:complextype></xs:element></xs:sequence></xs:complextype></xs:element></xs:schema>", "contenttype": "application/xml"}, "name": "[concat(parameters('integrationaccountname'), "/", "order')]", "type": "microsoft.logic/integrationaccounts/schemas", "apiversion": "2016-06-01", "dependson": ["[parameters('integrationaccountname')]"]}{"properties": {"maptype": "xslt", "content": "<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/xsl/transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:var="https://schemas.microsoft.com/biztalk/2003/var" exclude-result-prefixes="msxsl var s0 usercsharp" version="1.0" xmlns:ns0="http://integration.saporder" xmlns:s0="http://integration.order" xmlns:usercsharp="https://schemas.microsoft.com/biztalk/2003/usercsharp"><xsl:import href="https://az818438.vo.msecnd.net/functoids/functoidsscript.xslt" /><xsl:output omit-xml-declaration="yes" method="xml" version="1.0" /><xsl:template match="/"><xsl:apply-templates select="/s0:order" /></xsl:template><xsl:template match="/s0:order"><xsl:variable name="var:v1" select="usercsharp:datecurrentdatetime()" /><ns0:saporder><orderid><xsl:value-of select="orderheader/ordernumber/text()" /></orderid><clientid><xsl:text>1</xsl:text></clientid><dates><processdate><xsl:value-of select="$var:v1" /></processdate><orderdate><xsl:value-of select="orderheader/orderdate/text()" /></orderdate><estimateddeliverydate><xsl:value-of select="orderheader/estimateddeliverydate/text()" /></estimateddeliverydate></dates><details><itemid><xsl:value-of select="orderdetails/itemcustomercode/text()" /></itemid><units><xsl:value-of select="orderdetails/totalamount/text()" /></units><unittype><xsl:value-of select="orderdetails/unittype/text()" /></unittype></details></ns0:saporder></xsl:template></xsl:stylesheet>", "contenttype": "application/xml"}, "name": "[concat(parameters('integrationaccountname'), "/sapordermap')]", "type": "microsoft.logic/integrationaccounts/maps", "apiversion": "2016-06-01", "dependson": ["[parameters('integrationaccountname')]"]}{"name": "[parameters('logicappname')]", "type": "microsoft.logic/workflows", "location": "[parameters('location')]", "tags": {"displayname": "logicapp"}, "apiversion": "2016-06-01", "properties": {"state": "enabled", "integrationaccount": {"id": "[resourceid('microsoft.logic/integrationaccounts", parameters('integrationaccountname'))]"}, "definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "actions": {"condition": {"actions": {"response": {"inputs": {"body": "@body('transform_xml')", "statuscode": 200}, "type": "response"}}, "expression": "@equals(xpath(xml(body('transform_xml')), "string(count(/.))'), "1')", "runafter": {"transform_xml": ["succeeded"]}, "type": "if"}, "transform_xml": {"inputs": {"content": "@{triggerbody()}", "integrationaccount": {"map": {"name": "sapordermap"}}}, "runafter": {"xml_validation": ["succeeded"]}, "type": "xslt"}, "xml_validation": {"inputs": {"content": "@{triggerbody()}", "integrationaccount": {"schema": {"name": "order"}}}, "type": "xmlvalidation"}}, "contentversion": "1.0.0.0", "outputs": {}, "parameters": {}, "triggers": {"manual": {"inputs": {}, "kind": "http", "type": "request"}}}}, "dependson": ["[parameters('integrationaccountname')]"]} |
Demonstrates B2B Disaster Recovery replication using Logic Apps | {"properties": {"state": "enabled", "definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "actions": {"add_or_update_mic_contents": {"type": "apiconnection", "inputs": {"body": "@triggerbody()", "host": {"connection": {"name": "@parameters('$connections')["as2-secondary"]["connectionid"]"}}, "method": "put", "path": "/createorupdatemicvalues"}}}, "parameters": {"$connections": {"defaultvalue": {}, "type": "object"}}, "triggers": {"when_a_mic_value_is_created": {"recurrence": {"frequency": "minute", "interval": 1}, "type": "apiconnection", "inputs": {"host": {"connection": {"name": "@parameters('$connections')["as2-primary"]["connectionid"]"}}, "method": "get", "path": "/triggers/oncreatedmicvalues"}}}, "contentversion": "1.0.0.0", "outputs": {}}, "parameters": {"$connections": {"value": {"as2-primary": {"id": "[variables('as2id')]", "connectionid": "[resourceid('microsoft.web/connections", parameters('as2_primary_connection_name'))]", "connectionname": "[parameters('as2_primary_connection_name')]"}, "as2-secondary": {"id": "[variables('as2id')]", "connectionid": "[resourceid('microsoft.web/connections", parameters('as2_secondary_connection_name'))]", "connectionname": "[parameters('as2_secondary_connection_name')]"}}}}}, "name": "[parameters('as2_dr_logicapp_name')]", "type": "microsoft.logic/workflows", "location": "[parameters('location')]", "apiversion": "2019-05-01", "dependson": ["[resourceid('microsoft.web/connections", parameters('as2_primary_connection_name'))]", "[resourceid('microsoft.web/connections", parameters('as2_secondary_connection_name'))]"]}{"properties": {"state": "enabled", "definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "actions": {"add_or_update_control_numbers": {"type": "apiconnection", "inputs": {"body": "@triggerbody()", "host": {"connection": {"name": "@parameters('$connections')["edifact-secondary"]["connectionid"]"}}, "method": "put", "path": "/controlnumbers"}}}, "parameters": {"$connections": {"defaultvalue": {}, "type": "object"}}, "triggers": {"when_a_control_number_is_modified": {"recurrence": {"frequency": "minute", "interval": 1}, "type": "apiconnection", "inputs": {"host": {"connection": {"name": "@parameters('$connections')["edifact-primary"]["connectionid"]"}}, "method": "get", "path": "/triggers/onmodifiedcontrolnumber"}}}, "contentversion": "1.0.0.0", "outputs": {}}, "parameters": {"$connections": {"value": {"edifact-primary": {"id": "[variables('edifactid')]", "connectionid": "[resourceid('microsoft.web/connections", parameters('edifact_primary_connection_name'))]", "connectionname": "[parameters('edifact_primary_connection_name')]"}, "edifact-secondary": {"id": "[variables('edifactid')]", "connectionid": "[resourceid('microsoft.web/connections", parameters('edifact_secondary_connection_name'))]", "connectionname": "[parameters('edifact_secondary_connection_name')]"}}}}}, "name": "[parameters('edifact_dr_logicapp_name')]", "type": "microsoft.logic/workflows", "location": "[parameters('location')]", "apiversion": "2019-05-01", "dependson": ["[resourceid('microsoft.web/connections", parameters('edifact_primary_connection_name'))]", "[resourceid('microsoft.web/connections", parameters('edifact_secondary_connection_name'))]"]}{"name": "[parameters('primary_integrationaccountname')]", "type": "microsoft.logic/integrationaccounts", "apiversion": "2016-06-01", "location": "[parameters('location')]", "properties": {}, "sku": {"name": "standard"}}{"name": "[parameters('secondary_integrationaccountname')]", "type": "microsoft.logic/integrationaccounts", "apiversion": "2016-06-01", "location": "[parameters('location')]", "properties": {}, "sku": {"name": "standard"}}{"properties": {"state": "enabled", "definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "actions": {"add_or_update_control_numbers": {"type": "apiconnection", "inputs": {"body": "@triggerbody()", "host": {"connection": {"name": "@parameters('$connections')["x12-secondary"]["connectionid"]"}}, "method": "put", "path": "/controlnumbers"}}}, "parameters": {"$connections": {"defaultvalue": {}, "type": "object"}}, "triggers": {"when_a_control_number_is_modified": {"recurrence": {"frequency": "minute", "interval": 1}, "type": "apiconnection", "inputs": {"host": {"connection": {"name": "@parameters('$connections')["x12-primary"]["connectionid"]"}}, "method": "get", "path": "/triggers/onmodifiedcontrolnumber"}}}, "contentversion": "1.0.0.0", "outputs": {}}, "parameters": {"$connections": {"value": {"x12-secondary": {"id": "[variables('x12id')]", "connectionid": "[resourceid('microsoft.web/connections", parameters('x12_secondary_connection_name'))]", "connectionname": "[parameters('x12_secondary_connection_name')]"}, "x12-primary": {"id": "[variables('x12id')]", "connectionid": "[resourceid('microsoft.web/connections", parameters('x12_primary_connection_name'))]", "connectionname": "[parameters('x12_primary_connection_name')]"}}}}}, "name": "[parameters('x12_dr_logicapp_name')]", "type": "microsoft.logic/workflows", "location": "[parameters('location')]", "apiversion": "2019-05-01", "dependson": ["[resourceid('microsoft.web/connections", parameters('x12_primary_connection_name'))]", "[resourceid('microsoft.web/connections", parameters('x12_secondary_connection_name'))]"]} |
Run a SQL stored procedure on a schedule | {"type": "microsoft.logic/workflows", "apiversion": "2019-05-01", "name": "[parameters('logicappname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.web/connections", parameters('sqlconnectionname'))]"], "properties": {"definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "contentversion": "1.0.0.0", "parameters": {"$connections": {"defaultvalue": {}, "type": "object"}}, "triggers": {"recurrence": {"recurrence": {"frequency": "hour", "interval": 1}, "type": "recurrence"}}, "actions": {"execute_stored_procedure": {"type": "apiconnection", "inputs": {"host": {"api": {"runtimeurl": "[concat('https://logic-apis-", parameters('location'), ".azure-apim.net/apim/sql')]"}, "connection": {"name": "@parameters('$connections')["sql"]["connectionid"]"}}, "method": "post", "path": "[concat('/datasets/default/procedures/@{encodeuricomponent(encodeuricomponent(', variables('singlequote'), parameters('sqlprocedure'), variables('singlequote'), '))}')]"}}}, "outputs": {}}, "parameters": {"$connections": {"value": {"sql": {"connectionid": "[resourceid('microsoft.web/connections", parameters('sqlconnectionname'))]", "connectionname": "[parameters('sqlconnectionname')]", "id": "[subscriptionresourceid('microsoft.web/locations/managedapis", parameters('location'), "sql')]"}}}}}, "resources": []} |
A template that creates a virtual network and subnets then deploys an Integration Service Environment (ISE) including non-native connectors. | {"type": "microsoft.logic/integrationserviceenvironments", "apiversion": "2019-05-01", "name": "[parameters('integrationserviceenvironmentname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.network/virtualnetworks/", parameters('vnetname'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnet1name'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnet2name'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnet3name'))]", "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnet4name'))]"], "sku": {"name": "[parameters('integrationserviceenvironmentsku')]", "capacity": "[parameters('skucapacity')]"}, "properties": {"networkconfiguration": {"accessendpoint": {"type": "[parameters('accessendpointtype')]"}, "subnets": [{"id": "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnet1name'))]"}, {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnet2name'))]"}, {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnet3name'))]"}, {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", parameters('vnetname'), parameters('subnet4name'))]"}]}}}{"apiversion": "2019-05-01", "type": "microsoft.logic/integrationserviceenvironments/managedapis", "name": "[concat(parameters('integrationserviceenvironmentname'), "/", parameters('managedconnectors')[copyindex()])]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.logic/integrationserviceenvironments/", parameters('integrationserviceenvironmentname'))]"], "copy": {"name": "queuecopy", "count": "[length(parameters('managedconnectors'))]"}, "properties": {}} |
Copy files from an FTP server to Azure Blob | {"type": "microsoft.logic/workflows", "apiversion": "2019-05-01", "name": "[parameters('logicappname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.web/connections", parameters('azureblobconnectionname'))]", "[resourceid('microsoft.web/connections", parameters('ftpconnectionname'))]"], "properties": {"definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "contentversion": "1.0.0.0", "parameters": {"$connections": {"defaultvalue": {}, "type": "object"}}, "triggers": {"when_a_file_is_added_or_modified": {"recurrence": {"frequency": "minute", "interval": 1}, "metadata": {"[base64(parameters('ftpfolderpath'))]": "[parameters('ftpfolderpath')]"}, "type": "apiconnection", "inputs": {"host": {"connection": {"name": "@parameters('$connections')["ftp"]["connectionid"]"}}, "method": "get", "path": "/datasets/default/triggers/onupdatedfile", "queries": {"folderid": "[base64(parameters('ftpfolderpath'))]"}}}}, "actions": {"create_file": {"type": "apiconnection", "inputs": {"body": "@triggerbody()", "host": {"connection": {"name": "@parameters('$connections')["azureblob"]["connectionid"]"}}, "method": "post", "path": "/datasets/default/files", "queries": {"folderpath": "[parameters('blobcontainerpath')]", "name": "@{triggeroutputs()["headers"]["x-ms-file-name"]}"}}}}, "outputs": {}}, "parameters": {"$connections": {"value": {"azureblob": {"id": "[subscriptionresourceid('microsoft.web/locations/managedapis", parameters('location'), "azureblob')]", "connectionid": "[resourceid('microsoft.web/connections", parameters('azureblobconnectionname'))]"}, "ftp": {"id": "[subscriptionresourceid('microsoft.web/locations/managedapis", parameters('location'), "ftp')]", "connectionid": "[resourceid('microsoft.web/connections", parameters('ftpconnectionname'))]"}}}}}} |
Call custom APIs hosted on Azure App Service and protected by Azure Active Directory (Azure AD) | {"type": "microsoft.logic/workflows", "apiversion": "2019-05-01", "name": "[parameters('logicappname')]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.web/sites", parameters('webappname'))]"], "properties": {"definition": {"$schema": "https://schema.management.azure.com/providers/microsoft.logic/schemas/2016-06-01/workflowdefinition.json#", "contentversion": "1.0.0.0", "parameters": {"clientsecret": {"type": "securestring", "defaultvalue": "<<specify the secret for this logic app"s application identity in the parameters>>"}}, "triggers": {"recurrence": {"type": "recurrence", "recurrence": {"frequency": "hour", "interval": 1}}}, "actions": {"pingsite": {"type": "http", "inputs": {"uri": "[concat('https://", reference(resourceid('microsoft.web/sites", parameters('webappname'))).hostnames[0])]", "method": "get", "authentication": {"type": "activedirectoryoauth", "tenant": "[parameters('tenantid')]", "audience": "[parameters('webappclientid')]", "clientid": "[parameters('logicappclientid')]", "secret": "@parameters('clientsecret')"}}}}, "outputs": {"result": {"type": "string", "value": "@actions('pingsite').code"}}}, "parameters": {"clientsecret": {"value": "[parameters('logicappclientsecret')]"}}}} |
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')]"} |
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'))]"]} |
Deploy a single Windows VM with Open SSH enabled so that you can connect through SSH using key-based authentication. | {"type": "microsoft.compute/disks", "apiversion": "2020-09-30", "name": "datadisk", "location": "[parameters('location')]", "properties": {"disksizegb": "[parameters('disksizegb')]", "creationdata": {"createoption": "empty"}}, "sku": {"name": "[parameters('disksku')]"}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2021-07-01", "name": "sshhost", "location": "[parameters('location')]", "tags": {"displayname": "windows server with ssh"}, "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "sshhost", "adminusername": "[parameters('adminuser')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "[parameters('vmsku')]", "version": "latest"}, "osdisk": {"name": "osdisk", "caching": "readwrite", "createoption": "fromimage"}, "datadisks": [{"createoption": "attach", "lun": 0, "manageddisk": {"id": "[resourceid('microsoft.compute/disks", "datadisk')]"}}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", "nic')]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(resourceid('microsoft.storage/storageaccounts", tolower(parameters('storagename')))).primaryendpoints.blob]"}}}, "dependson": ["[resourceid('microsoft.compute/disks", "datadisk')]", "[resourceid('microsoft.network/networkinterfaces", "nic')]", "[resourceid('microsoft.storage/storageaccounts", tolower(parameters('storagename')))]"]}{"type": "microsoft.compute/virtualmachines/extensions", "apiversion": "2021-07-01", "name": "[format('{0}/{1}", "sshhost", "setupscript')]", "location": "[parameters('location')]", "tags": {"displayname": "setup script for ssh"}, "properties": {"publisher": "microsoft.compute", "type": "customscriptextension", "typehandlerversion": "1.10", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('initscripturl')]", "[variables('sshdconfigurl')]"]}, "protectedsettings": {"commandtoexecute": "[format(\"powershell -executionpolicy bypass -file initialize.ps1 -publicsshkey "{0}"\", parameters(\"publicsshkey\'))]"}}, "dependson": ["[resourceid('microsoft.compute/virtualmachines", "sshhost')]"]} |
This template creates a VMSS placed in separate Availability Zones with a load balancer. | {"type": "microsoft.compute/virtualmachinescalesets", "apiversion": "2020-12-01", "name": "[concat('myscaleset","-zone", variables('myzones')[copyindex()])]", "location": "[parameters('location')]", "zones": ["[variables('myzones')[copyindex()]]"], "copy": {"name": "vmsscount", "count": "[length(variables('myzones'))]"}, "dependson": ["[variables('virtualnetworkname')]", "[variables('lbname')]", "[variables('networksecuritygroupname')]"], "sku": {"name": "[parameters('vmsssku')]", "capacity": "[parameters('numberofvms')]"}, "properties": {"singleplacementgroup": true, "upgradepolicy": {"mode": "manual"}, "virtualmachineprofile": {"storageprofile": {"osdisk": {"createoption": "fromimage"}, "imagereference": "[variables('linuximage')]", "datadisks": [{"lun": 1, "createoption": "empty", "disksizegb": 50}]}, "osprofile": {"computernameprefix": "vm", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "customdata": "[base64(variables('myzones')[copyindex()])]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "networkprofile": {"networkinterfaceconfigurations": [{"name": "mynic", "properties": {"networksecuritygroup": {"id": "[resourceid('microsoft.network/networksecuritygroups", variables('networksecuritygroupname'))]"}, "primary": true, "ipconfigurations": [{"name": "myipconfig", "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('subnetname'))]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('lbname'), variables('lbbe'))]"}], "loadbalancerinboundnatpools": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatpools", variables('lbname'), concat(variables('lbnat'), copyindex(1)))]"}]}}]}}]}, "extensionprofile": {"extensions": [{"name": "appinstall", "properties": {"publisher": "microsoft.azure.extensions", "type": "customscript", "typehandlerversion": "2.0", "autoupgrademinorversion": true, "settings": {"fileuris": ["https://raw.githubusercontent.com/azure-samples/compute-automation-configurations/master/automate_nginx.sh"], "commandtoexecute": "bash automate_nginx.sh"}}}]}}}} |
Create an Availability Set with 3 Fault Domains | {"type": "microsoft.compute/availabilitysets", "name": "availabilityset1", "apiversion": "2020-06-01", "location": "[parameters('location')]", "properties": {"platformfaultdomaincount": 3, "platformupdatedomaincount": 20}} |
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"}}} |
This template takes a minimum amount of parameters and deploys a Shared Image Gallery resource. | {"type": "microsoft.compute/galleries", "name": "[parameters('galleryname')]", "apiversion": "2019-12-01", "location": "[parameters('location')]", "properties": {"description": "my private gallery"}} |
Load balanced SUSE GlassFish cluster | {"apiversion": "2020-12-01", "location": "[variables('location')]", "name": "[variables('availabilitysetname')]", "sku": {"name": "aligned"}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 5}, "type": "microsoft.compute/availabilitysets"}{"apiversion": "2020-12-01", "type": "microsoft.compute/virtualmachines", "name": "[concat(variables('nameprefix'), "vm-", copyindex())]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "location": "[variables('location')]", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", concat(variables('nameprefix'),"nic-", copyindex()))]", "[resourceid('microsoft.compute/availabilitysets/", variables('availabilitysetname'))]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetname'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[concat(variables('nameprefix'), copyindex())]", "adminusername": "[parameters('adminusername')]", "linuxconfiguration": {"disablepasswordauthentication": true, "ssh": {"publickeys": [{"path": "[variables('sshkeypath')]", "keydata": "[parameters('sshpublickey')]"}]}}}, "storageprofile": {"imagereference": {"publisher": "suse", "offer": "opensuse-leap", "sku": "15-2", "version": "latest"}, "osdisk": {"name": "[concat(variables('nameprefix'), "vm-", copyindex(),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",concat(variables('nameprefix'), "nic-", copyindex()))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccountname'),"2021-02-01').primaryendpoints["blob"]]"}}}} |
Install and register a gateway on a Windows virtual machine using the custom script extension | {"apiversion": "2017-03-30", "type": "microsoft.compute/virtualmachines", "name": "[variables('virtualmachinename')]", "location": "[parameters('existingvnetlocation')]", "tags": {"vmname": "[variables('virtualmachinename')]"}, "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('storageaccountname'))]", "[resourceid('microsoft.network/networkinterfaces/", variables('nicname'))]"], "properties": {"hardwareprofile": {"vmsize": "standard_a3"}, "osprofile": {"computername": "[variables('virtualmachinename')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "2016-datacenter", "version": "latest"}, "osdisk": {"name": "[concat(variables('virtualmachinename'),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}}, "datadisks": [{"name": "[concat(variables('virtualmachinename'),"_datadisk1')]", "disksizegb": 128, "lun": 0, "manageddisk": {"storageaccounttype": "standardssd_lrs"}, "createoption": "empty"}]}, "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": "[concat(variables('virtualmachinename'),"installgw')]", "apiversion": "2015-06-15", "location": "[parameters('existingvnetlocation')]", "tags": {"vmname": "[variables('virtualmachinename')]"}, "dependson": ["[resourceid('microsoft.compute/virtualmachines/",variables('virtualmachinename'))]"], "properties": {"publisher": "microsoft.compute", "type": "customscriptextension", "typehandlerversion": "1.7", "autoupgrademinorversion": true, "settings": {"fileuris": ["[variables('scripturl')]"]}, "protectedsettings": {"commandtoexecute": "[concat('powershell.exe -executionpolicy unrestricted -file gatewayinstall.ps1 ", listauthkeys(resourceid('microsoft.datafactory/datafactories/gateways", parameters('existingdatafactoryname'), parameters('gatewayname')), "2015-10-01').key1, " ", reference(variables('nsgtemplatename')).outputs.hostname.value, " ", parameters('enabletosetdatastorefrominternet'))]"}}}]} |
This template deploys a VM Scale Set of Linux VMs behind a load balancer with NAT rules for ssh connections and Auto scale integrated | {"type": "microsoft.compute/virtualmachinescalesets", "name": "[variables('naminginfix')]", "location": "[parameters('location')]", "apiversion": "2017-03-30", "dependson": ["[resourceid('microsoft.network/loadbalancers/", variables('loadbalancername'))]", "[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]"], "sku": {"name": "[parameters('vmsku')]", "tier": "standard", "capacity": "[parameters('instancecount')]"}, "properties": {"overprovision": "true", "upgradepolicy": {"mode": "manual"}, "virtualmachineprofile": {"storageprofile": {"osdisk": {"createoption": "fromimage", "caching": "readwrite"}, "imagereference": "[variables('imagereference')]"}, "osprofile": {"computernameprefix": "[variables('naminginfix')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "networkprofile": {"networkinterfaceconfigurations": [{"name": "[variables('nicname')]", "properties": {"primary": true, "ipconfigurations": [{"name": "[variables('ipconfigname')]", "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets/", variables('virtualnetworkname'), variables('subnetname'))]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools/", variables('loadbalancername'), variables('bepoolname'))]"}], "loadbalancerinboundnatpools": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatpools/", variables('loadbalancername'), variables('natpoolname'))]"}]}}]}}]}}}} |
This template creates a new ultra managed disk allowing the user to specify a sector size of either 512 or 4096. | {"type": "microsoft.compute/disks", "apiversion": "2020-09-30", "name": "[parameters('manageddiskname')]", "location": "[parameters('location')]", "sku": {"name": "ultrassd_lrs"}, "properties": {"creationdata": {"createoption": "empty", "logicalsectorsize": "[parameters('logicalsectorsize')]"}, "disksizegb": "[parameters('disksizeingib')]", "diskiopsreadwrite": "[parameters('diskiopsreadwrite')]", "diskmbpsreadwrite": "[parameters('diskmbpsreadwrite')]"}} |
This template deploys a VM Scale Set of Linux VMs behind an internal load balancer with NAT rules for ssh connections. | {"type": "microsoft.compute/virtualmachines", "name": "[variables('jumpboxname')]", "location": "[parameters('location')]", "apiversion": "2020-06-01", "dependson": ["[resourceid('microsoft.storage/storageaccounts/", variables('jumpboxsaname'))]", "[resourceid('microsoft.network/networkinterfaces/", variables('jumpboxnicname'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsku')]"}, "osprofile": {"computername": "[variables('jumpboxname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "storageprofile": {"imagereference": "[variables('imagereference')]", "osdisk": {"name": "[concat(variables('jumpboxosdiskname'),"_osdisk')]", "caching": "readwrite", "createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces",variables('jumpboxnicname'))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('jumpboxsaname'), "2020-08-01-preview').primaryendpoints.blob]"}}}}{"type": "microsoft.compute/virtualmachinescalesets", "name": "[variables('naminginfix')]", "location": "[parameters('location')]", "apiversion": "2020-06-01", "dependson": ["[resourceid('microsoft.network/virtualnetworks/", variables('virtualnetworkname'))]", "[resourceid('microsoft.network/loadbalancers/", variables('loadbalancername'))]"], "sku": {"name": "[parameters('vmsku')]", "tier": "standard", "capacity": "[parameters('instancecount')]"}, "properties": {"overprovision": "true", "upgradepolicy": {"mode": "manual"}, "virtualmachineprofile": {"storageprofile": {"osdisk": {"createoption": "fromimage"}, "imagereference": "[variables('imagereference')]"}, "osprofile": {"computernameprefix": "[variables('naminginfix')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "networkprofile": {"networkinterfaceconfigurations": [{"name": "[variables('nicname')]", "properties": {"primary": true, "ipconfigurations": [{"name": "[variables('ipconfigname')]", "properties": {"subnet": {"id": "[resourceid('microsoft.network/virtualnetworks/subnets", variables('virtualnetworkname'), variables('subnetname'))]"}, "loadbalancerbackendaddresspools": [{"id": "[resourceid('microsoft.network/loadbalancers/backendaddresspools", variables('loadbalancername'), variables('bepoolname'))]"}], "loadbalancerinboundnatpools": [{"id": "[resourceid('microsoft.network/loadbalancers/inboundnatpools", variables('loadbalancername'), variables('natpoolname'))]"}]}}]}}]}}}} |
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'))]"]} |
Create VMs in Availability Sets using Resource Loops | {"type": "microsoft.compute/availabilitysets", "name": "[concat(variables('availabilitysetname'), "-", copyindex())]", "apiversion": "2020-06-01", "location": "[parameters('location')]", "copy": {"name": "asloop", "count": 2}, "properties": {"platformfaultdomaincount": 2, "platformupdatedomaincount": 2}, "sku": {"name": "aligned"}}{"type": "microsoft.compute/virtualmachines", "name": "[concat('myvm", copyindex())]", "apiversion": "2020-06-01", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[parameters('numberofinstances')]"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", concat('nic", copyindex()))]", "asloop"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets", concat(variables('availabilitysetname'), "-", mod(copyindex(),2)))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[concat('vm", copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "storageprofile": {"imagereference": "[variables('imagereference')[parameters('os')]]", "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", concat('nic", copyindex()))]"}]}}} |
This template will deploy RedHat (RHEL) VM, using the Pay-As-You-Go RHEL VM image. Additional charges apply. | {"apiversion": "2020-06-01", "type": "microsoft.compute/virtualmachines", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "tags": {"tag1": "managedvm"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces/", variables('nicname'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[parameters('vmname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "storageprofile": {"imagereference": {"publisher": "[variables('imagepublisher')]", "offer": "[variables('imageoffer')]", "sku": "[variables('imagesku')]", "version": "latest"}, "datadisks": [{"name": "[variables('datadisk1name')]", "disksizegb": 100, "lun": 0, "createoption": "empty"}, {"name": "[variables('datadisk2name')]", "disksizegb": 100, "lun": 1, "createoption": "empty"}]}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('nicname'))]"}]}}} |
This template takes a minimum amount of parameters and deploys a Linux VM to show how to dynamically assign a static IP address. | {"apiversion": "2019-12-01", "type": "microsoft.compute/virtualmachines", "name": "[variables('vmname')]", "location": "[parameters('location')]", "dependson": ["updateip"], "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": "canonical", "offer": "ubuntuserver", "sku": "18.04-lts", "version": "latest"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('nicname'))]"}]}}} |
Create a VM from a Windows Image with N Empty Data Disks | {"type": "microsoft.compute/virtualmachines", "apiversion": "2021-07-01", "name": "[parameters('virtualmachinename')]", "location": "[parameters('location')]", "properties": {"hardwareprofile": {"vmsize": "[parameters('virtualmachinesize')]"}, "osprofile": {"computername": "[parameters('virtualmachinename')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"copy": [{"name": "datadisks", "count": "[length(range(0, parameters('datadiskscount')))]", "input": {"name": "[format('{0}-datadisk{1}", parameters('virtualmachinename'), range(0, parameters('datadiskscount'))[copyindex('datadisks')])]", "disksizegb": "[parameters('datadisksize')]", "lun": "[range(0, parameters('datadiskscount'))[copyindex('datadisks')]]", "createoption": "empty", "manageddisk": {"storageaccounttype": "[parameters('disktype')]"}}}], "osdisk": {"ostype": "windows", "name": "[variables('osdiskname')]", "caching": "readwrite", "createoption": "fromimage", "manageddisk": {"storageaccounttype": "[parameters('disktype')]"}, "disksizegb": 128}, "imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "[parameters('windowsosversion')]", "version": "latest"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"}]}}, "dependson": ["[resourceid('microsoft.network/networkinterfaces", variables('networkinterfacename'))]"]} |
This template disables data disk encryption on a running Linux VM which was encrypted without AAD | {"type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmname'),"/","azurediskencryptionforlinux')]", "location": "[parameters('location')]", "apiversion": "2020-12-01", "properties": {"publisher": "microsoft.azure.security", "type": "azurediskencryptionforlinux", "typehandlerversion": "1.1", "autoupgrademinorversion": true, "forceupdatetag": "[parameters('forceupdatetag')]", "settings": {"encryptionoperation": "disableencryption", "volumetype": "[parameters('volumetype')]"}}} |
This template deploys a Windows Server VM and also deploys Visual Studio Community 2019. | {"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}}}} |
This template takes a minimum amount of parameters and deploys a trusted launch capable Linux virtual machine, using the latest patched version. | {"type": "microsoft.compute/virtualmachines", "apiversion": "2020-12-01", "name": "[parameters('vmname')]", "location": "[parameters('location')]", "identity": {"type": "systemassigned"}, "dependson": ["[resourceid('microsoft.network/networkinterfaces/", parameters('nicname'))]"], "properties": {"hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[parameters('vmname')]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpasswordorkey')]", "linuxconfiguration": "[if(equals(parameters('authenticationtype'), "password'), json('null'), variables('linuxconfiguration'))]"}, "storageprofile": {"osdisk": {"createoption": "fromimage", "manageddisk": {"storageaccounttype": "standardssd_lrs"}}, "imagereference": "[variables('imagereference')[parameters('os')]]"}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", parameters('nicname'))]"}]}, "securityprofile": {"uefisettings": {"securebootenabled": "[parameters('secureboot')]", "vtpmenabled": "[parameters('vtpm')]"}, "securitytype": "trustedlaunch"}}}{"condition": "[and(equals(parameters('vtpm'), "true'), equals(parameters('secureboot'), "true'))]", "type": "microsoft.compute/virtualmachines/extensions", "name": "[concat(parameters('vmname'), "/", variables('extensionname'))]", "location": "[parameters('location')]", "dependson": ["[resourceid('microsoft.compute/virtualmachines", parameters('vmname'))]"], "apiversion": "2020-06-01", "properties": {"publisher": "[variables('extensionpublisher')]", "type": "[variables('extensionname')]", "typehandlerversion": "[variables('extensionversion')]", "autoupgrademinorversion": true, "settings": {"attestationendpointcfg": {"maaendpoint": "[parameters('maaendpoint')]", "maatenantname": "[variables('maatenantname')]", "ascreportingendpoint": "[variables('ascreportingendpoint')]", "usealternatetoken": "[variables('usealternatetoken')]", "disablealerts": "[variables('disablealerts')]"}}}} |
2 VMs in VNET - Internal Load Balancer and LB rules | {"type": "microsoft.compute/availabilitysets", "apiversion": "2020-06-01", "name": "[variables('availabilitysetname')]", "location": "[parameters('location')]", "sku": {"name": "aligned"}, "properties": {"platformupdatedomaincount": 2, "platformfaultdomaincount": 2}}{"type": "microsoft.compute/virtualmachines", "apiversion": "2020-06-01", "name": "[concat(parameters('vmnameprefix'), copyindex())]", "location": "[parameters('location')]", "copy": {"name": "virtualmachineloop", "count": "[variables('numberofinstances')]"}, "dependson": ["[variables('storageaccountname')]", "nicloop", "[variables('availabilitysetname')]"], "properties": {"availabilityset": {"id": "[resourceid('microsoft.compute/availabilitysets",variables('availabilitysetname'))]"}, "hardwareprofile": {"vmsize": "[parameters('vmsize')]"}, "osprofile": {"computername": "[concat(parameters('vmnameprefix'), copyindex())]", "adminusername": "[parameters('adminusername')]", "adminpassword": "[parameters('adminpassword')]"}, "storageprofile": {"imagereference": {"publisher": "microsoftwindowsserver", "offer": "windowsserver", "sku": "2019-datacenter", "version": "latest"}, "osdisk": {"createoption": "fromimage"}}, "networkprofile": {"networkinterfaces": [{"id": "[resourceid('microsoft.network/networkinterfaces", concat(variables('networkinterfacename'), copyindex()))]"}]}, "diagnosticsprofile": {"bootdiagnostics": {"enabled": true, "storageuri": "[reference(variables('storageaccountname')).primaryendpoints.blob]"}}}} |
End of preview. Expand
in Dataset Viewer.
README.md exists but content is empty.
Use the Edit dataset card button to edit it.
- Downloads last month
- 55