Skip to main content

Requirements

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 https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest

At this point, ensure the az command is installed:

az --version

Login#

Login to your Azure account

az login

tenantId#

az account show

subscriptionId#

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

See https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/error-register-resource-provider