> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# List Diagnostic Settings

List the active diagnostic settings for the specified resource.

* **Least privileged** Azure RBAC action required: `Microsoft.Insights/diagnosticSettings/read`.
* **Built-in role** that grants access: `Monitoring Reader`.

<Note>
  External Documentation

  To learn more, visit the [Azure documentation](https://learn.microsoft.com/en-us/rest/api/monitor/diagnostic-settings/list?view=rest-monitor-2021-05-01-preview\&tabs=HTTP).
</Note>

## Parameters

<div className="integrations-table">
  | Parameter                   | Description                                                                                                                                                                                                                                                                                                                                                                                              |
  | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
  | Parent Resource Path        | The parent resource path, if the resource is nested under another resource.<br /><br />**For example**: For the config resource `.../providers/Microsoft.Web/sites/mySite/config/web`, set this to `sites/mySite` (the parent's type and name); here `resourceType` is `config` and `resourceName` is `web`.<br /><br />Leave empty for top-level resources such as `Microsoft.Compute/virtualMachines`. |
  | Resource Group Name         | The name of the resource group containing the resource. The name is case insensitive.                                                                                                                                                                                                                                                                                                                    |
  | Resource Name               | The name of the resource.                                                                                                                                                                                                                                                                                                                                                                                |
  | Resource Provider Namespace | The namespace of the resource provider.<br /><br />**For example**: `Microsoft.Compute`.                                                                                                                                                                                                                                                                                                                 |
  | Resource Type               | The resource type of the resource.<br /><br />**For example**: `virtualMachines`.                                                                                                                                                                                                                                                                                                                        |
  | Subscription ID             | The Microsoft Azure subscription ID.                                                                                                                                                                                                                                                                                                                                                                     |
</div>

## Example Output

```json theme={"dark"}
{
	"value": [
		{
			"id": "/subscriptions/1a66ce04-b633-4a0b-b2bc-a912ec8986a6/resourcegroups/viruela1/providers/microsoft.logic/workflows/viruela6/providers/microsoft.insights/diagnosticSettings/mysetting",
			"type": "Microsoft.Insights/diagnosticSettings",
			"name": "mysetting",
			"properties": {
				"storageAccountId": "/subscriptions/df602c9c-7aa0-407d-a6fb-eb20c8bd1192/resourceGroups/apptest/providers/Microsoft.Storage/storageAccounts/appteststorage1",
				"eventHubAuthorizationRuleId": "",
				"workspaceId": "",
				"metrics": [
					{
						"category": "WorkflowMetrics",
						"enabled": true,
						"retentionPolicy": {
							"enabled": false,
							"days": 0
						}
					}
				],
				"logs": [
					{
						"categoryGroup": "allLogs",
						"enabled": true,
						"retentionPolicy": {
							"enabled": false,
							"days": 0
						}
					}
				]
			}
		}
	]
}
```

## Workflow Library Example

[List Diagnostic Settings with Azure and Send Results Via Email](https://library.blinkops.com/workflows/list-diagnostic-settings-with-azure-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/list-diagnostic-settings-with-azure-and-send-results-via-email/canvas" />
</div>
