Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Symptoms
When you try to delete an Azure RM service connection, you might experience one of several issues. For example, you may receive a "Failed to remove Azure permission 'RoldAssignmentId'... Failed to remove the service principal from Microsoft Entra ID" error message. Or the connection isn't being removed from the list of service connections, although there is no error.
Resolution
If you experience these errors, you should still be able to delete the connection by selecting the Delete button. However, you must manually delete or edit the service principal by using the Active Directory app in the Azure portal.
If the Delete button doesn't remove the service connection, follow these steps:
- Check whether the connection is automated or manual.
- Get the details for the endpoints by using the REST API.
- Make sure that you set the
includeFailed=trueparameter so that all service endpoints are captured. This should provide more information and show whether an issue affects the service connection (for example, in theisReadyfield). - Try to delete the connections by using the REST API directly. Although the UI makes similar calls, it's always worth checking whether calling the API directly will create a different result.
- If you use the API from the previous step by using the default parameters, and this still doesn't work, you can set the
deepvalue tofalse. This setting causes the program to skip any checks and attempts that are part of the usual process to delete the underlying SPN.
You must manually delete or edit the service principal by using the Active Directory App in the Azure portal.