Chapter 6: Unified Access Gateway deployment using the PowerShell
PART 1
This is an overview of deploying the Unified Access Gateway script for VMware Horizon

- On your ControlCenter server,
- Go to the Downloads folder
- Select and open the uagdeploy folder and observe the contents

-
Select the uag2-Advanced.ini,
- Copy and Paste so that you have a backup of the original file .

- Select uag2-advanced and then select Edit with Notepad++
- In the NotePad++ application
- Next to name change to UAG-HZN
- Next to source change
source=\\horizon.euc-livefire.com\software\UAG\euc-unified-access-gateway-21.06.2.0-18528989_OVF10.ova
- Next to target change it to:
target=vi://[email protected]:[email protected]/RegionA01/host/RegionA01-COMP01/192.168.110.52

-
Scroll down in your NotePad++ window
- Next to ds=Local Disk 1 change to ds=CorpLUN
- Next to #diskMode=thin change to diskMode=thin
- Change the following network settings to:
- netInternet=VL-DMZ
- netManagementNetwork=VL-DMZ
- netBackendNetwork=VL-DMZ
- defaultGateway=172.16.20.1
- deploymentOption=onenic
- ip0=172.16.20.11
- netmask0=255.255.255.0
- routes0=172.16.20.0/24 172.16.20.1

-
Scroll Down
- Change dns=192.168.0.10 to
dns=192.168.110.10

- Under [SSLCert] Change pfxCerts=sslcerts.pfx to
pfxCerts=C:\certificates\WildCard.pfx

- In the [SSLCertAdmin] section , change pfxCerts=sslcerts.pfx to
pfxCerts=C:\certificates\WildCard.pfx

- Under the [Horizon] section change proxyDestinationUrl=https://192.168.0.209 to
proxyDestinationUrl=https://horizon.euc-livefire.com

- Scroll down and Change
- tunnelExternalUrl=https://uag2.horizon.myco.com:443
- blastExternalUrl=https://uag2.horizon.myco.com:443
To
tunnelExternalUrl=https://uag-hzn.euc-livefire.com:443
blastExternalUrl=https://uag-hzn.euc-livefire.com:443

-
Scroll down and Change
- In the pcoipExternalUrl section change pcoipExternalUrl=10.20.30.90:4172 to:
pcoipExternalUrl=172.16.20.11:4172

- SAVE THE .ini File
Part 2
In this section, we will deploy the Unified Access Gateway using a Powershell Script

-
On your ControlCenter server ,
- Launch the powershell shortcut from the Start Menu

- We will set the script execution is set to unrestricted. Execute the following command.
Set-ExecutionPolicy -scope currentuser unrestricted
When Prompted select Y

- Within the powershell interface type the following command
cd downloads\uagdeploy

- Execute the following command
.\uagdeploy.ps1 -iniFile uag2-advanced.ini
- When you get a security warning type: R
- When you get a second security warning type: R
- When prompted to enter a root password for UAG-HZN,
- type:- VMware1!
- when prompted to confirm type VMware1!

- When prompted to
- Enter an optional admin password for the RESP API management access for UAG: type VMware1!
- When prompted to Re-Enter an optional admin password : type VMware1!
- When prompted whether or not to join the customer experience program type No

- When prompted to
- Enter password for the .pfx type: VMware1!,
- When prompted to confirm type VMware1! again.
- When prompted the password for [email protected]
- Type VMware1!
- When prompted for fingerprint will be added to the known host file type yes
- Your virtual Appliance deployment will now start , it will take between 5 - 10min to deploy. Proceed to step 8

- Review the deployment once the setup has completed

- On your ControlCenter server
- Open your Chrome Browser. Select the vCenter shortcut
- Login as administrator with the password VMware1!
- Select the Host & Clusters Icon
- In Host & Clusters, expand the inventory under RegionA01-COMP01
- Switch Back to your Powershell window to check if the deployment has completed.
- Open your Chrome Browser. Select the vCenter shortcut

- On your ControlCenter server
- On your Chrome Browser open a new Tab
- Enter the following URL into the address bar
- https://uag-hzn.euc-livefire.com:9443/admin/index.html#!/Login
- In the right of your Chrome Browser . Add the following URL as Favourite in your Bookmarks, by selecting the STAR.
-
Login to your UAG server by entering the following
- Admin Username : admin
- Admin Password: VMware1!
- Select Login

- On your UAG Admin Console
- Click the Select button under Configure Manually

- On your UAG Admin Console
- Under General Settings
- Next to Edge Service Settings, move the toggle to the right
- Under General Settings

- On your UAG Admin Console
- To the right of Horizon Settings, select the Gearbox

- In your UAG Admin Console
- Under Horizon Settings
- Browse and familiarize yourself with config, we will be changing some of the settings in a future exercise
- Logout from the UAG Admin Console
- Browse and familiarize yourself with config, we will be changing some of the settings in a future exercise
- Under Horizon Settings
This concludes the deployment of the Unified Access Gateway using a Powershell Script
About the Author
About the Author Reinhart Nel
https://www.livefire.solutions/meet-the-team/reinhartnel/
For any questions please email Reinhart at [email protected]
0 Comments
Add your comment