Skip to content

Commit 66afc2a

Browse files
authored
Merge pull request #150 from Azure/mahendraStackDevelop
Mahendra stack develop
2 parents b094f9e + c8cccc4 commit 66afc2a

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

rds-deployment-existing-ad/azuredeploy.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@
99
},
1010
"defaultValue": "contoso.com"
1111
},
12+
"adVnetName": {
13+
"type": "string",
14+
"metadata": {
15+
"description": "The vnet name of AD domain. For example johnvnet1"
16+
},
17+
"defaultValue": "[concat('ADVNET',resourceGroup().name)]"
18+
},
19+
"adSubnetName": {
20+
"type": "string",
21+
"metadata": {
22+
"description": "The subnet name of AD domain. For example johnsubnet1"
23+
},
24+
"defaultValue": "[concat('ADStaticSubnet',resourceGroup().name)]"
25+
},
1226
"adminUsername": {
1327
"type": "string",
1428
"metadata": {
@@ -43,7 +57,7 @@
4357
}
4458
},
4559
"variables": {
46-
"dnsLabelPrefix": "[concat('dns', resourceGroup().name)]",
60+
"dnsLabelPrefix": "[concat('rdsdns', resourceGroup().name)]",
4761
"gwdnsLabelPrefix": "[concat('gw', resourceGroup().name)]",
4862
"cbdnsLabelPrefix": "[concat('cb', resourceGroup().name)]",
4963
"rdshVmSize": "Standard_A2",
@@ -52,10 +66,10 @@
5266
"uniqueStorageAccountContainerName": "[concat('sc', resourceGroup().name)]",
5367
"imagePublisher": "MicrosoftWindowsServer",
5468
"imageOffer": "WindowsServer",
55-
"adVnetName": "[concat('ADVNET',resourceGroup().name)]",
56-
"adSubnetName": "[concat('ADStaticSubnet',resourceGroup().name)]",
69+
"vnetAddressRange": "10.0.0.0/16",
70+
"subnetAddressRange": "10.0.0.0/24",
5771
"dnsServerPrivateIp": "10.0.0.4",
58-
"subnet-id": "[concat(resourceId('Microsoft.Network/virtualNetworks',variables('adVnetName')),'/subnets/',variables('adSubnetName'))]",
72+
"subnet-id": "[concat(resourceId('Microsoft.Network/virtualNetworks',parameters('adVnetName')),'/subnets/',parameters('adSubnetName'))]",
5973
"publicIpRef": "publicIp",
6074
"brokerIpRef": "brokerpublicIp",
6175
"gatewayIpRef": "gatewaypublicIp",
@@ -371,7 +385,6 @@
371385
"count": "[parameters('NumberOfRemoteDesktopSessionHosts')]"
372386
},
373387
"dependsOn": [
374-
"Microsoft.Compute/virtualMachines/gw-vm/extensions/gateway",
375388
"[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]",
376389
"[resourceId('Microsoft.Compute/availabilitySets', 'rdsh-availabilityset')]",
377390
"[concat('Microsoft.Network/networkInterfaces/', 'rdsh-', copyindex(), '-nic')]"

0 commit comments

Comments
 (0)