Trascritto

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

9 dic 2025 · 22 min. 39 sec.
PowerShell Microsoft Graph API: No Modules, No Dependencies, No Limits
Capitoli

01 · The Future of PowerShell Scripting

0 sec.

02 · The End of Modules

24 sec.

03 · REST API: The Better Alternative

41 sec.

04 · Token Acquisition Methods

3 min. 39 sec.

05 · The Core REST Pattern

4 min. 48 sec.

06 · Common Mistakes to Avoid

5 min. 34 sec.

07 · Quick Wins with Graph

6 min. 23 sec.

08 · Enterprise Demo 1: Intune Device Cleanup

7 min. 20 sec.

09 · Enterprise Demo 2: Identity Onboarding

10 min. 22 sec.

10 · Enterprise Demo 3: Compliance Drift Detection

13 min. 16 sec.

Descrizione

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 di più
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 meno
Informazioni
Autore Mirko Peters M365, Azure & AI
Organizzazione m365 FM
Sito www.m365.fm
Tag

Sembra che non tu non abbia alcun episodio attivo

Sfoglia il catalogo di Spreaker per scoprire nuovi contenuti

Corrente

Copertina del podcast

Sembra che non ci sia nessun episodio nella tua coda

Sfoglia il catalogo di Spreaker per scoprire nuovi contenuti

Successivo

Copertina dell'episodio Copertina dell'episodio

Che silenzio che c’è...

È tempo di scoprire nuovi episodi!

Scopri
La tua Libreria
Cerca