Az ad group member add

In this article, I will walk you through the syntax and usage of this az ad group member add Azure CLI command with certain examples.

Az ad group member add

Az ad group member add command can help you add a member to an Azure AD group.

Syntax

az ad group member add --group --member-id

Example

In this article, we are adding the member with a membership ID 2867be31-5c6b-4e5f-8d21-30a76af0ff5c to the Azure AD group named “AzureLessons Group”.

az ad group member add --group "AzureLessons Group" --member-id 2867be31-5c6b-4e5f-8d21-30a76af0ff5c

Before executing the above command, you can see below that there are no members belonging to this group.

az ad group member add --group --member-id

Now, let us execute the above command. The command has been executed successfully, as shown in the screenshot below.

Az ad group member add

After executing the above command, you can see that the member has been added successfully to the specified Azure AD group.

az ad group member

Video Tutorial

Conclusion

This article discussed the syntax and usage of the az ad group member Azure CLI command with an example of how to use this command.

You may also like following the articles below.

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!