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:
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
Note: Make sure that the blob storage is in the same resource group where you are deploying the vSocket VM.
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:
-
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).
-
Open the container, and from the Settings section in the navigation pane click Shared access signature.
-
Assign the correct permissions for the SAS, in the Permissions section, select the following items: Read, Add, Create, and Write.
-
Make sure that Allowed protocols is set to HTTPS only.
-
Click Generate SAS token and URL.
-
Copy the Blob SAS URL. The URL concatenates both the container address and the SAS token.
-
Open Azure Cloud Shell and select PowerShell.
-
Run the azcopy command:
azcopy copy '<Cato blob sas url>' '<customer blob sas container url>'
Note
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 'https://catoeuimagestorage.blob.core.windows.net/vsocket/socket_AZ1500_17805_production_socket_v19.0_20230716_2024_01_07.vhd' 'https://storagecatoexample.blob.core.windows.net/storagecatocontainernonaccel?sp=racw&st=2022-10-02T11:44:51Z&se=2022-10-02T19:44:51Z&spr=https&sv=2022-10-02&sr=c&sig=ABcdefGhIJklMnop2q%3Rs45T678%9Uv0xYZ1aBcdEFghiJ%2K'
In the example above, replace the blue URI, with the Blob SAS URL that you generated.
Cato provides the following scripts to configure the virtual resources for Azure vSockets:
-
create_vm_from_vhd.sh - should be used when deploying Azure vSocket v19 and above
-
create_vm_from_vhd_U19.sh - should be used when deploying Azure vSocket below v19
-
create_ha_settings.sh - HA script that configures high availability (HA) for two deployed vSockets
The above scripts are available here: https://catonetworks.exavault.com/p/CatoNetworks-Support/Public/Azure%20vSocket
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.
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:
-
Go to the Cato repository, https://catonetworks.exavault.com/p/CatoNetworks-Support/Public/Azure%20vSocket
-
Download the TAR file for the VHD image, for example
azvsocket-11-0-5311-vhd.tar
-
Untar the file.
Upload the VHD file for the vSocket image to the Azure storage blob.
To upload the VHD file to the storage blob:
-
Open the Storage accounts window and click the storage account, or create a new one.
-
From the Storage account navigation menu, scroll down to the Blob service section and click Containers.
-
Click the container, or create a new one.
-
In the Container window, click Upload.
-
From the right-hand Upload blob pane, select the VHD file and click Upload.
2 comments
Updated SAS URIs for new vSocket image, vsocket_azure_6192.vhd
Updated SAS URIs for renewed Azure links.
Please sign in to leave a comment.