⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@seligj95
Copy link
Contributor

Related command

az webapp create
az webapp config set
az webapp vnet-integration add
az functionapp create
az functionapp vnet-integration add

Description

Update webapp and functionapp commands to use the new Site-level outboundVnetRouting property instead of the deprecated SiteConfig vnetRouteAllEnabled property for API version 2024-11-01.

The vnetRouteAllEnabled property on SiteConfig is no longer honored by the API. This PR migrates to the new OutboundVnetRouting model with application_traffic=True to maintain backward compatibility and the same user-facing behavior.

az webapp create - Use outbound_vnet_routing on Site object
az functionapp create - Use outbound_vnet_routing on Site object
az webapp vnet-integration add - Use outbound_vnet_routing on Site object
az functionapp vnet-integration add - Use outbound_vnet_routing on Site object
az webapp config set --vnet-route-all-enabled - Now updates Site-level outbound_vnet_routing property instead of SiteConfig

Testing Guide

Test webapp create with vnet integration

az webapp create -g -p -n --vnet --subnet
az webapp show -g -n --query "outboundVnetRouting"

Expected: applicationTraffic: true

Test webapp config set

az webapp config set -g -n --vnet-route-all-enabled false
az webapp show -g -n --query "outboundVnetRouting.applicationTraffic"

Expected: false

az webapp config set -g -n --vnet-route-all-enabled true
az webapp show -g -n --query "outboundVnetRouting.applicationTraffic"

Expected: true

History Notes

[App Service] Fix vnet routing to use Site-level outboundVnetRouting property for API version 2024-11-01

This checklist is used to make sure that common guidelines for a pull request are followed.

…_all_enabled

Update webapp and functionapp commands to use the new Site-level
outbound_vnet_routing property with OutboundVnetRouting(application_traffic=True)
instead of the deprecated SiteConfig vnet_route_all_enabled property.

Commands updated:
- az webapp create
- az functionapp create
- az webapp vnet-integration add
- az functionapp vnet-integration add
…erty

The API no longer honors the SiteConfig vnetRouteAllEnabled property.
Updated update_site_configs to handle vnet_route_all_enabled separately
by updating the Site-level outbound_vnet_routing property instead.
@seligj95 seligj95 requested a review from jsntcy as a code owner January 13, 2026 17:15
Copilot AI review requested due to automatic review settings January 13, 2026 17:15
@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jan 13, 2026

️✔️AzureCLI-FullTest
️✔️acr
️✔️latest
️✔️3.12
️✔️3.13
️✔️acs
️✔️latest
️✔️3.12
️✔️3.13
️✔️advisor
️✔️latest
️✔️3.12
️✔️3.13
️✔️ams
️✔️latest
️✔️3.12
️✔️3.13
️✔️apim
️✔️latest
️✔️3.12
️✔️3.13
️✔️appconfig
️✔️latest
️✔️3.12
️✔️3.13
️✔️appservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️aro
️✔️latest
️✔️3.12
️✔️3.13
️✔️backup
️✔️latest
️✔️3.12
️✔️3.13
️✔️batch
️✔️latest
️✔️3.12
️✔️3.13
️✔️batchai
️✔️latest
️✔️3.12
️✔️3.13
️✔️billing
️✔️latest
️✔️3.12
️✔️3.13
️✔️botservice
️✔️latest
️✔️3.12
️✔️3.13
️✔️cdn
️✔️latest
️✔️3.12
️✔️3.13
️✔️cloud
️✔️latest
️✔️3.12
️✔️3.13
️✔️cognitiveservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️compute_recommender
️✔️latest
️✔️3.12
️✔️3.13
️✔️computefleet
️✔️latest
️✔️3.12
️✔️3.13
️✔️config
️✔️latest
️✔️3.12
️✔️3.13
️✔️configure
️✔️latest
️✔️3.12
️✔️3.13
️✔️consumption
️✔️latest
️✔️3.12
️✔️3.13
️✔️container
️✔️latest
️✔️3.12
️✔️3.13
️✔️containerapp
️✔️latest
️✔️3.12
️✔️3.13
️✔️core
️✔️latest
️✔️3.12
️✔️3.13
️✔️cosmosdb
️✔️latest
️✔️3.12
️✔️3.13
️✔️databoxedge
️✔️latest
️✔️3.12
️✔️3.13
️✔️dls
️✔️latest
️✔️3.12
️✔️3.13
️✔️dms
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventgrid
️✔️latest
️✔️3.12
️✔️3.13
️✔️eventhubs
️✔️latest
️✔️3.12
️✔️3.13
️✔️feedback
️✔️latest
️✔️3.12
️✔️3.13
️✔️find
️✔️latest
️✔️3.12
️✔️3.13
️✔️hdinsight
️✔️latest
️✔️3.12
️✔️3.13
️✔️identity
️✔️latest
️✔️3.12
️✔️3.13
️✔️iot
️✔️latest
️✔️3.12
️✔️3.13
️✔️keyvault
️✔️latest
️✔️3.12
️✔️3.13
️✔️lab
️✔️latest
️✔️3.12
️✔️3.13
️✔️managedservices
️✔️latest
️✔️3.12
️✔️3.13
️✔️maps
️✔️latest
️✔️3.12
️✔️3.13
️✔️marketplaceordering
️✔️latest
️✔️3.12
️✔️3.13
️✔️monitor
️✔️latest
️✔️3.12
️✔️3.13
️✔️mysql
️✔️latest
️✔️3.12
️✔️3.13
️✔️netappfiles
️✔️latest
️✔️3.12
️✔️3.13
️✔️network
️✔️latest
️✔️3.12
️✔️3.13
️✔️policyinsights
️✔️latest
️✔️3.12
️✔️3.13
️✔️privatedns
️✔️latest
️✔️3.12
️✔️3.13
️✔️profile
️✔️latest
️✔️3.12
️✔️3.13
️✔️rdbms
️✔️latest
️✔️3.12
️✔️3.13
️✔️redis
️✔️latest
️✔️3.12
️✔️3.13
️✔️relay
️✔️latest
️✔️3.12
️✔️3.13
️✔️resource
️✔️latest
️✔️3.12
️✔️3.13
️✔️role
️✔️latest
️✔️3.12
️✔️3.13
️✔️search
️✔️latest
️✔️3.12
️✔️3.13
️✔️security
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicebus
️✔️latest
️✔️3.12
️✔️3.13
️✔️serviceconnector
️✔️latest
️✔️3.12
️✔️3.13
️✔️servicefabric
️✔️latest
️✔️3.12
️✔️3.13
️✔️signalr
️✔️latest
️✔️3.12
️✔️3.13
️✔️sql
️✔️latest
️✔️3.12
️✔️3.13
️✔️sqlvm
️✔️latest
️✔️3.12
️✔️3.13
️✔️storage
️✔️latest
️✔️3.12
️✔️3.13
️✔️synapse
️✔️latest
️✔️3.12
️✔️3.13
️✔️telemetry
️✔️latest
️✔️3.12
️✔️3.13
️✔️util
️✔️latest
️✔️3.12
️✔️3.13
️✔️vm
️✔️latest
️✔️3.12
️✔️3.13

@azure-client-tools-bot-prd
Copy link

azure-client-tools-bot-prd bot commented Jan 13, 2026

️✔️AzureCLI-BreakingChangeTest
️✔️Non Breaking Changes

@yonzhan
Copy link
Collaborator

yonzhan commented Jan 13, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates webapp and functionapp commands to use the new Site-level outbound_vnet_routing property instead of the deprecated SiteConfig vnet_route_all_enabled property for API version 2024-11-01. The changes maintain backward compatibility by setting application_traffic=True to preserve existing user-facing behavior.

Changes:

  • Migrated from vnet_route_all_enabled on SiteConfig to outbound_vnet_routing on the Site object
  • Updated az webapp create, az functionapp create, and vnet-integration commands to use the new property
  • Modified az webapp config set --vnet-route-all-enabled to update the Site-level property instead of SiteConfig
Comments suppressed due to low confidence (1)

src/azure-cli/azure/cli/command_modules/appservice/custom.py:3137

  • The inspect-based reflection logic at line 3136-3137 will still attempt to set vnet_route_all_enabled on the configs object (SiteConfig) when it is not None, which could cause issues since this property is no longer valid on SiteConfig in the new API version. The parameter should be excluded from the reflection logic similar to how 'generic_configurations' is excluded. Consider adding arg != 'vnet_route_all_enabled' to the condition at line 3136.
        if arg != 'generic_configurations' and values.get(arg, None):
            setattr(configs, arg, values[arg] if arg not in bool_flags else values[arg] == 'true')

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@seligj95 seligj95 force-pushed the outbound-vnet-routing-fix branch from 8af4199 to 09ee741 Compare January 13, 2026 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Auto-Assign Auto assign by bot Functions az functionapp Web Apps az webapp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants