ericOnline
ericOnline

Reputation: 2008

Azure Log Analytics: Failed to resolve table or column or scalar expression

I'm trying to build a Log Analytics Workbook using Parameters. One of the parameters is not being recognized by the workbook.

Whats going on here?

Example:

Upvotes: 0

Views: 4400

Answers (1)

John Gardner
John Gardner

Reputation: 25146

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.

Upvotes: 1

Related Questions