|
13 | 13 | "type": "string",
|
14 | 14 | "metadata": {
|
15 | 15 | "description": "The name of the administrator of the new VM and the domain. Exclusion list: 'administrator'. For example johnadmin"
|
16 |
| - }, |
17 |
| - "defaultValue": "vmadmin" |
| 16 | + } |
18 | 17 | },
|
19 | 18 | "adminPassword": {
|
20 | 19 | "type": "securestring",
|
21 | 20 | "metadata": {
|
22 | 21 | "description": "The password for the administrator account of the new VM and the domain"
|
23 |
| - }, |
24 |
| - "defaultValue": "[concat('Subscription#',subscription().subscriptionId)]" |
| 22 | + } |
25 | 23 | },
|
26 | 24 | "imageSKU": {
|
27 | 25 | "type": "string",
|
|
34 | 32 | },
|
35 | 33 | "defaultValue": "2012-R2-Datacenter"
|
36 | 34 | },
|
37 |
| - "rdshImageStorageAccountName": { |
| 35 | + "rdshImageStorageAccountName": { |
38 | 36 | "type": "string",
|
39 | 37 | "metadata": {
|
40 | 38 | "description": "This is the name of the your storage account where you stored the os custom image you want to use for rdsh machines. For example johnrdshstore"
|
|
46 | 44 | "description": "The URI for source of the blob containing the custom image. For example https://johnrdshstore.blob.core.windows.net/johncontainer/MyWindowServerOS.vhd"
|
47 | 45 | }
|
48 | 46 | },
|
49 |
| - "NumberOfRemoteDesktopSessionHosts": { |
| 47 | + "numberOfRdshInstances": { |
50 | 48 | "type": "int",
|
51 | 49 | "defaultValue": 1,
|
52 | 50 | "metadata": {
|
53 |
| - "description": "Number of RemoteDesktopSessionHosts" |
| 51 | + "description": "Number of RDSH instances" |
54 | 52 | }
|
55 | 53 | }
|
56 | 54 | },
|
57 |
| - "variables": { |
58 |
| - "dnsLabelPrefix": "[concat('dns', resourceGroup().name)]", |
59 |
| - "rdshVmSize": "Standard_A2", |
60 |
| - "storageAccountName": "[concat('sa', resourceGroup().name)]", |
61 |
| - "storageAccountType": "Standard_LRS", |
62 |
| - "uniqueStorageAccountContainerName": "[concat('sc', resourceGroup().name)]", |
63 |
| - "imagePublisher": "MicrosoftWindowsServer", |
64 |
| - "imageOffer": "WindowsServer", |
65 |
| - "adVnetName": "[concat('ADVNET',resourceGroup().name)]", |
66 |
| - "adSubnetName": "[concat('ADStaticSubnet',resourceGroup().name)]", |
67 |
| - "vnetAddressRange": "10.0.0.0/16", |
68 |
| - "subnetAddressRange": "10.0.0.0/24", |
69 |
| - "dnsServerPrivateIp": "10.0.0.4", |
70 |
| - "subnet-id": "[concat(resourceId('Microsoft.Network/virtualNetworks',variables('adVnetName')),'/subnets/',variables('adSubnetName'))]", |
71 |
| - "publicIpRef": "publicIp", |
72 |
| - "brokerIpRef": "brokerpublicIp", |
73 |
| - "gatewayIpRef": "gatewaypublicIp", |
74 |
| - "assetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/develop/rds-deployment-existing-ad/", |
75 |
| - "apiVersion": "2015-06-15", |
76 |
| - "apiVersionNRP": "2015-06-15" |
77 |
| - }, |
| 55 | + "variables": { |
| 56 | + "dnsLabelPrefix": "[concat('dns', resourceGroup().name)]", |
| 57 | + "rdshVmSize": "Standard_A2", |
| 58 | + "storageAccountName": "[concat('sa', resourceGroup().name)]", |
| 59 | + "storageAccountType": "Standard_LRS", |
| 60 | + "uniqueStorageAccountContainerName": "[concat('sc', resourceGroup().name)]", |
| 61 | + "imagePublisher": "MicrosoftWindowsServer", |
| 62 | + "imageOffer": "WindowsServer", |
| 63 | + "adVnetName": "[concat('ADVNET',resourceGroup().name)]", |
| 64 | + "adSubnetName": "[concat('ADStaticSubnet',resourceGroup().name)]", |
| 65 | + "vnetAddressRange": "10.0.0.0/16", |
| 66 | + "subnetAddressRange": "10.0.0.0/24", |
| 67 | + "dnsServerPrivateIp": "10.0.0.4", |
| 68 | + "DNSIP": "192.168.100.2", |
| 69 | + "subnet-id": "[concat(resourceId('Microsoft.Network/virtualNetworks',variables('adVnetName')),'/subnets/',variables('adSubnetName'))]", |
| 70 | + "publicIpRef": "publicIp", |
| 71 | + "assetLocation": "https://raw.githubusercontent.com/Azure/AzureStack-QuickStart-Templates/master/rds-deployment/", |
| 72 | + "apiVersion": "2015-06-15", |
| 73 | + "apiVersionNRP": "2015-05-01-preview" |
| 74 | + }, |
78 | 75 | "resources": [
|
79 |
| - { |
80 |
| - "apiVersion": "[variables('apiVersionNRP')]", |
81 |
| - "type": "Microsoft.Network/publicIPAddresses", |
82 |
| - "name": "[variables('publicIpRef')]", |
83 |
| - "location": "[resourceGroup().location]", |
84 |
| - "properties": { |
85 |
| - "publicIPAllocationMethod": "Dynamic", |
86 |
| - "dnsSettings": { |
87 |
| - "domainNameLabel": "[variables('dnsLabelPrefix')]" |
88 |
| - } |
89 |
| - } |
90 |
| - }, |
91 |
| - { |
92 |
| - "apiVersion": "[variables('apiVersionNRP')]", |
93 |
| - "type": "Microsoft.Network/publicIPAddresses", |
94 |
| - "name": "[variables('gatewayIpRef')]", |
95 |
| - "location": "[resourceGroup().location]", |
96 |
| - "properties": { |
97 |
| - "publicIPAllocationMethod": "Dynamic", |
98 |
| - "dnsSettings": { |
99 |
| - "domainNameLabel": "[variables('dnsLabelPrefix')]" |
100 |
| - } |
101 |
| - } |
102 |
| - }, |
103 |
| - { |
| 76 | + { |
104 | 77 | "apiVersion": "[variables('apiVersionNRP')]",
|
105 | 78 | "type": "Microsoft.Network/publicIPAddresses",
|
106 |
| - "name": "[variables('brokerIpRef')]", |
| 79 | + "name": "[variables('publicIpRef')]", |
107 | 80 | "location": "[resourceGroup().location]",
|
108 | 81 | "properties": {
|
109 | 82 | "publicIPAllocationMethod": "Dynamic",
|
|
205 | 178 | "name": "ipconfig",
|
206 | 179 | "properties": {
|
207 | 180 | "privateIPAllocationMethod": "Dynamic",
|
208 |
| - "publicIPAddress": { |
209 |
| - "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('gatewayIpRef'))]" |
210 |
| - }, |
211 | 181 | "subnet": {
|
212 | 182 | "id": "[variables('subnet-id')]"
|
213 | 183 | },
|
|
229 | 199 | ],
|
230 | 200 | "dnsSettings": {
|
231 | 201 | "dnsServers": [
|
232 |
| - "[variables('dnsServerPrivateIp')]" |
| 202 | + "[variables('dnsServerPrivateIp')]", |
| 203 | + "[variables('DNSIP')]" |
233 | 204 | ]
|
234 | 205 | }
|
235 | 206 | }
|
|
248 | 219 | "name": "ipconfig",
|
249 | 220 | "properties": {
|
250 | 221 | "privateIPAllocationMethod": "Dynamic",
|
251 |
| - "publicIPAddress": { |
252 |
| - "id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('brokerIpRef'))]" |
253 |
| - }, |
254 | 222 | "subnet": {
|
255 | 223 | "id": "[variables('subnet-id')]"
|
256 | 224 | }
|
|
259 | 227 | ],
|
260 | 228 | "dnsSettings": {
|
261 | 229 | "dnsServers": [
|
262 |
| - "[variables('dnsServerPrivateIp')]" |
| 230 | + "[variables('dnsServerPrivateIp')]", |
| 231 | + "[variables('DNSIP')]" |
263 | 232 | ]
|
264 | 233 | }
|
265 | 234 | }
|
|
271 | 240 | "location": "[resourceGroup().location]",
|
272 | 241 | "copy": {
|
273 | 242 | "name": "rdsh-nic-loop",
|
274 |
| - "count": "[parameters('NumberOfRemoteDesktopSessionHosts')]" |
| 243 | + "count": "[parameters('numberOfRdshInstances')]" |
275 | 244 | },
|
276 | 245 | "dependsOn": [
|
277 | 246 | "Microsoft.Network/loadBalancers/loadBalancer"
|
|
290 | 259 | ],
|
291 | 260 | "dnsSettings": {
|
292 | 261 | "dnsServers": [
|
293 |
| - "[variables('dnsServerPrivateIp')]" |
| 262 | + "[variables('dnsServerPrivateIp')]", |
| 263 | + "[variables('DNSIP')]" |
294 | 264 | ]
|
295 | 265 | }
|
296 | 266 | }
|
|
382 | 352 | "location": "[resourceGroup().location]",
|
383 | 353 | "copy": {
|
384 | 354 | "name": "rdsh-vm-loop",
|
385 |
| - "count": "[parameters('NumberOfRemoteDesktopSessionHosts')]" |
| 355 | + "count": "[parameters('numberOfRdshInstances')]" |
386 | 356 | },
|
387 | 357 | "dependsOn": [
|
388 | 358 | "Microsoft.Compute/virtualMachines/gw-vm/extensions/gateway",
|
|
538 | 508 | "connectionBroker": "[concat('broker.',parameters('adDomainName'))]",
|
539 | 509 | "domainName": "[parameters('adDomainName')]",
|
540 | 510 | "externalfqdn": "[concat('gateway.',parameters('adDomainName'))]",
|
541 |
| - "NumberOfRemoteDesktopSessionHosts": "[parameters('NumberOfRemoteDesktopSessionHosts')]", |
| 511 | + "numberOfRdshInstances": "[parameters('numberOfRdshInstances')]", |
542 | 512 | "sessionHostNamingPrefix": "rdsh-",
|
543 | 513 | "webAccessServer": "[concat('gateway.',parameters('adDomainName'))]"
|
544 | 514 | }
|
|
0 commit comments