Skip to content

Commit

Permalink
Fix domain name label
Browse files Browse the repository at this point in the history
  • Loading branch information
waeltken committed Feb 16, 2021
1 parent ebe9fab commit 107ae09
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 4 deletions.
3 changes: 3 additions & 0 deletions azuredeploy.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
},
"serviceName": {
"value": "[parameters('serviceName')]"
},
"serviceIPRangePrefix": {
"value": "[parameters('serviceIPRangePrefix')]"
},
"localAdminPWD": {
"value": "[parameters('localAdminPWD')]"
Expand Down
11 changes: 7 additions & 4 deletions infra-backend/infra-backend.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"serviceName": {
"type": "string"
},
"serviceIPRangePrefix": {
"type": "string"
},
"localAdminPWD": {
"type": "securestring"
}
Expand All @@ -17,7 +20,7 @@
},
"resources": [
{
"name": "[concat(parameters('serviceName'), '-', variables('vmName'),'-PublicIP')]",
"name": "[concat(variables('vmName'),'-PublicIP')]",
"type": "Microsoft.Network/publicIPAddresses",
"apiVersion": "2019-11-01",
"location": "[resourceGroup().location]",
Expand All @@ -27,7 +30,7 @@
"properties": {
"publicIPAllocationMethod": "Dynamic",
"dnsSettings": {
"domainNameLabel": "[toLower(variables('vmName'))]"
"domainNameLabel": "[toLower(concat(parameters('serviceName'), '-', variables('vmName')))]"
}
}
},
Expand All @@ -38,7 +41,7 @@
"apiVersion": "2019-11-01",
"location": "[resourceGroup().location]",
"dependsOn": [
"[resourceId('Microsoft.Network/publicIPAddresses', concat(parameters('serviceName'), '-', variables('vmName'),'-PublicIP'))]"
"[resourceId('Microsoft.Network/publicIPAddresses', concat(variables('vmName'),'-PublicIP'))]"
],
"tags": {
"displayName": "[concat(variables('vmName'),' Network Interface Try')]"
Expand All @@ -50,7 +53,7 @@
"properties": {
"privateIPAllocationMethod": "Dynamic",
"publicIPAddress": {
"id": "[resourceId('Microsoft.Network/publicIPAddresses',concat(parameters('serviceName'), '-', variables('vmName'),'-PublicIP'))]"
"id": "[resourceId('Microsoft.Network/publicIPAddresses',concat(variables('vmName'),'-PublicIP'))]"
},
"subnet": {
"id": "[resourceId(concat('rg-',parameters('serviceName'),'-shared-prod'),'Microsoft.Network/virtualNetworks/subnets',concat('vnet-',parameters('serviceName'),'-',parameters('serviceLocation'),'prod-001') ,concat('snet-',parameters('serviceName'),'-backend-prod-001'))]"
Expand Down

0 comments on commit 107ae09

Please sign in to comment.