-
Notifications
You must be signed in to change notification settings - Fork 133
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
Conversation
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(); |
There was a problem hiding this comment.
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.
@@ -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 }); |
There was a problem hiding this comment.
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.
Here is what the warning looks like:
It will point to a new github wiki page with instructions on how to deploy.
Todo:
Add a button to install ACA