Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions src/commands/deploy/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,16 @@ async function deploy(actionContext: IActionContext, arg1: vscode.Uri | string |

const isFlexConsumption: boolean = await client.getIsConsumptionV2(actionContext);
actionContext.telemetry.properties.isFlexConsumption = String(isFlexConsumption);

if (language === ProjectLanguage.Python && isFlexConsumption) {
const runtimeVersion = site.rawSite.functionAppConfig?.runtime?.version;
if (runtimeVersion === '3.14') {
const errorMessage = localize('python314FlexError', 'Remote build for Python 3.14 is not supported for flex. Please refer to https://aka.ms/py314-remote-build-flex.');
ext.outputChannel.appendLog(errorMessage);
throw new Error(errorMessage);
Comment thread
MicroFish91 marked this conversation as resolved.
}
}

// don't use remote build setting for consumption v2
const doRemoteBuild: boolean | undefined = getWorkspaceSetting<boolean>(remoteBuildSetting, deployPaths.effectiveDeployFsPath) && !isFlexConsumption;
actionContext.telemetry.properties.scmDoBuildDuringDeployment = String(doRemoteBuild);
Expand Down