Open glenthomas opened 6 months ago
Hi @glenthomas just curious, do you get the same error when trying with the latest azurerm provider 3.103.1?
Hi @glenthomas just curious, do you get the same error when trying with the latest azurerm provider 3.103.1?
Hello @Chambras, it will take me a while to test it as I have am using a large repository of shared code and updating to the latest provider will take some time. It is also not a consistent issue. It looks like the failure was likely due to the app service plan being in a locked state by another operation in progress and the azurerm provider not applying sufficient retries to handle the scenario.
In order to get a more useful error response set the environment variable TF_LOG
to TRACE
, that will hopefully help surface what is actually causing an error.
I am encountering the same issue with the creation of a new standard LogicApp (WS1).
resource "azurerm_service_plan" "logic_app_plan" {
name = "name"
location = var.location
resource_group_name = var.resource_group_name
os_type = "Windows"
zone_balancing_enabled = false
sku_name = var.logic_app_sku.size
}
resource "azurerm_logic_app_standard" "logic_app" {
name = "xxx"
location = var.location
resource_group_name = var.resource_group_name
app_service_plan_id = azurerm_service_plan.logic_app_plan.id
storage_account_name = var.storage_account_name
storage_account_access_key = var.storage_account_access_key
virtual_network_subnet_id = var.vnet_integration_subnet_id
https_only = true
identity {
type = "SystemAssigned"
}
site_config {
public_network_access_enabled = false
app_scale_limit = 20
vnet_route_all_enabled = true
runtime_scale_monitoring_enabled = true
}
app_settings = {
"WEBSITE_VNET_ROUTE_ALL" = "1",
"vnetContentShareEnabled" = "true",
"WEBSITE_CONTENTSHARE" = var.content_share_name
}
}
resource "azurerm_app_service_virtual_network_swift_connection" "logic_app_vnet_integration" {
app_service_id = azurerm_logic_app_standard.logic_app.id
subnet_id = var.vnet_integration_subnet_id
}
resource "azurerm_private_endpoint" "logic_app_private_endpoint" {
name = "xxxxx"
location = var.location
resource_group_name = var.resource_group_name
subnet_id = var.pep_subnet_id
private_service_connection {
name = "xxxxxxxx"
private_connection_resource_id = azurerm_logic_app_standard.logic_app.id
subresource_names = ["sites"]
is_manual_connection = false
}
}
Terraform version: 1.9.8
terraform {
required_version = ">= 1.0.0"
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = ">= 3.8.0"
}
}
}
Any update on this? @rcskosir
Is there an existing issue for this?
Community Note
Terraform Version
1.8.3
AzureRM Provider Version
2.76.0
Affected Resource(s)/Data Source(s)
azurerm_app_service
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Deployment completes successfully. App service is created.
Actual Behaviour
I see an error in the Azure activity log for the subcription
Steps to Reproduce
Important Factoids
No response
References
No response