Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

unable to update publicnetworkaccess on azurerm_windows_web_app #25818

Open
1 task done
fgarcia-cnb opened this issue Apr 30, 2024 · 0 comments
Open
1 task done

unable to update publicnetworkaccess on azurerm_windows_web_app #25818

fgarcia-cnb opened this issue Apr 30, 2024 · 0 comments

Comments

@fgarcia-cnb
Copy link

fgarcia-cnb commented Apr 30, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Community Note

  • Please vote on this issue by adding a 馃憤 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.

Terraform Version

1.0.7

AzureRM Provider Version

3.98.0

Affected Resource(s)/Data Source(s)

azurerm_windows_web_app

Terraform Configuration Files

resource "azurerm_windows_web_app" "webapp_windows" {
  ...
  public_network_access_enabled = false
}

Debug Output/Panic Output

Error: updating Windows App Service (Subscription: "XXXX" Resource Group Name: "XXX" Site Name: "web-td04z6ixoqpwebapp0"): performing CreateOrUpdate: unexpected status 400 (400 Bad Request) with response: {"Code":"BadRequest","Message":"There was a conflict. SiteConfig.PublicNetworkAccess cannot be modified. Please modify the Site.PublicNetworkAccess property.","Target":null,"Details":[{"Message":"There was a conflict. SiteConfig.PublicNetworkAccess cannot be modified. Please modify the Site.PublicNetworkAccess property."},{"Code":"BadRequest"},{"ErrorEntity":{"ExtendedCode":"01020","MessageTemplate":"There was a conflict. {0}","Parameters":["SiteConfig.PublicNetworkAccess cannot be modified. Please modify the Site.PublicNetworkAccess property."],"Code":"BadRequest","Message":"There was a conflict. SiteConfig.PublicNetworkAccess cannot be modified. Please modify the Site.PublicNetworkAccess property."}}],"Innererror":null}

Expected Behaviour

set publicnetworkaccess explicitly to false, instead of leaving it as null

Actual Behaviour

we are modifying the PublicNetworkAccess field on an existing windows app service. the current value is null. not sure why terraform is seeing the value as "true".

when it tries to explicitly set it to false, we get the error mentioned above.

Steps to Reproduce

No response

Important Factoids

No response

References

No response

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

No branches or pull requests

1 participant