I have to get the last bills from my azure account via CLI or python SDK. In both cases, I have a message telling me that my subscription type is not supported:
CLI :
# 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.
Does anyone have a solution ?
Best regards,