azurerm_linux[windows]_function[web]_app_[slot] azurerm_flex_consumption_app - update api version to 2025-05-01#32239
azurerm_linux[windows]_function[web]_app_[slot] azurerm_flex_consumption_app - update api version to 2025-05-01#32239xiaxyi wants to merge 37 commits into
azurerm_linux[windows]_function[web]_app_[slot] azurerm_flex_consumption_app - update api version to 2025-05-01#32239Conversation
WodansSon
left a comment
There was a problem hiding this comment.
@xiaxyi, Thanks for tightening this up and pushing changes. I can see the test/config naming fix landed, the site update strategy validation now uses the SDK helper, and most of the VNet routing read-side handling has been cleaned up.
Per earlier direction, I’m not looking for docs updates in this PR since those should be fixed in a follow-up PR. I do still see a couple of code items that look unresolved though:
-
In
function_app_flex_consumption_resource.go, the update path still writes throughmodel.Properties.OutboundVnetRouting.ApplicationTrafficwithout first ensuringOutboundVnetRoutingis initialized. Older apps can still come back without that block, so this still looks like a panic risk on update to me. -
In
linux_function_app_resource.go, the newvnetRoutingPropsguard looks reversed:
vnetRoutingProps := &webapps.OutboundVnetRouting{}
if model.Properties.OutboundVnetRouting == nil {
vnetRoutingProps = model.Properties.OutboundVnetRouting
}As written, if the existing block is nil we assign vnetRoutingProps back to nil, so the later writes can still panic.
Nit:
3. linux_function_app_resource.go still has the manual ClientCertMode enum conversion rather than pointer.ToEnum.
If you fix the two OutboundVnetRouting cases above, I think that covers the remaining substantive review items on my side, however it would be nice to fix the nit too 🙂.
|
Thanks @WodansSon for reviewing! I updated the code: Let me know if you have more comments! |
Community Note
Description
2025-05-01for app service to upport thesiteUpdateStrategyin flex consumption app.virtual_network_image_pull_enabledvnet,virtual_network_backup_restore_enabled,vnet_route_all_enabledare renamed and restructured, updating the properties according to the api change.webdeploy_publish_basic_authentication_enabledandftp_publish_basic_authentication_enableddefault behaviour has been changed. The default value is not true when property is omitted, and to avoid breaking change we need to set the default value in the api.PR Checklist
For example: “
resource_name_here- description of change e.g. adding propertynew_property_name_here”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_linux[windows]_function[web]_app_[slot],azurerm_flex_consumption_app- support for thesite_update_strategyproperty [GH-00000]This is a (please select all that apply):
Related Issue(s)
Fixes #0000
AI Assistance Disclosure
Rollback Plan
If a change needs to be reverted, we will publish an updated version of the provider.
Changes to Security Controls
Are there any changes to security controls (access controls, encryption, logging) in this pull request? If so, explain.
Note
If this PR changes meaningfully during the course of review please update the title and description as required.