Get site collection URL after creating a Group using Microsoft Graph
When creating groups or teams using Microsoft Graph and PowerShell the SharePoint site collection URL can be randomly generated if a site collection with the name of the group already exists.
If you need to get the URL of the site collection right after the creation of the group, you can use Microsoft Graph to retrieve it.
This can be extremely helpfully for scenarios where you have the need to deploy artifacts to the site automatically, like applying a PnP Template.
Right after the group creation use do the request bellow using the group ID.