Read Datasource configuration

I have a datasource configured for Azure Monitor, it works fine to get log data from Azure Log Analytic workspaces.

I would like to set the datasource Azure tenant ID as a variable, is that possible? It should be possible to read the configuration of the datasource from a dashboard.

Thanks