< Back

Get-AzureRmBillingInvoice

Tue Jan 29, 2019 9:36 pm

NAME Get-AzureRmBillingInvoice



SYNOPSIS

Get billing invoices of the subscription.





SYNTAX

Get-AzureRmBillingInvoice [-DefaultProfile <IAzureContextContainer>] [-GenerateDownloadUrl] [-MaxCount <Int32>] [<CommonParameters>]



Get-AzureRmBillingInvoice [-DefaultProfile <IAzureContextContainer>] -Latest [<CommonParameters>]



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





DESCRIPTION

The Get-AzureRmBillingInvoice cmdlet gets billing invoices 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



-GenerateDownloadUrl [<SwitchParameter>]

Generate the download url of the invoices.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-Latest [<SwitchParameter>]

Get the latest invoice.



Required? true

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-MaxCount <Int32>

Determines 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 invoice to get or the most recent if not specified.



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.Management.Billing.Models.Invoice, Microsoft.Azure.Commands.Billing, Version=0.14.0.0,

Culture=neutral, PublicKeyToken=null]]

Microsoft.Azure.Management.Billing.Models.Invoice





NOTES









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.







RELATED LINKS

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