New-AzNetAppFilesVolume

Creates a new Azure NetApp Files (ANF) volume.

Syntax

New-AzNetAppFilesVolume
   -ResourceGroupName <String>
   -Location <String>
   -AccountName <String>
   -PoolName <String>
   -Name <String>
   -UsageThreshold <Int64>
   -SubnetId <String>
   -CreationToken <String>
   -ServiceLevel <String>
   [-ExportPolicy <PSNetAppFilesVolumeExportPolicy>]
   [-ProtocolType <System.String[]>]
   [-Tag <Hashtable>]
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]
New-AzNetAppFilesVolume
   -Name <String>
   -UsageThreshold <Int64>
   -SubnetId <String>
   -CreationToken <String>
   -ServiceLevel <String>
   [-ExportPolicy <PSNetAppFilesVolumeExportPolicy>]
   [-ProtocolType <System.String[]>]
   [-Tag <Hashtable>]
   -PoolObject <PSNetAppFilesPool>
   [-DefaultProfile <IAzureContextContainer>]
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

The New-AzNetAppFilesVolume cmdlet creates an ANF volume.

Examples

Example 1: Create an ANF volume

PS C:\>New-AzNetAppFilesVolume -ResourceGroupName "MyRG" -AccountName "MyAnfAccount" -PoolName "MyAnfPool" -Name "MyAnfVolume" -l "westus2" -CreationToken "MyAnfVolume" -UsageThreshold 1099511627776 -ServiceLevel "Premium" -SubnetId "/subscriptions/subsId/resourceGroups/MyRG/providers/Microsoft.Network/virtualNetworks/MyVnetName/subnets/MySubNetName"

Output:

Location          : westus2
Id                : /subscriptions/subsId/resourceGroups/MyRG/providers/Microsoft.NetApp/netAppAccounts/MyAnfAccount/capacityPools/MyAnfPool/volumes/MyAnfVolume
Name              : MyAnfAccount/MyAnfPool/MyAnfVolume
Type              : Microsoft.NetApp/netAppAccounts/capacityPools/volumes
Tags              :
FileSystemId      : 3e2773a7-2a72-d003-0637-1a8b1fa3eaaf
CreationToken     : MyAnfVolume
ServiceLevel      : Premium
UsageThreshold    : 1099511627776
ProvisioningState : Succeeded
SubnetId          : /subscriptions/f557b96d-2308-4a18-aae1-b8f7e7e70cc7/resourceGroups/MyRG/providers/Microsoft.Network/virtualNetworks/MyVnetName/subnets/default

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

Parameters

-AccountName

The name of the ANF account

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-CreationToken

A unique file path for the volume

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-DefaultProfile

The credentials, account, tenant, and subscription used for communication with Azure.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExportPolicy

A hashtable array which represents the export policy

Type:PSNetAppFilesVolumeExportPolicy
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Location

The location of the resource

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Name

The name of the ANF volume

Type:String
Aliases:VolumeName
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PoolName

The name of the ANF pool

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-PoolObject

The pool for the new volume object

Type:PSNetAppFilesPool
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False
-ProtocolType

A hashtable array which represents the export policy

Type:System.String[]
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ResourceGroupName

The resource group of the ANF account

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ServiceLevel

The service level of the ANF volume

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-SubnetId

The Azure Resource URI for a delegated subnet

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Tag

A hashtable which represents resource tags

Type:Hashtable
Aliases:Tags
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-UsageThreshold

The maximum storage quota allowed for a file system in bytes

Type:Int64
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

String

Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesPool

Outputs

Microsoft.Azure.Commands.NetAppFiles.Models.PSNetAppFilesVolume