In this Azure PowerShell article, we will discuss the syntax and usage of the Add-AzADGroupMember PowerShell command with certain examples.
Table of Contents
Add-AzADGroupMember
This PowerShell command can help you to add members to an Azure AD group.
Syntax
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.
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 the member has been added to the Azure AD group successfully.

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. Checkout the below screenshot.

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 !!!

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.