Skip to content

Microsoft.Insights/diagnosticSettings/delete

Azure

Microsoft.Insights/diagnosticSettings/delete

service: Azure - Monitor
techniques:

Event

Deletes an Azure Monitor diagnostic setting, stopping the forwarding of logs and metrics to a configured destination.

Security Context

  • Impairing defenses allows adversaries to operate freely by removing security controls that would otherwise detect or block their activity.
  • Modifications to logging and monitoring infrastructure can create blind spots that allow adversary activity to go undetected.

Log Source

Azure Activity Log

Sample Event

Adversarial. Compromised account draco@fantasticlogs.cloud (with newly-elevated tenant-root permissions from the elevateAccess step) deletes the diagnostic setting that forwards Activity Log events to the fantasticlogs-log-archive Log Analytics workspace. Removing this diagnostic setting stops Activity Log forwarding so subsequent malicious operations are not retained in the security workspace. The diagnostic setting is scoped at the subscription level (production subscription).

{
"authorization": {
"action": "Microsoft.Insights/diagnosticSettings/delete",
"scope": "/subscriptions/20000000-0000-4000-8000-000000000001/providers/microsoft.insights/diagnosticSettings/fantasticlogs-activity-to-loganalytics"
},
"caller": "draco@fantasticlogs.cloud",
"channels": "Operation",
"claims": {
"aud": "https://management.core.windows.net/",
"iss": "https://sts.windows.net/10000000-0000-4000-8000-000000000001/",
"iat": "1776592800",
"nbf": "1776592800",
"exp": "1776681600",
"appid": "04b07795-8ddb-461a-bbee-02f9e1bf7b46",
"appidacr": "0",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/surname": "Malfoy",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname": "Draco",
"ipaddr": "203.0.113.66",
"name": "Draco Malfoy",
"http://schemas.microsoft.com/identity/claims/objectidentifier": "30000000-0000-4000-8000-001010011010",
"puid": "1003200000000666",
"http://schemas.microsoft.com/identity/claims/scope": "user_impersonation",
"http://schemas.microsoft.com/identity/claims/tenantid": "10000000-0000-4000-8000-000000000001",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name": "draco@fantasticlogs.cloud",
"http://schemas.xmlsoap.org/ws/2005/05/identity/claims/upn": "draco@fantasticlogs.cloud",
"http://schemas.microsoft.com/identity/claims/wids": "f58310d9-a9f6-439a-9e8d-f62e7b41a168",
"uti": "diagDel200ExampleUti",
"ver": "1.0"
},
"correlationId": "90000000-0000-4000-8000-000011111010",
"description": "",
"eventDataId": "90000000-0000-4000-8000-000011111011",
"eventName": {
"value": "EndRequest",
"localizedValue": "End request"
},
"category": {
"value": "Administrative",
"localizedValue": "Administrative"
},
"eventTimestamp": "2026-04-15T17:38:11.4302187Z",
"id": "/subscriptions/20000000-0000-4000-8000-000000000001/providers/microsoft.insights/diagnosticSettings/fantasticlogs-activity-to-loganalytics/events/90000000-0000-4000-8000-000011111011/ticks/638798201914302187",
"level": "Informational",
"operationId": "90000000-0000-4000-8000-000011111100",
"operationName": {
"value": "Microsoft.Insights/diagnosticSettings/delete",
"localizedValue": "Deletes the diagnostic setting"
},
"resourceGroupName": "",
"resourceProviderName": {
"value": "Microsoft.Insights",
"localizedValue": "Microsoft Insights"
},
"resourceType": {
"value": "Microsoft.Insights/diagnosticSettings",
"localizedValue": "Microsoft.Insights/diagnosticSettings"
},
"resourceId": "/subscriptions/20000000-0000-4000-8000-000000000001/providers/microsoft.insights/diagnosticSettings/fantasticlogs-activity-to-loganalytics",
"status": {
"value": "Succeeded",
"localizedValue": "Succeeded"
},
"subStatus": {
"value": "OK",
"localizedValue": "OK (HTTP Status Code: 200)"
},
"submissionTimestamp": "2026-04-15T17:38:12.0148921Z",
"subscriptionId": "20000000-0000-4000-8000-000000000001",
"tenantId": "10000000-0000-4000-8000-000000000001",
"properties": {
"statusCode": "OK",
"serviceRequestId": null,
"eventCategory": "Administrative",
"entity": "/subscriptions/20000000-0000-4000-8000-000000000001/providers/microsoft.insights/diagnosticSettings/fantasticlogs-activity-to-loganalytics",
"message": "Microsoft.Insights/diagnosticSettings/delete",
"hierarchy": "10000000-0000-4000-8000-000000000001/20000000-0000-4000-8000-000000000001"
},
"relatedEvents": []
}

MITRE ATT&CK Mapping

Tactics: Defense Impairment

Techniques:
  • T1685.002 — Disable or Modify Cloud Log — An adversary may disable or modify cloud logging capabilities and integrations to limit what data is collected on their activities and avoid detection. Cloud environments allow for collection and analysis of audit and application logs that provide insight into what activities a user does within t...