Add-AzADGroupMember

In this Azure PowerShell article, we will discuss the syntax and usage of the Add-AzADGroupMember PowerShell command with certain examples.

Add-AzADGroupMember

This PowerShell command can help you to add members to an Azure AD group.

Syntax of Add-AzADGroupMember

Below is the syntax of the Add-AzADGroupMember PowerShell command.

Add-AzADGroupMember
  -TargetGroupObjectId <String>
 -MemberObjectId <String[]>

Let’s discuss an example of how to use the Add-AzADGroupMember PowerShell command.

Add-AzADGroupMember Example

You can execute the below Azure PowerShell command to add a member to a specified Azure AD group.

Add-AzADGroupMember -TargetGroupObjectId "d7496713-3252-4601-afa8-d3d8b86dea72" -MemberObjectId "c2df0bca-215e-4144-bfd1-807be7ddf81d"

After executing the above Azure PowerShell command, I got the below-expected output and successfully added the member to the Azure AD group.

Add-AzADGroupMember

Now, to cross-check, I have executed the Get-AzADGroupMember PowerShell command to see if the member has been added to the Azure AD group successfully. Check out the screenshot below.

Add-AzADGroupMember PowerShell

Add-AzADGroupMember PowerShell – Video Tutorial

Wrapping Up

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