Open tinix0 opened 1 month ago
Hi @tinix0 , thanks for submitting this issue.
I can succuessfully create the logic app with the provided config and on the Azure Portal the resource looks like below, the red rectangle box should correspond to the accessControl
property.
When I run
terraform plan
after the first terraform apply
, no plan diff found. Could you please share more details about the issue you met regards network access controls as removed
, terraform command output, any docs or etc.
The issue is that while the Access Control is properly set after first apply, after running terraform plan
again and without change in the in the template I see the following
Terraform will perform the following actions:
# azurerm_logic_app_workflow.teams_alert_logic_app_workflow will be updated in-place
~ resource "azurerm_logic_app_workflow" "teams_alert_logic_app_workflow" {
id = "redacted"
name = "redacted"
tags = {}
# (12 unchanged attributes hidden)
- access_control {
- content {
- allowed_caller_ip_address_range = [
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
] -> null
}
- trigger {
- allowed_caller_ip_address_range = [
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
- "redacted/32",
] -> null
}
}
}
Plan: 0 to add, 1 to change, 0 to destroy.
The template has not been touched. I will check if there is any more relevant output. Unfortunately I havent been able to figure out anything more about this. It sometimes gets deployed (only reliable way I was able to get it deployed was to change something). There are no conditions in the template or in the terraform that could cause this to change.
Is there an existing issue for this?
Community Note
Terraform Version
1.5.5
AzureRM Provider Version
3.107.0
Affected Resource(s)/Data Source(s)
azurerm_resource_group_template_deployment
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Network access controls stay in place after redeploy.
Actual Behaviour
Terraform shows network access controls as removed from the template and removes them from the actual resource. Modifying the template might cause the access controls to come back temporarily but this has not been reliable for me. Template works when deployed using azure cli.
Steps to Reproduce
Deploy the template and redeploy it again.
Important Factoids
No response
References
No response