Welcome to Microsoft Q&A,
To affirm your question, you will like to view or check the action groups associated with the alert rules for all resources using commands instead of manual.
If yes then, Azure Resource Graph Explorer will best tools to run a query.
You can generate a query from the alert rule by click on open query.
The query can be similar to the below:
resources
| where type in~ ('microsoft.insights/metricalerts','microsoft.insights/scheduledqueryrules') and ['kind'] !in~ ('LogToMetric','LogToApplicationInsights')
| extend severity = strcat("Sev", properties["severity"])
| extend enabled = tobool(properties["enabled"])
| where enabled in~ ('true')
| project id,name,type,properties,enabled,severity,subscriptionId
| union (resources | where type =~ 'microsoft.alertsmanagement/smartdetectoralertrules' | extend severity = tostring(properties["severity"])
| extend enabled = properties["state"] =~ 'Enabled' | where enabled in~ ('true') | project id,name,type,properties,enabled,severity,subscriptionId), (resources | where type =~ 'microsoft.insights/activitylogalerts' | extend severity = "Sev4"
| extend enabled = tobool(properties["enabled"]) | mvexpand innerCondition = properties["condition"]["allOf"] | where innerCondition["field"] =~ 'category'
| where enabled in~ ('true') | project id,name,type,properties,enabled,severity,subscriptionId)
| order by tolower(name) asc
You can modify the alert rule and preferences you would like to see and right from the same environment you can save and modify to reuse.
Hope this helps!
Kindly let us know if the above helps or you need further assistance on this issue.
BR,
Sina