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

Fix "+ Create new function app" error while deploying #4184

Merged
merged 2 commits into from
Jun 14, 2024
Merged

Conversation

motm32
Copy link
Contributor

@motm32 motm32 commented Jun 14, 2024

Fixes #4175

Needed to add the ResolvedContainerizedFunctionAppResource being created when containerized function apps are being created through the deploy path. This is set up similarly to how it is done in SubscriptionTreeItem.

@motm32 motm32 requested a review from a team as a code owner June 14, 2024 20:23
const resolved = new ResolvedFunctionAppResource(context as ISubscriptionContext, nonNullProp(context, 'site'));
if (context.dockerfilePath) {
const resolved = new ResolvedContainerizedFunctionAppResource(context as ISubscriptionContext, nonNullProp(context, 'site'))
node = await ext.rgApi.tree.findTreeItem(resolved.id, context);
Copy link
Member

Choose a reason for hiding this comment

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

nit: You only need to set node once after the if/else.

You could also do a ternary for context.dockerfilePath ? new Resolve...

@motm32 motm32 merged commit c8e02dc into main Jun 14, 2024
2 checks passed
@motm32 motm32 deleted the meganmott/fix-4175 branch June 14, 2024 21:36
@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.

The error is not clear when executing deploying command for a containerized function app
2 participants