ASP.NET ARM template now configures DNS name.

This commit is contained in:
Justin Clareburt 2017-12-04 23:27:05 -08:00
Родитель 51901d11a0
Коммит fc67432002
1 изменённых файлов: 6 добавлений и 1 удалений

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

@ -27,6 +27,7 @@
"publicIpAddressName": "[concat(parameters('virtualMachineName'), '-ip')]",
"publicIpAddressType": "Dynamic",
"publicIpAddressSku": "Basic",
"dnsNamePrefix": "[toLower(concat(parameters('virtualMachineName'), '-', take(guid(resourceGroup().id), 8)))]",
"autoShutdownStatus": "Enabled",
"autoShutdownTime": "19:00",
"autoShutdownTimeZone": "UTC",
@ -197,7 +198,11 @@
"apiVersion": "2017-08-01",
"location": "[resourceGroup().location]",
"properties": {
"publicIpAllocationMethod": "[variables('publicIpAddressType')]"
"publicIpAllocationMethod": "[variables('publicIpAddressType')]",
"dnsSettings": {
"domainNameLabel": "[variables('dnsNamePrefix')]",
"fqdn": "[concat(variables('dnsNamePrefix'), resourceGroup().location, '.cloudapp.azure.com')]"
}
},
"sku": {
"name": "[variables('publicIpAddressSku')]"