Cato Networks Knowledge Base

Copying the Azure vSocket VHD Image with SAS

This article explains how to get the vSocket image and scripts to deploy a single and high availability (HA) vSocket.

For more information about Azure vSockets, see:

Creating the Azure Blob Storage and Container

You can copy the vSocket VHD image to an existing Azure blob storage and container. Otherwise, create a new one for the VHD file. For more about creating a blob and container, see the Microsoft documentation.


Note: Make sure that the blob storage is in the same resource group where you are deploying the vSocket VM.

Copying the Azure vSocket Image with Azure SAS Using PowerShell

You can use Azure PowerShell to copy the vSocket image from Cato to your Azure storage container. We provide a URI with an Azure Shared Access Signature (SAS) to share the image.

Generate an SAS for your storage container, and then use Azure PowerShell to copy the vSocket image to your storage container. Use the region that is physically closest to your storage container:

You can access these SAS URIs from any region, except from China.

To copy the Azure vSocket image:

  1. Create the Azure storage container, or use an existing container, for the vSocket image.

    The storage container must be in the same resource group as the vSocket virtual machine (VM).

  2. Open the container, and from the Settings section in the navigation pane click Shared access signature.

  3. Assign the correct permissions for the SAS, in the Permissions section, select the following items: Read, Add, Create, and Write.

  4. Make sure that Allowed protocols is set to HTTPS only.

  5. Click Generate SAS token and URL.

  6. Copy the Blob SAS URL. The URL concatenates both the container address and the SAS token.

  7. Open Azure Cloud Shell and select PowerShell.

  8. Run the azcopy command: azcopy copy '<Cato blob sas url>' '<customer blob sas container url>'


    Note: Make sure that you use single quotation marks in the command.

    For example, the following command copies the image from the Cato EU blob:

    azcopy copy '' ''

In the example above, replace the blue URI, with the Blob SAS URL that you generated.

Troubleshooting Copying the vSocket with SAS

If there is an issue with copying the image to your account, check and make sure that the container is set with all of these permissions:

  • Read

  • Add

  • Create

  • Write

Downloading the vSocket Scripts

Cato provides the following scripts to configure the virtual resources for Azure vSockets:

  • - deploys the vSocket from the image in your Azure container

  • - HA script that configures high availability (HA) for two deployed vSockets

The above scripts are available here:


Note: After you successfully copy the image and download the scripts, continue the vSocket deployment with .

Manually Adding the vSocket Image to Your Azure Account

For situations where you're unable to copy the image with Azure SAS, you manually download the file, untar it, and then upload it to your Azure container.

Downloading and Extracting the Image from a TAR File

Download the Azure vSocket image as a TAR file from the public Cato repository. Then extract the vSocket image from the TAR file.

To download and extract the image:

  1. Go to the Cato repository,

  2. Download the TAR file for the VHD image, for example azvsocket-11-0-6192-vhd.tar

  3. Untar the file.

Uploading the VHD Image to Azure

Upload the VHD file for the vSocket image to the Azure storage blob.

To upload the VHD file to the storage blob:

  1. Open the Storage accounts window and click the storage account, or create a new one.

  2. From the Storage account navigation menu, scroll down to the Blob service section and click Containers.

  3. Click the container, or create a new one.

  4. In the Container window, click Upload.

  5. From the right-hand Upload blob pane, select the VHD file and click Upload.

Was this article helpful?

1 out of 1 found this helpful



  • Comment author
    Yaakov Simon

    Updated SAS URIs for new vSocket image, vsocket_azure_6192.vhd

  • Comment author
    Yaakov Simon

    Updated SAS URIs for renewed Azure links.


Please sign in to leave a comment.