Azure provider error


As a beginner, I have created a module for Azure Resource group([Child Module](azurerm-modules/az-resource-group at master · Wasim101/azurerm-modules · GitHub)) and now I’m trying to call this child module in my root module [root module](GitHub - Wasim101/resource-group) to create a resource group through my own module but I’m getting an error while initialising the terraform.

Attached a error screenshot below.

Can anyone please help me how can I fix it, I have tried multiple things but no luck!

Would really appreciate your help!


This issue is fixed now.

I have removed all the files and modules created by me and then recreated it and yeah it was working.

I guess somewhere in the TF configuration, azure as a provider was mentioned that is why I was receiving an error.