* updated deploy to azure link

* smaller changes to old templates
This commit is contained in:
Marvin Buss 2021-02-12 09:28:57 +01:00
Родитель de71c91838
Коммит c0e4161e27
3 изменённых файлов: 152 добавлений и 2 удалений

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

@ -47,7 +47,7 @@ If you dont have an Azure subscription, [create your Azure free account today
| Data Management Zone |
|:---------------------|
[  ![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fdata-hub%2Fmain%2Fdocs%2Freference%2Fdeploy.dataHub.json)
[  ![Deploy to Azure](https://aka.ms/deploytoazurebutton)](https%3A%2F%2Fraw.githubusercontent.com%2FAzure%2Fdata-management-zone%2Fmain%2Fdocs%2Freference%2Fdeploy.dataHub.json)
# Option 2: GitHub Actions or Azure DevOps Pipelines

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

@ -0,0 +1,150 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-08-01/tenantDeploymentTemplate.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"
}
},
"dataHubSubscriptionId": {
"type": "string",
"defaultValue": "",
"maxLength": 36,
"metadata": {
"description": "Provide the subscription id of an existing subscription you want to dedicate for your data hub."
}
},
"location": {
"type": "string",
"defaultValue": "northeurope",
"metadata": {
"description": "Specifies the location for all resources."
}
},
"vmAdminPassword": {
"type": "securestring",
"metadata": {
"description": "Specifies the admin password of the virtual machines."
}
},
"enableDnsAndFirewall": {
"type": "bool",
"defaultValue": true,
"metadata": {
"description": "Specifies whether Private DNS zones and Azure Firewall should be deployed."
}
},
"dnsServerAdresses": {
"type": "array",
"defaultValue": [
"10.0.0.4"
],
"metadata": {
"description": "Specifies a list of internal IP adresses of your DNS forwarders or internal IP address of your Azure Firewall if you have enabled DNS forwarding."
}
},
"firewallPrivateIp": {
"type": "string",
"defaultValue": "10.0.0.4",
"metadata": {
"description": "Specifies the private IP of your (Azure) Firewall."
}
},
"privateDnsZoneResourceGroupId": {
"type": "string",
"defaultValue": "",
"metadata": {
"description": "Specifies the ID of the resource group of the private dns zones, if you already have one that should be used."
}
}
},
"functions": [],
"variables": {
"enterpriseScaleAnalyticsCompanyPrefix": "[parameters('enterpriseScaleAnalyticsCompanyPrefix')]",
"dataHubSubscriptionId": "[parameters('dataHubSubscriptionId')]",
"location": "[parameters('location')]",
"dnsServerAdresses": "[parameters('dnsServerAdresses')]",
"firewallPrivateIp": "[parameters('firewallPrivateIp')]",
"privateDnsZoneResourceGroupId": "[parameters('privateDnsZoneResourceGroupId')]",
"enableDnsAndFirewall": "[parameters('enableDnsAndFirewall')]",
"networkTemplateLink": "https://raw.githubusercontent.com/Azure/data-hub/main/docs/reference/deploy.network.json",
"servicesTemplateLink": "https://raw.githubusercontent.com/Azure/data-hub/main/docs/reference/deploy.services.json"
},
"resources": [
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "networkDeployment",
"location": "[variables('location')]",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('networkTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"enterpriseScaleAnalyticsCompanyPrefix": {
"value": "[variables('enterpriseScaleAnalyticsCompanyPrefix')]"
},
"enableDnsAndFirewall": {
"value": "[variables('enableDnsAndFirewall')]"
},
"dnsServerAdresses": {
"value": "[variables('dnsServerAdresses')]"
},
"firewallPrivateIp": {
"value": "[variables('firewallPrivateIp')]"
}
}
},
"subscriptionId": "[variables('dataHubSubscriptionId')]"
},
{
"type": "Microsoft.Resources/deployments",
"apiVersion": "2020-06-01",
"name": "servicesDeployment",
"dependsOn": [
"networkDeployment"
],
"location": "[variables('location')]",
"properties": {
"mode": "Incremental",
"templateLink": {
"uri": "[variables('servicesTemplateLink')]",
"contentVersion": "1.0.0.0"
},
"parameters": {
"location": {
"value": "[variables('location')]"
},
"enterpriseScaleAnalyticsCompanyPrefix": {
"value": "[variables('enterpriseScaleAnalyticsCompanyPrefix')]"
},
"subnetId": {
"value": "[reference('networkDeployment').outputs.privateLinkSubnetId.value]"
},
"privateDnsZoneResourceGroupId": {
"value": "[if(variables('enableDnsAndFirewall'), reference('networkDeployment').outputs.privateDnsZoneResourceGroupId.value, variables('privateDnsZoneResourceGroupId'))]"
}
}
},
"subscriptionId": "[variables('dataHubSubscriptionId')]"
}
],
"outputs": {
"firewallPrivateIp": {
"type": "string",
"value": "[reference('networkDeployment').outputs.firewallPrivateIp.value]"
},
"privateDnsZoneResourceGroupId": {
"type": "string",
"value": "[reference('networkDeployment').outputs.privateDnsZoneResourceGroupId.value]"
}
}
}

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

@ -1,5 +1,5 @@
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"$schema": "https://schema.management.azure.com/schemas/2018-05-01/subscriptionDeploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"enterpriseScaleAnalyticsCompanyPrefix": {