Skip to content

[Doc]: #27879

@joachimloe

Description

@joachimloe

Type of issue

Missing information

Feedback

Could be an idea to add examples if you want to create NFSv4.1, that you need to include the New-AzNetAppFilesExportPolicyRuleObject and the New-AzNetAppFilesExportPolicyObject to the creation of the volume.

Took me loads of effort and a support ticket just to get that information.

$exportPolicyRule = New-AzNetAppFilesExportPolicyRuleObject -RuleIndex 1 -AllowedClient "0.0.0.0/0" -UnixReadWrite -Nfsv41
$exportPolicy = New-AzNetAppFilesExportPolicyObject -Rule $exportPolicyRule

New-AzNetAppFilesVolume -ResourceGroupName $resourceGroup -Location $location -AccountName $anfAccountName -PoolName $anfPoolName -Name $anfVolumeName -UsageThreshold $anfVolumeSizeBytes -SubnetId $subnetId -ServiceLevel $anfServiceLevel -creationToken $anfVolumeName -NetworkFeature $anfVolumeNetworkFeatures -ProtocolType $anfProtocolType -ExportPolicy $exportPolicy

Thanks.

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.netappfiles/new-aznetappfilesvolume?view=azps-14.0.0&viewFallbackFrom=azps-13.4.0

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/NetAppFiles/NetAppFiles/help/New-AzNetAppFilesVolume.md

Author

@mikefrobbins

Document Id

b8827333-98a0-2208-39f5-37d95f97df85

Platform Id

614c3440-d67a-23fc-08e3-af228e4e2301

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions