Open davidelcheikh opened 2 months ago
Thanks @davidelcheikh for raising this issue, the terraform can successfully detect the dotnet version change in my local test as:
Are you seeing any diff during the plan? I can't see any log relates to terraform plan so it would be great if you can run terraform plan and share the result here.
That's strange. I also tried to the same and changed my dotnet_version from 8.0 to 6.0 and terraform and I got nothing. See below:
The left is the updated infrastructure and the right is the tfstate file:
@davidelcheikh Can you share the output of terraform plan? And just to double confirm that you do use the latest AzureRM provider?
@xiaxyi the terraform plan doesn't have the change in dotnet version unfortunately :(
@davidelcheikh Can you enable TF log by setting the environment variable
export TF_LOG=DEBUG
export TF_LOG_PATH=C:/Users/xx/logs/debug.log
then run terraform plan / apply and share the debug log here?
We're seeing the same thing as well -- anything new?
Having this same issue using Terraform 1.9.5 with azurerm_linux_web_app
.
Providers:
required_providers {
azuread = {
source = "hashicorp/azuread"
version = "~> 1.5.1"
}
azurerm = {
source = "hashicorp/azurerm"
version = "~> 3.116.0"
}
random = {
source = "hashicorp/random"
version = "~> 3.1.0"
}
}
Is there an existing issue for this?
Community Note
Terraform Version
1.9.0
AzureRM Provider Version
3.110.0
Affected Resource(s)/Data Source(s)
azurerm_linux_web_app
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Deploy app service with .NET 8.0
Actual Behaviour
When running
terraform apply
withdotnet_version = "8.0"
(server version is "6.0"), terraform is not detecting there's been a change in the server infrastructureSteps to Reproduce
terraform apply -var-file="variables\vars.tfvars.json"
Important Factoids
No response
References
Reference colleagues stack overflow article: https://stackoverflow.com/questions/78694934/terraform-is-not-applying-the-dotnet-version-change-on-azurerm-linux-web-app-app