To specify the Terraform version to be installed on the local workstation, do the following:
- In the Terraform configuration, add the following block:
terraform {
required_version = ">= 0.13"
}
- To specify the provider source and version to use, we need to add the required_provider block inside the same terraform configuration block:
terraform {
...
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "2.10.0"
}
}
}