Azure / Azure/azure-powershell
[Feature]: Make Get-AzDiagnosticSettings work.
- Dominant language
- C#
- Stars
- 4.8k
- Forks
- 4.3k
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 51
Description
### Make Get-AzDiagnosticSettings work.
Get-AzDiagnosticSettings produces unreliable results.
1. Create any Azure resource, e.g. Key Vault
2. Set the Diagnostic settings to stream export to more than one destination, e.g. Log Analytics + Storage Account

3. Have each diagnostic setting export different logs/metrics, e.g. export to Log Analytics:

and export to Storage Account:

4. Execute `Get-AzDiagnosticSetting -ResourceId "/subscriptions/foo/resourceGroups/1-28909b0d-playground-sandbox/providers/Microsoft.KeyVault/vaults/bar"`, returns:

How am I supposed to interpret this results ?
### Proposed implementation details (optional)
Have the cmdlet return the diagnostic settings for each export type.
Contributor guide
Assessment
This issue has not been assessed yet.