I am trying to build terraform template with Azure devops pipeline. But the step init is failing with an error like below
The Terraform configuration must be valid before initialization so that
Terraform can determine which modules and providers need to be installed.
Error: Invalid version constraint
on main.tf line 4, in terraform:
4: azurerm = {
5: source = "hashicorp/azurerm"
6: version = "=2.52.0"
7: }
A string value is required for azurerm.
##[error]Error: The process 'C:\hostedtoolcache\windows\terraform\0.12.3\x64\terraform.exe' failed with exit code 1
Finishing: Terraform : Init
Any help would be appreciated. Thanks in advance.