rest api budgets create-or-update

Prasad, Rakesh 221 Reputation points
2022-03-21T11:44:57.84+00:00

hi,

i am trying to create budget via Azure api.

I am able to do it if I do not send "contactGroups" attribute. (which is action group).

Action group exists and from azure portal, i am able to select that particular Action Group. for same RG and Budget.

app/client ID i am using to run REST API has following access:
Billing Reader
Cost Management Contributor

again, i am able to create budget via REST api, but it doesnt work if i am trying to send valid "contactGroups" attribute.

Azure Cost Management
Azure Cost Management
A Microsoft offering that enables tracking of cloud usage and expenditures for Azure and other cloud providers.
2,143 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad, Rakesh 221 Reputation points
    2022-03-24T15:38:02.157+00:00

    I was able to resolve it.

    app_id i was using did not have reader access to the RG where my action-group was residing .

    so i added app_id as reader to the RG, and it worked.

    1 person found this answer helpful.