Hi @Vasanthi
Thank you for posting this in Microsoft Q&A.
I understand that you are trying to create a resource group using Terraform code but are encountering an authorization issue.
The error message you are receiving indicates that the Azure client (identified by the client ID 939b9121-6ee1-4fec-b9a6-ea4de188f322) does not have the necessary permissions to perform the action required to create a resource group in the specified subscriptions.
Could you please check what type of RBAC role you have assigned on the subscription? To create resource groups, you need at least the Contributor role. Additionally, please verify that you are using the correct subscription ID for which you have permissions.
Hopes this helps! Do let us know if you have any further queries.
Thanks,
Navya.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.