I don't have a specific query but you could call the Azure Resource Graph. There is a graphical explorer in the portal. This is where most accessible config settings are stored.
https://learn.microsoft.com/en-us/azure/governance/resource-graph/first-query-powershell