Thoughts on information security, code & automation, and other myriad interests of mine.

Home
Resources
About
GitHub
LinkedIn

Tags

  • Autopilot (1)
  • Azure (1)
  • Azure Functions (1)
  • Enrollment Status Page (1)
  • Entra ID (2)
  • Intune (2)
  • MS Graph (1)
  • Power Automate (1)
  • Powershell (2)
  • SCIM (1)
header image
Assigning MS Graph permissions to managed identities in Azure
10/23/2024

Assigning permission

Recently I needed to grant a Powershell script, running in a Function App in Azure, access to read the properties of devices in Intune. I quickly generated a managed identity for the app and went to assign it the "DeviceManagementManagedDevices.Read.All" permission for MS Graph. It turned out that none of the built-in roles in Azure included this permission, and that it was necessary to use use Powershell instead.

The examples I found used the deprecated AzureAD powershell module, so I built a new script with the updat...

Azure, MS Graph, Powershell