This message was deleted.
# general
s
This message was deleted.
l
Here's the Azure API on which the Pulumi API is based. The workspaceName field is not optional, apparently.
r
@little-cartoon-10569 thanks for the impromptu reply 😄 ! However, I kept on having this issue, have been searching around but still couldn't resolve this.
error: autorest/azure: Service returned an error. Status=404 Code="NotFound" Message="{\"error\":{\"code\":\"NotFound\",\"message\":\"Couldn't find workspaceMetadata of workspace id a30b9da9-9fcb-4c38-8259-ec7001823d12\"
Heh.. I forgot to include the link earlier 🙂
I'm afraid I don't know anything about Azure and workspace metadata. Have you pinged the #CRVK66N5U channel?
r
I were able to create the scheduled-query rules without needing a workspace which can be seen here https://docs.microsoft.com/en-us/azure/azure-monitor/alerts/alerts-log Why does the Pulumi API require it ?
az monitor scheduled-query create -g {ResourceGroup} -n {nameofthealert} --scopes {vm_id} --condition "count \'union Event, Syslog | where TimeGenerated > ago(1h) | where EventLevelName == \"Error\" or SeverityLevel== \"err\"\' > 2" --description {descriptionofthealert}