Dela via


Get-AzNetAppFilesSnapshot

Hämtar information om en ögonblicksbild av Azure NetApp Files (ANF).

Syntax

Get-AzNetAppFilesSnapshot
   -ResourceGroupName <String>
   -AccountName <String>
   -PoolName <String>
   -VolumeName <String>
   [-Name <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetAppFilesSnapshot
   [-Name <String>]
   -ResourceId <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzNetAppFilesSnapshot
   [-Name <String>]
   -VolumeObject <PSNetAppFilesVolume>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Cmdleten Get-AzNetAppFilesSnapshot hämtar information om en ANF-ögonblicksbild.

Exempel

Exempel 1: Hämta en ANF-ögonblicksbild

Get-AzNetAppFilesSnapshot -ResourceGroupName "MyRG" -AccountName "MyAnfAccount" -PoolName "MyAnfPool" -VolumeName "MyAnfVolume" -Name "MyAnfSnapshot"

ResourceGroupName : MyRG
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              :
FileSystemId      : 3e2773a7-2a72-d003-0637-1a8b1fa3eaaf
SnapshotId        : ca7c4ebd-91cb-0e30-91f5-9154050033df
Created           :
ProvisioningState : Succeeded

Det här kommandot hämtar ögonblicksbilden med namnet MyAnfSnapshot från volymen "MyAnfVolume".

Parametrar

-AccountName

Namnet på ANF-kontot

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

Autentiseringsuppgifter, konto, klientorganisation och prenumeration som används för kommunikation med Azure.

Typ:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
standardvärde:None
Obligatorisk:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Namnet på ANF-ögonblicksbilden

Typ:String
Aliases:SnapshotName
Position:Named
standardvärde:None
Obligatorisk:False
Accept pipeline input:False
Accept wildcard characters:False

-PoolName

Namnet på ANF-poolen

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceGroupName

Resursgruppen för ANF-volymen

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:False
Accept wildcard characters:False

-ResourceId

Resurs-ID för ANF-ögonblicksbilden

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:True
Accept wildcard characters:False

-VolumeName

Namnet på ANF-volymen

Typ:String
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:False
Accept wildcard characters:False

-VolumeObject

Volymobjektet som innehåller ögonblicksbilden som ska returneras

Typ:PSNetAppFilesVolume
Position:Named
standardvärde:None
Obligatorisk:True
Accept pipeline input:True
Accept wildcard characters:False

Indata

String

PSNetAppFilesVolume

Utdata

PSNetAppFilesSnapshot