Skip to content

Commit d71743d

Browse files
authored
fix (#4739)
1 parent 123d069 commit d71743d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/commands/deploy/deploy.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ async function deploy(actionContext: IActionContext, arg1: vscode.Uri | string |
9393
await node.initSite(context);
9494
const site = node.site;
9595

96-
// Check if the function app is stopped and block deployment with a clear error message
97-
if (site.rawSite.state?.toLowerCase() === 'stopped') {
96+
// Check if the function app is stopped and block deployment with a clear error message if it is not a containerized function app
97+
if (!node.contextValue.includes('container') && (site.rawSite.state?.toLowerCase() === 'stopped')) {
9898
throw new Error(localize('functionAppStoppedError', 'Cannot deploy to function app "{0}" because it is currently stopped. Please start the function app before deploying.', site.fullName));
9999
}
100100

0 commit comments

Comments
 (0)