All Products
Search
Document Center

Function Compute:How do I resolve the "vSwitch is in unsupported zone" error in Function Compute?

Last Updated:Feb 27, 2026

Error message

vSwitch is in unsupported zone

Cause

This error occurs when you configure a VPC for a Function Compute service and the specified vSwitch is in a zone that Function Compute does not support. Function Compute is available only in specific zones within each region.

Resolution

Create a vSwitch in a supported zone and update your service configuration:

  1. Identify a zone in your region that Function Compute supports.

  2. Create a vSwitch in that zone within your VPC. For detailed instructions, see Create and manage a VPC.

  3. Open the Function Compute console and navigate to the service that reported the error.

  4. In the VPC configuration of the service, select the new vSwitch.

  5. Deploy the configuration.

After the configuration is complete, your function can access VPC resources.

vSwitches in different zones within the same VPC can communicate with each other by default. Moving your Function Compute vSwitch to a supported zone does not affect connectivity with resources in other zones of the same VPC.