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": []
}