I created a role for my Azure subscription and assigned some users to it. Later I decided to delete it and somehow Azure let me do it without removing the role assignations first. Now I have 3 assignations that I cannot remove because the role does not exist.
While inspecting the network tab I see that the call to /providers/Microsoft.Authorization/roleEligibilityScheduleRequests/{roleEligibilityScheduleRequestsName}?api-version=2020-10-01
fails with the following response:
{"error":{"code":"ResourceNotFound","message":"The resource is not found."}}
As you can see, I get a notification that the assignation were removed succesfully
But after refreshing the page the assignation is still there
If I click on the role, I get a screen with an error because it does not exists
I also tried using the Role Eligibility Schedule API but all I get in response is a 500 response with a very brief An error has ocurred
message.