Get-AzBillingProfile
Get billing profiles.
Syntax
List (Default)
Get-AzBillingProfile
-BillingAccountName <String>
-BillingProfileName <String>
[-ExpandInvoiceSection]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Single
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.
Parameter properties
| Type: | String |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure
Parameter properties
| Type: | IAzureContextContainer |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
| Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-ExpandInvoiceSection
Include the invoices sections under billing profile.
Parameter properties
| Type: | SwitchParameter |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
(All)
| Position: | Named |
| Mandatory: | False |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
-Name
Name of a specific billing profile.
Parameter properties
| Type: | |
| Default value: | None |
| Supports wildcards: | False |
| DontShow: | False |
Parameter sets
Single
| Position: | Named |
| Mandatory: | True |
| Value from pipeline: | False |
| Value from pipeline by property name: | False |
| Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.