Add Express Container Apps support in resource tree#1078
Open
philliphoff wants to merge 1 commit into
Open
Conversation
MicroFish91
approved these changes
May 18, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Azure Container Apps now supports Express environments, which have their own portal experience at
https://containerapps.azure.com. This PR adds initial awareness of Express environments and apps to the extension's resource tree.Approach
Detecting Express environments: The
environmentModeproperty is only available in API version2026-03-02-preview, which the current SDK (@azure/arm-appcontainersv2.2.0) does not include. A preview API client factory (createContainerAppsPreviewAPIClient) overrides the API version via a pipeline policy. Because the SDK deserializer strips unknown properties, the raw HTTP response is captured viaonResponseto extractenvironmentMode.Visual distinction: Express managed environments and their child container apps show
(Express)as the tree item description."Open in Express Portal" command: A new context menu command appears only on Express container apps (gated by an
expresscontext value). It opens the Express portal URL athttps://containerapps.azure.com/apps/{subscriptionId}/{resourceGroup}/{appName}/overview.Scale tolerance: Express app templates may not include a
scaleproperty.ScaleItemnow falls back to an empty object instead of throwing vianonNullValueAndProp, preventing errors when expanding Express app nodes.Non-obvious details
api-versionquery parameter on every request. This is necessary because the SDK's built-inParameters.apiVersionis markedisConstant: trueand ignores the client'sapiVersionproperty during serialization.expresscontext value is only added toContainerAppItem(notContainerAppResourceItemin the flat view) since Express status is derived from the parent environment, which the flat view does not resolve.Resolves #1077