Open roy-work opened 1 month ago
Hi @roy-work,
2.59.0 is not the latest Azure CLI(2.63.0).
If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.
Thank you for opening this issue, we will look into it.
Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @ms-premp, @ramaganesan-rg.
Describe the bug
All of the documentation (e.g., here) as well as the CLI
az costmanagement
itself, lacks any documentation about how to specify a billing profile as a scope for creating/listing/etc. billing exports.E.g., the docs document, subs, management groups, and even resource groups… but not a billing profile.
Related command
I've tried using the "id" of a billing profile, i.e.,
/providers/Microsoft.Billing/billingAccounts/$acct_id/billingProfiles/$profile_id
, but that doesn't seem to work. (It doesn't error, but it doesn't seem to work; I have an export under that profile, but the command returns[]
.)Errors
N/A
Issue script & Debug output
Expected behavior
To be able to supply a billing profile to the commands under
az costmanagement export
.Environment Summary
Additional context
:face_exhaling: Exporting the bill — the entire bill — seems like the use case. Like, the first, and the biggest, use case. A billing profile is, AFAICT, the object that corresponds to that.
(Perhaps the right management group might, too, if you have everything under one. But my security team is also loathe to grant privs to things above subs/tenants in that hierarchy. But the separate billing hierarchy is easier to request access to.)
(I ended up creating the export via the Portal UI, though even there I'm not able to get it to export to the storage account I want, which is in a different subscription than the subscription with the billing profile.)