New-AzADGroup

This Azure PowerShell article will discuss the syntax and usage of the New-AzADGroup PowerShell command with examples.

New-AzADGroup

This PowerShell command can help you to create a new Azure AD group.

Syntax of New-AzADGroup

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.

New-AzADGroup Examples

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

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.

Wrapping Up

In this Azure PowerShell article, we discussed the syntax and usage of the New-AzADGroup PowerShell command with examples. Thanks for reading this article !!!