Skip to content

exported terraform configuration having ip_restriction_default_action and scm_ip_restriction_default_action with empty values #637

Description

@SivakumarShan

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions