none
Custom metric for autoscaling of web app not supported RRS feed

  • Question

  • Hi,

    I was following this tutorial on autoscaling web apps on on custom metric (https://docs.microsoft.com/en-us/azure/azure-monitor/platform/autoscale-custom-metric) and unfortunately Azure keeps telling me that my custom metric is not supported for the deployed web app. Can anybody please help me and point out why my web app cannot be scaled by custom metric. If needed, I am located in Austria and was deploying the web app to West Europe.

    Thanks in advance!

    Metric 'NumOfRequests' is not supported for resource '/subscriptions/4c6ad49f-5448-4a16-bef1-de2342c0626e/resourceGroups/dtc/providers/microsoft.insights/components/AppInsightsTestApp201

    {
    "authorization": {
    "action": 
    "microsoft.insights/autoscalesettings/write",
    "scope": 
    "/subscriptions/4c6ad49f-5448-4a16-bef1-de2342c0626e/resourceGroups/dtc/providers/microsoft.insights/autoscalesettings/dtc-serviceplan-low-prod-webwts-Autoscale-468"
    },
    "caller": 
    "robi-91@hotmail.com",
    "channels": 
    "Operation",
    "claims": {
    "aud": 
    "https://management.core.windows.net/",
    "iss": 
    "https://sts.windows.net/98a4ad63-9be5-4230-8268-6ecd32db6483/",
    "iat": 
    "1559715716",
    "nbf": 
    "1559715716",
    "exp": 
    "1559719616",
    "http://schemas.microsoft.com/claims/authnclassreference":
    "1",
    "aio": 
    "AUQAu/8LAAAATmkD+oTAWPXNdtnY/VkFRORG/11nYxwM6HpVuDvZtzprvAXT8VqtU7SzQiVgGVj/9Uu9cbAEsoSF8/Aw8zEKLA==",
    "altsecid": 
    "1:live.com:0006BFFD9DD5F7EB",
    "http://schemas.microsoft.com/claims/authnmethodsreferences":
    "pwd",
    "appid": 
    "c44b4083-3bb0-49c1-b47d-974e53cbdf3c",
    "appidacr": 
    "2",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress":
    "robi-91@hotmail.com",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname":
    "Mrkonjić",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname":
    "Robert",
    "groups": 
    "588c1e90-fafb-4a10-b938-0e2c56988b7c",
    "http://schemas.microsoft.com/identity/claims/identityprovider":
    "live.com",
    "ipaddr": 
    "195.202.175.153",
    "name": 
    "Robert Mrkonjić",
    "http://schemas.microsoft.com/identity/claims/objectidentifier":
    "b063de29-c914-46bc-ad7d-d7646e50330c",
    "puid": 
    "10033FFF976E5527",
    "http://schemas.microsoft.com/identity/claims/scope":
    "user_impersonation",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier":
    "taaJ_6reybcYENvfK_dsxnkYEuM8dUL5xMMEOY5kCcg",
    "http://schemas.microsoft.com/identity/claims/tenantid":
    "98a4ad63-9be5-4230-8268-6ecd32db6483",
    "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name":
    "live.com#robi-91@hotmail.com",
    "uti": 
    "Rlzsp4U4hkC-EdWH1v6YAA",
    "ver": 
    "1.0",
    "wids": 
    "62e90394-69f5-4237-9190-012177145e10"
    },
    "correlationId": 
    "79d4a60d-f03b-4e3e-b556-8326f202086c",
    "description": 
    "",
    "eventDataId": 
    "c157fde0-301d-475c-bda6-cdb5a52420ed",
    "eventName": {
    "value": 
    "EndRequest",
    "localizedValue": 
    "End request"
    },
    "category": {
    "value": 
    "Administrative",
    "localizedValue": 
    "Administrative"
    },
    "eventTimestamp": 
    "2019-06-05T07:12:12.5615148Z",
    "id": 
    "/subscriptions/4c6ad49f-5448-4a16-bef1-de2342c0626e/resourceGroups/dtc/providers/microsoft.insights/autoscalesettings/dtc-serviceplan-low-prod-webwts-Autoscale-468/events/c157fde0-301d-475c-bda6-cdb5a52420ed/ticks/636953155325615148",
    "level": 
    "Error",
    "operationId": 
    "79d4a60d-f03b-4e3e-b556-8326f202086c",
    "operationName": {
    "value": 
    "microsoft.insights/autoscalesettings/write",
    "localizedValue": 
    "Update autoscale setting"
    },
    "resourceGroupName": 
    "dtc",
    "resourceProviderName": {
    "value": 
    "microsoft.insights",
    "localizedValue": 
    "Microsoft Insights"
    },
    "resourceType": {
    "value": 
    "microsoft.insights/autoscalesettings",
    "localizedValue": 
    "microsoft.insights/autoscalesettings"
    },
    "resourceId": 
    "/subscriptions/4c6ad49f-5448-4a16-bef1-de2342c0626e/resourceGroups/dtc/providers/microsoft.insights/autoscalesettings/dtc-serviceplan-low-prod-webwts-Autoscale-468",
    "status": {
    "value": 
    "Failed",
    "localizedValue": 
    "Failed"
    },
    "subStatus": {
    "value": 
    "BadRequest",
    "localizedValue": 
    "Bad Request (HTTP Status Code: 400)"
    },
    "submissionTimestamp": 
    "2019-06-05T07:13:48.1357184Z",
    "subscriptionId": 
    "4c6ad49f-5448-4a16-bef1-de2342c0626e",
    "properties": {
    "statusCode": 
    "BadRequest",
    "serviceRequestId": 
    "00000000-0000-0000-0000-000000000000",
    "statusMessage": 
    "{\"code\":\"UnsupportedMetric\",\"message\":\"Metric 'NumOfRequests' is not supported for resource '/subscriptions/4c6ad49f-5448-4a16-bef1-de2342c0626e/resourceGroups/dtc/providers/microsoft.insights/components/AppInsightsTestApp20190604021321'\"}"
    },
    "relatedEvents": []
    }
    
    
    


    • Edited by Mrki01 Wednesday, June 5, 2019 8:01 AM
    Wednesday, June 5, 2019 8:00 AM

Answers