您可以使用 PowerShell 命令,將 Unified Access Gateway 部署至 Azure。
程序
-
在 Omnissa Customer Connect 上,移至 Unified Access Gateway (UAG) PowerShell 指令碼檔案,然後按一下立即下載。
系統會將壓縮檔uagdeploy-xx.xx.x.x-xxxxxxxx下載至您的本機電腦。 -
從壓縮檔中解壓縮這些檔案。確認下列 PowerShell 指令碼已可在您的機器上使用:
uagdeployaz.ps1和uagdeploy.psm1 -
開啟 PowerShell 視窗並執行該命令。
uagdeployaz.ps1 uag1.ini
使用 PowerShell 5 進行 Azure 部署
Microsoft 已淘汰對 AzureRM 模組的支援。
當 Unified Access Gateway 指令碼偵測到 PowerShell 5 環境時,會使用以 AzureRM 模組建置的 uagdeployaz.ps1 指令碼。使用 PowerShell 5 執行 uagdeployaz.ps1 時,您可能會看到下列警告訊息:
The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates。
若要解決此問題,請改用以 Az 模組建置的 uagdeployaz_ps7.ps1 指令碼。
因應措施
- 執行此命令以解除安裝
AzureRM模組。uninstall-module AzureRM $Modules = Get-Module -ListAvailable | Where {$_.Name -like 'AzureRM.*'} Foreach ($Module in $Modules) {Uninstall-Module $Module} - 安裝
Az模組。如需詳細資訊,請參閱在 Windows 上安裝 Azure PowerShell。 - 將下載的檔案
uagdeployaz_ps7.ps1重新命名為uagdeployaz.ps1。 - 執行命令。
uagdeployaz.ps1 uag1.ini
此頁面對您有幫助嗎?