Failed to query available provider packages, Azure Cloud shell

when performing

terraform init i get the error message : Failed to query available provider packages

Initializing the backend…

Initializing provider plugins…

  • Finding hashicorp/random versions matching “~> 3.0”…
  • Finding hashicorp/tls versions matching “~> 4.0”…
  • Finding latest version of hashicorp/azurem…
  • Finding latest version of hashicorp/azurerm…
  • Installing hashicorp/random v3.4.3…
  • Installed hashicorp/random v3.4.3 (signed by HashiCorp)
  • Installing hashicorp/tls v4.0.4…
  • Installed hashicorp/tls v4.0.4 (signed by HashiCorp)
  • Installing hashicorp/azurerm v3.35.0…
  • Installed hashicorp/azurerm v3.35.0 (signed by HashiCorp)

    │ Error: Failed to query available provider packages

    │ Could not retrieve the list of available versions for provider hashicorp/azurem: provider registry does not have a provider named
    Terraform Registry

    │ All modules should specify their required_providers so that external consumers will get the correct providers when using a module. To see which modules are
    │ currently depending on hashicorp/azurem, run the following command:
    │ terraform providers

How can i solve the problem ?


It looks like you have a typo - azurem instead of azurerm

Hello Stuart,
that was the solution :grinning: I didn´t notice the typo.

It is my first time working with terraform. So , sorry for easy question.