{
	"id": "699d4967-5e18-449f-a77a-b84e92a5a3c7",
	"created_at": "2026-04-06T03:36:57.557723Z",
	"updated_at": "2026-04-10T13:11:36.693624Z",
	"deleted_at": null,
	"sha1_hash": "3abf7aa5a29cfd7117683ae3d8c05c18d1ddb26b",
	"title": "az monitor diagnostic-settings",
	"llm_title": "",
	"authors": "",
	"file_creation_date": "0001-01-01T00:00:00Z",
	"file_modification_date": "0001-01-01T00:00:00Z",
	"file_size": 96069,
	"plain_text": "az monitor diagnostic-settings\r\nBy mikefrobbins\r\nArchived: 2026-04-06 03:09:12 UTC\r\nIn this article\r\n1. Commands\r\n2. az monitor diagnostic-settings create\r\n3. az monitor diagnostic-settings delete\r\n4. az monitor diagnostic-settings list\r\n5. az monitor diagnostic-settings show\r\n6. az monitor diagnostic-settings update\r\nManage service diagnostic settings.\r\nName Description Type Sta\r\naz monitor\r\ndiagnostic-settings\r\ncategories\r\nRetrieve service diagnostic settings categories. Core GA\r\naz monitor\r\ndiagnostic-settings\r\ncategories\r\nlist\r\nList the diagnostic settings categories for the specified resource. Core GA\r\naz monitor\r\ndiagnostic-settings\r\ncategories\r\nshow\r\nGets the diagnostic settings category for the specified resource. Core GA\r\naz monitor\r\ndiagnostic-settings\r\ncreate\r\nCreate diagnostic settings for the specified resource. For more information, visit:\r\nhttps://learn.microsoft.com/rest/api/monitor/diagnosticsettings/createorupdate#metricsettings.\r\nCore GA\r\naz monitor\r\ndiagnostic-settings\r\ndelete\r\nDeletes existing diagnostic settings for the specified resource. Core GA\r\naz monitor\r\ndiagnostic-settings listGets the active diagnostic settings list for the specified resource. Core GA\r\naz monitor\r\ndiagnostic- Gets the active diagnostic settings for the specified resource.\r\nCore GA\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 1 of 10\n\nName Description Type Sta\r\nsettings\r\nshow\r\naz monitor\r\ndiagnostic-settings\r\nsubscription\r\nManage diagnostic settings for subscription. Core GA\r\naz monitor\r\ndiagnostic-settings\r\nsubscription\r\ncreate\r\nCreate subscription diagnostic settings for the specified resource. Core GA\r\naz monitor\r\ndiagnostic-settings\r\nsubscription\r\ndelete\r\nDeletes existing subscription diagnostic settings for the specified resource. Core GA\r\naz monitor\r\ndiagnostic-settings\r\nsubscription\r\nlist\r\nGets the active subscription diagnostic settings list for the specified subscriptionId. :keyword\r\ncallable cls: A custom type or function that will be passed the direct response:return:\r\nSubscriptionDiagnosticSettingsResourceCollection or the result of cls(response):rtype: ~$(python-base-namespace).v2017_05_01_preview.models.SubscriptionDiagnosticSettingsResourceCollection:raises\r\n~azure.core.exceptions.HttpResponseError:.\r\nCore GA\r\naz monitor\r\ndiagnostic-settings\r\nsubscription\r\nshow\r\nGets the active subscription diagnostic settings for the specified resource. Core GA\r\naz monitor\r\ndiagnostic-settings\r\nsubscription\r\nupdate\r\nUpdate subscription diagnostic settings for the specified resource. Core GA\r\naz monitor\r\ndiagnostic-settings\r\nupdate\r\nUpdate diagnostic settings for the specified resource. Core GA\r\naz monitor diagnostic-settings create --name\r\n --resource\r\n [--event-hub]\r\n [--event-hub-rule]\r\n [--export-to-resource-specific {0, 1, f, false, n, no, t, true, y, yes}]\r\n [--logs]\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 2 of 10\n\n[--marketplace-partner-id]\r\n [--metrics]\r\n [--resource-group]\r\n [--resource-namespace]\r\n [--resource-parent]\r\n [--resource-type]\r\n [--storage-account]\r\n [--workspace]\r\nCreate diagnostic settings, retention here only applies when the target is a storage account.\r\naz monitor diagnostic-settings create --resource {ID} -n {name} --storage-account {storageAccount} --logs \"[{category:Wor\r\n--name -n\r\nThe name of the diagnostic setting. Required.\r\n--resource\r\nName or ID of the target resource.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\nThe following parameters are optional, but depending on the context, one or more might become required for the command\r\nto execute successfully.\r\n--event-hub\r\nName or ID an event hub. If none is specified, the default event hub will be selected.\r\n--event-hub-rule\r\nName or ID of the event hub authorization rule.\r\n--export-to-resource-specific\r\nIndicate that the export to LA must be done to a resource specific table, a.k.a. dedicated or fixed schema table, as opposed to\r\nthe default dynamic schema table called AzureDiagnostics. This argument is effective only when the argument --workspace\r\nis also given. Allowed values: false, true.\r\nProperty Value\r\nAccepted values: 0, 1, f, false, n, no, t, true, y, yes\r\n--logs\r\n--marketplace-partner-id\r\nThe full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.\r\n--metrics\r\nThe list of metric settings. Support shorthand-syntax, json-file and yaml-file. Try \"??\" to show more.\r\n--resource-group -g\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 3 of 10\n\nName of resource group. You can configure the default group using az configure --defaults group=\u003cname\u003e .\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-namespace\r\nTarget resource provider namespace.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-parent\r\nTarget resource parent path, if applicable.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-type\r\nTarget resource type. Can also accept namespace/type format (Ex: 'Microsoft.Compute/virtualMachines').\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--storage-account\r\nName or ID of the storage account to send diagnostic logs to.\r\n--workspace\r\nName or ID of the Log Analytics workspace to send diagnostic logs to.\r\nGlobal Parameters\r\nDeletes existing diagnostic settings for the specified resource.\r\naz monitor diagnostic-settings delete --name\r\n --resource\r\n [--resource-group]\r\n [--resource-namespace]\r\n [--resource-parent]\r\n [--resource-type]\r\n--name -n\r\nThe name of the diagnostic setting. Required.\r\n--resource\r\nName or ID of the target resource.\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 4 of 10\n\nProperty Value\r\nParameter group: Target Resource Arguments\r\nThe following parameters are optional, but depending on the context, one or more might become required for the command\r\nto execute successfully.\r\n--resource-group -g\r\nName of resource group. You can configure the default group using az configure --defaults group=\u003cname\u003e .\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-namespace\r\nTarget resource provider namespace.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-parent\r\nTarget resource parent path, if applicable.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-type\r\nTarget resource type. Can also accept namespace/type format (Ex: 'Microsoft.Compute/virtualMachines').\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\nGlobal Parameters\r\nGets the active diagnostic settings list for the specified resource.\r\naz monitor diagnostic-settings list --resource\r\n [--resource-group]\r\n [--resource-namespace]\r\n [--resource-parent]\r\n [--resource-type]\r\n--resource\r\nName or ID of the target resource.\r\nThe following parameters are optional, but depending on the context, one or more might become required for the command\r\nto execute successfully.\r\n--resource-group -g\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 5 of 10\n\nName of resource group. You can configure the default group using az configure --defaults group=\u003cname\u003e .\r\n--resource-namespace\r\nTarget resource provider namespace.\r\n--resource-parent\r\nTarget resource parent path, if applicable.\r\n--resource-type\r\nTarget resource type. Can also accept namespace/type format (Ex: 'Microsoft.Compute/virtualMachines').\r\nGlobal Parameters\r\nGets the active diagnostic settings for the specified resource.\r\naz monitor diagnostic-settings show --name\r\n --resource\r\n [--resource-group]\r\n [--resource-namespace]\r\n [--resource-parent]\r\n [--resource-type]\r\n--name -n\r\nThe name of the diagnostic setting. Required.\r\n--resource\r\nName or ID of the target resource.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\nThe following parameters are optional, but depending on the context, one or more might become required for the command\r\nto execute successfully.\r\n--resource-group -g\r\nName of resource group. You can configure the default group using az configure --defaults group=\u003cname\u003e .\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-namespace\r\nTarget resource provider namespace.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-parent\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 6 of 10\n\nTarget resource parent path, if applicable.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-type\r\nTarget resource type. Can also accept namespace/type format (Ex: 'Microsoft.Compute/virtualMachines').\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\nGlobal Parameters\r\nUpdate diagnostic settings for the specified resource.\r\naz monitor diagnostic-settings update --name\r\n --resource\r\n [--add]\r\n [--event-hub]\r\n [--event-hub-rule]\r\n [--force-string {0, 1, f, false, n, no, t, true, y, yes}]\r\n [--log-ana-dtype --log-analytics-destination-type]\r\n [--logs]\r\n [--marketplace-partner-id]\r\n [--metrics]\r\n [--remove]\r\n [--resource-group]\r\n [--resource-namespace]\r\n [--resource-parent]\r\n [--resource-type]\r\n [--service-bus-rule-id]\r\n [--set]\r\n [--storage-account-id]\r\n [--workspace-id]\r\n--name -n\r\nThe name of the diagnostic setting. Required.\r\n--resource\r\nName or ID of the target resource.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\nThe following parameters are optional, but depending on the context, one or more might become required for the command\r\nto execute successfully.\r\n--add\r\nAdd an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty\r\n\u003ckey=value, string or JSON string\u003e .\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 7 of 10\n\nProperty Value\r\nParameter group: Generic Update Arguments\r\n--event-hub\r\nThe name of the event hub. If none is specified, the default event hub will be selected.\r\nProperty Value\r\nParameter group: Properties Arguments\r\n--event-hub-rule\r\nThe resource Id for the event hub authorization rule.\r\nProperty Value\r\nParameter group: Properties Arguments\r\n--force-string\r\nWhen using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.\r\nProperty Value\r\nParameter group: Generic Update Arguments\r\nAccepted values: 0, 1, f, false, n, no, t, true, y, yes\r\n--log-ana-dtype --log-analytics-destination-type\r\nA string indicating whether the export to Log Analytics should use the default destination type, i.e. AzureDiagnostics, or use\r\na destination type constructed as follows: \u003cnormalized service identity\u003e_\u003cnormalized category name\u003e . Possible values\r\nare: Dedicated and null (null is default.).\r\nProperty Value\r\nParameter group: Properties Arguments\r\n--logs\r\nThe list of logs settings. Support shorthand-syntax, json-file and yaml-file. Try \"??\" to show more.\r\nProperty Value\r\nParameter group: Properties Arguments\r\n--marketplace-partner-id\r\nThe full ARM resource ID of the Marketplace resource to which you would like to send Diagnostic Logs.\r\nProperty Value\r\nParameter group: Properties Arguments\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 8 of 10\n\n--metrics\r\nThe list of metric settings. Support shorthand-syntax, json-file and yaml-file. Try \"??\" to show more.\r\nProperty Value\r\nParameter group: Properties Arguments\r\n--remove\r\nRemove a property or an element from a list. Example: --remove property.list \u003cindexToRemove\u003e OR --remove\r\npropertyToRemove .\r\nProperty Value\r\nParameter group: Generic Update Arguments\r\n--resource-group -g\r\nName of resource group. You can configure the default group using az configure --defaults group=\u003cname\u003e .\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-namespace\r\nTarget resource provider namespace.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-parent\r\nTarget resource parent path, if applicable.\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--resource-type\r\nTarget resource type. Can also accept namespace/type format (Ex: 'Microsoft.Compute/virtualMachines').\r\nProperty Value\r\nParameter group: Target Resource Arguments\r\n--service-bus-rule-id\r\nThe service bus rule Id of the diagnostic setting. This is here to maintain backwards compatibility.\r\nProperty Value\r\nParameter group: Properties Arguments\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 9 of 10\n\n--set\r\nUpdate an object by specifying a property path and value to set. Example: --set property1.property2=\u003cvalue\u003e .\r\nProperty Value\r\nParameter group: Generic Update Arguments\r\n--storage-account-id\r\nThe resource ID of the storage account to which you would like to send Diagnostic Logs.\r\nProperty Value\r\nParameter group: Properties Arguments\r\n--workspace-id\r\nThe full ARM resource ID of the Log Analytics workspace to which you would like to send Diagnostic Logs. Example:\r\n/subscriptions/4b9e8510-67ab-4e9a-95a9-e2f1e570ea9c/resourceGroups/insights-integration/providers/Microsoft.OperationalInsights/workspaces/viruela2.\r\nProperty Value\r\nParameter group: Properties Arguments\r\nGlobal Parameters\r\nSource: https://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nhttps://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete\r\nPage 10 of 10",
	"extraction_quality": 1,
	"language": "EN",
	"sources": [
		"MITRE"
	],
	"origins": [
		"web"
	],
	"references": [
		"https://docs.microsoft.com/en-us/cli/azure/monitor/diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete"
	],
	"report_names": [
		"diagnostic-settings?view=azure-cli-latest#az_monitor_diagnostic_settings_delete"
	],
	"threat_actors": [],
	"ts_created_at": 1775446617,
	"ts_updated_at": 1775826696,
	"ts_creation_date": 0,
	"ts_modification_date": 0,
	"files": {
		"pdf": "https://archive.orkl.eu/3abf7aa5a29cfd7117683ae3d8c05c18d1ddb26b.pdf",
		"text": "https://archive.orkl.eu/3abf7aa5a29cfd7117683ae3d8c05c18d1ddb26b.txt",
		"img": "https://archive.orkl.eu/3abf7aa5a29cfd7117683ae3d8c05c18d1ddb26b.jpg"
	}
}