Azure / azure-powershell

Microsoft Azure PowerShell
Other
4.23k stars 3.83k forks source link

[Eng]: AzureAD Module parity between PowerShell desktop client vs Powershell on Azure Cloud Shell(Azure Portal) #24317

Open NamsooChoi-MSFT opened 7 months ago

NamsooChoi-MSFT commented 7 months ago

Description

A customer was signed-in to Azure Portal with a Global Admin, ran 'Remove-AzureADOAuth2PermissionGrant' but it failed with "Code: Authorization_RequestDenied, Message: Insufficient privileges to complete the operation." The customer opened PowerShell desktop client, signed-in with the same account having Global admin and ran the same command and it worked. So, it seems there is a parity issue.

microsoft-github-policy-service[bot] commented 7 months ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @dkershaw10, @baywet.

isra-fel commented 7 months ago

Also please be aware of the retirement of AzureAD module Checkout https://techcommunity.microsoft.com/t5/microsoft-entra-blog/important-azure-ad-graph-retirement-and-powershell-module/ba-p/3848270