Get-AzSnapshot
스냅샷의 속성을 가져옵니다.
구문
Get-AzSnapshot
[[-ResourceGroupName] <String>]
[[-SnapshotName] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzSnapshot cmdlet은 스냅샷의 속성을 가져옵니다.
예제
예 1
Get-AzSnapshot
ResourceGroupName : ResourceGroupName1
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 4/10/2018 7:05:42 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroupName1/providers/Microsoft.Compu
te/snapshots/SnapshotName1
Name : SnapshotName1
Type : Microsoft.Compute/snapshots
Location : westus2
Tags : {}
ResourceGroupName : ResourceGroupName1
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 4/10/2018 7:05:42 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroupName1/providers/Microsoft.Compu
te/snapshots/SnapshotName2
Name : SnapshotName2
Type : Microsoft.Compute/snapshots
Location : westus2
Tags : {}
ResourceGroupName : ResourceGroupName2
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 4/10/2018 7:05:42 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroupName2/providers/Microsoft.Compu
te/snapshots/SnapshotName3
Name : SnapshotName3
Type : Microsoft.Compute/snapshots
Location : westus2
Tags : {}
이 명령은 구독의 모든 스냅샷의 속성을 가져옵니다.
예제 2
Get-AzSnapshot -ResourceGroupName "ResourceGroupName1"
ResourceGroupName : ResourceGroupName1
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 4/10/2018 7:05:42 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroupName1/providers/Microsoft.Compu
te/snapshots/SnapshotName1
Name : SnapshotName1
Type : Microsoft.Compute/snapshots
Location : westus2
Tags : {}
ResourceGroupName : ResourceGroupName1
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 4/10/2018 7:05:42 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroupName1/providers/Microsoft.Compu
te/snapshots/SnapshotName2
Name : SnapshotName2
Type : Microsoft.Compute/snapshots
Location : westus2
Tags : {}
이 명령은 "ResourceGroupName1"이라는 리소스 그룹에 있는 모든 스냅샷의 속성을 가져옵니다.
예 3
Get-AzSnapshot -ResourceGroupName "ResourceGroupName1" -SnapshotName "SnapshotName1"
ResourceGroupName : ResourceGroupName1
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 4/10/2018 7:05:42 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroupName1/providers/Microsoft.Compu
te/snapshots/SnapshotName1
Name : SnapshotName1
Type : Microsoft.Compute/snapshots
Location : westus2
Tags : {}
이 명령은 "ResourceGroupName1"이라는 리소스 그룹에서 "SnapshotName1"이라는 스냅샷의 속성을 가져옵니다.
예제 4
Get-AzSnapshot -SnapshotName "SnapshotName*"
ResourceGroupName : ResourceGroupName1
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 4/10/2018 7:05:42 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroupName1/providers/Microsoft.Compu
te/snapshots/SnapshotName1
Name : SnapshotName1
Type : Microsoft.Compute/snapshots
Location : westus2
Tags : {}
ResourceGroupName : ResourceGroupName1
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 4/10/2018 7:05:42 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroupName1/providers/Microsoft.Compu
te/snapshots/SnapshotName2
Name : SnapshotName2
Type : Microsoft.Compute/snapshots
Location : westus2
Tags : {}
ResourceGroupName : ResourceGroupName2
ManagedBy :
Sku : Microsoft.Azure.Management.Compute.Models.SnapshotSku
TimeCreated : 4/10/2018 7:05:42 PM
OsType : Windows
CreationData : Microsoft.Azure.Management.Compute.Models.CreationData
DiskSizeGB : 127
EncryptionSettings :
ProvisioningState : Succeeded
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroupName2/providers/Microsoft.Compu
te/snapshots/SnapshotName3
Name : SnapshotName3
Type : Microsoft.Compute/snapshots
Location : westus2
Tags : {}
이 명령은 "SnapshotName"으로 시작하는 모든 스냅샷을 가져옵니다.
매개 변수
-DefaultProfile
Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.
형식: | IAzureContextContainer |
별칭: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
필수: | False |
파이프라인 입력 허용: | False |
와일드카드 문자 허용: | False |
-ResourceGroupName
리소스 그룹의 이름을 지정합니다.
형식: | String |
Position: | 0 |
Default value: | None |
필수: | False |
파이프라인 입력 허용: | True |
와일드카드 문자 허용: | True |
-SnapshotName
스냅샷의 이름을 지정합니다.
형식: | String |
별칭: | Name |
Position: | 1 |
Default value: | None |
필수: | False |
파이프라인 입력 허용: | True |
와일드카드 문자 허용: | True |