首页 > 解决方案 > Azure Log Analytics:无法解析表或列或标量表达式

问题描述

我正在尝试使用参数构建 Log Analytics 工作簿。工作簿无法识别其中一个参数。

这里发生了什么?

例子:

标签: azure-log-analyticskqlazure-monitor-workbooks

解决方案


when using single value parameters like {STORAGE_ACCOUNT:label}, you still need to enclose them in quotes (either single or double) to make them valid strings:

let varStorageAccount = '{STORAGE_ACCOUNT:label}';

you're doing that in the example when you hardcode the string.

when using multi-value parameters (like multiselect dropdowns), then the quote and delimiter settings are part of that parameter itself. but for single value parameters like text or single select dropdown, there's no quotes by default, so that the parameters can represent things that wouldn't normally be quoted.


推荐阅读