Label is ignored/incorrect in resource picker parameter (from JSON)

Johannes Schmidt 5 Reputation points
2024-04-11T06:08:02.4+00:00

Hi,

I've followed the documentation: Create a JSON list resource parameter (Content source) to create a parameter of type Resource picker. The name of the parameter is Applications and the data comes from a JSON list with labels defined (content is the one from the example):


[

    { "value":"/subscriptions/<sub-id>/resourceGroups/<resource-group>/providers/<resource-type>/acmeauthentication", "label": "acmeauthentication", "selected":true, "group":"Acme Backend" },

    { "value":"/subscriptions/<sub-id>/resourceGroups/<resource-group>/providers/<resource-type>/acmeweb", "label": "acmeweb", "selected":false, "group":"Acme Frontend" }

]

In the next Resource parameter options section, the value for {Applications:label} is shown to be acmefrontend (or acmeauthentication). However, all I get in the preview AND when used in a query is this: /subscriptions/<sub-id>/resourceGroups/<resource-group>/providers/<resource-type>/acmeauthenticatioimage

This query


traces

| where message == {Applications:label}

is translated to this:


traces

| where message == /subscriptions/<sub-id>/resourceGroups/<resource-group>/providers/<resource-type>/acmeauthentication

All works fine if the type is changed to Dropdown, however, for my workbook I really need the Resource picker type. This is incredibly frustrating..

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,273 questions
0 comments No comments
{count} vote

Your answer

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