https://pulumi.com logo
#general
Title
# general
r

red-scooter-62880

07/28/2022, 10:36 AM
Have you experienced this error before, I get it when creating metric alert rule in azure monitor. ā”€ azure-nativeinsightsMetricAlert alert creating failed error: autorest/azure: Service returned an error. Status=400 Code="BadRequest" Message="Criteria field 'odata.type' is missing. Activity ID: 0e792dc4-7837-4fe2-9468-c9dddef9e3e2."
e

echoing-dinner-19531

07/28/2022, 11:09 AM
The example on https://www.pulumi.com/registry/packages/azure-native/api-docs/insights/metricalert/ has
Copy code
{ "odataType", "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria" },
As one of the Criteria objects, I guess that's neeeded?
r

red-scooter-62880

07/28/2022, 2:21 PM
@echoing-dinner-19531 Thanks it appears so
6 Views