---
title: "Uploading the vNIOS Image to Azure Public Cloud"
canonical: "https://docs.infoblox.com/space/vniosazure/37585035/Uploading%20the%20vNIOS%20Image%20to%20Azure%20Public%20Cloud"
format: markdown
---
<span style="color: #000000">Before uploading the NIOS image, install and set up the Go language and Azure VHD utilities by completing the following steps:</span>

1. <span style="color: #000000">Install Go language version 1.11 or later that is available at: </span>*[https://golang.org/dl/](https://golang.org/dl/)*
2. <span style="color: #000000">Set the following Go environment variables in the</span>` ~/.profile`<span style="color: #000000"> file once Go language is installed:</span>
  1. `export GOROOT=/usr/local/go `
  2. `export GOPATH=$HOME`
  3. `export PATH=$GOPATH/bin:$GOROOT/bin:$PATH `
3. <span style="color: #000000">Source the </span>`~/.profile`<span style="color: #000000"> file as follows: </span>`source ~/.profile`
4. <span style="color: #000000">Install </span>`golint`<span style="color: #000000"> and </span>`azure-vhd-utils`<span style="color: #000000">:</span>
  1. <span style="color: #000000">Run the </span>`go install golang.org/x/lint/golint@latest`<span style="color: #000000"> command to install </span>`golint`<span style="color: #000000">.</span>
  2. <span style="color: #000000">Run the </span>`go install github.com/Microsoft/azure-vhd-utils@latest`<span style="color: #000000"> command to install </span>`azure-vhd-utils`<span style="color: #000000">. For more information on Azure VHD utilities, see</span> *[https://github.com/microsoft/azure-vhd-utils](https://github.com/microsoft/azure-vhd-utils)*<span style="color: #000000">*.*</span>  
  
<span style="color: #000000">If the </span>`go get github.com/Microsoft/azure-vhd-utils`<span style="color: #000000"> command fails, perform the following steps:</span>
    1. <span style="color: #000000">Run the </span>`mkdir ~/tmp`<span style="color: #000000"> command to make a temporary directory.</span>
    2. <span style="color: #000000">Run the </span>`cp -r ~/upload/src/github.com/Microsoft/azure-vhd-utils ~/tmp`<span style="color: #000000"> command to copy </span>`azure-vhd-utils`<span style="color: #000000"> to the temporary directory.</span>
    3. <span style="color: #000000">Run the </span>`cd ~/tmp/azure-vhd-utils`<span style="color: #000000"> command.</span>
    4. <span style="color: #000000">Run the </span>`make`<span style="color: #000000"> command to install </span>`azure-vhd-utils.`  
<span style="color: #000000">If the command displays the </span><span style="color: #000000">**if exec: "gcc": executable file not found in $PATH **</span><span style="color: #000000">error message, run the </span>`export CGO_ENABLED="0"`<span style="color: #000000"> command and then run the </span>`make`<span style="color: #000000"> command once again.</span>
    5. <span style="color: #000000">Run the </span>`sudo cp azure-vhd-utils /usr/bin/`<span style="color: #000000"> command.</span>
    

<span style="color: #000000">To upload a vNIOS image on Azure, complete the following steps:</span>

1. <span style="color: #000000">Download the NIOS vhd.gz file from the Infoblox Support site:</span>
  1. <span style="color: #000000">Log in to the </span><span style="color: #000000">*[Infoblox Support](https://support.infoblox.com/)*</span><span style="color: #000000"> site.</span>
  2. <span style="color: #000000">On the </span><span style="color: #000000">**Downloads**</span><span style="color: #000000"> tab, complete the following:</span>
    1. <span style="color: #000000">**Infoblox Software**</span><span style="color: #000000">: Choose </span><span style="color: #000000">**NIOS/vNIOS**</span><span style="color: #000000">.</span>
    2. <span style="color: #000000">**Select release type**</span><span style="color: #000000">: Select the release type as </span><span style="color: #000000">**General maintenance products with full engineering support for routine patches and bug fixes on all significant issues**</span><span style="color: #000000">.</span>
    3. <span style="color: #000000">**Select version**</span><span style="color: #000000">: Choose the vNIOS version.</span>
    4. <span style="color: #000000">**vNIOS for Azure**</span><span style="color: #000000"> section: Download the vhd.gz file.</span>
2. <span style="color: #000000">Run the following command to unzip the NIOS vhd.gz file:</span>  
`gunzip nios-image.vhd.gz`
3. <span style="color: #000000">Run the following command to upload the .vhd file on Azure using the format:</span>  
`azure-vhd-utils upload --localvhdpath <local_path> --stgaccountname <storage_account> --stgaccountkey <account_key> --containername <container_name> --blobname <image_name>`
  <span style="color: #000000">For example:</span>  
`azure-vhd-utils upload --localvhdpath ~/nios-image.vhd --stgaccountname rgeastcloudautomation --stgaccountkey ****** --containername images --blobname nios-image.vhd`

After the image file is uploaded on Azure public cloud blob storage, proceed to deploy a VM instance from the Azure CLI.