Transcrito

PowerShell Microsoft Graph API: No Modules, No Dependencies, No Limits

9 de dic. de 2025 · 22m 39s
PowerShell Microsoft Graph API: No Modules, No Dependencies, No Limits
Capítulos

01 · The Future of PowerShell Scripting

0s

02 · The End of Modules

24s

03 · REST API: The Better Alternative

41s

04 · Token Acquisition Methods

3m 39s

05 · The Core REST Pattern

4m 48s

06 · Common Mistakes to Avoid

5m 34s

07 · Quick Wins with Graph

6m 23s

08 · Enterprise Demo 1: Intune Device Cleanup

7m 20s

09 · Enterprise Demo 2: Identity Onboarding

10m 22s

10 · Enterprise Demo 3: Compliance Drift Detection

13m 16s

Descripción

PowerShell scripts built on MSOnline, AzureAD or heavy Graph modules break on Linux runners, containers and CI/CD. This episode shows admins and automation engineers the module-free token, headers and REST...

mostra más
PowerShell scripts built on MSOnline, AzureAD or heavy Graph modules break on Linux runners, containers and CI/CD. This episode shows admins and automation engineers the module-free token, headers and REST pattern for Microsoft Graph, three auth flows and three enterprise demos for Intune cleanup, onboarding and compliance remediation.

In this episode
  • 00:00 – Why PowerShell modules are legacy
  • 03:32 – The core pattern: token, headers, REST
  • 07:41 – Demo 1: Intune device cleanup
  • 10:35 – Demo 2: Identity onboarding via Graph
  • 13:20 – Demo 3: Compliance drift remediation
  • 16:14 – Architecture and best practices
  • 20:50 – The token audience gotcha

Key takeaways
  • Calling Microsoft Graph directly with Invoke-RestMethod removes module load times, dependency conflicts and the lag between new Graph features and module releases.
  • Use device code for local testing, client credentials with a certificate for unattended automation, and managed identity wherever the workload runs in Azure.
  • Production Graph scripts need paging via nextLink, retry with backoff on throttling, a dry-run flag, logging of request IDs and a token audience that matches Graph.

Worth quoting

“Waiting for a module means waiting for a maintainer who isn't on your payroll. Meanwhile, your project deadline didn't move.” – Mirko Peters (02:26)

“Managed identity means no secrets at all. That's the point. Less to steal, less to rotate, less to screw up.” – Mirko Peters (01:07)

Explore more on M365.FM

Follow and rate M365.FM in your podcast app, and join the free M365 community at m365con.net.

Become a supporter of this podcast: https://www.spreaker.com/podcast/m365-fm-microsoft-365-azure-cloud-power-platform-ai--6704921/support.
mostra menos
Información
Autor Mirko Peters M365, Azure & AI
Organización m365 FM
Página web www.m365.fm
Etiquetas

Parece que no tienes ningún episodio activo

Echa un ojo al catálogo de Spreaker para descubrir nuevos contenidos.

Actual

Portada del podcast

Parece que no tienes ningún episodio en cola

Echa un ojo al catálogo de Spreaker para descubrir nuevos contenidos.

Siguiente

Portada del episodio Portada del episodio

Cuánto silencio hay aquí...

¡Es hora de descubrir nuevos episodios!

Descubre
Tu librería
Busca