You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 15, 2024. It is now read-only.
This project demonstrates how to deploy NFSv3/NFSv4.1 protocol type volume using Powershell and Azure NetApp Files SDK.
13
+
This project demonstrates how to deploy a volume with the NFSv3/NFSv4.1 protocol type by using Powershell and Azure NetApp Files SDK.
14
14
15
15
In this sample application we perform the following operations:
16
16
17
17
* Creation
18
18
* ANF Account
19
-
*Capacity pool
19
+
*Capacity pool
20
20
* NFS Volume
21
21
22
-
* Deletion, the clean up process takes place (not enabled by default, please set the parameter CleanupResources to $true if you want the clean up code to take a place),deleting all resources in the reverse order following the hierarchy otherwise we can't remove resources that have nested resources still live.
22
+
* Deletion
23
+
The clean-up process takes place, deleting all resources in the reverse order following the hierarchy. You cannot remove resources that have nested resources still live.
24
+
25
+
Note that the clean-up operation is not enabled by default. You need to set the parameter CleanupResources to $true for the clean-up code to take effect.
23
26
24
27
25
28
If you don't already have a Microsoft Azure subscription, you can get a FREE trial account [here](http://go.microsoft.com/fwlink/?LinkId=330212).
26
29
27
30
## Prerequisites
28
31
29
32
1. Azure Subscription
30
-
1. Subscription needs to be enabled for Azure NetApp Files. For more information, please refer to [this](https://docs.microsoft.com/azure/azure-netapp-files/azure-netapp-files-register#waitlist) document.
31
-
1. Resource Group created
32
-
1. Virtual Network with a delegated subnet to Microsoft.Netapp/volumes resource. For more information, please refer to [Guidelines for Azure NetApp Files network planning](https://docs.microsoft.com/en-us/azure/azure-netapp-files/azure-netapp-files-network-topologies)
33
-
1. Azure PowerShell, please refer to [Install Azure PowerShell](https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-4.8.0)
34
-
1. Run the following PS command:
35
-
* Install-Module Az.NetAppFiles
33
+
1. Subscription needs to be enabled for Azure NetApp Files. See [Submit a waitlist request for accessing the service](https://docs.microsoft.com/azure/azure-netapp-files/azure-netapp-files-register#waitlist).
34
+
1. Resource Group must be created
35
+
1. Virtual Network with a delegated subnet to Microsoft.Netapp/volumes resource. For more information, see [Guidelines for Azure NetApp Files network planning](https://docs.microsoft.com/en-us/azure/azure-netapp-files/azure-netapp-files-network-topologies).
36
+
1. Azure PowerShell. See [Install Azure PowerShell](https://docs.microsoft.com/en-us/powershell/azure/install-az-ps?view=azps-4.8.0).
37
+
1. Run the following PS command:
38
+
`Install-Module Az.NetAppFiles`
36
39
37
40
38
41
# How the project is structured
@@ -42,18 +45,18 @@ The following table describes all files within this solution:
| src | CreateANFVolume.ps | Authenticates and executes all operations |
45
-
| src\Common | CommonSDK.psm1 | PowerShell module that exposes some functions to perform creation and deletion Azure NetApp Files resource that calls the actual Az.NetAppFiles cmdlets |
46
-
| src\Common | Utils.psm1 | Static class that exposes a few methods that helps on various tasks, like writting a log to the console for example. |
47
-
| src\Common | AzureAuth.psm1 | PoweShell module that exposes functions to connect to Azure and choose target subscription |
48
+
| src\Common | CommonSDK.psm1 | PowerShell module that exposes some functions to perform creation and deletion of Azure NetApp Files resource that calls the actual Az.NetAppFiles cmdlets |
49
+
| src\Common | Utils.psm1 | Static class that exposes a few methods that are helpful for various tasks, such as writing a log to the console for example. |
50
+
| src\Common | AzureAuth.psm1 | PoweShell module that exposes functions to connect to Azure and choose the target subscription |
0 commit comments