Skip to content

Commit 681c87a

Browse files
authored
[NetAppFiles] Add example for nfsv4.1 (Azure#27986)
1 parent 5333a40 commit 681c87a

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesVolume.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,29 @@ SubnetId : /subscriptions/f557b96d-2308-4a18-aae1-b8f7e7e70cc7/resource
7878

7979
This command creates the new ANF volume "MyAnfVolume" within the pool "MyAnfPool".
8080

81+
### Example 2: Create an ANF volume using NFSv4.1 Protocol Type. Note do not use the IP adddress block shown for -AllowedClient. This is an example IPv4 address blocks for use in documentation.
82+
```powershell
83+
$exportPolicyRule = New-AzNetAppFilesExportPolicyRuleObject -RuleIndex 1 -AllowedClient "192.0.2.0/24" -UnixReadWrite -Nfsv41
84+
New-AzNetAppFilesVolume -ResourceGroupName "MyRG" -AccountName "MyAnfAccount" -PoolName "MyAnfPool" -Name "MyAnfVolume" -Location "westus2" -CreationToken "MyAnfVolume" -ProtocolType NFSv4.1 -ExportPolicy $exportPolicyRule -UsageThreshold 1099511627776 -ServiceLevel "Premium" -SubnetId "/subscriptions/subsId/resourceGroups/MyRG/providers/Microsoft.Network/virtualNetworks/MyVnetName/subnets/MySubNetName"
85+
```
86+
87+
```output
88+
Location : westus2
89+
Id : /subscriptions/subsId/resourceGroups/MyRG/providers/Microsoft.NetApp/netAppAccounts/MyAnfAccount/capacityPools/MyAnfPool/volumes/MyAnfVolume
90+
Name : MyAnfAccount/MyAnfPool/MyAnfVolume
91+
Type : Microsoft.NetApp/netAppAccounts/capacityPools/volumes
92+
Tags :
93+
FileSystemId : 3e2773a7-2a72-d003-0637-1a8b1fa3eaaf
94+
CreationToken : MyAnfVolume
95+
ServiceLevel : Premium
96+
UsageThreshold : 1099511627776
97+
ProvisioningState : Succeeded
98+
SubnetId : /subscriptions/f557b96d-2308-4a18-aae1-b8f7e7e70cc7/resourceGroups/MyRG/providers/Microsoft.Network/virtualNetworks/MyVnetName/subnets/default
99+
```
100+
101+
This command creates the new ANF volume "MyAnfVolume" within the pool "MyAnfPool" using NFSv4.1 protocol including the required ExportPolicy.
102+
103+
81104
## PARAMETERS
82105

83106
### -AccountName

0 commit comments

Comments
 (0)