< Back

Get-AzureRmBillingPeriod

Tue Jan 29, 2019 9:36 pm

NAME Get-AzureRmBillingPeriod



SYNOPSIS

Get billing periods of the subscription.





SYNTAX

Get-AzureRmBillingPeriod [-DefaultProfile <IAzureContextContainer>] [-MaxCount <Int32>] [<CommonParameters>]



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





DESCRIPTION

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





PARAMETERS

-DefaultProfile <IAzureContextContainer>

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



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-MaxCount <Int32>

Determine the maximum number of records to return.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <System.Collections.Generic.List`1[System.String]>

Name of a specific billing period to get.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None







OUTPUTS

System.Collections.Generic.List`1[[Microsoft.Azure.Commands.Billing.Models.PSBillingPeriod, Microsoft.Azure.Commands.Billing, Version=0.14.0.0,

Culture=neutral, PublicKeyToken=null]]

Microsoft.Azure.Commands.Billing.Models.PSBillingPeriod





NOTES









Example 1



PS C:\\> Get-AzureRmBillingPeriod



Get all available billing periods of the subscription.





Example 2



PS C:\\> Get-AzureRmBillingPeriod -Name 201704-1



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





Example 3



PS C:\\> Get-AzureRmBillingPeriod -MaxCount 2



Get at most 2 billing periods of the subscription.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... lingperiod