-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Issue downloading invoices with az billing invoice #25423
Copy link
Copy link
Closed
Labels
Azure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamBillingaz billingaz billingService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-requestneeds-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK team
Milestone
Metadata
Metadata
Assignees
Labels
Azure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamBillingaz billingaz billingService AttentionThis issue is responsible by Azure service team.This issue is responsible by Azure service team.customer-reportedIssues that are reported by GitHub users external to the Azure organization.Issues that are reported by GitHub users external to the Azure organization.feature-requestneeds-team-attentionThis issue needs attention from Azure service team or SDK teamThis issue needs attention from Azure service team or SDK team
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
I try to download my invoices with the following method:
az billing invoice download --account-name "{accountName}" --invoice-name $invoiceName --download-token "token"
Command Name
az billing invoice downloadErrors:
What i wanted to do
Normally i just want to download all the invoices in all subscriptions. Therefore i tried to use AZ CLI. Unfortunaetly its not really working. I tried also:
With this i get an authentication error | {"error":{"code":"AuthorizationFailed","message":"The client '{UserId}' with object id
| '297db162-cbe2-4cc4-8a24-99ea642014c0' does not have authorization to perform action
| 'Microsoft.Billing/billingAccounts/billingSubscriptions/invoices/download/read' over scope
| '/providers/Microsoft.Billing/billingAccounts/default/billingSubscriptions/subid/invoices/E0800XXXX' or the scope is invalid. If access was recently granted, please refresh your credentials."}}
Environment Summary
Additional Context