Get-AzSnapshot
Mendapatkan properti rekam jepret
Sintaks
Get-AzSnapshot
[[-ResourceGroupName] <String>]
[[-SnapshotName] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Deskripsi
Cmdlet Get-AzSnapshot mendapatkan properti rekam jepret.
Contoh
Contoh 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 : {}
Perintah ini mendapatkan properti semua rekam jepret langganan.
Contoh 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 : {}
Perintah ini mendapatkan properti semua rekam jepret dalam grup sumber daya bernama "ResourceGroupName1"
Contoh 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 : {}
Perintah ini mendapatkan properti rekam jepret bernama "SnapshotName1" di grup sumber daya bernama "ResourceGroupName1"
Contoh 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 : {}
Perintah ini mendapatkan semua rekam jepret yang dimulai dengan "SnapshotName"
Parameter
-DefaultProfile
Kredensial, akun, penyewa, dan langganan yang digunakan untuk komunikasi dengan azure.
Jenis: | IAzureContextContainer |
Alias: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | False |
Terima karakter wildcard: | False |
-ResourceGroupName
Menentukan nama grup sumber daya.
Jenis: | String |
Position: | 0 |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | True |
Terima karakter wildcard: | True |
-SnapshotName
Menentukan nama rekam jepret.
Jenis: | String |
Alias: | Name |
Position: | 1 |
Nilai default: | None |
Diperlukan: | False |
Terima input alur: | True |
Terima karakter wildcard: | True |