Authentication hangs with AzureRM provider version 2.64.0 in Monitoring Resources terraform and needs update
Description:
When using the AzureRM Terraform provider at version 2.64.0
, the Monitoring Resources 'terraform apply' script hangs indefinitely without providing any error message. However, after updating the AzureRM provider to a newer version, the problem is resolved, suggesting an authentication issue with version 2.64.0
. I did not capture the logs sadly.
Details: In a Terraform script with the below configuration:
terraform {
required_version = ">= 1.3"
backend "azurerm" {
key = "terraform.tfstate"
}
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "=2.64.0"
}
random = {
source = "hashicorp/random"
version = "=2.3.1"
}
}
}
The terraform apply command hangs indefinitely during execution. Although no error message was shown in standard logs, verbose logs indicated an authentication error to Azure.
Expected Behavior: The terraform apply should either execute successfully.
Actual Behavior: The script hangs indefinitely without any feedback to the user.
Steps to Reproduce:
- Use the AzureRM provider at version
2.64.0
in a Terraform script. - Execute the script.
- Observe that it hangs without any clear error message.
Workaround:
Upgrading the AzureRM provider to a newer version (e.g., 3.73.0
) resolves the problem.
Suggested Fix: Upgrade to the latest version of the provider in documentation.
Environment:
- Terraform version: (e.g., 1.5.1)
- AzureRM provider version where the issue was observed:
2.64.0