|
| 1 | +/*--------------------------------------------------------------------------------------------- |
| 2 | + * Copyright (c) Microsoft Corporation. All rights reserved. |
| 3 | + * Licensed under the MIT License. See License.txt in the project root for license information. |
| 4 | + *--------------------------------------------------------------------------------------------*/ |
| 5 | + |
| 6 | +import { type ActivityAttributes } from "@microsoft/vscode-azext-utils"; |
| 7 | + |
| 8 | +export class CommandAttributes { |
| 9 | + |
| 10 | + static readonly DeployContainerAppContainerRegistry: ActivityAttributes = { |
| 11 | + description: `Deploys an existing image from a container registry to a target Azure Container App. |
| 12 | + The container registry and image must already be available for pulling. |
| 13 | + Supports public images from any registry, and both public and private images from Azure Container Registry (ACR). |
| 14 | + For private image deployment from other third party registries, we support deployment through the 'vscode-containers' extension |
| 15 | + via the command titled "Container Registries: Deploy Image to Azure Container Apps...".`, |
| 16 | + troubleshooting: [ |
| 17 | + `If a container app resource envelope is provided in attributes, do not confuse null secrets as missing container app secrets. This is because secrets are not typically |
| 18 | + copied over with the core resource metadata. Any issues with secrets will require inspecting the remote resource directly.`, |
| 19 | + ] |
| 20 | + }; |
| 21 | + |
| 22 | + static readonly DeployWorkspaceProjectInternal: ActivityAttributes = { |
| 23 | + description: `Takes a workspace project with a Dockerfile and deploys it to an Azure Container App. |
| 24 | + Automatically creates any required resources (resource group, managed environment, container registry, container app, log analytics workspace). |
| 25 | + Supports single repo and monorepo, with deployment settings saved and reused via local VS Code settings (.vscode/settings.json). |
| 26 | + Deployment settings are saved under "containerApps.deploymentConfigurations". |
| 27 | + Deployment is agnostic to project runtime and language.`, |
| 28 | + troubleshooting: [ |
| 29 | + `When ACR build errors are present, try to inspect the Dockerfile and ACR build logs. |
| 30 | + When an error is related to the Dockerfile, offer to make direct fixes for the user.`, |
| 31 | + `If a container app resource envelope is provided in attributes, do not confuse empty secrets as missing container app secrets. This is because secrets are not typically |
| 32 | + copied over with the core resource metadata. Any issues with secrets will require inspecting the remote resource directly.`, |
| 33 | + ], |
| 34 | + }; |
| 35 | +} |
0 commit comments