skip to Main Content

In an Azure Function, how do I access the information logged to the console from within the code

I have an Azure Function that runs every half hour. I have set the log configuration to redirect to the console. Configuration.Default.Logger.Level = PureCloudPlatform.Client.V2.Client.LogLevel.LTrace; Configuration.Default.Logger.Format = LogFormat.JSON; Configuration.Default.Logger.LogRequestBody = true; Configuration.Default.Logger.LogResponseBody = true; Configuration.Default.Logger.LogToConsole = true; Configuration.Default.Logger.LogFilePath = tempFolder+"\dotnetsdk.log"; I…

VIEW QUESTION

Why does Postman show a sign-in page instead of ‘hello’ when calling a .NET API on Azure?

instead of returning hello it requires a sign in. I have tried to pass tokens etc. this works fine in the browser[cannot seem to replicate openID connect auth flow] services.AddMicrosoftIdentityWebAppAuthentication(Configuration) .EnableTokenAcquisitionToCallDownstreamApi() .AddMicrosoftGraph(options => { Configuration.Bind("AzureAd", options); options.Scopes = AppSettings.GetScopes(); })…

VIEW QUESTION
Back To Top
Search