I build a api and when I publish the erro "Message": "An error has occurred." is happen.
I make a add-migration and delete the file. When create other file with add-migration and make a update-database. This work in my machine, but when I publish in the Microsoft azure I always receive "Message": "An error has occurred.".
I look for the variable SCM_LOGSTREAM_TIMEOUT but can't find. Can help me ?
CodePudding user response:
I have deployed Azure Web API and checked the Log Stream
.
If Application Service logs
are set to off, we get the below error.
Once we enable Application Service logs
, by default we get the below message in Log Console.
By default, it suggests us to increase the TimeOut in Azure App Settings if required. The default timeout is 2 hours (7200 sec).
I look for the variable SCM_LOGSTREAM_TIMEOUT but can't find. Can help me ?
In Azure portal
=> Navigate to your Web App
=> click on Configuration
Under Settings
=> Application Settings
, add New Application setting with the key SCM_LOGSTREAM_TIMEOUT
and value which you want (In Seconds).