-
Notifications
You must be signed in to change notification settings - Fork 749
Description
When an application defines multiple compute environments (e.g., one for Azure Container Apps and one for App Service), requirements from the App Service website flow into all compute resources, even those not associated with the App Service environment.
Reproduction steps
- Create an app with two compute resources.
- Create two compute environments: one ACA compute environment and one App Service compute environment.
- Associate one of the compute resources with ACA and the other with AppService using
WithComputeEnvironment(...). - Deploy or publish the app.
Actual behavior
A compute resource that is not associated with the App Service environment still triggers App Service validation errors. For example, you see errors such as:
The endpoint 'http' on resource 'pythonapp-standalone' is not external. App Service only supports external endpoints.
even though the resource is mapped to ACA, not App Service.
The app model creates deployment targets for all compute environments up front. Validation happens against all of them, and only later do we select the compute environment associated with each resource. That ordering causes requirements from the App Service environment to leak into unrelated resources.