hashicorp / terraform-provider-azurerm

Terraform provider for Azure Resource Manager
https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs
Mozilla Public License 2.0
4.53k stars 4.6k forks source link

azurerm_windows_web_app site_config.application_stack is cleared while applying #18636

Closed peterprumbach-telekom closed 1 year ago

peterprumbach-telekom commented 1 year ago

Is there an existing issue for this?

Community Note

Terraform Version

1.3.1

AzureRM Provider Version

0.39.0

Affected Resource(s)/Data Source(s)

azurerm_windows_web_app

Terraform Configuration Files

resource "azurerm_windows_web_app" "webapp" {
  name                       = var.resource_name
  location                   = var.location
  resource_group_name        = var.rg_name
  service_plan_id            = var.app_service_plan_id

  site_config {
    application_stack {
      java_version           = "1.8"
      java_container         = "TOMCAT"
      java_container_version = "8.5.72"
      current_stack          = "java"
      dotnet_version         = "v4.0"
    }
   ...
}

Debug Output/Panic Output

10:41:22        ~ site_config {
10:41:22              # (22 unchanged attributes hidden)
10:41:22  
10:41:22            ~ application_stack {
10:41:22                + current_stack          = "java"
10:41:22                + java_container         = "TOMCAT"
10:41:22                + java_container_version = "8.5.72"
10:41:22                + java_version           = "1.8"
10:41:22                  # (1 unchanged attribute hidden)
10:41:22              }
10:41:22          }

Expected Behaviour

No change should be made, as current_stack corresponds to the Web App settings.

Actual Behaviour

Terraform removes all attributes within current_stack and deletes the configuration (there is no terraform output showing the removal of the arguments). If you apply again with the same configuration, the attributes are added again.

Screenshot from the Activity Log in Azure: 1st "apply": grafik

2nd "apply: grafik

also, same behaviour on the metadata argument: grafik

Steps to Reproduce

No response

Important Factoids

Azure GermanyWestCentral

References

No response

peterprumbach-telekom commented 1 year ago

18568

rcskosir commented 1 year ago

@peterprumbach-telekom Thank you for opening this issue, the PR you mentioned (#18568) has merged. Therefore, I am going to mark this issue as closed. Per the PR: This functionality has been released in v3.34.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

github-actions[bot] commented 3 months ago

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.