Get-AzStorageServiceMetricsProperty
Gets metrics properties for the Azure Storage service.
Syntax
Default (Default)
Get-AzStorageServiceMetricsProperty
[-ServiceType] <StorageServiceType>
[-MetricsType] <ServiceMetricsType>
[-Context <IStorageContext>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzStorageServiceMetricsProperty cmdlet gets metrics properties for the Azure Storage service.
Examples
Example 1: Get metrics properties for the Blob service
Get-AzStorageServiceMetricsProperty -ServiceType Blob -MetricsType Hour
This command gets metrics properties for blob storage for the Hour metrics type.
Parameters
-Context
Specifies an Azure storage context. To obtain a storage context, use the New-AzStorageContext cmdlet.
Parameter properties
Type: | IStorageContext |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | True |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-MetricsType
Specifies a metrics type. This cmdlet gets the Azure Storage service metrics properties for the metrics type that this parameter specifies. The acceptable values for this parameter are: Hour and Minute.
Parameter properties
Type: | ServiceMetricsType |
Default value: | None |
Accepted values: | Hour, Minute |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 1 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ServiceType
Specifies the storage service type. This cmdlet gets the metrics properties for the type that this parameter specifies. The acceptable values for this parameter are:
- Blob
- Table
- Queue
- File The value of File is not currently supported.
Parameter properties
Type: | StorageServiceType |
Default value: | None |
Accepted values: | Blob, Table, Queue, File |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.