Skip to main content


Azure Account and Subscription

Visit the azure portal and ensure you have an azure account as well as a subscription.

Azure CLI

Install the Azure Command Line Interface from

At this point, ensure the az command is installed:

az --version


Login to your Azure account

az login


az account show


Get the subscriptionId from the following command:

az account show --query id -otsv

appId and password

Create a service principal name for instance sp1 to manage new resources:

az ad sp create-for-rbac -n "sp1"

Save somewhere the appId and the password

Register the Microsoft.Network and Microsoft.Compute namespaces

az provider register --namespace Microsoft.Network
az provider register --namespace Microsoft.Compute