exported terraform configuration having ip_restriction_default_action and scm_ip_restriction_default_action with empty values
- Dominant language
- Go
- Stars
- 1.9k
- Forks
- 221
- Avg merge
- 15h 43m
- Merged PRs (30d)
- 9
Description
I'm exporting one of the existing linux based Azure Appservice and functionapp to terrafomr using aztfexport tool. But the generated terraform configuration is having
```
ip_restriction_default_action = ""
scm_ip_restriction_default_action = ""
```
I think these two properties are not mandatory and not adding default/actual values. The allowed values are "Allow or Deny". Hence when I execute `terraform plan` it's failing with
>
> Error: expected site_config.0.ip_restriction_default_action to be one of ["Allow" "Deny"], got
> │
> │ with azurerm_linux_web_app.res-1,
> │ on main.tf line 29, in resource "azurerm_linux_web_app" "res-1":
> │ 29: ip_restriction_default_action = ""
> Error: expected site_config.0.scm_ip_restriction_default_action to be one of ["Allow" "Deny"], got
> │
> │ with azurerm_linux_web_app.res-1,
> │ on main.tf line 30, in resource "azurerm_linux_web_app" "res-1":
> │ 30: scm_ip_restriction_default_action = ""
How to resolve/override this issue?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.