Get-AzStorageServiceProperty

Pobiera właściwości dla usług Azure Storage.

Składnia

Get-AzStorageServiceProperty
   [-ServiceType] <StorageServiceType>
   [-Context <IStorageContext>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Opis

Polecenie cmdlet Get-AzStorageServiceProperty pobiera właściwości usług Azure Storage.

Przykłady

Przykład 1. Pobieranie właściwości usług Azure Storage dla usługi Blob Service

Get-AzStorageServiceProperty -ServiceType Blob

Logging.Version                     : 1.0
Logging.LoggingOperations           : None
Logging.RetentionDays               : 
HourMetrics.Version                 : 1.0
HourMetrics.MetricsLevel            : ServiceAndApi
HourMetrics.RetentionDays           : 7
MinuteMetrics.Version               : 1.0
MinuteMetrics.MetricsLevel          : None
MinuteMetrics.RetentionDays         : 
DeleteRetentionPolicy.Enabled       : True
DeleteRetentionPolicy.RetentionDays : 70
Cors                                : 
DefaultServiceVersion               : 2017-07-29

To polecenie pobiera właściwość DefaultServiceVersion usługi Blob Service.

Parametry

-Context

Określa kontekst usługi Azure Storage. Aby uzyskać kontekst magazynu, użyj polecenia cmdlet New-AzStorageContext.

Type:IStorageContext
Position:Named
Default value:None
Required:False
Accept pipeline input:True
Accept wildcard characters:False

-DefaultProfile

Poświadczenia, konto, dzierżawa i subskrypcja używane do komunikacji z platformą Azure.

Type:IAzureContextContainer
Aliases:AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-ServiceType

Określa typ usługi magazynu. To polecenie cmdlet pobiera właściwości rejestrowania dla typu usługi, który określa ten parametr. Dopuszczalne wartości tego parametru to:

  • Obiekt blob
  • Table
  • Queue
  • Plik
Type:StorageServiceType
Accepted values:Blob, Table, Queue, File
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Dane wejściowe

IStorageContext

Dane wyjściowe

PSSeriviceProperties