There are a variety of ways to manage groups because Azure has good, well-documented APIs. The most common way to manage them with a UI is the Azure Portal. The Azure Portal is fully featured, so users with the appropriate roles can create, edit, view, and delete Azure AD Groups from there.
However, when it comes to performing actions on multiple groups then we can use PowerShell. In this article, we will see how we can set or add descriptions for multiple groups in Azure AD.
Step 1: Create a CSV File
Create a CSV file with group objectid and descriptions. You can use the following format for the CSV file:
groupobjectid,description
f8f3b56e-56b1-49c0-b8ec-a061e6c9ac07,This is test description for group name TestAA-Usman
a7013eb0-1973-4232-ad73-a7d9ac0968ba,This is test description for group name TestAA-Usman
Step 2: Connect to Microsoft Graph and Run the Script
The AzureAD PowerShell module (Connect-AzureAD / Set-AzureADGroup) was retired in mid-2025 and no longer works. Use the Microsoft Graph PowerShell SDK instead -- connect and run the following script:
Connect-MgGraph -Scopes "Group.ReadWrite.All"
$file = Import-Csv "C:\temp\groups.csv"
foreach ($line in $file){
Update-MgGroup -GroupId "$($line.groupobjectid)" -Description "$($line.description)"
}
Update-MgGroup requires the group's object ID (the same groupobjectid column from your CSV) and updates the Description property directly -- no separate "set" cmdlet is needed.
Related
- Need to create the groups first? See our guide on bulk-creating Azure AD security groups from a CSV with PowerShell.
- New to the Graph SDK? Start with connecting to Microsoft Graph using PowerShell for installation and authentication scopes.
- If you're managing group membership rather than just metadata, see dynamic membership rules using PowerShell.