Hello,
You may want to avoid AzureAD module which will no longer get support. more info on the link below.
https://learn.microsoft.com/en-us/powershell/azure/active-directory/overview?view=azureadps-2.0
You can use the graph module to create users and add them to groups.
$PasswordProfile = @{
Password = 'xWwvJ]6NMw+bWH-d'
}
$group = Get-MgGroup - Filter "DisplayName eq 'mygroupname'"
$user = New-MgUser -DisplayName 'Rene Magi' -PasswordProfile $PasswordProfile -AccountEnabled -MailNickName 'ReneMagi' -UserPrincipalName '******@contoso.com'
New-MgGroupMember -GroupId $group.id -DirectoryObjectId $user.id
Here is a quick n' dirty patchwork from MS exemples. You can find them here, here and here :
hope it helps