-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
azurerm_windows_function_app does not remove ip_restriction and scm_ip_restriction rules #18793
Comments
Thanks @mg-8 for raising this issue, by saying TF not remove the ip restrictions. are you referring to the behavior that the config cannot be updated or removed? |
@xiaxyi that's somewhat correct: a) it does not remove the set config I hope this helps? |
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. |
Is there an existing issue for this?
Community Note
Terraform Version
1.3.2
AzureRM Provider Version
3.26.0
Affected Resource(s)/Data Source(s)
azurerm_windows_function_app
Terraform Configuration Files
Debug Output/Panic Output
No changes. Your infrastructure matches the configuration. Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed. Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Expected Behaviour
Remove ip_restriction and scm_ip_restriction rules
Actual Behaviour
No changes. Your infrastructure matches the configuration.
Terraform has compared your real infrastructure against your configuration and found no differences, so no changes are needed.
Apply complete! Resources: 0 added, 0 changed, 0 destroyed.
Steps to Reproduce
locals {
function_apps = {
primary = {
function_app = {
name = "test-func-01"
use_32_bit_worker = true
user_assigned_identity_ref = "func_one"
scm_use_main_ip_restriction = true
virtual_network_integration = {
subnet_name = "func-app-asp-subnet"
}
}
storage_account = {
name = "teststfunc01"
tier = "Standard"
replication_type = "LRS"
ip_rules = []
container_names = []
private_endpoint = {
sub_resource_names = ["blob", "table", "file"]
}
}
network = {
virtual_network_name = "test-vnet"
resource_group_name = "test-network-rg"
subnet_name = "test-subnet"
}
ip_restrictions = [
#{
#action = "Allow"
#name = "AzureDevOps"
#priority = 10
#service_tag = "AzureDevOps"
#},
]
scm_ip_restrictions = [
#{
#action = "Allow"
#name = "Test"
#priority = 10
#service_tag = "AzureDevOps"
#},
]
}
}
}
terraform plan
terraform apply
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: