diff --git a/.github/workflows/function_app.yaml b/.github/workflows/function_app.yaml index 38f1943..d93fb0b 100644 --- a/.github/workflows/function_app.yaml +++ b/.github/workflows/function_app.yaml @@ -18,7 +18,8 @@ variables: vmImageName: 'ubuntu-latest' # Working Directory - workingDirectory: ./function/azurefunctioncode/ + workingDirectory: ./function/ + stages: - stage: Build displayName: Build stage @@ -26,8 +27,7 @@ stages: jobs: - job: Build displayName: Build - pool: - vmImage: $(vmImageName) + runs-on: '$(vmImageName)' - task: UsePythonVersion@0 displayName: 'Use Python 3.10' @@ -60,8 +60,7 @@ stages: - deployment: Deploy displayName: Deploy environment: 'development' - pool: - vmImage: $(vmImageName) + runs-on: $(vmImageName) strategy: runOnce: diff --git a/modules/FunctionApp/main.tf b/modules/FunctionApp/main.tf index 4bd09a3..404e7f5 100644 --- a/modules/FunctionApp/main.tf +++ b/modules/FunctionApp/main.tf @@ -18,7 +18,7 @@ resource "azurerm_linux_function_app" "function_app" { application_insights_key = var.instru_key application_insights_connection_string = var.conn_string application_stack { - python_version = 3.11 #FUNCTIONS_WORKER_RUNTIME + python_version = 3.9 #FUNCTIONS_WORKER_RUNTIME } } app_settings = {