admin管理员组文章数量:1356071
I've an azure app service, then i want to know when someone scaleup or scales down my service plan i want to know who did that.
I've used the below command but didnt get any logs
az monitor activity-log list --resource-group YourRGName subscriptions/subscription-id/resourceGroups/YourRGName/providers/Microsoft.Web/serverfarms/AppServicePlan --query "[?operationName.value=='Microsoft.Web/serverfarms/write']"
can please someone help me out.
I've an azure app service, then i want to know when someone scaleup or scales down my service plan i want to know who did that.
I've used the below command but didnt get any logs
az monitor activity-log list --resource-group YourRGName subscriptions/subscription-id/resourceGroups/YourRGName/providers/Microsoft.Web/serverfarms/AppServicePlan --query "[?operationName.value=='Microsoft.Web/serverfarms/write']"
can please someone help me out.
Share Improve this question asked Mar 28 at 7:47 HaneeHanee 12 bronze badges 01 Answer
Reset to default 0The reason you're not getting the logs is because, the CLI command is missing the --resource-id
flag before specifying the resource path.
Use the below command to get the logs without any issues.
az monitor activity-log list --resource-group <resource-group-name> --resource-id /subscriptions/subscription-id/resourceGroups/<resource-group-name>/providers/Microsoft.Web/serverfarms/AppServicePlan --query "[?operationName.value=='Microsoft.Web/serverfarms/write']"
Please refer this Msdoc for Azure CLI command. You can see the logs now.
- LocalizedValue indicates the specific changes made to the Azure App Service Plan.
- Caller shows the username of the individual who performed the scale-up or scale-down action.
You can also view the logs in your Azure app service
Go to App service - > Monitoring -> Diagnostic settings -> follow the below steps
In the activity log of your App Service Plan, you can see who scaled it up or down.
本文标签: azure webappsIs it possible to check scale up logsStack Overflow
版权声明:本文标题:azure webapps - Is it possible to check scale up logs - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744050138a2582270.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论