Editar

Compartilhar via


Get-AzBillingPeriod

Get billing periods of the subscription.

Syntax

Get-AzBillingPeriod
   [-MaxCount <Int32>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBillingPeriod
   -Name <System.Collections.Generic.List`1[System.String]>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzBillingPeriod cmdlet gets billing periods of the subscription.

Examples

Example 1

Get-AzBillingPeriod

Get all available billing periods of the subscription.

Example 2

Get-AzBillingPeriod -Name 201704-1

Get the billing period of the subscription with the specified name.

Example 3

Get-AzBillingPeriod -MaxCount 2

Get at most 2 billing periods of the subscription.

Parameters

-DefaultProfile

The credentials, account, tenant, and subscription used for communication with azure

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

-MaxCount

Determine the maximum number of records to return.

Type:Nullable<T>[Int32]
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of a specific billing period to get.

Type:List<T>[String]
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

Inputs

None

Outputs

PSBillingPeriod