Get-AzElasticSanVolumeSnapshot
Obtenir un instantané de volume.
Syntax
Get-AzElasticSanVolumeSnapshot
-ElasticSanName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
-VolumeGroupName <String>
[-Filter <String>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzElasticSanVolumeSnapshot
-ElasticSanName <String>
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
-VolumeGroupName <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzElasticSanVolumeSnapshot
-Name <String>
-VolumegroupInputObject <IElasticSanIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzElasticSanVolumeSnapshot
-Name <String>
-VolumeGroupName <String>
-ElasticSanInputObject <IElasticSanIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzElasticSanVolumeSnapshot
-InputObject <IElasticSanIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Obtenir un instantané de volume.
Exemples
Exemple 1 : Répertorier les instantané sous un groupe de volumes
Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup
CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap1
Name : mysnap1
ProvisioningState : Succeeded
ResourceGroupName : myresourcegroup
SourceVolumeSizeGiB : 1
SystemDataCreatedAt : 10/7/2023 3:37:01 AM
SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000
SystemDataCreatedByType : Application
SystemDataLastModifiedAt : 10/7/2023 3:37:01 AM
SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000
SystemDataLastModifiedByType : Application
Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots
VolumeName : myvolume
CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap2
Name : mysnap2
ProvisioningState : Succeeded
ResourceGroupName : myresourcegroup
SourceVolumeSizeGiB : 1
SystemDataCreatedAt : 10/7/2023 4:06:13 AM
SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000
SystemDataCreatedByType : Application
SystemDataLastModifiedAt : 10/7/2023 4:06:13 AM
SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000
SystemDataLastModifiedByType : Application
Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots
VolumeName : myvolume
Cette commande répertorie toutes les instantané sous un groupe de volumes.
Exemple 2 : Obtenir une instantané spécifique
Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Name mysnap1
CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap1
Name : mysnap1
ProvisioningState : Succeeded
ResourceGroupName : myresourcegroup
SourceVolumeSizeGiB : 1
SystemDataCreatedAt : 10/7/2023 3:37:01 AM
SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000
SystemDataCreatedByType : Application
SystemDataLastModifiedAt : 10/7/2023 3:37:01 AM
SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000
SystemDataLastModifiedByType : Application
Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots
VolumeName : myvolume
Cette commande obtient un instantané nommé « mysnap1 » sous le groupe de volumes « myvolumegroup »
Exemple 3 : Répertorier les instantané d’un volume avec un filtre
Get-AzElasticSanVolumeSnapshot -ResourceGroupName myresourcegroup -ElasticSanName myelasticsan -VolumeGroupName myvolumegroup -Filter 'volumeName eq myvolume'
CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap1
Name : mysnap1
ProvisioningState : Succeeded
ResourceGroupName : myresourcegroup
SourceVolumeSizeGiB : 1
SystemDataCreatedAt : 10/7/2023 3:37:01 AM
SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000
SystemDataCreatedByType : Application
SystemDataLastModifiedAt : 10/7/2023 3:37:01 AM
SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000
SystemDataLastModifiedByType : Application
Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots
VolumeName : myvolume
CreationDataSourceId : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/volumes/myvolume
Id : /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myresourcegroup/providers/Microsoft.ElasticSan/elasticSans/myelasticsan/volumeGroups/myvolumegroup/snapshots/mysnap2
Name : mysnap2
ProvisioningState : Succeeded
ResourceGroupName : myresourcegroup
SourceVolumeSizeGiB : 1
SystemDataCreatedAt : 10/7/2023 4:06:13 AM
SystemDataCreatedBy : 00000000-0000-0000-0000-000000000000
SystemDataCreatedByType : Application
SystemDataLastModifiedAt : 10/7/2023 4:06:13 AM
SystemDataLastModifiedBy : 00000000-0000-0000-0000-000000000000
SystemDataLastModifiedByType : Application
Type : Microsoft.ElasticSan/elasticSans/volumeGroups/snapshots
VolumeName : myvolume
Cette commande répertorie les instantané du volume « myvolume » sous le groupe de volumes « myvolumegroup ».
Paramètres
-DefaultProfile
Le paramètre DefaultProfile n’est pas fonctionnel. Utilisez le paramètre SubscriptionId lorsqu’il est disponible si vous exécutez l’applet de commande sur un autre abonnement.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ElasticSanInputObject
Paramètre d’identité
Type: | IElasticSanIdentity |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ElasticSanName
Nom de ElasticSan.
Type: | String |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Filter
Spécifiez $filter='volumeName eq <volume name>' pour filtrer sur le volume.
Type: | String |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Paramètre d’identité
Type: | IElasticSanIdentity |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Name
Nom du volume instantané dans le groupe de volumes donné.
Type: | String |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Nom du groupe de ressources. Le nom ne respecte pas la casse.
Type: | String |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
ID de l’abonnement cible.
Type: | String[] |
Position: | Named |
valeur par défaut: | (Get-AzContext).Subscription.Id |
Obligatoire: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-VolumegroupInputObject
Paramètre d’identité
Type: | IElasticSanIdentity |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-VolumeGroupName
Nom du VolumeGroup.
Type: | String |
Position: | Named |
valeur par défaut: | None |
Obligatoire: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Entrées
Sorties
Commentaires
https://aka.ms/ContentUserFeedback.
Bientôt disponible : Tout au long de 2024, nous allons supprimer progressivement GitHub Issues comme mécanisme de commentaires pour le contenu et le remplacer par un nouveau système de commentaires. Pour plus d’informations, consultezEnvoyer et afficher des commentaires pour