When you need to work with service principals in your Azure environment, you are probably creating them via some script using the az ad sp command.
This works quite well, but these are created with your account. The account you used to log in with the Azure CLI. The same goes when using PowerShell, it’s always running in the context you used to log in. Most of the time your personal or environment administrator account.
Read more →