🔐 Assigning API Permissions to Managed Identities in Azure
If you’re using Azure Managed Identities and want to assign Microsoft Graph API permissions — here’s how to do it securely using PowerShell. No secrets. No manual portal work. Just automation and the principle of least privilege. 🧩 Step 1: Connect to Microsoft Graph Connect-MgGraph -DeviceCode -Scopes "AppRoleAssignment.ReadWrite.All", "Application.Read.All" What it does: Authenticates your session to Microsoft Graph with the right scopes to read and assign app roles. 💡 You’ll be prompted with a device code login. ...