Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 1.25 KB

webapp-log-retrieval.md

File metadata and controls

24 lines (20 loc) · 1.25 KB

Web App Log Retrieval

You can retrieve the logs from your individual InRule App Service Web Apps via the Microsoft Azure CLI.

Sign in to Microsoft Azure

First, open a PowerShell prompt and use the Azure CLI to sign in to your Microsoft Azure subscription:

az login

Set active subscription

If your Microsoft Azure account has access to multiple subscriptions, you will need to set your active subscription to where you create your Microsoft Azure resources:

# Example: az account set --subscription "Contoso Subscription 1"
az account set --subscription SUBSCRIPTION_NAME

Retrieve logs from desired Web App

Retrieve a zip file of logs from a specified Web App with the az webapp log download command:

# Example az webapp log download --name contoso-catalog-prod-wa --resource-group inrule-prod-rg
az webapp log download --name WEB_APP_NAME --resource-group RESOURCE_GROUP