Get-AzBillingAccount

Get billing accounts.

Syntax

Get-AzBillingAccount
   [-IncludeAddress]
   [-ExpandBillingProfile]
   [-ExpandInvoiceSection]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBillingAccount
   -Name <System.Collections.Generic.List`1[System.String]>
   [-IncludeAddress]
   [-ExpandBillingProfile]
   [-ExpandInvoiceSection]
   [-ListEntitiesToCreateSubscription]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzBillingAccount cmdlet gets billing accounts, user has access to.

Examples

Example 1

Get-AzBillingAccount

Get all billing accounts user has access to.

Example 2

Get-AzBillingAccount -Name 00000000-0000-0000-0000-000000000000

Get the billing account with the specified name.

Example 3

Get-AzBillingAccount -IncludeAddress

Get all billing accounts user has access to, and include the address in the result.

Example 4

Get-AzBillingAccount -ExpandBillingProfile

Get all billing accounts user has access to, and include the billing profiles in the result.

Example 5

Get-AzBillingAccount -ExpandInvoiceSection

Get all billing accounts user has access to, and include the billing profiles and invoice sections under them in the result.

Example 6

Get-AzBillingAccount -ExpandInvoiceSection -IncludeAddress -ExpandBillingProfile -Name 00000000-0000-0000-0000-000000000000

Get the billing account with the specified name, and include the address, billing profiles and invoice sections under them in the result.

Parameters

-DefaultProfile

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

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

-ExpandBillingProfile

Include the billing profiles under the billing account.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ExpandInvoiceSection

Include the billing profiles under billing account and invoices sections under them.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-IncludeAddress

Include the address of the billing account.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-ListEntitiesToCreateSubscription

List the billing entities under billing account which can be used as input to create subscription.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

-Name

Name of a specific billing account.

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

Inputs

None

Outputs

PSBillingAccount