Get-AzureRmBillingInvoice
Get billing invoices 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-AzureRmBillingInvoice
[-MaxCount <Int32>]
[-GenerateDownloadUrl]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmBillingInvoice
[-Latest]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzureRmBillingInvoice
-Name <System.Collections.Generic.List`1[System.String]>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzureRmBillingInvoice cmdlet gets billing invoices of the subscription.
Examples
Example 1
PS C:\> Get-AzureRmBillingInvoice -Latest
Get the latest invoice of the subscription.
Example 2
PS C:\> Get-AzureRmBillingInvoice -Name 2017-02-18-432543543
Get the invoice of the subscription with the specified name.
Example 3
PS C:\> Get-AzureRmBillingInvoice
Get all available invoices of the subscription in reverse chronological order beginning with the most recent invoice without download Url.
Example 4
PS C:\> Get-AzureRmBillingInvoice -GenerateDownloadUrl -MaxCount 10
Get most recent 10 invoices of the subscription and include the download Url in the result.
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 |
-GenerateDownloadUrl
Generate the download url of the invoices.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Latest
Get the latest invoice.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-MaxCount
Determines 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 invoice to get or the most recent if not specified.
Type: | List<T>[String] |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
None