The azure-vhd-utils tool is needed to upload a SonicCoreX NSM image to Azure storage account.
To upload the Azure VHD Utilities
Download the tool into your workspace from Azure VHD Utilities.
Execute the below commands from a command line
cd <path-to-azure-vhd-utils>
export STORAGE_ACCOUNT_KEY="<storage-account-key-copied-from-portal>"
./azure-vhd-utils/azure-vhd-utils upload --localvhdpath <path-to-scxnsm-azure-vhd-file> --stgaccountname <storage-account-name> --containername <container-name> -stgaccountkey "${STORAGE_ACCOUNT_KEY}" --blobname <blob-name>
Replace the below placeholders with actual values:
<storage-account-key-copied-from-portal> - Key copied from the Azure Portal in step 9 of Creating Storage Account.
<path-to-scxnsm-azure-vhd-file> - vhd file of SCX NSM Azure Build.
<storage-account-name> - Storage Account name defined while creating storage account.
<container-name> - It will create container in data storage with the name defined, put any name into it.
<blob-name> - The .vhd file uploaded with the name defined in blobname, put any name into it.
The command should respond with Upload Complete.