|
9 | 9 | }, |
10 | 10 | "defaultValue": "contoso.com" |
11 | 11 | }, |
| 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 | + }, |
12 | 26 | "adminUsername": { |
13 | 27 | "type": "string", |
14 | 28 | "metadata": { |
|
43 | 57 | } |
44 | 58 | }, |
45 | 59 | "variables": { |
46 | | - "dnsLabelPrefix": "[concat('dns', resourceGroup().name)]", |
| 60 | + "dnsLabelPrefix": "[concat('rdsdns', resourceGroup().name)]", |
47 | 61 | "gwdnsLabelPrefix": "[concat('gw', resourceGroup().name)]", |
48 | 62 | "cbdnsLabelPrefix": "[concat('cb', resourceGroup().name)]", |
49 | 63 | "rdshVmSize": "Standard_A2", |
|
52 | 66 | "uniqueStorageAccountContainerName": "[concat('sc', resourceGroup().name)]", |
53 | 67 | "imagePublisher": "MicrosoftWindowsServer", |
54 | 68 | "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", |
57 | 71 | "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'))]", |
59 | 73 | "publicIpRef": "publicIp", |
60 | 74 | "brokerIpRef": "brokerpublicIp", |
61 | 75 | "gatewayIpRef": "gatewaypublicIp", |
|
371 | 385 | "count": "[parameters('NumberOfRemoteDesktopSessionHosts')]" |
372 | 386 | }, |
373 | 387 | "dependsOn": [ |
374 | | - "Microsoft.Compute/virtualMachines/gw-vm/extensions/gateway", |
375 | 388 | "[concat('Microsoft.Storage/storageAccounts/', variables('storageAccountName'))]", |
376 | 389 | "[resourceId('Microsoft.Compute/availabilitySets', 'rdsh-availabilityset')]", |
377 | 390 | "[concat('Microsoft.Network/networkInterfaces/', 'rdsh-', copyindex(), '-nic')]" |
|
0 commit comments