Skip to main content

2026 年 7 月 20 日

使用 `uagdeployaz.ps1` PowerShell 命令將 Unified Access Gateway 部署至 Azure

您可以使用 PowerShell 命令,將 Unified Access Gateway 部署至 Azure。

程序

  1. Omnissa Customer Connect 上,移至 Unified Access Gateway (UAG) PowerShell 指令碼檔案,然後按一下立即下載
    系統會將壓縮檔 uagdeploy-xx.xx.x.x-xxxxxxxx 下載至您的本機電腦。

  2. 從壓縮檔中解壓縮這些檔案。確認下列 PowerShell 指令碼已可在您的機器上使用:
    uagdeployaz.ps1uagdeploy.psm1

  3. 開啟 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 指令碼。

因應措施

  1. 執行此命令以解除安裝 AzureRM 模組。
    uninstall-module AzureRM
    $Modules = Get-Module -ListAvailable | Where {$_.Name -like 'AzureRM.*'}
    Foreach ($Module in $Modules) {Uninstall-Module $Module}
    
  2. 安裝 Az 模組。如需詳細資訊,請參閱在 Windows 上安裝 Azure PowerShell
  3. 將下載的檔案 uagdeployaz_ps7.ps1 重新命名為 uagdeployaz.ps1
  4. 執行命令。
    uagdeployaz.ps1 uag1.ini
    

此頁面對您有幫助嗎?

針對本主題提供意見回饋

本主題對您有幫助嗎?

請勿填寫任何個人或機密資訊。

正在產生連結…