Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

New-AzNetAppFilesSnapshot

Creates a new Azure NetApp Files (ANF) snapshot.

Syntax

ByFieldsParameterSet (Default)

New-AzNetAppFilesSnapshot
 -ResourceGroupName <String>
 -Location <String>
 -AccountName <String>
 -PoolName <String>
 -VolumeName <String>
 -Name <String>
 [-FileSystemId <String>]
 [-Tag <Hashtable>]
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

ByParentObjectParameterSet

New-AzNetAppFilesSnapshot
 -Name <String>
 -VolumeObject <PSNetAppFilesVolume>
 [-Tag <Hashtable>]
 [-DefaultProfile <IAzureContextContainer>]
 [-WhatIf]
 [-Confirm]
 [<CommonParameters>]

Description

The New-AzNetAppFilesSnapshot cmdlet creates an ANF snapshot.

Examples

Example 1

New-AzNetAppFilesSnapshot -ResourceGroupName "MyRG" -Location "westus2" -AccountName "MyAnfAccount" -PoolName "MyAnfPool" -VolumeName "MyAnfVolume" -SnapshotName "MyAnfSnapshot" -FileSystemId "3e2773a7-2a72-d003-0637-1a8b1fa3eaaf"
Location : westus2
Id : /subscriptions/subsId/resourceGroups/MyRG/providers/Microsoft.NetApp/netAppAccounts/MyAnfAccount/capacityPools/MyAnfPool/volumes/MyAnfVolume/snapshots/MyAnfSnapshot
Name : MyAnfAccount/MyAnfPool/MyAnfVolume/MyAnfSnapshot
Type : Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots
Tags :
SnapshotId : ca7c4ebd-91cb-0e30-91f5-9154050033df
FileSystemId : 3e2773a7-2a72-d003-0637-1a8b1fa3eaaf
Created :
ProvisioningState : Succeeded

This command creates the new ANF snapshot "MyAnfSnapshot" within the volume "MyAnfVolume".

Parameters

-AccountName

The name of the ANF account

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Confirm

Prompts you for confirmation before running the cmdlet.

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:cf

Parameter sets

-DefaultProfile

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

Parameter properties

Type:IAzureContextContainer
Default value:None
Supports wildcards:False
DontShow:False
Aliases:AzContext, AzureRmContext, AzureCredential

Parameter sets

-FileSystemId

The file system id

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Location

The location of the resource

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Name

The name of the ANF snapshot

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False
Aliases:SnapshotName

Parameter sets

-PoolName

The name of the ANF pool

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-ResourceGroupName

The resource group of the ANF account

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-Tag

A hashtable which represents resource tags

Parameter properties

Type:Hashtable
Default value:None
Supports wildcards:False
DontShow:False
Aliases:Tags

Parameter sets

-VolumeName

The name of the ANF volume

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-VolumeObject

The volume for the new snapshot object

Parameter properties

Type:PSNetAppFilesVolume
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

-WhatIf

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

Parameter properties

Type:SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False
Aliases:wi

Parameter sets

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

PSNetAppFilesVolume

Outputs

PSNetAppFilesSnapshot

Related Links


Feedback

Was this page helpful?