In this Azure PowerShell article, we will discuss the syntax and usage of the Get-AzureADMSGroup PowerShell command with examples of how to use this particular command.
Table of Contents
This is an excellent PowerShell command to get the details of the Azure AD groups via the MS Graph.
Syntax of Get-AzureADMSGroup
Below is the syntax of the Get-AzureADMSGroup PowerShell command.
Well, let’s discuss a few examples of how to use the Get-AzureADMSGroup PowerShell command.
You can execute the below Azure PowerShell command to get the details of the lists of the Azure AD groups via MS Graph.
After executing the PowerShell command, I got the expected output below.
PS C:\WINDOWS\system32> Get-AzureADMSGroup
Id DisplayName Description
-- ----------- -----------
26a1666e-6584-4afe-9218-44b0dd452426 NewTsInfoGroup This Group belongs to Ts...
d7496713-3252-4601-afa8-d3d8b86dea72 AAD DC Administrators
Check out the same output below
Execute the below PowerShell command to retrieve the details of the Azure AD group based on the specified filter condition.
Connect-AzureAD -TenantId 5d9d690a-0310-474d-ae8b-42df2d549228
Get-AzureADMSGroup -Filter "startswith(DisplayName,'NewTSGroup')"
After executing the above command, I got the expected output, as shown in the screenshot below.
You can execute the below PowerShell command to get the details of a specified Azure AD group via MS Graph based on the ID specified.
Get-AzureADMSGroup -Id 26a1666e-6584-4afe-9218-44b0dd452426
After executing the PowerShell command, I got the expected output, as shown below.
Get-AzureADMSGroup – Video Tutorial
You can check out a Video tutorial on Get-AzureADMSGroup Command.
In this Azure PowerShell article, we discussed the syntax and usage of the Get-AzureADMSGroup PowerShell command with examples of how to use the Get-AzureADMSGroup command. Thanks for reading this article !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.