Az AD Group Member Check

This article will walk you through the syntax and usage of the az ad group member check Azure CLI command with certain examples of how to use this command.

Az AD Group Member Check

Az AD Group Member Check command can help you check if a specific member is in a group.

Syntax

az ad group member check --group --member-id

Example

In this example, we are trying to check whether the member with member ID 54481342-e592-47c2-ba89-b07dcadf9346 belongs to the AzureLessons Group.

az ad group member check --group "AzureLessons Group" --member-id 54481342-e592-47c2-ba89-b07dcadf9346

After executing the above query, I got the expected output, as shown in the screenshot below.

Az AD Group Member Check

When it returns the value as true, that means the specified member belongs to the same Azure AD group as mentioned.

If it returns the value as false, that member doesn’t belong to that specified group, as shown below.

Az AD Group Member Check command

Conclusion

This article discussed the syntax and usage of the az ad group member check Azure CLI command as mentioned in this article.

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!