diff --git a/.devops/code-review-pipelines.yml b/.devops/code-review-pipelines.yml index 1ddfe59..8d11e8c 100644 --- a/.devops/code-review-pipelines.yml +++ b/.devops/code-review-pipelines.yml @@ -48,7 +48,7 @@ steps: mavenVersionOption: 'Default' mavenAuthenticateFeed: false javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.11' + jdkVersionOption: '1.17' publishJUnitResults: true testResultsFiles: '**/surefire-reports/TEST-*.xml' goals: 'clean verify' diff --git a/.devops/deploy-pipelines.yml b/.devops/deploy-pipelines.yml index 4545f93..9ea1b94 100644 --- a/.devops/deploy-pipelines.yml +++ b/.devops/deploy-pipelines.yml @@ -123,7 +123,7 @@ stages: mavenPomFile: 'pom.xml' publishJUnitResults: false javaHomeOption: 'JDKVersion' - jdkVersionOption: '1.11' + jdkVersionOption: '1.17' mavenVersionOption: 'Default' mavenOptions: '-Xmx3072m $(MAVEN_OPTS)' mavenAuthenticateFeed: false diff --git a/.java-version b/.java-version index b4de394..98d9bcb 100644 --- a/.java-version +++ b/.java-version @@ -1 +1 @@ -11 +17 diff --git a/Dockerfile b/Dockerfile index 39906a7..9ff437d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -ARG JAVA_VERSION=11 +ARG JAVA_VERSION=17 # This image additionally contains function core tools – useful when using custom extensions #FROM mcr.microsoft.com/azure-functions/java:4.0-java$JAVA_VERSION-core-tools AS installer-env FROM mcr.microsoft.com/azure-functions/java:4.0-java$JAVA_VERSION-build AS installer-env @@ -11,7 +11,8 @@ RUN cd /src/java-function-app && \ cd $(ls -d */|head -n 1) && \ cp -a . /home/site/wwwroot -FROM mcr.microsoft.com/azure-functions/java:4.0-java$JAVA_VERSION +# This image is ssh enabled +FROM mcr.microsoft.com/azure-functions/java:4-java$JAVA_VERSION ENV AzureWebJobsScriptRoot=/home/site/wwwroot \ AzureFunctionsJobHost__Logging__Console__IsEnabled=true diff --git a/host.json b/host.json index f7a1b5e..efc2376 100644 --- a/host.json +++ b/host.json @@ -10,12 +10,14 @@ } }, "logging": { - "fileLoggingMode": "always", + "fileLoggingMode": "debugOnly", "logLevel": { - "default": "Information", + "default": "None", "Host.Results": "Error", - "Function": "Information", - "Host.Aggregator": "Trace" + "Function.GetFlow": "Information", + "Function.FunctionName": "Information", + "Host.Aggregator": "Error", + "Host": "Error" }, "applicationInsights": { "samplingSettings": { diff --git a/pom.xml b/pom.xml index c0ce97c..161466e 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ UTF-8 - 11 + 17 1.27.0 3.1.0 8.6.6 @@ -197,7 +197,7 @@ westus windows - 11 + 17