Connect to Azure AD
display a list of all soft-deleted Microsoft 365 groups that are still within the 30-day retention period
Find the group to restore and copy the Id
Run the following to restore the group
Restore-AzureADMSDeletedDirectoryObject -Id [Id]
verify if the group was successfully restored. It can take up to 24 hours for the restore process to complete, after which the team and content associated with the team, including tabs and channels, is displayed in Teams.
Get-AzureADGroup -ObjectId [Id]