---
title: "Prerequisites for deploying vNIOS for Azure Stack Hub"
canonical: "https://docs.infoblox.com/space/vniosazure/37814493/Prerequisites%20for%20deploying%20vNIOS%20for%20Azure%20Stack%20Hub"
format: markdown
---
Before deploying vNIOS for Azure Stack Hub, ensure that your setup meets the requirements described in this topic.

- [*Install the Azure CLI*](https://docs.microsoft.com/en-us/azure-stack/user/azure-stack-version-profiles-azurecli2?view=azs-1910&tabs=ad-win) version 2.0 or later on the Azure Stack Hub development host. Azure CLI allows you to deploy a vNIOS appliance from the Azure CLI.
- Set up the Azure Stack Hub environment. For details, refer to the Azure Stack Hub documentation portal.
- Register the Azure Stack Hub environment as described in the *Registering the Azure Stack Hub Environment* section. This allows you to connect to the Azure Stack Hub environment where you will deploy the vNIOS instances.
- [*Install and set up Azure PowerShell*](https://docs.microsoft.com/en-us/azure-stack/operator/powershell-install-az-module?toc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure-stack%2Fuser%2Ftoc.json%3Fview%3Dazs-1910&bc=https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure-stack%2Fbreadcrumb%2Ftoc.json%3Fview%3Dazs-1910&view=azs-1910) for Azure Stack Hub. This allows you to create vNIOS instances.
- <span style="color: #000000">Create an Azure managed disk from the Azure CLI as described in the</span><span style="color: #000000"> </span>*Creating an Azure Managed Disk*<span style="color: #000000"> </span><span style="color: #000000">section.</span>

# Registering the Azure Stack Hub Environment

To connect to the Azure Stack Hub environment where you will be deploying the vNIOS instances, you must first register the environment. To register, complete the following steps:

1. Run the following command:  
`az cloud register ``  
`-n <``environmentname``> ``  
`--endpoint-resource-manager "https://management.<``region``>.<``fqdn``>" ``  
`--suffix-storage-endpoint "<``fqdn``>" ``  
`--suffix-keyvault-dns ".vault.<``fqdn``>" ``  
`--endpoint-active-directory-graph-resource-id "https://graph.windows.net/"`  
  
Example:  
`az cloud register ``  
`  -n user1 ``  
`  --endpoint-resource-manager "``https://management.east.abc.123.com``" ``  
`  --suffix-storage-endpoint "abc.123.com``" ``  
`  --suffix-keyvault-dns ".vault.abc.123.com``" ``  
`  --endpoint-active-directory-graph-resource-id "https://graph.windows.net/"`
2. Set the active environment: `az cloud set -n <environmentname>`.
3. Update the environment configuration to use the API version profile that is specific to Azure Stack Hub:  
`az cloud update --profile 2019-03-01-hybrid`
4. To confirm that your environment is listed, run the following command and check whether `IsActive `is `True`:  
`PS C:\Users\pshet> az cloud list --output table`  
  
`IsActive   Name              Profile`  
`---------- ----------------- -----------------`  
`False      AzureCloud        latest`  
`False      AzureChinaCloud   latest`  
`False      AzureUSGovernment latest`  
`False      AzureGermanCloud  latest`  
`True       user1             2019-03-01-hybrid`
5. Log in by using the `az login` command. This <span style="color: #000000">generates the authentication code that you need to access the Azure Stack Hub environment.</span>