An Azure service that provides an event-driven serverless compute platform.
Really careful approach, and you're right not to rewrite that link or touch the association. Here's where each point stands.
- The link shape isn't documented for Flex Consumption. The association is created and owned by the platform side of Microsoft.App/environments, so treat properties.link as an opaque platform reference, not a callable ARM ID. Nothing in the docs guarantees it resolves through ARM, and your tooling shouldn't depend on it.
- Establish the relationship from the app side, not the subnet side. The site resource is the supported source of truth:
-
az functionapp vnet-integration list -g <rg> -n <app>for the specific app.- To find every consumer of that subnet before you disconnect, query Resource Graph:
-
resources
| where type =~ "microsoft.web/sites"
| where properties.virtualNetworkSubnetId =~ "<subnet-resource-id>"
| project name, resourceGroup, kind, properties.serverFarmId
- The Flex Consumption docs only document the portal and
az functionapp vnet-integration removefor disconnection. The Delete Swift Virtual Network REST operation isn't referenced in the Flex docs, so I wouldn't treat it as a supported contract for this plan. If you need the exact REST call for your tooling, run the CLI command with--debugand it prints the requests it actually sends. - There's no documented API for outstanding platform operations. The practical checks are:
- Before: review the Activity log on the app for anything still in progress.
- After: the vnet-integration list returns empty, and virtualNetworkSubnetId on the site is null.
- The service association link on the subnet is removed asynchronously by the platform and can lag. If it's still there after a reasonable wait, don't delete it yourself. A lingering link is a known issue with Flex subnets and gets cleared through a support ticket.
- After: the vnet-integration list returns empty, and virtualNetworkSubnetId on the site is null.
- Before: review the Activity log on the app for anything still in progress.
If this helped, please click Accept Answer so others planning the same disconnection can find it.
References: https://learn.microsoft.com/en-us/azure/azure-functions/flex-consumption-how-to https://learn.microsoft.com/en-us/azure/azure-functions/functions-networking-options