Modifier

Partager via


Get-AzBillingProfile

Get billing profiles.

Syntax

Get-AzBillingProfile
   -BillingAccountName <String>
   -BillingProfileName <String>
   [-ExpandInvoiceSection]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzBillingProfile
   -BillingAccountName <String>
   -BillingProfileName <String>
   -Name <System.Collections.Generic.List`1[System.String]>
   [-ExpandInvoiceSection]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

The Get-AzBillingProfile cmdlet gets billing profiles under the specified billing account.

Examples

Example 1

Get-AzBillingProfile -BillingAccountName 00000000-0000-0000-0000-000000000000

Get all billing profiles under the specified billing account.

Example 2

Get-AzBillingProfile -BillingAccountName 00000000-0000-0000-0000-000000000000 -Name AAAA-0A00-AAA-ZZZ

Get the billing profile with the specified name.

Example 3

Get-AzBillingProfile -BillingAccountName 00000000-0000-0000-0000-000000000000 -ExpandInvoiceSection

Get all billing profiles under specified billing account, and include the invoice sections in the result.

Example 4

Get-AzBillingProfile -BillingAccountName 00000000-0000-0000-0000-000000000000 -ExpandInvoiceSection -Name <System.Collections.Generic.List`1[System.String]>

Get the billing profile with the specified name, and include the invoice sections in the result.

Parameters

-BillingAccountName

Name of the specific billing account.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-DefaultProfile

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

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

-ExpandInvoiceSection

Include the invoices sections under billing profile.

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

-Name

Name of a specific billing profile.

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

Inputs

None

Outputs

PSBillingProfile