Get-AzStorageAccount
bir Depolama hesabı alır.
Syntax
Get-AzStorageAccount
[[-ResourceGroupName] <String>]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzStorageAccount
[-ResourceGroupName] <String>
[-Name] <String>
[-IncludeGeoReplicationStats]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzStorageAccount
[-ResourceGroupName] <String>
[-Name] <String>
[-IncludeBlobRestoreStatus]
[-AsJob]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-Az Depolama Account cmdlet'i belirtilen bir Depolama hesabını veya bir kaynak grubu veya abonelikteki tüm Depolama hesaplarını alır.
Örnekler
Örnek 1: Belirtilen Depolama hesabını alma
Get-AzStorageAccount -ResourceGroupName "RG01" -Name "mystorageaccount"
Bu komut belirtilen Depolama hesabını alır.
Örnek 2: Kaynak grubundaki tüm Depolama hesaplarını alma
Get-AzStorageAccount -ResourceGroupName "RG01"
Bu komut, bir kaynak grubundaki tüm Depolama hesaplarını alır.
Örnek 3: Abonelikteki tüm Depolama hesaplarını alma
Get-AzStorageAccount
Bu komut abonelikteki tüm Depolama hesaplarını alır.
Örnek 4: Blob geri yükleme durumuyla bir Depolama hesabı alma
$account = Get-AzStorageAccount -ResourceGroupName "myresourcegoup" -Name "mystorageaccount" -IncludeBlobRestoreStatus
$account.BlobRestoreStatus
Status RestoreId FailureReason Parameters.TimeToRestore Parameters.BlobRanges
------ --------- ------------- ------------------------ ---------------------
InProgress a70cd4a1-f223-4c86-959f-cc13eb4795a8 2020-02-10T13:45:04.7155962Z [container1/blob1 -> container2/blob2]
Bu komut blob geri yükleme durumuna sahip bir Depolama hesabı alır ve blob geri yükleme durumunu gösterir.
Parametreler
-AsJob
Cmdlet'i arka planda çalıştırma
Type: | SwitchParameter |
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 |
-IncludeBlobRestoreStatus
Depolama hesabının BlobRestoreStatus'unu alın.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IncludeGeoReplicationStats
Depolama hesabının GeoReplicationStats değerlerini alın.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Alınacak Depolama hesabının adını belirtir.
Type: | String |
Aliases: | StorageAccountName, AccountName |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
Alınabilecek Depolama hesabını içeren kaynak grubunun adını belirtir.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |