added deploy to azure template

This commit is contained in:
Marvin Buss 2021-01-22 15:49:34 +01:00
Родитель 053080471a
Коммит d0a0856140
1 изменённых файлов: 523 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,523 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"enterpriseScaleAnalyticsCompanyPrefix": {
"type": "string",
"maxLength": 5,
"metadata": {
"description": "Provide the prefix (max 5 characters) for all services that will be created"
}
},
"dataNodeName": {
"type": "string",
"defaultValue": "dn001",
"metadata": {
"description": "Name of the data node."
}
},
"dataDomainName": {
"type": "string",
"defaultValue": "dd001",
"metadata": {
"description": "Name of the data domain."
}
},
"location": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "Specifies the location for all resources."
}
},
"privateDnsZoneResourceGroupId": {
"type": "string",
"metadata": {
"description": "Specifies the resource ID of the resource group of the private dns zones."
}
},
"privateLinkSubnetId": {
"type": "string",
"metadata": {
"description": "Specifies the resource ID of the subnet for the data domain services."
}
},
"databaseAdministratorLoginPassword": {
"type": "securestring",
"metadata": {
"description": "Specifies the admin password of the database servers."
}
},
"synapseDefaultStorageAccountName": {
"type": "string",
"metadata": {
"description": "Specifies the name of the storage account that should be used as default for the synapse workspace."
}
},
"synapseDefaultStorageAccountFileSystem": {
"type": "string",
"metadata": {
"description": "Specifies the name of the file system in the storage account that should be used as default for the synapse workspace."
}
},
"streamAnalyticsStorageAccountId": {
"type": "string",
"metadata": {
"description": "Specifies the resource ID of the storage account that should be connected to stream analytics."
}
}
},
"functions": [],
"variables": {
"enterpriseScaleAnalyticsCompanyPrefix": "[parameters('enterpriseScaleAnalyticsCompanyPrefix')]",
"dataNodeName": "[parameters('dataNodeName')]",
"dataDomainName": "[parameters('dataDomainName')]",
"location": "[parameters('location')]",
"privateDnsZoneResourceGroupId": "[parameters('privateDnsZoneResourceGroupId')]",
"privateLinkSubnetId": "[parameters('privateLinkSubnetId')]",
"databaseAdministratorLoginPassword": "[parameters('databaseAdministratorLoginPassword')]",
"synapseDefaultStorageAccountName": "[parameters('synapseDefaultStorageAccountName')]",
"synapseDefaultStorageAccountFileSystem": "[parameters('synapseDefaultStorageAccountFileSystem')]",
"streamAnalyticsStorageAccountId": "[parameters('streamAnalyticsStorageAccountId')]",
"keyVaultTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/KeyVault/deploy.keyVault.json?token=AIHRGTXYPYUXQ7U6ZAMRKFDACQPSG",
"iotHubTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/IotHub/deploy.iotHub.json?token=AIHRGTW6IT4OIPUAUOXNNJLACQPTG",
"eventHubTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/EventHub/deploy.eventHub.json?token=AIHRGTVXV5KF4SAW5WVV6MLACQPUG",
"sqlServerTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/SqlServer/deploy.sqlServer.json?token=AIHRGTVGTHGQPRE25UUXHYDACQPVK",
"sqlDatabaseTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/SqlDatabase/deploy.sqlDatabase.json?token=AIHRGTU3UPWZ7WTWY2ZAOZLACQPWM",
"streamAnalyticsClusterTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/StreamAnalyticsCluster/deploy.streamAnalyticsCluster.json?token=AIHRGTRFNSPOJ7R7GOR2OPTACQPXQ",
"streamAnalyticsTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/StreamAnalytics/deploy.streamAnalytics.json?token=AIHRGTUTI4VEF2U7C6UZP5TACQPZC",
"cosmosDbTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/CosmosDb/deploy.cosmosDb.json?token=AIHRGTQ52GMR7IPBWVMMBITACQP2G",
"synapseTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/Synapse/deploy.synapse.json?token=AIHRGTV4HTJBYJ7JCXWKUZDACQP34",
"sqlPoolTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/SqlPool/deploy.sqlPool.json?token=AIHRGTSGWK54H5R2OOZ42DDACQP4Y",
"bigDataPoolTemplateLink": "https://raw.githubusercontent.com/Azure/data-domain-streaming/main/infra/BigDataPool/deploy.bigDataPool.json?token=AIHRGTX2NBBJ5BAMTB7K24TACQP6E"
},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "keyVault001Deployment",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('keyVaultTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"keyVaultName": {
"value": "[concat(variables('enterpriseScaleAnalyticsCompanyPrefix'), '-', variables('dataNodeName'), '-', variables('dataDomainName'), '-keyvault001')]"
},
"subnetId": {
"value": "[variables('privateLinkSubnetId')]"
},
"privateDnsZoneId": {
"value": "[concat(variables('privateDnsZoneResourceGroupId'), '/providers/Microsoft.Network/privateDnsZones/privatelink.vaultcore.azure.net')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "iotHub001Deployment",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('iotHubTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"iotHubName": {
"value": "[concat(variables('enterpriseScaleAnalyticsCompanyPrefix'), '-', variables('dataNodeName'), '-', variables('dataDomainName'), '-iothub001')]"
},
"subnetId": {
"value": "[variables('privateLinkSubnetId')]"
},
"privateDnsZoneIdIotHub": {
"value": "[concat(variables('privateDnsZoneResourceGroupId'), '/providers/Microsoft.Network/privateDnsZones/privatelink.azure-devices.net')]"
},
"privateDnsZoneIdEventHub": {
"value": "[concat(variables('privateDnsZoneResourceGroupId'), '/providers/Microsoft.Network/privateDnsZones/privatelink.servicebus.windows.net')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "eventHub001Deployment",
"dependsOn": [
"keyVault001Deployment"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('eventHubTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"eventHubName": {
"value": "[concat(variables('enterpriseScaleAnalyticsCompanyPrefix'), '-', variables('dataNodeName'), '-', variables('dataDomainName'), '-eventhub001')]"
},
"eventHubSku": {
"value": "Standard"
},
"eventHubMinThroughputUnits": {
"value": 1
},
"eventHubMaxThroughputUnits": {
"value": 2
},
"keyVaultId": {
"value": "[reference('keyVault001Deployment').outputs.keyVaultId.value]"
},
"subnetId": {
"value": "[variables('privateLinkSubnetId')]"
},
"privateDnsZoneId": {
"value": "[concat(variables('privateDnsZoneResourceGroupId'), '/providers/Microsoft.Network/privateDnsZones/privatelink.servicebus.windows.net')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "sqlServer001Deployment",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('sqlServerTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"sqlServerName": {
"value": "[concat(variables('enterpriseScaleAnalyticsCompanyPrefix'), '-', variables('dataNodeName'), '-', variables('dataDomainName'), '-sqlserver001')]"
},
"administratorLogin": {
"value": "ServerMainUser"
},
"administratorLoginPassword": {
"value": "[variables('databaseAdministratorLoginPassword')]"
},
"sqlAdminGroupName": {
"value": ""
},
"sqlAdminGroupObjectID": {
"value": ""
},
"subnetId": {
"value": "[variables('privateLinkSubnetId')]"
},
"privateDnsZoneId": {
"value": "[concat(variables('privateDnsZoneResourceGroupId'), '/providers/Microsoft.Network/privateDnsZones/privatelink.database.windows.net')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "sqlDatabase001Deployment",
"dependsOn": [
"keyVault001Deployment",
"sqlserver001Deployment"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('sqlDatabaseTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"sqlServerId": {
"value": "[reference('sqlserver001Deployment').outputs.sqlServerId.value]"
},
"sqlServerAdministratorLoginPassword": {
"value": "[variables('databaseAdministratorLoginPassword')]"
},
"sqlDatabaseName": {
"value": "DataDomain001"
},
"sqlDatabaseSku": {
"value": "Basic"
},
"sqlDatabaseTier": {
"value": "Basic"
},
"sqlDatabaseCapacity": {
"value": 5
},
"sqlDatabaseMaxSizeInBytes": {
"value": 524288000
},
"sqlDatabaseZoneRedundant": {
"value": false
},
"sqlDatabaseLicenseType": {
"value": "LicenseIncluded"
},
"sqlDatabaseReadReplicaCount": {
"value": 0
},
"sqlDatabaseMinCapacity": {
"value": "0.5"
},
"sqlDatabaseStorageAccountType": {
"value": "GRS"
},
"sqlDatabaseAutoPauseDelay": {
"value": -1
},
"keyVaultId": {
"value": "[reference('keyVault001Deployment').outputs.keyVaultId.value]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "cosmosDb001Deployment",
"dependsOn": [
"keyVault001Deployment"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('cosmosDbTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"cosmosAccountName": {
"value": "[concat(variables('enterpriseScaleAnalyticsCompanyPrefix'), '-', variables('dataNodeName'), '-', variables('dataDomainName'), '-cosmos001')]"
},
"keyVaultId": {
"value": "[reference('keyVault001Deployment').outputs.keyVaultId.value]"
},
"subnetId": {
"value": "[variables('privateLinkSubnetId')]"
},
"privateDnsZoneId": {
"value": "[concat(variables('privateDnsZoneResourceGroupId'), '/providers/Microsoft.Network/privateDnsZones/privatelink.documents.azure.com')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "synapse001Deployment",
"dependsOn": [
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('synapseTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"synapseWorkspaceName": {
"value": "[concat(variables('enterpriseScaleAnalyticsCompanyPrefix'), variables('dataNodeName'), variables('dataDomainName'), 'synapse001')]"
},
"synapseDefaultStorageAccountName": {
"value": "[variables('synapseDefaultStorageAccountName')]"
},
"synapseDefaultStorageAccountFileSystem": {
"value": "[variables('synapseDefaultStorageAccountFileSystem')]"
},
"synapseSqlAdministratorLogin": {
"value": "ServerMainUser"
},
"synapseSqlAdministratorPassword": {
"value": "[variables('databaseAdministratorLoginPassword')]"
},
"synapseDatalakeAnalyticsResourceId": {
"value": ""
},
"synapseComputeSubnetResourceId": {
"value": ""
},
"synapseSqlAdminGroupName": {
"value": ""
},
"synapseSqlAdminGroupObjectID": {
"value": ""
},
"subnetId": {
"value": "[variables('privateLinkSubnetId')]"
},
"privateDnsZoneIdSql": {
"value": "[concat(variables('privateDnsZoneResourceGroupId'), '/providers/Microsoft.Network/privateDnsZones/privatelink.sql.azuresynapse.net')]"
},
"privateDnsZoneIdDev": {
"value": "[concat(variables('privateDnsZoneResourceGroupId'), '/providers/Microsoft.Network/privateDnsZones/privatelink.dev.azuresynapse.net')]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "sqlPool001Deployment",
"dependsOn": [
"synapse001Deployment"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('sqlPoolTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"sqlPoolName": {
"value": "sqlpool001"
},
"sqlPoolCapacity": {
"value": "DW100c"
},
"synapseWorkspaceId": {
"value": "[reference('synapse001Deployment').outputs.synapseWorkspaceId.value]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "bigDataPool001Deployment",
"dependsOn": [
"synapse001Deployment"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('bigDataPoolTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"bigDataPoolName": {
"value": "bigdatapool001"
},
"bigDataPoolNodeSize": {
"value": "Medium"
},
"bigDataPoolMinNodes": {
"value": 3
},
"bigDataPoolMaxNodes": {
"value": 10
},
"bigDataPoolAutopauseDelay": {
"value": 15
},
"synapseWorkspaceId": {
"value": "[reference('synapse001Deployment').outputs.synapseWorkspaceId.value]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "streamAnalyticsCluster001Deployment",
"dependsOn": [
"eventHub001Deployment",
"sqlServer001Deployment",
"cosmosDb001Deployment"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('streamAnalyticsClusterTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"streamAnalyticsClusterName": {
"value": "[concat(variables('enterpriseScaleAnalyticsCompanyPrefix'), '-', variables('dataNodeName'), '-', variables('dataDomainName'), '-streamanalyticscluster001')]"
},
"streamAnalyticsClusterCapacity": {
"value": 36
},
"storageAccountId": {
"value": "[variables('streamAnalyticsStorageAccountId')]"
},
"eventHubId": {
"value": "[reference('eventHub001Deployment').outputs.keyVaultId.value]"
},
"sqlServerId": {
"value": "[reference('sqlserver001Deployment').outputs.sqlServerId.value]"
},
"cosmosDbId": {
"value": "[reference('cosmosDb001Deployment').outputs.cosmosDbId.value]"
}
}
}
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "streamAnalytics001Deployment",
"dependsOn": [
"eventHub001Deployment",
"sqlServer001Deployment",
"cosmosDb001Deployment",
"streamAnalyticsCluster001Deployment"
],
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('streamAnalyticsTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"streamAnalyticsName": {
"value": "[concat(variables('enterpriseScaleAnalyticsCompanyPrefix'), '-', variables('dataNodeName'), '-', variables('dataDomainName'), '-streamanalytics001')]"
},
"streamAnalyticsCapacity": {
"value": 1
},
"streamAnalyticsJobStorageAccountId": {
"value": ""
},
"streamAnalyticsClusterId": {
"value": "[reference('streamAnalyticsCluster001Deployment').outputs.streamAnalyticsClusterId.value]"
}
}
}
}
],
"outputs": {}
}