In this Azure PowerShell article, we will discuss the syntax and usage of the New-AzADGroup PowerShell command with examples.
This PowerShell command can help you to create a new Azure AD group.
Below is the syntax of the New-AzADGroup PowerShell command.
New-AzADGroup -DisplayName <String> -MailNickname <String>
Let’s discuss an example of how to use the New-AzADGroup PowerShell command.
You can execute the below Azure PowerShell command to create a new Azure AD group with the specified display name.
New-AzADGroup -DisplayName "AzureLessons New group" -MailNickname "AzureLessonsNewgroup"
After executing the above PowerShell command, I got the below-expected output and the Azure AD group has been created successfully.
DisplayName Id MailNickname Description ----------- -- ------------ ----------- AzureLessons New group 9c41b9bf-56be-45f4-920f-a318d4ff664a AzureLessonsNewgroup
You can see the same output below
New-AzADGroup PowerShell – Video Tutorial
You can also use the Get-AzADGroupMember PowerShell command to get the lists of members from your Azure AD group.
In this Azure PowerShell article, we discussed the syntax and usage of the New-AzADGroup PowerShell command with examples. 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.