You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: new_dsg_environment/azure-runbooks/dsg_build_instructions.md
+21-30Lines changed: 21 additions & 30 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@
15
15
16
16
-#### Download a client VPN certificate for the Safe Haven Management VNet
17
17
18
-
- Navigate to the Safe Haven Management (SHM) KeyVault in the Safe Haven Management subscription via `Resource Groups -> RG_DSG_SECRETS -> dsg-management-<shm-id>`, where `<shm-id>` is `prod` for the production SHM environment and `test` for the test SHM environment.
18
+
- Navigate to the Safe Haven Management (SHM) KeyVault in the Safe Haven Management subscription via `Resource Groups -> RG_DSG_SECRETS -> kv-shm-<shm-id>`.
19
19
20
20
- Once there open the "Certificates" page under the "Settings" section in the left hand sidebar.
21
21
@@ -33,7 +33,7 @@
33
33
34
34
- Click the "Download VPN client" link at the top of the page to get the root certificate (VpnServerRoot.cer) and VPN configuration file (VpnSettings.xml), then follow the [VPN set up instructions](https://docs.microsoft.com/en-us/azure/vpn-gateway/point-to-site-vpn-client-configuration-azure-cert) using the Windows or Mac sections as appropriate.
35
35
36
-
- On Windows you may get a "|Windows protected your PC" pop up. If so, click `More info -> Run anyway`
36
+
- On Windows you may get a "Windows protected your PC" pop up. If so, click `More info -> Run anyway`
37
37
38
38
- On Windows do not rename the vpn client as this will break it
39
39
@@ -123,7 +123,7 @@ The full configuration details for a new DSG are generated by defining a few "co
123
123
124
124
### Core SHM configuration properties
125
125
The core properties for the relevant pre-existing Safe Haven Management (SHM) environment must be present in the `dsg_configs/core` folder.
126
-
The following core SHM properties must be defined in a JSON file named `shm_<shm-id>_core_config.json`. See `shm_testc_core_config.json` for an example.
126
+
The following core SHM properties must be defined in a JSON file named `shm_<shm-id>_core_config.json`.
127
127
128
128
**NOTE:** The `netbiosName` fields must have a maximum length of 15 characters.
129
129
@@ -133,27 +133,16 @@ The following core SHM properties must be defined in a JSON file named `shm_<shm
133
133
"computeVmImageSubscriptionName": "Azure Subscription name for compute VM",
134
134
"domain": "The fully qualified domain name for the management environment",
135
135
"netbiosname": "A short name to use as the local name for the domain. This must be 15 characters or less",
136
-
"shId": "A short ID to identify the management environment",
137
-
"name": "Deployment name",
136
+
"shmId": "A short ID to identify the management environment",
137
+
"name": "Safe Haven deployment name",
138
138
"organisation": {
139
139
"name": "Organisation name",
140
140
"townCity": "Location",
141
141
"stateCountyRegion": "Location",
142
142
"countryCode": "e.g. GB"
143
143
},
144
144
"location": "The Azure location in which the management environment VMs are deployed",
145
-
"ipPrefix": "The three octet IP address prefix for the Class A range used by the management environment. Use 10.250.0",
146
-
"dcVmName": "The VM name of the managment environment Active Directory Domain Controller",
147
-
"dcHostname": "The hostname of the managment environment Active Directory Domain Controller",
148
-
"dcRgName": "The name of the Resource Group containing the managment environment Active Directory Domain Controller",
149
-
"vnetRgName":"The name of the Resource Group containing the Virtual Network for the management environment",
150
-
"npsIpLastOctet": "248",
151
-
"npsVmName": "The VM Name of the NPS VM",
152
-
"npsRgName": "The resources group containing the NPS VM",
153
-
"npsIp": "The IP address of the management environment NPS server",
154
-
"vnetName":"The name of the Virtual Network for the management environment",
155
-
"artifactStorageAccount": "The name of the storage account that will contain installation artifacts for new DSGs within the mangement environment. Must be GLOBALLY unique within Azure. We suggest the format `dsg<shm-id>artifacts`",
156
-
"keyVaultName": "The name of the KeyVault that will contain secrets mangement environment. Must be GLOBALLY unique within Azure. We suggest the format `dsg-management-<shm-id>`"
145
+
"ipPrefix": "The three octet IP address prefix for the Class A range used by the management environment. Use 10.0.0 for this unless you have a good reason to use another prefix."
157
146
}
158
147
```
159
148
@@ -217,6 +206,8 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
217
206
218
207
- Prepare SHM by running `./Prepare_SHM.ps1`, entering the DSG ID when prompted
219
208
209
+
- This step also creates a DSG KeyVault in the DSG subscription in `Resource Groups -> RG_DSG_SECRETS -> kv-shm-<shm-id>-dsg<dsg-id>`. Additional deployment steps will add secrets to this KeyVault and you will need to access some of these for some of the manual configiration steps later.
210
+
220
211
## 2. Deploy Virtual Network
221
212
222
213
### Create the virtual network
@@ -235,7 +226,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
235
226
236
227
### Set up a VPN connection to the DSG
237
228
238
-
- In the **DSG subscription** open `Resource Groups -> RG_DSG_VNET -> DSG_VNET1_GW`
229
+
- In the **DSG subscription** open `Resource Groups -> RG_DSG_VNET -> VNET_DSG<dsg-id>_GW`
239
230
240
231
- Select "**Point to Site Configuration**" from the left-hand navigation
241
232
@@ -277,7 +268,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
277
268
278
269
- Connect to the new Domain controller via Remote Desktop client over the DSG VPN connection at the IP address `<dsg-identity-subnet-prefix>.250` (e.g. 10.250.x.250)
279
270
280
-
- Login with local admin user `atiadmin`and the password for the DSG DC, which was created and stored in the `dsg<dsg-id>-dc-admin-password`secret in the Safe Haven Management KeyVault by the DC deployment script
271
+
- Login with local admin user and password for the DSG DC, which were created and stored in the `dsg<dsg-id>-dc-admin-username` and `dsg<dsg-id>-dc-admin-password`secrets in the DSG KeyVault by the DC deployment script
281
272
282
273
- From the "Server Management" application, select `Tools -> Group Policy Management`
283
274
@@ -331,7 +322,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
331
322
332
323
- Connect to the **SHM Domain Controller** via Remote Desktop client over the VPN connection
333
324
334
-
- Login with domain user `<shm-domain>\atiadmin` and the SHM DC admin password from the `sh-management-dc-admin-password` secret in the Safe Haven Management KeyVault
325
+
- Login with domain user `<shm-domain>\User` and the SHM DC admin password from the `shm-dc-admin-password` secret in the Safe Haven Management KeyVault
335
326
336
327
- From the "Server Management" application, select `Tools -> Active Directory Domains and Trust`
337
328
@@ -349,7 +340,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
349
340
| Trust Type: | External Trust |
350
341
| Direction of trust: | Two-way |
351
342
| Sides of trust: | Both this domain and the specified domain |
352
-
| User name and password: | Domain admin user on the DSG domain. Format: `<dsg-domain\Username>. User is "atiadmin ". See DSG DC admin secret in management KeyVault for password. |
343
+
| User name and password: | Domain admin user on the DSG domain. Format: <dsg-domain>\Username>. See DSG `dsg<dsg-id>-dc-admin-username` and `dsg<dsg-id>-dc-admin-password` secrets in DSG KeyVault for username and password. |
@@ -395,7 +386,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
395
386
396
387
- Connect to the **RDS Session Server 1 (RDSSH1)** via Remote Desktop client over the DSG VPN connection
397
388
398
-
- Login with domain user `<dsg-domain>\atiadmin` and the **DSG DC**admin password from the `dsg<dsg-id>-dc-admin-password`secret from the SHM KeyVault (all DSG Windows servers use the same admin credentials)
389
+
- Login with domain user `<dsg-domain>\Username`. See DSG `dsg<dsg-id>-dc-admin-username` and `dsg<dsg-id>-dc-admin-password`secrets in DSG KeyVault for username and password (all DSG Windows servers use the same admin credentials)
399
390
400
391
- Open `C:\Software\rdssh1-app-server` in Windows explorer
401
392
@@ -407,7 +398,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
407
398
408
399
- Connect to the **RDS Gateway** via Remote Desktop client over the DSG VPN connection
409
400
410
-
- Login with domain user `<dsg-domain>\atiadmin` and the **DSG DC**admin password from the `dsg<dsg-id>-dc-admin-password`secret from the SHM KeyVault (all DSG Windows servers use the same admin credentials)
401
+
- Login with domain user `<dsg-domain>\Username`. See DSG `dsg<dsg-id>-dc-admin-username` and `dsg<dsg-id>-dc-admin-password`secrets in DSG KeyVault for username and password. (all DSG Windows servers use the same admin credentials)
411
402
412
403
- Open a PowerShell command window with elevated privileges - make sure to use the `Windows PowerShell` application, not the `Windows PowerShell (x86)` application. The required server managment commandlets are not installed on the x86 version.
413
404
@@ -455,7 +446,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
455
446
456
447
- Enter the IP address of the NPS within the management domain (`10.251.0.248`)
457
448
458
-
- Set the "Shared Secret" to the value of the `dsg-<dsg-id>-nps-secret` in the SHM KeyVault.
449
+
- Set the "Shared Secret" to the value of the `dsg-<dsg-id>-nps-secret` in the DSG KeyVault.
@@ -523,7 +514,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
523
514
524
515
- Connect to the **SHM Domain Controller** via Remote Desktop client over the VPN connection
525
516
526
-
- Login with domain user `<shm-domain>\atiadmin` and the SHM DC admin password from the `sh-management-dc-admin-password`secret in the Safe Haven Management KeyVault
517
+
- Login with **SHM**domain user `<shm-domain>\User` See **SHM**`dsg<dsg-id>-dc-admin-username` and `shm-dc-admin-password`secrets in the **SHM** KeyVault for username and password.
527
518
528
519
- In the "Server Management" app, click `Tools -> Active Directory Users and Computers`
529
520
@@ -557,7 +548,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
557
548
558
549
- Ensure that the SHM NPS server RADIUS Client configuration is using the **private** IP address of the RDS Gateway and **not** its public one.
559
550
560
-
- Ensure the same shared secret from the `dsg-<dsg-id>-nps-secret` in the SHM KeyVault is used in **both** the SHM NPS server RADIUS Client configuration and the DSG RDS Gateway RD CAP Store configuration (see previous sections for instructions).
551
+
- Ensure the same shared secret from the `dsg-<dsg-id>-nps-secret` in the DSG KeyVault is used in **both** the SHM NPS server RADIUS Client configuration and the DSG RDS Gateway RD CAP Store configuration (see previous sections for instructions).
561
552
562
553
- If you get a "We couldn't connect to the gateway because of an error" message, it's likely that the "Remote RADIUS Server" authentication timeouts have not been increased as described in a previous section. It seems that these are reset everytime the "Central CAP store" shared RADIUS secret is changed.
563
554
@@ -569,7 +560,7 @@ Each DSG must be assigned it's own unique IP address space, and it is very impor
569
560
570
561
- Connect to the **RDS Session Server 2 (RDSSH1)** via Remote Desktop client over the DSG VPN connection
571
562
572
-
- Login with domain user `<dsg-domain>\atiadmin` and the **DSG DC**admin password from the `dsg<dsg-id>-dc-admin-password`secret from the SHM KeyVault (all DSG Windows servers use the same admin credentials)
563
+
- Login with domain user `<dsg-domain>\Username`. See DSG `dsg<dsg-id>-dc-admin-username` and `dsg<dsg-id>-dc-admin-password`secrets in DSG KeyVault for username and password (all DSG Windows servers use the same admin credentials)
573
564
574
565
- Open `C:\Software\rdssh2-virtual-desktop-server` in Windows explorer
575
566
@@ -663,8 +654,8 @@ To deploy a compute VM you will need the following available on the machine you
663
654
- Activate boot diagnostics on the VM and click save. You need to stay on that screen until the activation is complete.
664
655
- Go back to the VM panel and click on the "Serial console" item near the bottom of the VM menu on the left habnd side of the VM panel.
665
656
- If you are not prompted with `login:`, hit enter until the prompt appears
666
-
- Enter `atiadmin` for the username
667
-
- Enter the password from the `dsgroup<dsg-id>-dsvm-admin-password` secret in the `dsg-mangement-<shm-id>` KeyVault in the `RG_DSG_SECRETS` respource group of the SHM subscription.
657
+
- Enter the username from the `dsg<dsg-id>-dsvm-admin-password` secret in the DSG KeyVault.
658
+
- Enter the password from the `dsg<dsg-id>-dsvm-admin-password` secret in the DSG KeyVault.
668
659
- To validate that our custom `cloud-init.yaml` file has been successfully uploaded, run `sudo cat /var/lib/cloud/instance/user-data.txt`. You should see the contents of the `new_dsg_environment/azure-vms/DSG_configs/cloud-init-compute-vm-DSG-<dsg-id>.yaml` file in the Safe Haven git repository.
669
660
- To see the output of our custom `cloud-init.yaml` file, run `sudo tail -n 200 /var/log/cloud-init-output.log` and scroll up.
670
661
@@ -704,7 +695,7 @@ To run the smoke tests:
704
695
705
696
- Connect to the **DSG Dataserver** via Remote Desktop client over the DSG VPN connection. Ensure that the Remote Desktop client configuration shares the Safe Haven repository folder on your local machine with the Dataserver (or you have another way to transfer files between your local machine and the Dataserver VM).
706
697
707
-
- Login with domain user `<dsg-domain>\atiadmin` and the **DSG DC**adminpassword from the SHM KeyVault (all DSG Windows servers use the same admin credentials)
698
+
- Login with domain user `<dsg-domain>\Username`. See DSG `dsg<dsg-id>-dc-admin-username` and `dsg<dsg-id>-dc-admin-password` secrets in DSG KeyVault for username and password (all DSG Windows servers use the same admin credentials)
708
699
709
700
- Copy the `package_lists` and `tests` folders from your local `<safe-haven-repository>/new_dsg_environment/azure-vms/` folder to a `dsg_tests` folder on within the `F:\Data` folder on the DSG Dataserver.
0 commit comments