Get-​Azure​Rm​Consumption​Usage​Detail

Get usage details of the subscription.

Syntax

Get-AzureRmConsumptionUsageDetail
   -BillingPeriodName <String>
   [-EndDate <DateTime>]
   [-IncludeAdditionalProperties]
   [-IncludeMeterDetails]
   [-MaxCount <Int32>]
   [-StartDate <DateTime>]
   [<CommonParameters>]
Get-AzureRmConsumptionUsageDetail
   [-EndDate <DateTime>]
   [-IncludeAdditionalProperties]
   [-IncludeMeterDetails]
   -InvoiceName <String>
   [-MaxCount <Int32>]
   [-StartDate <DateTime>]
   [<CommonParameters>]

Description

The Get-AzureRmConsumptionUsageDetail cmdlet gets usage details of the subscription.

Examples

Example 1

PS C:\> Get-AzureRmConsumptionUsageDetail -IncludeMeterDetails -InvoiceName 201704-117283130069214

Get usage details of the invoice with specified name, and include MeterDetails property in the result.

Example 2

PS C:\> Get-AzureRmConsumptionUsageDetail -IncludeAdditionalProperties -BillingPeriodName 201704-1

Get usage details of the billing period with specified name, and include AdditionalProperties property in the result.

Example 3

PS C:\> Get-AzureRmConsumptionUsageDetail -StartDate 2017-01-17 -EndDate 2017-01-19

Get usage details of the subscription that is between 2017-01-17 to 2017-01-19.

Required Parameters

-BillingPeriodName

Name of a specific billing period to get the usage details that associate with.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-InvoiceName

Name of a specific invoice to get the usage details that associate with.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-EndDate

The end date (in UTC) of the usages.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IncludeAdditionalProperties

Include additional properties in the usages.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-IncludeMeterDetails

Include meter details in the usages.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-MaxCount

Determine the maximum number of records to return.

Type:Int32
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-StartDate

The start date (in UTC) of the usages.

Type:DateTime
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Consumption.Models.PSUsageDetail, Microsoft.Azure.Commands.Consumption, Version=0.1.0.0, Culture=neutral, PublicKeyToken=null]]