Jump to content
  • Connect microsoft graph powershell

    Import the module in PowerShell. . Microsoft Graph is a RESTful web API that enables you to access Microsoft Cloud service resources. com/. This Azure AD Enterprise App is called Microsoft Intune and available in every Azure AD tenant. 1+ session using the following command: May 08, 2019 · # This example is specific to Windows PowerShell 5. Use Microsoft Graph API with PowerShell – Part 1 Microsoft GRAPH API is the latest standard to automate Azure and Office 365 Ressources. Provide consent. Afterewards you can connect to Microsoft Graph as usual: Connect-MSGraph. com/nicolonsky. ². This is a good starting point to size the Oct 10, 2018 · Graph API is Microsoft’s master communication service that connects and handles data between almost any Azure or Microsoft 365 service in the background. These are some basic PowerShell functions I use when working with Microsoft Graph. I’ve begun building a scripted solution for migration of Planner instances, Buckets and Tasks. Aug 19, 2020 · Question from Justin during our webinar, “Microsoft Graph Basics for PowerShell Admins”: Is Graph data sorted in some way so TOP returns the same value every time, or will it just return the first object that happens to be returned? Microsoft Graph implements OData pagination in order to return large amounts of data in chunks. Use the Microsoft Graph API – Microsoft Graph Mar 05, 2020 · Click Add (+) > Select an API > choose the “Microsoft Graph” API and click Select. com/ and select “Add an App”. NET Standard 2. Aug 05, 2020 · For automating with Microsoft Graph and using PowerShell. This can be done with the following script. You only need to do this once per session. 2) Use the username, password and PowerShell client id to get an access token from ADAL. We will do this in the Azure Portal (portal. 1 domain-joined computers to Windows 10 devices joined to either Azure Active Directory or Active Directory (Hybrid Azure AD Join) by using Windows Autopilot. Features In-memory and at-rest security of the Access Token, Refresh Token, and Client Secret. Connect with me on  20 Dec 2017 oAuth is used to authenticate and maintain the connection between, in this case the PowerShell session and Microsoft Intune via the Graph API  16 Apr 2020 Getting an access token for AzureAD using PowerShell and device login flow to using Connect-AzAccount on PowerShell where the user is asked In my case, I'm going to use the token to access Microsoft Graph API s 21 Dec 2017 In this article I will show you how to connect Microsoft Graph and query user details using SharePoint PnP PowerShell Online module. After that press the Add Permission button. Lets have a look at downloading the module, connecting to Microsoft Graph and querying our Intune data. The example below shows how we can send an email using the Gmail SMTP server but using MailKit. 8 Jan 2019 Microsoft Graph connects resources across Office 365 services. com/devicelogin and enter the code when prompted. microsoftonline. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 Sep 23, 2018 · The CSV data that you get in the portal is the same as you get if you query Microsoft Graph (Microsoft is probably using Graph as well). Intune Ones you have installed it, first time you need to use Connect-MSGraph -AdminConsent Microsoft Graph REST API is much quicker than a standard module. This module is available on the PowerShell gallery, thanks to a community contribution from the Microsoft Cloud Security’s Customer Experience Engineering team. The API not only allows you to access data from Microsoft 365 but also modify and delete it. Now  24 Oct 2020 Microsoft Graph is an development tool that connects to multiple Microsoft 365 services to allow querying data and automate tasks. You can also test the URI in Graph Explorer. Authenticate to Microsoft Graph (with permissions . Authentication” is the minimal starting point in order to connect to Microsoft Graph. See full list on github. Connect PowerShell to the Tenant. While PowerShell is a great fit for Graph, I . 1 is the underlying version and we are using the latest . Open Notepad and paste the following script. NET library (via the MSAL. In the response, we see a value property which contains the first 100 users in the organization. I have been having a difficult time being able to authenticate with the graph API using powershell. And here you have an introduction to this topic here. PS PowerShell Module) to authenticate to Microsoft Graph use the Access Token for Microsoft Graph queries using PowerShell You will need the MSAL. So let’s list all users in the organization. Refer to this link to see the list of Graph API’s available for Microsoft Teams. Go to Settings > Properties > Copy the Application ID and use that id for ClientId parameter in the below script. azure. Call Microsoft Graph. Microsoft Intune PowerShell app in Azure AD. Disconnect-Graph. Intune and accept any potential prompts for acceptance. 1 function Connect-MSGraphAPI { # Check if CredentialManager PowerShell module is loaded, if not, load it: $credManMod = Get-Module -Name CredentialManager if (!$credManMod) { Install-Module -Name CredentialManager Import-Module -Name CredentialManager } # Define the URI using your own Azure tenant name: $tenantName = "contoso" $graphRequestUri = "https://login. Especially for bulk changes and reports, but you can also use it to see the properties of a user. I only want to query user information so I will use User. Through a number of my previous posts I’ve interacted with the Graph API using client libraries such as the Microsoft. 6 Jan 2021 You can add additional permissions by repeating the Connect-MgGraph command with the new permission scopes. We now have a new PowerShell module for the Microsoft Graph Security API that makes it easier for IT Pros to connect with the API from a PowerShell console. I have been following this blog, and this more recent one. Try the In-Tune managed devices connection (Get-IntuneManagedDevice | Get-MSGraphAllPages) Thanks, Manu  Feb 26, 2020 · Important! This blog post has been deprecated and replaced by DCToolbox. Did you see that the Admin consent required column was set to Yes on that permission? Nov 10, 2018 · PowerShell and the Microsoft Graph. Dec 10, 2019 · After getting a token, you use the native PowerShell cmdlet Invoke-RestMethod to interact with Microsoft Graph. default’. If you execute that without any command line parameters, this is what you’ll see: leverage the MSAL. Graph is Microsoft’s API for Microsoft 365. IdentityModel. 9 Aug 2018 I've been working with Graph, the API gateway for Microsoft's vast array of services, over the last year. All. Connect MS Grpah. This article was recently published by Microsoft:IT Pros can now easily connect to Microsoft Graph Security with the PowerShell Module!and one… Fire up an elevated Powershell and run Install-Module -Name Microsoft. Read". com Jan 02, 2020 · To connect to the graph, the first thing you need to run is the Connect-Graph cmdlet. The Microsoft Graph modules support authentication via device code flow (accessing the API as user) or via client  Connecting to Graph. Now that we have obtained a valid token, we are ready to consume it while performing an action against the Microsoft Graph API. Now we have an access token in our $Token variable. May 22, 2017 · Here are the steps we are going to do: 1) Make sure we have the username and password of a user in Azure AD. 0/users' -token $token. OK – we are almost finished. This function is a general Graph connect function and it will connect to Graph and then call  23 Aug 2017 For this blogpost, I'm connecting to Azure using a user that is a Global Administrator. Most of these applications are easy to connect  6 May 2020 The latest version of Windows PowerShell is 5. All". com/oauth2/v2. When working as a user, you needed to enter the code and  10 Nov 2018 With Microsoft Graph, you can connect to a wealth of resources, relationships, and intelligence, all through a single endpoint: https://graph. To register an Azure application navigate to https://apps. Jun 06, 2019 · We talked about what is Microsoft Graph, how to start use it and how to use Intune Graph PowerShell SDK. microsoft. There are many ways to get a token from the Graph API, depending on if you  Contribute to microsoftgraph/msgraph-sdk-powershell development by creating Ensure the certificate is present in the store before calling Connect-MgGraph . I will use a Certificate. \Microsoft. Azure Function, Azure Web App) that connects to Microsoft Graph to  8 Dec 2020 Registering the application in Azure AD works the exact same as when we are using Application Permissions. com’. # Connect To Graph and authenticate using Delegated access via Device Code Flow. Default) for specific Azure AD tenant using client id and certificate. Connect to the Graph See full list on thelazyadministrator. com Mar 02, 2020 · To connect against Graph with application permission we will need to build a JSON variable with application id and secret. Registering your App. Most of these applications are easy to connect to once you know how to connect to the Microsoft Graph API. You can  12 May 2020 Connecting to GraphPermalink. The Microsoft Graph modules support Jan 28, 2021 · I’ve spent the past few day wrestling with the using Microsoft Graph with PowerShell, and it hasn’t been fun. Hello, I recently played with Microsoft Graph API and PowerShell. How can you handle this? It's really easy, open your Azure AD  23 Sep 2018 PowerShell function that connects to Microsoft Graph. PS PowerShell Module installed. If you are already used to PowerShell and modules, the toolkits you use to work with and automate your cloud environment, the chance that its all Graph API deep inside these modules is big. com. Personally, i like REST-API´s, especially when they are the direct layer between me and the datasource i want to access. We also need to pass a grant type of ‘client_credentials’ and scope with a value of ‘https://graph. There are a few steps required to start using Graph which involves creating a app registration on Azure to issue authentication tokens and API permission to view data. You need to authenticate with a Microsoft Identity to get an access token to call Microsoft Graph modules. The explanation of how to construct the URI is here: Use the Microsoft Graph API. This module strives to make PowerShell administration and automation tasks via the Microsoft Graph API more like other PowerShell commands. As the first iteration of this, I’ve created a PowerShell / Graph script which will export Planner and contents to a batch of CSV files. You saw hos to create an AzureAD application, how to assign permission, how to create a secret, how to upload a certificate for modern unattended authentication, how to connect with Microsoft. Graph PowerShell module (Connect-MgGraph), but I have to do this process of copy and pasting a URL from the console to my browser then copying and pasting a code from the console into the page in the browser and and so on whenever I want to use Connect-MgGraph. Nov 19, 2018 · For our PowerShell function to be able to connect to Graph and retrieve the data we must first register an application in Azure AD and grant it permissions to read the required data. Next step is to put in Authorize the app and export your Access Token. Take a note that the known Take a note that the known Useful PowerShell Commands for Exchange 2007 Part 1 Here are some Powershell Commands for Exchange 2007/2010, which may useful for you. 10 Jun 2020 I will be writing another blog very soon to get all Apps used in Teams of a tenant which will be based on above concept. GraphServiceClient])] param ( # Identifier of the client requesting the token. Dec 09, 2020 · After some investigation, it was a job for Microsoft Graph API. With Microsoft Graph, you can connect to a wealth of resources, relationships, and intelligence, all through a single endpoint: https://graph. Before going ahead, make sure you have the Microsoft. This can be done with the following command: Connect-MSGraph -AdminConsent; Service Account Oct 29, 2020 · I looked at using the Microsoft. Grant the required permissions for the App (ex: “Read and write all users’ full profiles”, “Read and write all groups”). Note that all the cmdlets are prefixed with Mg which produces cmdlets in the format of verb- Mg noun: Get-MgGroup; Get-MgUser; Get-MgConditionalAccessPolicy; Connecting to Graph. When working as a user, you needed to enter the code and then sign-in as your user. Dec 08, 2020 · In the PowerShell window, you’ll see a message similar to the below: Navigate to the URL https://Microsoft. Use Microsoft Graph to build apps for organizations and consumers that connect to a wealth of resources, Optimally, we would use an official PowerShell module from Microsoft for this t 4 Mar 2019 If you are working with Microsoft Intune on a daily basis, chances are that you are familiar with the awesome Powershell Intune Graph script  Use PowerShell for Microsoft Graph. To connect to the Microsoft Graph API using PowerShell we will have to install the PSMSGraph PowerShell module from here. They will be working on a better experience in the future, but for the alpha release those are the required steps: Jan 20, 2020 · The Microsoft Graph PowerShell Preview 0. All","Group. Update-MSGraphEnvironment -SchemaVersion 'beta' #Run Dec 05, 2019 · Command "Connect-AutopilotIntune" is not found when converting Windows 7 or Windows 8. Once a token is aquired, we are ready to call the Graph API. PowerShell Script. Connect-MgGraph -Scopes "User. Once the module is installed we can now connect to graph. We are going to connect to Graph with Powershell, OAuth 2. Aug 20, 2020 · Sending an PowerShell Email via MailKit. How would an automation/service account work, do you make an app password or some other method? – Question asked by: Korey; How we can connect without attending and use the browser to authorize the device? gave it a set of Microsoft graph permissions in Azure AD You must use this route if you want people outside your Azure AD (Microsoft accounts) to use the app If you ONLY Want to work with accounts in Azure AD you can set up your app with these instructions which I lifted from In our case we want to connect from a simple PowerShell script, and since we would like to do it without user interaction or logging in we can choose the client credentials grant flow. May 12, 2020 · Whereas the “Microsoft. That means you now need to authenticate using the Connect-MSGraph cmdlet. You can read Apr 16, 2020 · Intune Graph Powershell module installed (Install-Module Microsoft. Get-MgUser. In this example, PowerShell 7. You created the app registration and you got two important values: The App ID and the Secret. There are several modules available that will get in to the Microsoft Graph REST API, but almost all of these have each (Report) query custom made in a cmdlet. Install-Module Microsoft. Controlling Naming in Microsoft Teams February 17, 2020 Nailing Your Naming Convention with Azure Policy February 10, 2020 Using Tags in Azure November 19, 2019 How to connect to Microsoft GraphAPI with PowerShell January 31, 2019 Dealing with Long Paths in PowerShell January 26, 2019 What is Windows Sandbox? January 9, 2019 The Values you need. # Retrieve all users. Aug 23, 2017 · According to Microsoft, Microsoft Graph is: …your entry to automate things in the cloud via the Microsoft Graph API. Need to connect to Microsoft Graph with PowerShell? The following PowerShell script does just that (pretty easily)! So what is Microsoft Graph API? “Microsoft Graph is a Microsoft developer platform that connects multiple services and devices. To connect to PowerShell, just install the required software and then connect to your Microsoft 365 organization. After you register your Microsoft Graph is the evolvement of API’s into Microsoft Cloud Services. You can authenticate for delegated access (via Device Code Flow) or via Client Credential Flow with a certificate, see Microsoft Graph PowerShell SDK (Preview) on GitHub. com/$tenantName. You can do that quickly from an Administrative PowerShell 5. All as the scoped permission. Microsoft Graph is also for accessing the Exchange Online related things – or many many other parts of the O365 administration. ActiveDirectory. Where do we start? Register an AzureAD app  10 Oct 2018 Graph API is Microsoft's master communication service that connects and handles data between almost any Azure or Microsoft 365 service in  5 Aug 2020 Blog by: Dmitry Sotnikov · For automating with Microsoft Graph and using PowerShell. Connect-MSGraph -AdminConsent. Apr 17, 2019 · I recently published an article on how you can browse the Microsoft Graph directly from a web page here:using the Microsoft Graph ExplorerThe next step is to start working with the Microsoft Graph using PowerShell. $Users = Invoke-MSGraphQuery -URI 'https://graph. I will use a client secret. Here, we connect interactively as a user Jan 08, 2019 · This PowerShell module will provide support for the Intune API using Microsoft Graph. Graph. if you do, you just get a flashing cursor as shown above that eventually times out. ch". psd1. psd1Import-Module . 1. The first issue is that you can’t use the connect-graph command in the PowerShell ISE in Windows 10. The next step is to connect to Teams in the tenant. Read. Let me explain. Create an Azure AD web app  10 Dec 2019 This is a post about using PowerShell and Microsoft Graph to access data in Microsoft Intune PowerShell application allows you to connect to  8 May 2017 We are going to connect to Graph with Powershell, OAuth 2. To interact with Graph we need to register our  17 Jun 2019 Get tokens and connect to Microsoft Graph using REST and OpenID Connect, and create a web application that requests additional  11 Jul 2018 Need to connect to Microsoft Graph with PowerShell? The following PowerShell script does just that (pretty easily)!. Oct 24, 2016 · This can be achieved by using Microsoft Graph. DESCRIPTIONThis function saves you from logging in twice to both mggraph and the az powershell module by fetching a token using your azure context. A typical GET request is Invoke-RestMethod –Uri [the resource URI] –Headers [the token obtained by authenticating] –Method Get. The PSMSGraph Module is also available on the PowerShell Gallery. # Disconnect. Register an See full list on gcits. Because I live and brethe PowerShell I chose to work with Microsoft Graph through a PowerShell script but it’s also possible t9 do this from a . Mar 05, 2020 · Connect Microsoft Graph API using PnP PowerShell March 5, 2020 December 21, 2017 by Morgan In this article I will show you how to connect Microsoft Graph and query user details using SharePoint PnP PowerShell Online module. 0/token" # Get the Dec 20, 2017 · To be able to communicate from PowerShell with Microsoft Intune via the Microsoft Graph API, Microsoft created an Azure AD Enterprise App which can be used. Using https:// graph. Clients. Connect to Microsoft Graph with delegated credentials (interactive login will Jan 23, 2020 · Connect to Microsoft. That post triggered me to look at the PowerShell possibilities, as the Microsoft Graph has an API and an API can be used with PowerShell. com). In PowerShell, we can leverage the Invoke-RestMethod cmdlet to send HTTPS requests to the Microsoft Graph API. The last thing you will need to start Graph scripting with PowerShell is the primary domain name of your tenant – the one with the trailing ‘. 0 version of the DLL. Connect to the Graph API. To be able to manage the identity used and verify data I use the AzureADPreview Module and AzureRM Module. Connect-Graph -Scopes "User. Open an admin PowerShell Window and run the below command. Import-Module . Intune module. Graph) If you’re not familliar with administrating MEM via Powershell, the first command you’ll need to run is: Connect-MSGraph In addition, since we need to use the Beta API’s we also have to update our environment. com May 01, 2019 · Running PowerShell as an Administrator, you will need to run the following and allow install from the untrusted repo as well as installing the NuGet package: Install-Module -Name MicrosoftTeams. ReadWrite. Intune. com/v1. This is a great tool that Microsoft provided to us to interact with a wide range of Microsoft SaaS application: Jan 09, 2020 · To connect to a specific tenant we need to update the AuthUrl to contain the tenant id or any registered domain name of the target tenant before connecting: Update-MSGraphEnvironment -AuthUrl "https://login. In the Azure AD Portal, open the  13 Jul 2020 Setting up the Application Registration allows connection through media such as Powershell or Microsoft Graph Explorer (more on this later). onmicrosoft. So let’s see this in action, using the Azure AD app, set up earlier, connecting the Graph to retrieve a list of groups that are associated with Microsoft Teams. Save the file as script. 1 . #> function Connect-MsGraph { [CmdletBinding (DefaultParameterSetName = 'PublicClient')] [OutputType ([Microsoft. See full list on blog. Please feel free to use them if you find them useful. 1, and runs side-by-side with When running PowerShell against Microsoft Graph you would run Logic Apps with Azure AD OAuth – Part 3 Connect to API from Power Platform&nb 2 Jan 2020 But the new Microsoft Graph PowerShell module has changed that. This API gives you access to AzureAD, Excel, Intune, Outlook, OneDrive, OneNote, SharePoint, and more. 0. My end goal is to be able to query some of my OneNote pages, and I am able to use the graph explorer to authenticate using my personal Microsoft account. By creating an Azure AD application it allows you to interface directly with Azure AD, Office 365, EMS etc using Graph API. ps1. As a PowerShell MVP i often use REST and PowerShell, today i needed to get some data from Microsoft Graph. This will give you a code, and a page to open in your browser where you enter that code and authenticate, and after that, you will be connected. 24 Oct 2016 However, to successfully connect with the Microsoft Graph API there are a few prerequisites that should be in place. So what is Microsoft Graph  16 Apr 2020 Making PowerShell automation easier with the Microsoft Graph modules, connecting to Exchange Online with PowerShell and so on. A couple of weeks ago there was a blog post on the Microsoft Intune Support Team Blog about Using the Microsoft Graph API to access data in Microsoft Intune. The question i needed to answer was: „Which groups is a user member of in the Azure Active Directory. Nov 29, 2020 · Microsoft Graph API PowerShell AzureAD App. We will be connecting to the following services with one script (only 12 lines of code) and one service principal with no authentication prompts: Azure AD (AzureAD module) Exchange Online (ExchangeOnlineManagement V2. An admin user must provide consent for this app to be used. 12 Aug 2019 This will present you with not just the Graph API but a ton of other applications in the Azure as well. 0 Module) Azure (Az module) Microsoft Graph (Microsoft. connect-Azuread. 0 via PowerShell. Graph PowerShell module, how to use the module to get some information out of the Microsoft Graph. 2) Use the access token to call the Microsoft Graph REST API. Mar 20, 2018 · Connect to the Microsoft Graph API with PowerShell. I will use credentials. Now, let’s finally use PowerShell for Microsoft Graph API Nov 11, 2020 · Making a call to the Graph in PowerShell. com you can connect to these services and access a  12 Aug 2019 If you want to connect to Microsoft Graph you have to register an Azure App first. Log in as your admin user and you’ll be prompted to close the browser window and continue in PowerShell. There are two versions of the PowerShell module that you can use to connect to Microsoft 365 and administer user accounts, groups, and licenses: Azure Active Directory PowerShell for Graph, whose cmdlets include AzureAD in their name Nov 22, 2020 · First step to use the Graph SDK is to install the PowerShell Module. Register an Azure App. So I did some research, and got an idea that how about make my own PowerShell module for Microsoft Planner using Microsoft Graph. 0 and REST. To interact with Graph we need to register our app. dll on your machine. The command prompts you to go to a web page to sign in using a device code. NET application or anything that can talk with a REST API. For the example script, I use a combination of PnP PowerShell and calls to the Graph APIs using the Invoke-RestMethod cmdlet. New PowerShell sample gets IT pros to easily connect with the Microsoft Graph Security API! ‎11-05-2018 11:19 AM We heard your feedback and are happy to introduce PowerShell sample for Microsoft Graph Security API. Jul 03, 2019 · To install it from PowerShell Gallery use the command Install-Module -Name Microsoft. Oct 24, 2020 · Microsoft Graph is an development tool that connects to multiple Microsoft 365 services to allow querying data and automate tasks. SYNOPSISConnect to Microsoft Graph using an "Az" powershell module context. “ Microsoft Graph API App registrations need permissions in AzureAD; We need the application ID and secret, redirectUri or certificate to make a connection to Microsoft Graph API with PowerShell. Tip: You can verify the directory role a user has in Intune, by  5 Apr 2019 Unattended Microsoft Graph API calls with PowerShell We will register the application using PowerShell commands. Once you've done that, the command indicates success with a Welcome To Microsoft Graph! message. May 08, 2017 · Microsoft Graph API gives you the ability to interact with the continually evolving Azure services through a single endpoint: https://graph. au This module strives to make PowerShell administration and automation tasks via the Microsoft Graph API more like other PowerShell commands. dev. kloud. Apr 02, 2020 · Graph API can be used to automate the Microsoft Teams lifecycle such as creating teams, channels, adding members etc. Using this flow we will need to create an app registration in our Azure AD and give it API permissions for Graph. Last week, Tom Degreef asked if there is PowerShell Module for Microsoft Planner. Nov 02, 2019 · So, with this new release, the WindowsAutopilotIntune module is now built on top of the Microsoft. For me not being a developer, a key difference is interacting with with Graph API using OAuth 2. Intune module) PowerShell – Microsoft Graph API. For example, if you want to read the log for risky sign-ins, or want to access the Conditional Access policies, or want to list the To-Do’s from the Microsoft 365 secure score, Graph is your friend. By using the “out of the box” Microsoft Intune PowerShell app you do not have to set any permissions to get access to Microosft Intune via the Microsoft Graph API. get-user Does anyone know how to add multiple IP addresses to the parameter -IPRanges in the Graph PowerShell module cmdlet of Set-AzureADMSNamedLocationPolicy? I've tried numerous approaches but nothing seems to work or worse, the second address is appended as a string. Click on Microsoft Graph > Application Permissions > Security Events and check the SecurityEvents. 1 is now available on the PowerShell Gallery. EXAMPLEConnect-MgGraphAzConnects with your current default Azure context. Connect to the latest conferences, trainings, and blog posts for Microsoft 365, Office client, and SharePoint developers. You can use the Microsoft Graph API to build apps for organizations and consumers that interact with the data of millions of users. Oct 30, 2017 · Use the access token to call Microsoft Graph. There are a  22 Jul 2019 Graph is Microsoft's RESTful API that allows you to interface directly with Azure AD, Office 365, Intune, SharePoint, Teams, OneNote, and a  23 Jan 2020 Connect to Microsoft. 9 Jul 2020 How to use the Microsoft Authentication Library (MSAL) with PowerShell and Delegated Permissions to get an Access Token & silently refresh  4 Feb 2020 Depending on the permissions requested, the response to Connect-Graph is either a connection (“Welcome to Microsoft Graph”) or an instruction  Wanted to run some of the MS graph powershell modules like "Get- IntuneManagedDevice | Get-MSGraphAllPages" but this requires token which  30 Oct 2017 Background - Microsoft Graph. Clients SYNOPSIS: Example script to create a registered application that for example can be used when connecting using PowerShell to the MS Graph. 19 Mar 2020 Connect to MS Graph · List PowerShell Scripts · Get a PowerShell Script · View Script Content · Create a Script · Update a Script · Add an Assignment. Jul 04, 2017 · AzureAD Graph API PowerShell.