Madhur Asati
Madhur Asati

Reputation: 261

Error: Failed to load plugin schemas | Azure | Terraform

│ Error: Failed to load plugin schemas │ │ Error while loading schemas for plugin components: Failed to obtain provider schema: Could not load the schema for │ provider registry.terraform.io/hashicorp/azurerm: failed to instantiate provider │ "registry.terraform.io/hashicorp/azurerm" to obtain schema: fork/exec │ .terraform/providers/registry.terraform.io/hashicorp/azurerm/3.10.0/windows_386/terraform-provider-azurerm_v3.10.0_x5.exe: │ The parameter is incorrect...enter image description here

Upvotes: 1

Views: 5129

Answers (1)

RahulKumarShaw
RahulKumarShaw

Reputation: 4612

The error you are receving due to you already have lockfile for specific version and now you are trying to intatite with another version and do terraform plan.

Resoulation : Delete your .terraform.lock.hcl file and (.tfstate file if created) then again do terraform init to intialize the update version of terraform.

terraform {
  required_providers {
    azurerm = {
      source  = "hashicorp/azurerm"
      version = "3.3.0"
    }
  }
}

provider "azurerm" {
    features{}
}

Upvotes: 1

Related Questions