Skip to main content

2024년 11월 19일

Upload the Unified Access Gateway Image to Microsoft Azure

You can upload the Unified Access Gateway .vhd image to Azure.

Procedure

  1. Download a Unified Access Gateway .vhd image file of the specific Unified Access Gateway version from Customer Connect.

  2. Use the following example PowerShell commands to upload the .vhd image to the vhds container created earlier.

    $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
    

    The uploaded .vhd image is listed in the vhds container.

    For Availability Zone

    $location="uk south"
    
    $resourceGroup="uagrg"
    

    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
    

이 페이지가 도움이 되었나요?

이 항목에 대한 피드백 보내기

이 항목이 도움이 되었나요?

개인정보나 기밀정보는 입력하지 마세요.

링크를 생성하는 중…