Skip to content

Commit

Permalink
Azure function app - add python runtime stack (#10304)
Browse files Browse the repository at this point in the history
* added python runtime stack

* bum task
  • Loading branch information
vincent1173 authored May 13, 2019
1 parent 4b540f0 commit b4c78fb
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const linuxFunctionRuntimeSettingName: string = '-FUNCTIONS_WORKER_RUNTIME ';

const linuxFunctionRuntimeSettingValue = new Map([
[ 'DOCKER|microsoft/azure-functions-dotnet-core2.0:2.0', 'dotnet ' ],
[ 'DOCKER|microsoft/azure-functions-node8:2.0', 'node ' ]
[ 'DOCKER|microsoft/azure-functions-node8:2.0', 'node ' ],
[ 'DOCKER|microsoft/azure-functions-python3.6:2.0', 'python ']
]);

export class BuiltInLinuxWebAppDeploymentProvider extends AzureRmWebAppDeploymentProvider {
Expand All @@ -27,7 +28,7 @@ export class BuiltInLinuxWebAppDeploymentProvider extends AzureRmWebAppDeploymen
var isNewValueUpdated: boolean = false;

var linuxFunctionRuntimeSetting = "";
if(this.taskParams.RuntimeStack){
if(this.taskParams.RuntimeStack && linuxFunctionRuntimeSettingValue.get(this.taskParams.RuntimeStack)) {
linuxFunctionRuntimeSetting = linuxFunctionRuntimeSettingName + linuxFunctionRuntimeSettingValue.get(this.taskParams.RuntimeStack);
}
var linuxFunctionAppSetting = linuxFunctionRuntimeSetting + linuxFunctionStorageSetting;
Expand Down

0 comments on commit b4c78fb

Please sign in to comment.