Skip to content

Commit 1479e27

Browse files
Merge pull request #293319 from TomArcherMsft/101-azure-netapp-files
101-azure-netapp-files
2 parents e8283ca + 925e2d1 commit 1479e27

File tree

1 file changed

+35
-2
lines changed

1 file changed

+35
-2
lines changed

articles/azure-netapp-files/azure-netapp-files-quickstart-set-up-account-create-volumes.md

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ author: b-hchen
55
ms.author: anfdocs
66
ms.service: azure-netapp-files
77
ms.topic: quickstart
8-
ms.date: 04/24/2024
9-
ms.custom: devx-track-azurecli, subject-armqs, mode-ui, devx-track-azurepowershell
8+
ms.date: 01/21/2025
9+
ms.custom: devx-track-azurecli, subject-armqs, mode-ui, devx-track-azurepowershell, devx-track-terraform
1010
#Customer intent: As an IT admin new to Azure NetApp Files, I want to quickly set up Azure NetApp Files and create a volume.
1111
---
1212

@@ -65,6 +65,12 @@ None.
6565
6666
Use the Azure portal, PowerShell, or the Azure CLI to [register for NetApp Resource Provider](azure-netapp-files-register.md).
6767
68+
# [Terraform](#tab/terraform)
69+
70+
[!INCLUDE [Terraform abstract](~/azure-dev-docs-pr/articles/terraform/includes/abstract.md)]
71+
72+
Use the Azure portal, Azure PowerShell, or the Azure CLI to [register for NetApp Resource Provider](azure-netapp-files-register.md).
73+
6874
---
6975
7076
## Create a NetApp account
@@ -158,6 +164,12 @@ The following code snippet shows how to create a NetApp account in an Azure Reso
158164
159165
<!-- Block begins with "type": "Microsoft.NetApp/netAppAccounts", -->
160166
167+
# [Terraform](#tab/terraform)
168+
169+
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).
170+
171+
:::code language="terraform" source="~/terraform_samples/quickstart/101-azure-netapp-files/main.tf" range="47-52":::
172+
161173
---
162174
163175
## Create a capacity pool
@@ -232,6 +244,12 @@ The following code snippet shows how to create a capacity pool in an Azure Resou
232244
233245
<!-- LN 185, block begins with "type": "Microsoft.NetApp/netAppAccounts/capacityPools", -->
234246
247+
# [Terraform](#tab/terraform)
248+
249+
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).
250+
251+
:::code language="terraform" source="~/terraform_samples/quickstart/101-azure-netapp-files/main.tf" range="54-62":::
252+
235253
---
236254
237255
## Create an NFS volume for Azure NetApp Files
@@ -383,6 +401,17 @@ The following code snippets show how to set up a VNet and create an Azure NetApp
383401
384402
<!-- Block begins with "type": "Microsoft.NetApp/netAppAccounts/capacityPools/volumes", -->
385403
404+
# [Terraform](#tab/terraform)
405+
406+
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).
407+
408+
:::code language="terraform" source="~/terraform_samples/quickstart/101-azure-netapp-files/main.tf" range="20-46,64-83":::
409+
410+
> [!IMPORTANT]
411+
> To prevent accidental deletion of the volume, set `prevent_destroy` to **true** when declaring the provider.
412+
413+
:::code language="terraform" source="~/terraform_samples/quickstart/101-azure-netapp-files/providers.tf" highlight="19":::
414+
386415
---
387416
388417
## Clean up resources
@@ -447,6 +476,10 @@ None.
447476
448477
Use the Azure portal, PowerShell, or the Azure CLI to delete the resource group.
449478
479+
# [Terraform](#tab/terraform)
480+
481+
Use the Azure portal, Azure PowerShell, or the Azure CLI to delete the resource group.
482+
450483
---
451484
452485
## Next steps

0 commit comments

Comments
 (0)