Cannot enable Update Management

Pavel Druzhinin 1 Reputation point
2020-07-20T16:49:32.017+00:00

I've been trying to go through the learning path here:
https://learn.microsoft.com/en-us/learn/modules/keep-your-virtual-machines-updated/3-exercise-use-update-management-on-a-virtual-machine

But no matter what I do, I can't enable Update Management for a VM. I tried recreating the VM and the resource groups from scratch in 3 different regions (North Germany, West Europe and UK South), I tried creating my own Log Analytics workspace and Azure Automation account, creating a Computer Group that only contains the VM in question and manually creating the scope configuration but I still get 'Conflict' and 'Bad Request' errors on Microsoft.OperationalInsights/workspaces/configurationScopes creation operation. I tried creating a configuration scope myself, and it just throws an error that says "Failed to create scope configuration." in the Notifications pane, without any real explanation. Any help is appreciated.

{  
    "authorization": {  
        "action": "microsoft.operationalinsights/workspaces/configurationscopes/write",  
        "scope": "/subscriptions/a90d7579-b2c6-40fb-b5d1-b913c597285b/resourcegroups/mslearn-vmupdate/providers/microsoft.operationalinsights/workspaces/mediawebserver/configurationscopes/MediaWebServer"  
    },  
    "caller": [redacted],  
    "channels": "Operation",  
    "claims": {  
        "aud": "https://management.core.windows.net/",  
        "iss": [redacted],  
        "iat": "1595260803",  
        "nbf": "1595260803",  
        "exp": "1595264703",  
        "http://schemas.microsoft.com/claims/authnclassreference": "1",  
        "aio": [redacted],  
        "http://schemas.microsoft.com/claims/authnmethodsreferences": "pwd,mfa",  
        "appid": [redacted],  
        "appidacr": "2",  
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "",  
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "",  
        "groups": [redacted],  
        "ipaddr": [redacted],  
        "name": "",  
        "http://schemas.microsoft.com/identity/claims/objectidentifier": [redacted],  
        "onprem_sid": [redacted],  
        "puid": "1003200096C0E994",  
        "http://schemas.microsoft.com/identity/claims/scope": "user_impersonation",  
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier": [redacted],  
        "http://schemas.microsoft.com/identity/claims/tenantid": [redacted],  
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": [redacted],  
        "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": [redacted],  
        "uti": [redacted],  
        "ver": "1.0"  
    },  
    "correlationId": "d4a17d91-edf6-4f84-b07b-d09deec7d4d0",  
    "description": "",  
    "eventDataId": "0503b432-eb2a-495d-a3bc-c0ba5dbfbfc8",  
    "eventName": {  
        "value": "EndRequest",  
        "localizedValue": "End request"  
    },  
    "category": {  
        "value": "Administrative",  
        "localizedValue": "Administrative"  
    },  
    "eventTimestamp": "2020-07-20T16:54:17.3392564Z",  
    "id": "/subscriptions/a90d7579-b2c6-40fb-b5d1-b913c597285b/resourcegroups/mslearn-vmupdate/providers/microsoft.operationalinsights/workspaces/mediawebserver/configurationscopes/MediaWebServer/events/0503b432-eb2a-495d-a3bc-c0ba5dbfbfc8/ticks/637308608573392564",  
    "level": "Error",  
    "operationId": "d4a17d91-edf6-4f84-b07b-d09deec7d4d0",  
    "operationName": {  
        "value": "microsoft.operationalinsights/workspaces/configurationscopes/write",  
        "localizedValue": "Set Configuration Scope"  
    },  
    "resourceGroupName": "mslearn-vmupdate",  
    "resourceProviderName": {  
        "value": "microsoft.operationalinsights",  
        "localizedValue": "microsoft.operationalinsights"  
    },  
    "resourceType": {  
        "value": "microsoft.operationalinsights/workspaces/configurationscopes",  
        "localizedValue": "microsoft.operationalinsights/workspaces/configurationscopes"  
    },  
    "resourceId": "/subscriptions/a90d7579-b2c6-40fb-b5d1-b913c597285b/resourcegroups/mslearn-vmupdate/providers/microsoft.operationalinsights/workspaces/mediawebserver/configurationscopes/MediaWebServer",  
    "status": {  
        "value": "Failed",  
        "localizedValue": "Failed"  
    },  
    "subStatus": {  
        "value": "BadRequest",  
        "localizedValue": "Bad Request (HTTP Status Code: 400)"  
    },  
    "submissionTimestamp": "2020-07-20T16:56:00.0827922Z",  
    "subscriptionId": "a90d7579-b2c6-4p0fb-b5d1-b913c597285b",  
    "tenantId": [redacted],  
    "properties": {  
        "statusCode": "BadRequest",  
        "serviceRequestId": null,  
        "statusMessage": "{\"error\":{\"code\":\"BadRequest\",\"message\":\"\"}}",  
        "eventCategory": "Administrative"  
    },  
    "relatedEvents": []  
}  
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,255 questions
0 comments No comments
{count} votes

5 answers

Sort by: Most helpful
  1. Leon Laude 85,816 Reputation points
    2020-07-20T21:36:15.067+00:00

    Hi,

    Since you're following a guide within Microsoft Learn, you might want to ask in the dedicated Microsoft Learn forum over here:
    https://trainingsupport.microsoft.com/en-us/tcml/forum/tcml_mat

    Occassionally the Microsoft Learn guides have not been updated, so they might know better in the dedicated forum.

    Best regards,
    Leon

    0 comments No comments

  2. Pavel Druzhinin 1 Reputation point
    2020-07-21T06:38:21.603+00:00

    @Leon Laude I don't believe this is related directly to Microsoft Learn. I'm just trying to enable a service and it's failing.


  3. Anonymous
    2020-07-21T11:59:40.727+00:00

    I have the same issue.


  4. Sachs, Wolfgang 1 Reputation point
    2020-07-21T12:50:31.07+00:00

    Try to create a new scope in the Log Analytics workspace (short name, lower case letters only, e.g. scope). Afterwards, reactivate the update management from the Automation Account (worked for me).

    0 comments No comments

  5. Anonymous
    2020-07-21T13:28:17.167+00:00

    i have a six letter account, all lower case

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.