Skip to main content

2026 年 3 月 14 日

使用 `uagdeployaz.ps1` PowerShell 命令将 Unified Access Gateway 部署到 Azure

您可以使用 PowerShell 命令将 Unified Access Gateway 部署到 Azure。

步骤

  1. Omnissa Customer Connect 中,转到 Unified Access Gateway (UAG) PowerShell 脚本文件,然后单击立即下载
    zip 文件 uagdeploy-xx.xx.x.x-xxxxxxxx 将下载到您的本地计算机上。

  2. 从该 zip 文件中提取文件。确保以下 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
    

此页面对您有帮助吗?

对本主题提供反馈

本主题对您有帮助吗?

请勿填写任何个人信息或机密信息。

正在生成链接…