ze
    criteria: {
      'odata.type': 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria'
      allOf: [
        {
          name: '1st criterion'
          metricName: '{{ .properties.metricName }}'
          if eq (len .properties.dimensions) 0 {
            dimensions: []
          } else {
            dimensions: [{{ range $idx1, $value1 := .properties.dimensions }}
              {
                name: '{{ $idx1 }}'
                operator: '{{ $value1.operator }}'
                values