// dsf

install-module azuread

connect-azureAD

$groups = Get-AzureADGroup

$group = $groups[0]

$group | ConvertTo-Json -Depth 3

Links

PowerShell: Export Active Directory Group Members