Hi Rising Flight
Thank you for posting your question in the Microsoft Q&A forum.
Based on your description, I understand that the error message 'The group can't be created' despite the command returning partial output typically occurs when the initial group object is successfully created in Entra ID (Azure AD), but a subsequent step in the provisioning process fails. This is often due to a naming conflict or a violation of policy.
A key indicator is the name myxxx_xxxx-xxxx-xxxx-xxxx-xxxx, Exchange tried to create the group using the alias myxxx, but encountered a conflict. It attempted to resolve the issue by appending a GUID, yet the creation process still ultimately failed.
(Please note that our forum is a public platform, and we will modify your question to hide your personal information in the description. Kindly ensure that you hide any personal or organizational information the next time you post an error or other details to protect personal data.)
The -Alias "myxxx" or the derived email address ******@mydomain.com is likely already in use by another object in your organization. This includes active user mailboxes, shared mailboxes, distribution lists, other Microsoft 365 groups, or even soft-deleted mailboxes. The alias must be unique; you can try to verify whether the alias or email address is already in use by running the following command in Exchange Online PowerShell:
Get-Recipient -Identity "myxxx"
If this command returns any object, you have a conflict. You must choose a different, unique alias for your new group.
Your organization may have a group naming policy that requires group names to follow a specific format (e.g., using a prefix or suffix like GRP-myxxx) > your chosen name myxxx does not conform to this policy. To check for potential naming policy restrictions, you can try to run the following command to view the policy details:
Get-OrganizationConfig | Format-List GroupNamingPolicy
If a policy is in place, adjust your -DisplayName and -Alias to comply with its rules.
- Permissions and Creation Policies
While you can run the cmdlet, your account might be restricted from creating groups by a policy. Some organizations limit Microsoft 365 Group creation to members of a specific security group. To confirm your ability to create Microsoft 365 Groups, please check with your Microsoft 365 administrator to ensure your account has the required permissions.
I hope this information proves useful to you. If there’s anything else I can assist you with, please feel free to leave a comment.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.