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
Automated Onboarding, Part 3 - Account Creation
1/15/2025

Why shouldn't accounts be created manually?

Humans are inconsistent, forgetful creatures. Ask us to do the same thing two or three times and chances are we'll do it two or three different ways. Manually clicking through a UI to create accounts leaves room for error, takes time, and ultimately costs money, particularly if the job is outsourced. Greater consistency, efficiency, and savings is an easy sell.

In this article, we'll build a system that creates accounts in two clicks.

Creating Entra ID accounts programmatically

There's two s...

Entra ID, Powershell, Azure Functions, Power Automate
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