Add and deploy an application server
An application server acts as the jump server through which Bastionhost accesses application assets, enabling secure control over O&M operations. This topic describes how to add an application server to Bastionhost and deploy the environment so that Bastionhost can access target applications by using the application server as a proxy.
Prerequisites
-
You have deployed a Windows Server as an application server. For more information, see Deploy Windows Server as an application server.
-
You have added the application server to Bastionhost. For more information, see Add hosts.
Add an application server
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the list of Bastionhost instances, find the target instance and click Manage.
In the navigation pane on the left, choose .
-
On the Application Servers tab, click Add Application Server. In the dialog box that appears, select the target application server and click Add.
-
On the deployment page that appears, complete the deployment. For configuration instructions, see Deploy an application server.
Deploy an application server
When Bastionhost accesses application assets by using an application server as a proxy, a client must be started on the application server. Therefore, you must deploy the application server environment first.
Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.
In the list of Bastionhost instances, find the target instance and click Manage.
In the navigation pane on the left, choose .
-
On the Application Servers tab, find the target application server. In the Actions column, click Deploy.
-
In the Deploy Application Server panel, configure the Chrome policies that support O&M operations on Chrome applications:
-
Allow Chrome File Downloads: allows O&M operators to open the download folder when they perform O&M operations on Chrome applications.
-
Allow Chrome to Open Folder Upload Dialogs: allows O&M operators to open a pop-up window to select files when they perform O&M operations on Chrome applications.
ImportantIf the application server was previously deployed, these two configuration items are not allowed by default. To allow them, log on to the application server as an administrator and delete the
HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Google\Chromeregistry key. -
-
Click Generate command to generate the deployment command. Copy the command, open Windows PowerShell as an administrator on the application server, and then run the command.
After you run the command, wait for the deployment to complete, and then publish the USMDriver.exe RemoteApp program on the application server.
The following output is expected in Windows PowerShell:
PS C:\Users\Administrator> $path= $env:TEMP\AppDriverSetup-1.0.0-windows-amd64.exe"; [Net.ServicePointManager]::ServerCertificateValidationCallback={$true}; (new-object System.Net.WebClient).DownloadFile('https://bastionhost-cn-hangzhou-xxx xxx/app-driver/AppDriverSetup-1.0.0-windows-amd64.exe?Expires=1725892434&OSSAccessKeyId=xxx xxx', $path); Start-Process -FilePath $path -ArgumentList "ak=xxx sk=xxx zip_url=https://bastionhost-cn-hangzhou-xxx xxx.mcs.com/bastionhost-cn-xxx/downloads/pkg/app-driver/App Driver-1.0.0-windows-amd64.zip?Expires=1725892433&OSSAccessKey=xxx xxx&response-content-type=application%2Foctet-stream"; PS C:\Users\Administrator> (261/281): C:\Program Files (x86)\USMDriver\chromedriver.exe Extracted (262/281): C:\Program Files (x86)\USMDriver\conf\yaml Extracted (263/281): C:\Program Files (x86)\USMDriver\guadriver.exe Extracted (264/281): C:\Program Files (x86)\USMDriver\Interop.SHDocVw.dll Extracted (265/281): C:\Program Files (x86)\USMDriver\LingBridge.dll Extracted (266/281): C:\Program Files (x86)\USMDriver\Microsoft.mshtml.dll Extracted (267/281): C:\Program Files (x86)\USMDriver\regedit Extracted (268/281): C:\Program Files (x86)\USMDriver\regedit\vbs Extracted (269/281): C:\Program Files (x86)\USMDriver\regedit\vbs\ArchitectureAgnosticRegistry.vbs Extracted (270/281): C:\Program Files (x86)\USMDriver\regedit\vbs\ArchitectureSpecificRegistry.vbs Extracted (271/281): C:\Program Files (x86)\USMDriver\regedit\vbs\JsonSafeTest.wsf Extracted (272/281): C:\Program Files (x86)\USMDriver\regedit\vbs\regCreateKey.wsf Extracted (273/281): C:\Program Files (x86)\USMDriver\regedit\vbs\regDeleteKey.wsf Extracted (274/281): C:\Program Files (x86)\USMDriver\regedit\vbs\regList.wsf Extracted (275/281): C:\Program Files (x86)\USMDriver\regedit\vbs\regListStream.wsf Extracted (276/281): C:\Program Files (x86)\USMDriver\regedit\vbs\regPutValue.wsf Extracted (277/281): C:\Program Files (x86)\USMDriver\regedit\vbs\regUtil.vbs Extracted ... (278/281): C:\Program Files (x86)\USMDriver\regedit\vbs\util.vbs Extracted (279/281): C:\Program Files (x86)\USMDriver\USMDriver.exe Extracted (280/281): C:\Program Files (x86)\USMDriver\winapp.exe Extracted (281/281): C:\Program Files (x86)\USMDriver\monitor.exe Extracted ==> Package extracted successfully ==> Writing to registry ==> Registry write successful ==> Registering service ==> Service registered successfully ==> Deployment successful!ImportantThe application server must have public network access. Otherwise, the deployment package cannot be downloaded when you run the deployment command.
-
After the command is run, publish the USMDriver.exe RemoteApp program on the application server.
The following example uses Windows Server 2019:
-
On the Server Manager > Remote Desktop Services > Collection > QuickSessionCollection page, choose TASKS > Publish RemoteApp program.
-
In the Select RemoteApp programs dialog box, select USMDriver and click Next.
ImportantIf USMDriver is not displayed in the list, add it manually. The typical path is
C:\Program Files (x86)\USMDriver\USMDriver.exe. -
After you confirm that the RemoteApp program to be published is correct, click Publish.
-
After the program is published, right-click USMDriver and select Edit Properties.
-
On the Parameters tab, select Allow any command-line parameters and click Apply.
After you select this option, the system displays the following message: Allowing this RemoteApp program to run with any command-line parameters may make the server vulnerable to malware attacks.
-