Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an error when deploying a containerized function app instead of filtering out containerized function apps #4182

Merged
merged 5 commits into from
Jun 14, 2024

Conversation

motm32
Copy link
Contributor

@motm32 motm32 commented Jun 13, 2024

Here is what the warning looks like:
image

It will point to a new github wiki page with instructions on how to deploy.

Todo:
Add a button to install ACA

@motm32 motm32 requested a review from a team as a code owner June 13, 2024 21:52
alexweininger
alexweininger previously approved these changes Jun 13, 2024
@alexweininger
Copy link
Member

Let Nathan look at this too

await context.ui.showWarningMessage(localize('containerFunctionAppError', 'Deploy is not supported for containerized function apps within the Azure Functions extension. Please use the Azure Container Apps extension to deploy your project.'), { learnMoreLink });
//suppress display of error message
context.errorHandling.suppressDisplay = true;
throw new Error();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We may want to make a new error for telemetry purposes. So we can track when the command is being used to deploy to a container app.

@motm32 motm32 merged commit 4bd0b56 into main Jun 14, 2024
2 checks passed
@motm32 motm32 deleted the meganmott/addDeployError branch June 14, 2024 21:36
@@ -81,6 +81,15 @@ async function deploy(actionContext: IActionContext, arg1: vscode.Uri | string |
return await getOrCreateFunctionApp(context)
});

if (node.contextValue.includes('container')) {
const learnMoreLink: string = 'https://aka.ms/deployContainerApps'
await context.ui.showWarningMessage(localize('containerFunctionAppError', 'Deploy is not supported for containerized function apps within the Azure Functions extension. Please use the Azure Container Apps extension to deploy your project.'), { learnMoreLink });
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use the Azure Container Apps extension to deploy your project

We should change this to something like. "Please read here to learn how to deploy your project" or something.

Maybe we should say Deploy is currently not supported as well since we plan to do it eventually.

@microsoft microsoft locked and limited conversation to collaborators Jul 30, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants