Share via

Previously successful bicep deployment of Microsoft.Insights/scheduledQueryRules failed with vague error

Rachel Weber 65 Reputation points Microsoft Employee
2026-04-21T23:10:41.04+00:00

We have a bicep template for a Microsoft.Insights/scheduledQueryRules rule that has succeeded in the past. When we did a deployed to the same rg/subscription recently with no changes to the template, we got the error:
"ADX reference is of incorrect format: . The request had some invalid properties"

Additional context:

  • The query starts 'arg("").aksresources'
  • This is a government cloud if that makes a difference

Any guidance on why the deployment failed would be helpful, and it would be helpful if a bit more context could be included in the error message itself.

Azure Monitor
Azure Monitor

An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.

0 comments No comments

Answer accepted by question author

  1. Siva shunmugam Nadessin 9,625 Reputation points Microsoft External Staff Moderator
    2026-04-21T23:45:25.8266667+00:00

    Hello Rachel Weber,

    Thank you for reaching out to the Microsoft Q&A forum. 

    The failure occurs because the alert rule uses an Azure Resource Graph query (arg("")) that is interpreted as an ADX-style reference during validation. In Azure Government cloud, support for cross-resource queries in scheduledQueryRules is more limited and stricter than in commercial Azure, and non-standard tables (such as aksresources) are not recognized by the query validation engine. As a result, the deployment fails with the error “ADX reference is of incorrect format,” even though the query may still run successfully in Log Analytics. 

    Your issue is NOT Bicep — it’s query validation + Gov cloud limitations on ARG/ADX usage inside alert rules Let me know if you have further questions?


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.