@@ -455,10 +455,9 @@ function New-WorkerStandaloneEnv($ResourceSettings) {
455455 $config = $ResourceSettings.WorkerConfig | ConvertTo-FlatConfig
456456
457457 # These set up the Azure Functions job host or match with the normal Azure Functions worker settings.
458+ $config [" ASPNETCORE_SUPPRESSSTATUSMESSAGES" ] = " true" ;
458459 $config [" AzureFunctionsJobHost__logging__Console__IsEnabled" ] = " false" ;
459460 $config [" AzureFunctionsJobHost__logging__LogLevel__Default" ] = $ResourceSettings.WorkerLogLevel ;
460- $config [" logging__LogLevel__Default" ] = $ResourceSettings.WorkerLogLevel ;
461- $config [" logging__ApplicationInsights__LogLevel__Default" ] = $ResourceSettings.WorkerLogLevel ;
462461 $config [" AzureFunctionsWebHost__hostId" ] = $ResourceSettings.WorkerHostId ;
463462 $config [" AzureWebJobs.MetricsFunction.Disabled" ] = " true" ;
464463 $config [" AzureWebJobs.TimerFunction.Disabled" ] = " true" ;
@@ -468,6 +467,8 @@ function New-WorkerStandaloneEnv($ResourceSettings) {
468467 $config [" DOTNET_gcServer" ] = " 1" ;
469468 $config [" FUNCTIONS_WORKER_RUNTIME_VERSION" ] = " 7.0" ;
470469 $config [" FUNCTIONS_WORKER_RUNTIME" ] = " dotnet-isolated" ;
470+ $config [" logging__ApplicationInsights__LogLevel__Default" ] = $ResourceSettings.WorkerLogLevel ;
471+ $config [" logging__LogLevel__Default" ] = $ResourceSettings.WorkerLogLevel ;
471472 $config [" NUGET_INSIGHTS_ALLOW_ICU" ] = " true" ;
472473 $config [" NuGetInsights__LeaseContainerName" ] = $ResourceSettings.LeaseContainerName ;
473474 $config [" NuGetInsights__StorageAccountName" ] = $ResourceSettings.StorageAccountName ;
@@ -484,6 +485,7 @@ function New-WorkerStandaloneEnv($ResourceSettings) {
484485 $config [" NuGetInsights__UserManagedIdentityClientId" ] = " PLACEHOLDER" ;
485486 $config [" QueueTriggerConnection__clientId" ] = " PLACEHOLDER" ;
486487 $config [" WEBSITE_HOSTNAME" ] = " PLACEHOLDER" ;
488+ $config [" WEBSITE_SITE_NAME" ] = " PLACEHOLDER" ;
487489
488490 return $config
489491}
0 commit comments