Enabling Azure Diagnostic Logging Using the CLI

I am trying to achieve this , however I would like to enable diagnostic recording using any form of interaction other than human. I would like to include something that allows me to keep a diagnostic log during my build step, by default they are disabled. Does any Powsershell (using Azure RM) or the visual work of the build service for studio allow this?

+5
source share
1 answer

You can do this with Azure CLI 2.0 . You can use the following command.

az webapp log config --name --resource-group [--application-logging {false, true}] [--detailed-error-messages {false, true}] [--failed-request-tracing {false, true}] [--level {error, information, verbose, warning}] [--slot] [--web-server-logging {filesystem, off, storage}] 

Get help from the az az webapp log config -h help command or official article .

 #an example az webapp log config --name shui -g shuiapp --application-logging true --web-server-logging filesystem 
+3
source

Source: https://habr.com/ru/post/1268795/


All Articles