question

UrsEnzler-4638 avatar image
0 Votes"
UrsEnzler-4638 asked ryanchill answered

ApplicationInsights Activity Log entries when auto-scaling Linux App Service Plan

We use app service auto scale-out (Linux), with
170997-image.png

Scaling works as expected. But the activity log of the app service plan shows something strange:
171039-image.png

The Autoscale scale down/up log entries are expected, but the Update Hosting plan initiated by AzureApplicationInsights are not.

Wenn clicking an AppInsights entry this is shown:
171047-image.png

The json shown is (I changed the app name):

 {
     "authorization": {
         "action": "Microsoft.Web/serverfarms/write",
         "scope": "/subscriptions/574b6a95-5c00-40d9-b054-46e0606bbf58/resourceGroups/ourApp_switzerland/providers/Microsoft.Web/serverfarms/LinuxAppServicePlanZurich"
     },
     "caller": "ca1359f6-57df-473e-90dd-30745f04c693",
     "channels": "Operation",
     "claims": {
         "aud": "https://management.azure.com/",
         "iss": "https://sts.windows.net/00d18ec5-0c58-4b44-a1b2-be8bf6686ca9/",
         "iat": "1643850330",
         "nbf": "1643850330",
         "exp": "1643937030",
         "aio": "E2ZgYJixyXUK83oV3qvfzxWsdvzJDwA=",
         "appid": "11c174dc-1945-4a9a-a36b-c79a0f246b9b",
         "appidacr": "2",
         "http://schemas.microsoft.com/identity/claims/identityprovider": "https://sts.windows.net/00d18ec5-0c58-4b44-a1b2-be8bf6686ca9/",
         "idtyp": "app",
         "http://schemas.microsoft.com/identity/claims/objectidentifier": "ca1359f6-57df-473e-90dd-30745f04c693",
         "rh": "0.AQkAxY7RAFgMREuhsr6L9mhsqUZIf3kAutdPukPawfj2MBMJAAA.",
         "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": "ca1359f6-57df-473e-90dd-30745f04c693",
         "http://schemas.microsoft.com/identity/claims/tenantid": "00d18ec5-0c58-4b44-a1b2-be8bf6686ca9",
         "uti": "JokBUrVz6UG5JK5Qnz83AA",
         "ver": "1.0",
         "xms_tcdt": "1364913883"
     },
     "correlationId": "00d64eaa-22ca-44c0-a444-45ba7a06222f",
     "description": "",
     "eventDataId": "917bd743-d3e7-46a3-9fb6-b246558e103f",
     "eventName": {
         "value": "BeginRequest",
         "localizedValue": "Begin request"
     },
     "category": {
         "value": "Administrative",
         "localizedValue": "Administrative"
     },
     "eventTimestamp": "2022-02-03T18:00:21.1411454Z",
     "id": "/subscriptions/574b6a95-5c00-40d9-b054-46e0606bbf58/resourceGroups/ourApp_switzerland/providers/Microsoft.Web/serverfarms/LinuxAppServicePlanZurich/events/917bd743-d3e7-46a3-9fb6-b246558e103f/ticks/637795080211411454",
     "level": "Informational",
     "operationId": "00d64eaa-22ca-44c0-a444-45ba7a06222f",
     "operationName": {
         "value": "Microsoft.Web/serverfarms/write",
         "localizedValue": "Update hosting plan"
     },
     "resourceGroupName": "ourApp_switzerland",
     "resourceProviderName": {
         "value": "Microsoft.Web",
         "localizedValue": "Azure Web Sites"
     },
     "resourceType": {
         "value": "Microsoft.Web/serverfarms",
         "localizedValue": "Microsoft.Web/serverfarms"
     },
     "resourceId": "/subscriptions/574b6a95-5c00-40d9-b054-46e0606bbf58/resourceGroups/ourApp_switzerland/providers/Microsoft.Web/serverfarms/LinuxAppServicePlanZurich",
     "status": {
         "value": "Started",
         "localizedValue": "Started"
     },
     "subStatus": {
         "value": "",
         "localizedValue": ""
     },
     "submissionTimestamp": "2022-02-03T18:01:31.2052089Z",
     "subscriptionId": "574b6a95-5c00-40d9-b054-46e0606bbf58",
     "tenantId": "00d18ec5-0c58-4b44-a1b2-be8bf6686ca9",
     "properties": {
         "eventCategory": "Administrative",
         "entity": "/subscriptions/574b6a95-5c00-40d9-b054-46e0606bbf58/resourceGroups/ourApp_switzerland/providers/Microsoft.Web/serverfarms/LinuxAppServicePlanZurich",
         "message": "Microsoft.Web/serverfarms/write",
         "hierarchy": "574b6a95-5c00-40d9-b054-46e0606bbf58"
     },
     "relatedEvents": []
 }

The change history look, however, correct:
171066-image.png


Is this normal behaviour or something to worry about?


azure-monitorazure-webapps-scaling
image.png (100.8 KiB)
image.png (89.3 KiB)
image.png (32.8 KiB)
image.png (18.6 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered

@UrsEnzler-4638, I'm still awaiting confirmation, but Auto Scale is handled by Azure Monitor behind the scenes. Therefore, the assumption is that particular message is the result of Azure Monitor initiating the request for the App Service to scale in or out when rule is met. ApplicationInsights message doesn't indicate any sort of error and isn't something to be worried about.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.