Get-AzSnapshot
Hiermee haalt u de eigenschappen van een momentopname op
Syntaxis
Get-AzSnapshot
[[-ResourceGroupName] <String>]
[[-SnapshotName] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
De cmdlet Get-AzSnapshot haalt de eigenschappen van een momentopname op.
Voorbeelden
Voorbeeld 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 : {}
Met deze opdracht worden de eigenschappen opgehaald van alle momentopnamen van het abonnement.
Voorbeeld 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 : {}
Met deze opdracht worden de eigenschappen opgehaald van alle momentopnamen in de resourcegroep met de naam ResourceGroupName1
Voorbeeld 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 : {}
Met deze opdracht worden de eigenschappen opgehaald van de momentopname met de naam SnapshotName1 in de resourcegroep met de naam ResourceGroupName1
Voorbeeld 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 : {}
Met deze opdracht worden alle momentopnamen opgehaald die beginnen met 'SnapshotName'
Parameters
-DefaultProfile
De referenties, het account, de tenant en het abonnement die worden gebruikt voor communicatie met Azure.
Type: | IAzureContextContainer |
Aliassen: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | False |
Jokertekens accepteren: | False |
-ResourceGroupName
Hiermee geeft u de naam van een resourcegroep.
Type: | String |
Position: | 0 |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | True |
-SnapshotName
Hiermee geeft u de naam van een momentopname.
Type: | String |
Aliassen: | Name |
Position: | 1 |
Default value: | None |
Vereist: | False |
Pijplijninvoer accepteren: | True |
Jokertekens accepteren: | True |
Invoerwaarden
Uitvoerwaarden
Azure PowerShell