我必须通过 CLI 或 python SDK 从我的 azure 帐户中获取最后的账单。在这两种情况下,我都有一条消息告诉我不支持我的订阅类型:
命令行:
# az billing invoice show
UnsupportedSubscriptionType - Offer id MS-AZR-0017P is not supported.
Python-SDK:
from azure.mgmt.billing import BillingManagementClient
bil_client = BillingManagementClient(credentials, subscription_id)
for item in bil_client.invoices.list():
print(item)
azure.mgmt.billing.models.error_response.ErrorResponseException: (UnsupportedSubscriptionType) Offer id MS-AZR-0017P is not supported.
有没有人有办法解决吗 ?
此致,