您可以使用 PowerShell 命令将 Unified Access Gateway 部署到 Azure。
步骤
-
在 Omnissa Customer Connect 中,转到 Unified Access Gateway (UAG) PowerShell 脚本文件,然后单击立即下载。
zip 文件uagdeploy-xx.xx.x.x-xxxxxxxx将下载到您的本地计算机上。 -
从该 zip 文件中提取文件。确保以下 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
此页面对您有帮助吗?