If you want to learn Microsoft Graph and start with some sample queries, Graph Explorer should be your main starting point. Let’s compare the “old” way and the “new” way, but first lets get an Access Token for Microsoft Graph. The thing that caught my attention was the added parameters of specifying Authentication and Token with the request. When running PowerShell against Microsoft Graph you would run requests using the command Invoke-RestMethod. This blog post isn’t about the details of PowerShell though, so lets get back to the topic at hand. My computer now runs Visual Studio Code and Windows Terminal with different Profiles, so that I can easily change between environments and run side-by-side: I’ve been using Windows PowerShell mostly previously, as I’m running Windows 10 and use a lot of PowerShell modules that variously depend on SDKs or other Windows Components, but I’m increasingly using PowerShell Core in scenarios for example with Azure Functions PowerShell ( ). The latest version of Windows PowerShell is 5.1, and runs side-by-side with PowerShell Core. In this short blog post I will show you a really simple way to get started authenticating with Oauth to Microsoft Graph using PowerShell Core.Īs you might know, PowerShell Core is the open-source, cross-platform (Windows, macOS, and Linux) edition of PowerShell, with the latest version today being PowerShell 7.0 ( ).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |