I want to create a microsoft.insights/scheduledqueryrules alert for one of Azure Logic Apps using ARM template. But while creating alert, it is giving below error.
Deployment failed. Correlation ID: d477c54b-1585-4772-a8de-02adef4d5b64. {
"error": {
"code": "No linked DataSource(Workspace) found associated with Azure Resource",
"message": {
"lang": "en-US",
"value": "No linked DataSource(Workspace) found associated with Azure Resource "
}
}
}
I want to understand what I am missing here.
Thanks in advance.
What I have tried:
I created alert from Azure Portal manually, exported template from there and deleted the alert. If I try to re-create the alert using same template again, it gives same error.