PowerShell Microsoft Graph API: No Modules, No Dependencies, No Limits
Descarga y escucha en cualquier lugar
Descarga tus episodios favoritos y disfrútalos, ¡dondequiera que estés! Regístrate o inicia sesión ahora para acceder a la escucha sin conexión.
PowerShell Microsoft Graph API: No Modules, No Dependencies, No Limits
Capítulos
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ásIn 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
- Episode page: the full episode with chapters, quotes and FAQ on module-free Graph scripts
- Microsoft Graph – the single API surface called directly via REST instead of through PowerShell modules
- Microsoft Intune – the first demo cleans up stale Intune devices through Graph with a dry-run flag
- Automation – unattended scripts on Azure Automation, Functions and GitHub Actions using managed identity
- Related episode: Automating Azure Securely: Microsoft Graph, Identity & Cloud Automation with Ahmed Uzejnovic [MVP]
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.
Información
| Autor | Mirko Peters M365, Azure & AI |
| Organización | m365 FM |
| Página web | www.m365.fm |
| Etiquetas |
Copyright 2026 - Spreaker Inc. an iHeartMedia Company
Comentarios