Get-AzureRmBillingPeriod
Get billing periods of the subscription.
Warning
The AzureRM PowerShell module has been officially deprecated as of February 29, 2024. Users are advised to migrate from AzureRM to the Az PowerShell module to ensure continued support and updates.
Although the AzureRM module may still function, it's no longer maintained or supported, placing any continued use at the user's discretion and risk. Please refer to our migration resources for guidance on transitioning to the Az module.
Syntax
Get-AzureRmBillingPeriod
[-MaxCount <Int32>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmBillingPeriod
-Name <System.Collections.Generic.List`1[System.String]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzureRmBillingPeriod cmdlet gets billing periods of the subscription.
Examples
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.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure
Type: | IAzureContextContainer |
Aliases: | 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