I'm looking for a way to list all "Diagnostic Settings"-Objects of a resource-group or subscription with the azure cli / bash. I've read the azure cli documentation which can only list diagnostic settings by resource-type.
I thought before I'll give up I'll ask the whole swarm power of stackoverflow. Maybe some guy had the same probleme and wrote a script which iterates to all resources of a subscription and list the "Diagnostic Settings"-Resources
You could always get the list of resource ids and iterate:
equivalent powerhsell script: