Update-AzSnapshot
Anlık görüntü Güncelleştirmeler.
Syntax
Update-AzSnapshot
[-ResourceGroupName] <String>
[-SnapshotName] <String>
[-SnapshotUpdate] <PSSnapshotUpdate>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzSnapshot
[-ResourceGroupName] <String>
[-SnapshotName] <String>
[-Snapshot] <PSSnapshot>
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Update-AzSnapshot cmdlet'i bir anlık görüntüyü güncelleştirir.
Örnekler
Örnek 1
$snapshotupdateconfig = New-AzSnapshotUpdateConfig -DiskSizeGB 10 -AccountType PremiumLRS -OsType Windows -EncryptionSettingsEnabled $true;
$secretUrl = 'https://myvault.vault-int.azure-int.net/secrets/123/';
$secretId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault123';
$keyUrl = 'https://myvault.vault-int.azure-int.net/keys/456';
$keyId = '/subscriptions/0000000-0000-0000-0000-000000000000/resourceGroups/ResourceGroup01/providers/Microsoft.KeyVault/vaults/TestVault456';
$snapshotupdateconfig = Set-AzSnapshotUpdateDiskEncryptionKey -SnapshotUpdate $snapshotupdateconfig -SecretUrl $secretUrl -SourceVaultId $secretId;
$snapshotupdateconfig = Set-AzSnapshotUpdateKeyEncryptionKey -SnapshotUpdate $snapshotupdateconfig -KeyUrl $keyUrl -SourceVaultId $keyId;
Update-AzSnapshot -ResourceGroupName 'ResourceGroup01' -SnapshotName 'Snapshot01' -SnapshotUpdate $snapshotupdateconfig;
İlk komut, Premium_LRS depolama hesabı türünde boyutu 10 GB olan yerel boş bir anlık görüntü güncelleştirme nesnesi oluşturur. Ayrıca Windows işletim sistemi türünü ayarlar ve şifreleme ayarlarını etkinleştirir. İkinci ve üçüncü komutlar, anlık görüntü güncelleştirme nesnesi için disk şifreleme anahtarı ve anahtar şifreleme anahtarı ayarlarını ayarlar. Son komut anlık görüntü güncelleştirme nesnesini alır ve 'ResourceGroup01' kaynak grubundaki 'Snapshot01' adlı mevcut bir anlık görüntüyü güncelleştirir.
Örnek 2
New-AzSnapshotUpdateConfig -DiskSizeGB 10 | Update-AzSnapshot -ResourceGroupName 'ResourceGroup01' -SnapshotName 'Snapshot01';
Bu komut, 'ResourceGroup01' kaynak grubundaki 'Snapshot01' adlı mevcut bir anlık görüntüyü 10 GB disk boyutuna güncelleştirir.
Örnek 3
$snapshot = Get-AzSnapshot -ResourceGroupName 'ResourceGroup01' -SnapshotName 'Snapshot01';
$snapshot.DiskSizeGB = 10;
Update-AzSnapshot -ResourceGroupName 'ResourceGroup01' -SnapshotName 'Snapshot01' -Snapshot $snapshot;
Bu komutlar ayrıca 'ResourceGroup01' kaynak grubundaki 'Snapshot01' adlı mevcut anlık görüntüyü 10 GB disk boyutuna güncelleştirir.
Parametreler
-AsJob
Cmdlet'i arka planda çalıştırın ve ilerleme durumunu izlemek için bir İş döndürin.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Confirm
Cmdlet'i çalıştırmadan önce sizden onay ister.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
Azure ile iletişim için kullanılan kimlik bilgileri, hesap, kiracı ve abonelik.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
Kaynak grubunun adını belirtir.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Snapshot
Yerel bir anlık görüntü nesnesi belirtir.
Type: | PSSnapshot |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SnapshotName
Anlık görüntünün adını belirtir.
Type: | String |
Aliases: | Name |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-SnapshotUpdate
Yerel anlık görüntü güncelleştirme nesnesini belirtir.
Type: | PSSnapshotUpdate |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-WhatIf
Cmdlet çalıştırılıyorsa ne olacağını gösterir. Cmdlet çalıştırılmaz.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Girişler
Çıkışlar
Azure PowerShell
Geri Bildirim
https://aka.ms/ContentUserFeedback.
Çok yakında: 2024 boyunca, içerik için geri bildirim mekanizması olarak GitHub Sorunları’nı kullanımdan kaldıracak ve yeni bir geri bildirim sistemiyle değiştireceğiz. Daha fazla bilgi için bkz.Gönderin ve geri bildirimi görüntüleyin