Add-AzRmStorageContainerLegalHold
Depolama blob kapsayıcısına yasal tutma etiketleri ekler
Syntax
Add-AzRmStorageContainerLegalHold
[-ResourceGroupName] <String>
[-StorageAccountName] <String>
-Name <String>
-Tag <String[]>
[-AllowProtectedAppendWriteAll <Boolean>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzRmStorageContainerLegalHold
-Name <String>
-StorageAccount <PSStorageAccount>
-Tag <String[]>
[-AllowProtectedAppendWriteAll <Boolean>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Add-AzRmStorageContainerLegalHold
-Container <PSContainer>
-Tag <String[]>
[-AllowProtectedAppendWriteAll <Boolean>]
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Add-AzRm Depolama ContainerLegalHold cmdlet'i Depolama blob kapsayıcısına yasal tutma etiketleri ekler
Örnekler
Örnek 1: Depolama hesap adı ve kapsayıcı adıyla Depolama blob kapsayıcısına yasal tutma etiketleri ekleme
Add-AzRmStorageContainerLegalHold -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" -ContainerName "myContainer" -Tag tag1,tag2 -AllowProtectedAppendWriteAll $true
Bu komut, Depolama hesap adı ve kapsayıcı adıyla bir Depolama blob kapsayıcısına yasal tutma etiketleri ekler ve bloba yeni blok eklemeye veya blobu engellemeye izin vermek için AllowProtectedAppendWriteAll değerini true olarak ayarlar.
Örnek 2: Depolama hesap nesnesi ve kapsayıcı adıyla Depolama blob kapsayıcısına yasal tutma etiketleri ekleme
$accountObject = Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount"
Add-AzRmStorageContainerLegalHold -StorageAccount $accountObject -ContainerName "myContainer" -Tag tag1
Bu komut, Depolama hesap nesnesi ve kapsayıcı adıyla Depolama blob kapsayıcısına yasal tutma etiketleri ekler.
Örnek 3: İşlem hattı olan bir Depolama hesabındaki tüm Depolama blob kapsayıcılarına yasal tutma etiketleri ekleme
Get-AzStorageAccount -ResourceGroupName "myResourceGroup" -AccountName "myStorageAccount" | Add-AzRmStorageContainerLegalHold -Tag tag1,tag2,tag3
Bu komut, işlem hattına sahip bir Depolama hesabındaki tüm Depolama blob kapsayıcılarına yasal tutma etiketleri ekler.
Parametreler
-AllowProtectedAppendWriteAll
Etkinleştirildiğinde, değişmezlik koruması ve uyumluluğu korunurken yeni bloklar hem 'Uygulamalı hem de Blok Blobları'na yazılabilir. Yalnızca yeni bloklar eklenebilir ve mevcut bloklar değiştirilemez veya silinemez.
Type: | Boolean |
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 |
-Container
kapsayıcı nesnesini Depolama
Type: | PSContainer |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |
-Name
Kapsayıcı Adı
Type: | String |
Aliases: | N, ContainerName |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Kaynak Grubu Adı.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageAccount
hesap nesnesini Depolama
Type: | PSStorageAccount |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-StorageAccountName
Hesap Adı'Depolama.
Type: | String |
Aliases: | AccountName |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Tag
Container LegalHold Etiketleri
Type: | String[] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
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