Error while provisioning Microsoft 365 group

We are trying to provision Microsoft 365 groups, but the tool is returning the following error to us:

Request failed with Forbidden status code (Forbidden). {"error":{"code":"AppOnlyAccessNotEnabledForTarget","message":"App Only access is not allowed for target resource: 'xxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxxxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx'.","innerError":{"date":"2023-06-30T19:10:40","request-id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx","client-request-id":"xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"}}}

Has anyone faced this error before and have some sort of guidance on how to solve it?

Thanks!