Can't turn on logs for app service

Ronen 5 Reputation points
2024-05-22T13:44:30.91+00:00

I think I failed with my experiment trying to run an ASP.NET app on Azure as app service.

I published the app and got a blank screen, can't know why it doesn't work while it works on IIS.

Can't turn on logs.

Thanks.User's image

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,024 questions
{count} votes

1 answer

Sort by: Most helpful
  1. VenkateshDodda-MSFT 22,401 Reputation points Microsoft Employee
    2024-05-24T06:30:05.27+00:00

    @Ronen Thanks for posting your question in Microsoft Q&A, apologize for any inconvenience caused on this.

    Based on the information, shared it looks like you are not able to enable the application logging through the portal.

    • Can you check whether you have contributor access to the resource group or on this app service or at the subscription level? or what is the permission do you have on the resource or resource group or on the subscription level ?

    If you are having contributor access and still not able to enable the application logs through portal. Please choose any of the below alternative methods and try enabling the application logs.

    Method 1: Through AzCLI cmdlet az webapp log config cmdlet.

    az webapp log config --name <WebAppName> --Resource-group <AppServiceResourceGroupName> --application-logging filesystem
    
    

    Method 2 : Using Update Diagnostic logs config Rest API

    PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/config/logs?api-version=2023-12-01
    

    Hope this helps, let me know if you are still facing the issues.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.