Skip to content

Commit fa8caec

Browse files
Adding RDS
1 parent 44ac6ba commit fa8caec

File tree

10 files changed

+132
-901
lines changed

10 files changed

+132
-901
lines changed

rds-deployment-customimage-rdsh/azuredeploy.json

Lines changed: 66 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,15 @@
1313
"type": "string",
1414
"metadata": {
1515
"description": "The name of the administrator of the new VM and the domain. Exclusion list: 'administrator'. For example johnadmin"
16-
}
16+
},
17+
"defaultValue": "vmadmin"
1718
},
1819
"adminPassword": {
1920
"type": "securestring",
2021
"metadata": {
2122
"description": "The password for the administrator account of the new VM and the domain"
22-
}
23+
},
24+
"defaultValue": "[concat('Subscription#',subscription().subscriptionId)]"
2325
},
2426
"imageSKU": {
2527
"type": "string",
@@ -32,7 +34,7 @@
3234
},
3335
"defaultValue": "2012-R2-Datacenter"
3436
},
35-
"rdshImageStorageAccountName": {
37+
"rdshImageStorageAccountName": {
3638
"type": "string",
3739
"metadata": {
3840
"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"
@@ -44,39 +46,64 @@
4446
"description": "The URI for source of the blob containing the custom image. For example https://johnrdshstore.blob.core.windows.net/johncontainer/MyWindowServerOS.vhd"
4547
}
4648
},
47-
"numberOfRdshInstances": {
49+
"NumberOfRemoteDesktopSessionHosts": {
4850
"type": "int",
4951
"defaultValue": 1,
5052
"metadata": {
51-
"description": "Number of RDSH instances"
53+
"description": "Number of RemoteDesktopSessionHosts"
5254
}
5355
}
5456
},
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-
},
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+
},
7578
"resources": [
76-
{
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+
{
77104
"apiVersion": "[variables('apiVersionNRP')]",
78105
"type": "Microsoft.Network/publicIPAddresses",
79-
"name": "[variables('publicIpRef')]",
106+
"name": "[variables('brokerIpRef')]",
80107
"location": "[resourceGroup().location]",
81108
"properties": {
82109
"publicIPAllocationMethod": "Dynamic",
@@ -178,6 +205,9 @@
178205
"name": "ipconfig",
179206
"properties": {
180207
"privateIPAllocationMethod": "Dynamic",
208+
"publicIPAddress": {
209+
"id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('gatewayIpRef'))]"
210+
},
181211
"subnet": {
182212
"id": "[variables('subnet-id')]"
183213
},
@@ -199,8 +229,7 @@
199229
],
200230
"dnsSettings": {
201231
"dnsServers": [
202-
"[variables('dnsServerPrivateIp')]",
203-
"[variables('DNSIP')]"
232+
"[variables('dnsServerPrivateIp')]"
204233
]
205234
}
206235
}
@@ -219,6 +248,9 @@
219248
"name": "ipconfig",
220249
"properties": {
221250
"privateIPAllocationMethod": "Dynamic",
251+
"publicIPAddress": {
252+
"id": "[resourceId('Microsoft.Network/publicIPAddresses',variables('brokerIpRef'))]"
253+
},
222254
"subnet": {
223255
"id": "[variables('subnet-id')]"
224256
}
@@ -227,8 +259,7 @@
227259
],
228260
"dnsSettings": {
229261
"dnsServers": [
230-
"[variables('dnsServerPrivateIp')]",
231-
"[variables('DNSIP')]"
262+
"[variables('dnsServerPrivateIp')]"
232263
]
233264
}
234265
}
@@ -240,7 +271,7 @@
240271
"location": "[resourceGroup().location]",
241272
"copy": {
242273
"name": "rdsh-nic-loop",
243-
"count": "[parameters('numberOfRdshInstances')]"
274+
"count": "[parameters('NumberOfRemoteDesktopSessionHosts')]"
244275
},
245276
"dependsOn": [
246277
"Microsoft.Network/loadBalancers/loadBalancer"
@@ -259,8 +290,7 @@
259290
],
260291
"dnsSettings": {
261292
"dnsServers": [
262-
"[variables('dnsServerPrivateIp')]",
263-
"[variables('DNSIP')]"
293+
"[variables('dnsServerPrivateIp')]"
264294
]
265295
}
266296
}
@@ -352,7 +382,7 @@
352382
"location": "[resourceGroup().location]",
353383
"copy": {
354384
"name": "rdsh-vm-loop",
355-
"count": "[parameters('numberOfRdshInstances')]"
385+
"count": "[parameters('NumberOfRemoteDesktopSessionHosts')]"
356386
},
357387
"dependsOn": [
358388
"Microsoft.Compute/virtualMachines/gw-vm/extensions/gateway",
@@ -508,7 +538,7 @@
508538
"connectionBroker": "[concat('broker.',parameters('adDomainName'))]",
509539
"domainName": "[parameters('adDomainName')]",
510540
"externalfqdn": "[concat('gateway.',parameters('adDomainName'))]",
511-
"numberOfRdshInstances": "[parameters('numberOfRdshInstances')]",
541+
"NumberOfRemoteDesktopSessionHosts": "[parameters('NumberOfRemoteDesktopSessionHosts')]",
512542
"sessionHostNamingPrefix": "rdsh-",
513543
"webAccessServer": "[concat('gateway.',parameters('adDomainName'))]"
514544
}

rds-deployment-customimage-rdsh/azuredeploy.parameters.json

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,11 @@
22
"$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentParameters.json#",
33
"contentVersion": "1.0.0.0",
44
"parameters": {
5-
"adminPassword": {
6-
"value": "GEN-PASSWORD"
7-
},
8-
"adminUsername": {
9-
"value": "azureUser"
10-
},
11-
"adDomainName": {
12-
"value": "mydomain.local"
13-
},
145
"rdshImageStorageAccountName": {
156
"value": "my-rdsh-image-storage-name"
167
},
178
"rdshsourceImageVhdUri": {
189
"value": "rdsh-source-image-uri"
19-
},
20-
"numberOfRdshInstances": {
21-
"value": 1
22-
},
23-
"imageSKU": {
24-
"value": "2012-R2-Datacenter"
2510
}
2611
}
2712
}
82.2 KB
Binary file not shown.

rds-deployment-existing-ad/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ This template will create a Remote Desktop Sesson Collection farm using the Powe
1212

1313
+ Login into Azurestack portal
1414
+ Click "New" -> "Custom" -> "Template deployment"
15+
+ Deploy ad-non-ha template. if you already have deployed ad-non-ha, then you can use that AD deployment by its resource group for this deployment.
1516
+ Copy conent in azuredeploy.json, Click "Edit Tempalte" and paste content, then Click "Save"
1617
+ Fill the parameters. Again, this uses existing AD. Please see note above.
1718
+ Click "Create new" to create new Resource Group

0 commit comments

Comments
 (0)