Network Security Manager 4.3 On-Premises Getting Started Guide

Table of Contents

Uploading VHD

The azure-vhd-utils tool is needed to upload a SonicCoreX NSM image to Azure storage account.

To upload the Azure VHD Utilities

  1. Download the tool into your workspace from Azure VHD Utilities.

  2. 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.

To upload the Azure VHD Utilities from Windows

  1. Open the windows powershell.

  2. Install go(if its not installed).

  3. Execute the below commands:

    cd "<path>\azure-vhd-utils-master\azure-vhd-utils-master"
    go build -o azure-vhd-utils.exe
    $env:STORAGE_ACCOUNT_KEY="<Access keys>"
    .\azure-vhd-utils.exe upload --localvhdpath <path-to-scxnsm-azure-vhd-file> --stgaccountname <storage-account-name> --containername <container-name> --stgaccountkey "$env: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 (lowercase only) defined, put any name into it.

    • <blob-name> - The .vhd file uploaded with the name defined in blobname, put any name in lowercase only into it