Hi there,
When I try to get the reservationOrders list via oauth2 API call I get the authorization failed error as you can see on the attached screenshot:
("message": "The client '545de9ec-53d5-4169-bf0d-55b6caeed4bc' with object id '545de9ec-53d5-4169-bf0d-55b6caeed4bc' does not have authorization to perform action 'Microsoft.Capacity/reservationOrders/read' over scope '/providers/Microsoft.Capacity' or the scope is invalid. If access was recently granted, please refresh your credentials.")
I properly created a custom role which includes the permission for the 'Microsoft.Capacity/reservationOrders/read' resource. After this in the Tenant Root IAM I add this custom role assignment for my above mentioned 545de... Azure app. I also can use the REST API with other resources (for example get the VM list).
Could you please help me what else could cause this authorization failed error for the reservation orders?