Create Pull Request
| Date | Scan | Status | Result |
|---|---|---|---|
| 2026-01-13 06:17 | #107 | completed |
Clean
|
| 2026-01-12 00:00 | #99 | completed |
Biased
|
| 2026-01-11 06:20 | #98 | completed |
Biased
|
| 2026-01-10 00:00 | #92 | completed |
Clean
|
| 2026-01-09 00:00 | #87 | cancelled |
Clean
|
| 2026-01-06 22:28 | #78 | completed |
Clean
|
| 2025-12-29 18:00 | #48 | cancelled |
Biased
|
| 2025-12-15 00:00 | #7 | completed |
Clean
|
| 2025-12-14 05:05 | #6 | completed |
Clean
|
# [Template](#tab/template)
[!INCLUDE [About Azure Resource Manager](~/reusable-content/ce-skilling/azure/includes/resource-manager-quickstart-introduction.md)]
The following code snippet shows how to create a NetApp account in an Azure Resource Manager template (ARM template), using the [Microsoft.NetApp/netAppAccounts](/azure/templates/microsoft.netapp/netappaccounts) resource. To run the code, download the [full ARM template](https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.netapp/anf-nfs-volume/azuredeploy.json) from our GitHub repo.
:::code language="json" source="~/quickstart-templates/quickstarts/microsoft.netapp/anf-nfs-volume/azuredeploy.json" range="177-183":::
<!-- Block begins with "type": "Microsoft.NetApp/netAppAccounts", -->
# [Terraform](#tab/terraform)
The following code snippet shows how to create a NetApp account using [Terraform](/azure/developer/terraform). The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-netapp-files). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-netapp-files/TestRecord.md).
:::code language="terraform" source="~/terraform_samples/quickstart/101-azure-netapp-files/main.tf" range="48-53":::
---
## Create a capacity pool
# [Portal](#tab/azure-portal)
1. From the Azure NetApp Files management sidebar, select your NetApp account (**myaccount1**).

2. From the Azure NetApp Files management sidebar, select **Capacity pools**.

3. Select **+ Add pools**.
:::image type="content" source="./media/shared/azure-netapp-files-new-capacity-pool.png" alt-text="Screenshot of new capacity pool options.":::
4. Provide information for the capacity pool:
* Enter **mypool1** as the pool name.
* Select **Premium** for the service level.
* Specify **4 (TiB)** as the pool size.
* Use the **Auto** QoS type.
5. Select **Create**.
# [PowerShell](#tab/azure-powershell)
1. Defining some new variables for future reference
3. Create the virtual network by using the [New-AzVirtualNetwork](/powershell/module/az.network/new-azvirtualnetwork) command.
# [Template](#tab/template)
<!-- [!INCLUDE [About Azure Resource Manager](~/reusable-content/ce-skilling/azure/includes/resource-manager-quickstart-introduction.md)] -->
The following code snippets show how to set up a VNet and create an Azure NetApp Files volume in an Azure Resource Manager template (ARM template). VNet setup uses the [Microsoft.Network/virtualNetworks](/azure/templates/Microsoft.Network/virtualNetworks) resource. Volume creation uses the [Microsoft.NetApp/netAppAccounts/capacityPools/volumes](/azure/templates/microsoft.netapp/netappaccounts/capacitypools/volumes) resource. To run the code, download the [full ARM template](https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.netapp/anf-nfs-volume/azuredeploy.json) from our GitHub repo.
:::code language="json" source="~/quickstart-templates/quickstarts/microsoft.netapp/anf-nfs-volume/azuredeploy.json" range="148-176":::
<!-- Block begins with "type": "Microsoft.Network/virtualNetworks", -->
:::code language="json" source="~/quickstart-templates/quickstarts/microsoft.netapp/anf-nfs-volume/azuredeploy.json" range="197-229":::
<!-- Block begins with "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes", -->
# [Terraform](#tab/terraform)
The following code snippets show how to set up a VNet and create an Azure NetApp Files volume using [Terraform](/azure/developer/terraform). The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-netapp-files). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-netapp-files/TestRecord.md).
:::code language="terraform" source="~/terraform_samples/quickstart/101-azure-netapp-files/main.tf" range="21-46,64-84":::
---
## Clean up resources
# [Portal](#tab/azure-portal)
When you're done and if you want to, you can delete the resource group. The action of deleting a resource group is irreversible.
> [!IMPORTANT]
>Deleting a resource group also deletes all resources within it. The action can't be undone.
>[!IMPORTANT]
>Before you delete a resource group, you must first delete the backups. Deleting a resource group doesn't delete the backups. You can preemptively delete backups on volumes by [manually delete the backups](backup-delete.md). If you delete the resource group without deleting all the backups, you lose the ability to see the backups. The backups, however, can continue to incur costs. If you're wrongly billed for some backups, open a support case ticket to get this issue resolved.
1. In the Azure portal's search box, enter **Azure NetApp Files** and then select **Azure NetApp Files** from the list that appears.
2. In the list of subscriptions, select the resource group (myRG1) you want to delete.

3. In the resource group page, select **Delete resource group**.

A window opens and displays a warning about the resources to be deleted with the resource group.
4. 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 select **Delete**.

# [PowerShell](#tab/azure-powershell)
When you're done and if you want to, you can delete the resource group. The action of deleting a resource group is irreversible.
> [!IMPORTANT]
>Deleting a resource group also deletes all resources within it. The action can't be undone.
1. Delete resource group by using the [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup) command.
# [Azure CLI](#tab/azure-cli)
Prepare your environment for the Azure CLI.
[!INCLUDE [azure-cli-prepare-your-environment-no-header.md](~/reusable-content/azure-cli/azure-cli-prepare-your-environment-no-header.md)]
[!INCLUDE [azure-netapp-files-cloudshell-include](../../includes/azure-netapp-files-azure-cloud-shell-window.md)]
# [Template](#tab/template)
None.
Use the Azure portal, PowerShell, or the Azure CLI to [register for NetApp Resource Provider](azure-netapp-files-register.md).
# [Terraform](#tab/terraform)
[!INCLUDE [Terraform abstract](~/azure-dev-docs-pr/articles/terraform/includes/abstract.md)]
Use the Azure portal, Azure PowerShell, or the Azure CLI to [register for NetApp Resource Provider](azure-netapp-files-register.md).
---
## Create a NetApp account
# [Portal](#tab/azure-portal)
1. In the Azure portal's search box, enter **Azure NetApp Files** and then select **Azure NetApp Files** from the list that appears.

2. Select **+ Create** to create a new NetApp account.
3. In the New NetApp Account window, provide the following information:
1. Enter **myaccount1** for the account name.
2. Select your subscription.
3. Select **Create new** to create new resource group. Enter **myRG1** for the resource group name. Select **OK**.
4. Select your account location.


4. Select **Create** to create your new NetApp account.
# [PowerShell](#tab/azure-powershell)
1. Define some variables so we can refer to them throughout the rest of the examples:
> [!NOTE]
> Please refer to [Products available by region](https://azure.microsoft.com/global-infrastructure/services/?products=netapp®ions=all) 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`
>
1. Create a new resource group by using the [New-AzResourceGroup](/powershell/module/az.resources/new-azresourcegroup) command:
2. Create Azure NetApp Files account with [New-AzNetAppFilesAccount](/powershell/module/az.netappfiles/New-AzNetAppFilesAccount) command:
1. Create a new capacity pool by using the [New-AzNetAppFilesPool](/powershell/module/az.netappfiles/new-aznetappfilespool)
# [Template](#tab/template)
<!-- [!INCLUDE [About Azure Resource Manager](~/reusable-content/ce-skilling/azure/includes/resource-manager-quickstart-introduction.md)] -->
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](/azure/templates/microsoft.netapp/netappaccounts/capacitypools) resource. To run the code, download the [full ARM template](https://github.com/Azure/azure-quickstart-templates/blob/master/quickstarts/microsoft.netapp/anf-nfs-volume/azuredeploy.json) from our GitHub repo.
:::code language="json" source="~/quickstart-templates/quickstarts/microsoft.netapp/anf-nfs-volume/azuredeploy.json" range="184-196":::
<!-- LN 185, block begins with "type": "Microsoft.NetApp/netAppAccounts/capacityPools", -->
# [Terraform](#tab/terraform)
The following code snippet shows how to create a NetApp capacity pool using [Terraform](/azure/developer/terraform). The sample code for this article is located in the [Azure Terraform GitHub repo](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-netapp-files). You can view the log file containing the [test results from current and previous versions of Terraform](https://github.com/Azure/terraform/tree/master/quickstart/101-azure-netapp-files/TestRecord.md).
:::code language="terraform" source="~/terraform_samples/quickstart/101-azure-netapp-files/main.tf" range="55-63":::
---
## Create an NFS volume for Azure NetApp Files
# [Portal](#tab/azure-portal)
1. From the Azure NetApp Files sidebar of your NetApp account, select **Volumes**.

2. Select **+ Add volume**.

3. In the Create a Volume window, provide information for the volume:
1. Enter **myvol1** as the volume name.
2. Select your capacity pool (**mypool1**).
3. Use the default value for quota.
4. Under virtual network, select **Create new** to create a new Azure virtual network (VNet). Then fill in the following information:
* Enter **myvnet1** as the VNet name.
* Specify an address space for your setting, for example, 10.7.0.0/16
* Enter **myANFsubnet** as the subnet name.
* Specify the subnet address range, for example, 10.7.0.0/24. You can't share the dedicated subnet with other resources.
* Select **Microsoft.NetApp/volumes** for subnet delegation.
* Select **OK** to create the VNet.
5. In subnet, select the newly created VNet (**myvnet1**) as the delegate subnet.


4. Select **Protocol**, and then complete the following actions:
* Select **NFS** as the protocol type for the volume.
* Enter **myfilepath1** for the file path used to create the export path for the volume.
* Select the NFS version (**NFSv3** or **NFSv4.1**) for the volume.
See [considerations](azure-netapp-files-create-volumes.md#considerations) and [best practice](azure-netapp-files-create-volumes.md#best-practices) about NFS versions.
* Select **Disabled** for Kerberos and LDAP (for the quickstart).
* Optionally, configure **Unix permissions**. For information, see [Configure UNIX permissions](configure-unix-permissions-change-ownership-mode.md).
* Leave **Azure VMware Solution DataStore** unchecked.

5. Select **Review + create** to display information for the volume you're creating.
6. Select **Create** to create the volume.
The created volume appears in the Volumes menu.

# [PowerShell](#tab/azure-powershell)
1. Create a subnet delegation to "Microsoft.NetApp/volumes" with [New-AzDelegation](/powershell/module/az.network/new-azdelegation) command.
2. Create a subnet configuration by using [New-AzVirtualNetworkSubnetConfig](/powershell/module/az.network/new-azvirtualnetworksubnetconfig) command.
4. Create the volume by using the [New-AzNetAppFilesVolume](/powershell/module/az.netappfiles/new-aznetappfilesvolume) command.