I am connecting to Az using Powershell:
Connect-AzureAd
Then, i am trying execute command:
Get-AzRoleAssignment -ResourceGroupName 'devtest' -ResourceName 'SA-name' -ResourceType 'Microsoft.Storage/storageAccounts'
And eveything work fine, i am getting results. with -Debug flag i see, that Az executing API method:
POST https://graph.microsoft.com/v1.0/directoryObjects/microsoft.graph.getByIds
Then, i go to Graph Explorer and i try to execute the same method from there with the same account that i logged into Az and i getting an authorization error from call:
When i check, what kind of privilage i need to for perform this action i can see that there is no way that my account have Directory.Read.All permission granted.
So the question is, why i am allowed to do more actions from Powershell tha graph using same account?


