Skip to main content

2026 年 7 月 20 日

将 Unified Access Gateway 映像上载到 Microsoft Azure

您可以将 Unified Access Gateway .vhd 映像上载到 Azure。

步骤

  1. 从 Omnissa 获取特定 Unified Access Gateway 版本的 Unified Access Gateway .vhd 映像文件。

  2. 使用以下示例 PowerShell 命令将 .vhd 映像上载到之前创建的 vhds 容器。

    $imageURI = "https://<storage_account_name>.blob.core.windows.net/vhds/euc-unified-access-gateway-3.4.0.0-11037344_OVF10.vhd"
    
    $imagePath = "E:\UAGImages\euc-unified-access-gateway-3.4.0.0-11037344_OVF10.vhd"
    
    
    $location="<Azure regions names with availability zone support>"
    

    PowerShell 5:

    Set-Item -Path Env:\SuppressAzureRmModulesRetiringWarning -Value $true
    Add-AzureRmVhd -ResourceGroupName $resourceGroup -LocalFilePath $imagePath ` 
    -Destination $imageURI -NumberOfUploaderThreads 32
    

    PowerShell 7:

    Add-AzVhd -ResourceGroupName $resourceGroup -LocalFilePath $imagePath ` 
    -Destination $imageURI -NumberOfUploaderThreads 32
    

    对于可用区

    上载的 .vhd 映像将在 vhds 容器中列出。

    对于可用区

    $location="uk south"
    
    $resourceGroup="uagrg"
    
    $imageName= "euc-unified-access-gateway-25.03.0.0-15196678301_OVF10.vhd"  
    

    PowerShell 5:

    $imageConfig = New-AzureRmImageConfig -Location $location
    Set-AzureRmImageOsDisk -Image $imageConfig -OsType Linux -OsState Generalized -BlobUri $imageURI
    New-AzureRmImage -Image $imageConfig -ImageName $imageName -ResourceGroupName $resourceGroup
    

    PowerShell 7:

    $imageConfig = New-AzImageConfig -Location $location
    $imageConfig = Set-AzImageOsDisk -Image $imageConfig -OsType Linux -OsState Generalized -BlobUri $imageURI
    $image = New-AzImage -ImageName $imageName -ResourceGroupName $resourceGroup -Image $imageConfig
    

上载的 .vhd 映像将在 vhds 容器中列出。

上载的 .vhd 映像将在 vhds 容器中列出。

此页面对您有帮助吗?

对本主题提供反馈

本主题对您有帮助吗?

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

正在生成链接…