共用方式為


az billing customer

此命令群組處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

Billing customer.

命令

名稱 Description 類型 狀態
az billing customer list

列出計費帳戶的客戶。 只有合約類型Microsoft合作夥伴合約的計費帳戶才支援此作業。

Core Preview
az billing customer show

依其標識碼取得客戶。 只有合約類型Microsoft合作夥伴合約的計費帳戶才支援此作業。

Core Preview

az billing customer list

預覽

命令群組「計費客戶」處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

列出計費帳戶的客戶。 只有合約類型Microsoft合作夥伴合約的計費帳戶才支援此作業。

az billing customer list --account-name
                         [--filter]
                         [--profile-name]
                         [--search]

範例

依計費帳戶列出客戶

az billing customer list --account-name "{billingAccountName}" --profile-name "{billingProfileName}"

必要參數

--account-name

可唯一識別計費帳戶的標識碼。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--filter

可用來篩選客戶清單。

--profile-name

可唯一識別帳單配置檔的標識碼。

--search

用於依其名稱搜尋客戶。 任何名稱包含搜尋文字的客戶,都會包含在回應中。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False

az billing customer show

預覽

命令群組「計費客戶」處於預覽狀態,且正在開發中。 參考和支援層級: https://aka.ms/CLI_refstatus

依其標識碼取得客戶。 只有合約類型Microsoft合作夥伴合約的計費帳戶才支援此作業。

az billing customer show --account-name
                         --customer-name --name
                         [--expand]

範例

顯示具有預設屬性的客戶

az billing customer show --account-name "{billingAccountName}" --name "{customerName}"

顯示具有所需展開屬性的客戶

az billing customer show --expand "enabledAzurePlans,resellers" --account-name "{billingAccountName}" --name "{customerName}"

必要參數

--account-name

可唯一識別計費帳戶的標識碼。

--customer-name --name -n

可唯一識別客戶的標識碼。

選擇性參數

The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.

--expand

可用來擴充已啟用的AzurePlans和轉銷商。

全域參數
--debug

提高日誌詳細程度以顯示所有調試日誌。

屬性
預設值: False
--help -h

顯示此說明訊息並結束。

--only-show-errors

只顯示錯誤,隱藏警告。

屬性
預設值: False
--output -o

Output format.

屬性
預設值: json
接受的值: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath 查詢字串。 如需詳細資訊和範例,請參閱 http://jmespath.org/

--subscription

訂用帳戶的名稱或標識碼。 您可以使用 az account set -s NAME_OR_ID來設定預設訂用帳戶。

--verbose

增加記錄的詳細程度。 針對完整偵錯記錄使用 --debug。

屬性
預設值: False