In renewing the secret key for a service connection, I accidentally also set Resource group to a specific group, whereas previously it was left blank so it had access to the whole subscription.
I want to revert it back so it has access to the whole subscription, but I cannot seem to clear out the Resource group, it seems like once it's set, it cannot be cleared out.
Short of deleting this service connection and creating a new one with same name, is there some other way to set Resource Group to blank/empty spaces? I could not find any az cli or ps command. I know I could manually grant access to the service principals but then it could be misleading from the UI perspective since it only shows one resource group.

This is purely a UI limitation. If you open your Chrome Developer Tools, you can see the request being sent in the Network tab, with the "scope" property and its value. If the same request is sent, where scope is empty (as @unknown has shown in his answer), you'll get your desired result.
You can do this easily by right clicking the request in the network tab of your Chrome Developer Tools (after clicking "Save"), and choose Copy As -> Copy As Fetch.
Then paste this into your console of Chrome, update the body so that the scope is just an empty string, and press enter.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With