For registration steps using Portal, open a Cloud Shell session as indicated above and follow these Azure CLI steps:
Specify the subscription that has been approved for Azure NetApp Files:
az account set --subscription <subscriptionId>
Register the Azure Resource Provider:
az provider register --namespace Microsoft.NetApp --wait
This how-to article requires the Azure PowerShell module Az version 2.6.0 or later. Run Get-Module -ListAvailable Az to find your current version. If you need to install or upgrade, see Install Azure PowerShell module. If you prefer, you can use Cloud Shell console in a PowerShell session instead.
In a PowerShell command prompt (or PowerShell Cloud Shell session), specify the subscription that has been approved for Azure NetApp Files:
If you prefer, install the Azure CLI to run CLI reference commands.
If you're using a local installation, sign in to the Azure CLI by using the az login command. To finish the authentication process, follow the steps displayed in your terminal. For additional sign-in options, see Sign in with the Azure CLI.
When you're prompted, install Azure CLI extensions on first use. For more information about extensions, see Use extensions with the Azure CLI.
Run az version to find the version and dependent libraries that are installed. To upgrade to the latest version, run az upgrade.
Specify the subscription that has been approved for Azure NetApp Files:
az account set --subscription <subscriptionId>
Register the Azure Resource Provider:
az provider register --namespace Microsoft.NetApp --wait
Please refer to Products available by region for a list of supported regions.
To obtain the region name that is supported by our command line tools, please use Get-AzLocation | select Location
Please refer to Products available by region for a list of supported regions.
To obtain the region name that is supported by our command line tools, please use az account list-locations --query "[].{Region:name}" --out table
Create a new resource group by using the az group create command:
az group create \
--name $RESOURCE_GROUP \
--location $LOCATION
An ARM template is a JavaScript Object Notation (JSON) file that defines the infrastructure and configuration for your project. The template uses declarative syntax. In declarative syntax, you describe your intended deployment without writing the sequence of programming commands to create the deployment.
The following code snippet shows how to create a NetApp account in an Azure Resource Manager template (ARM template), using the Microsoft.NetApp/netAppAccounts resource. To run the code, download the full ARM template from our GitHub repo.
POOL_NAME="mypool1"
POOL_SIZE_TiB=4 # Size in Azure CLI needs to be in TiB unit (minimum 4 TiB)
SERVICE_LEVEL="Premium" # Valid values are Standard, Premium and Ultra
The following code snippet shows how to create a capacity pool in an Azure Resource Manager template (ARM template), using the Microsoft.NetApp/netAppAccounts/capacityPools resource. To run the code, download the full ARM template from our GitHub repo.
When you are done and if you want to, you can delete the resource group. The action of deleting a resource group is irreversible.
Important
All resources within the resource groups will be permanently deleted and cannot be undone.
In the Azure portal's search box, enter Azure NetApp Files and then select Azure NetApp Files from the list that appears.
In the list of subscriptions, click the resource group (myRG1) you want to delete.
In the resource group page, click Delete resource group.
A window opens and displays a warning about the resources that will be deleted with the resource group.
Enter the name of the resource group (myRG1) to confirm that you want to permanently delete the resource group and all resources in it, and then click Delete.
When you are done and if you want to, you can delete the resource group. The action of deleting a resource group is irreversible.
Important
All resources within the resource groups will be permanently deleted and cannot be undone.