共用方式為


Get-AzBillingProfile

取得帳單配置檔。

語法

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

Get-AzBillingProfile Cmdlet 會取得指定計費帳戶下的帳單配置檔。

範例

範例 1

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

取得指定計費帳戶下的所有帳單配置檔。

範例 2

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

取得具有指定名稱的帳單配置檔。

範例 3

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

在指定的計費帳戶下取得所有帳單配置檔,並在結果中包含發票區段。

範例 4

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

取得具有指定名稱的帳單配置檔,並在結果中包含發票區段。

參數

-BillingAccountName

特定計費帳戶的名稱。

類型:String
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶

類型:IAzureContextContainer
別名:AzContext, AzureRmContext, AzureCredential
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-ExpandInvoiceSection

在帳單配置檔底下包含發票區段。

類型:SwitchParameter
Position:Named
預設值:None
必要:False
接受管線輸入:False
接受萬用字元:False

-Name

特定帳單配置檔的名稱。

類型:List<T>[String]
Position:Named
預設值:None
必要:True
接受管線輸入:False
接受萬用字元:False

輸入

None

輸出

PSBillingProfile