🚀 How to List All Azure Resources Using PowerShell and Azure Service API
In this video, we walk you through how to register an app in Microsoft Entra ID, authenticate with PowerShell 7, and use the Azure Service API to list all resources across multiple Azure subscriptions.
🔹 What You'll Learn:
✅ How to create an App Registration in Entra ID
✅ Assign the necessary permissions and roles
✅ Use PowerShell 7 to connect to Azure Service API
✅ Retrieve and list all resources across all subscriptions
✅ Understand how authentication and API access work in Azure
This tutorial provides a step-by-step guide, explaining how **PowerShell, Entra ID, and the Azure API** work together to enable automation and management of your cloud infrastructure.
📌 Commands & Scripts:
https://raw.githubusercontent.com/kramit/AZ104-Notes/refs/heads/master/Fun%20Demos/AppRegDemo.ps1
Timestamps
00:00 Intro and overview
01:10 Whiteboard Explanation
04:40 Logic app and Managed Identity
08:10 Logic app Service Principal
09:03 PowerShell App Registration whiteboard
11:10 Register a PowerShell App
14:30 PowerShell code explanation
19:30 Excecuting the PowerShell Code
23:11 Examine a Token
25:45 Setting the IAM Permissions
28:00 Code running fully
30:00 Examples in Python and GoLang
33:00 Thanks for Watching Like and Subscribe