I am using the Azure SDK for Python to deploy a MetricAlertResource. The metric alert needs a dimension, and I used azure.mgmt.monitor.MetricDimension to create this: