diff --git a/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/utils.ts b/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/utils.ts index 5d6d8fdd598..6c30a0a434f 100644 --- a/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/utils.ts +++ b/public/app/plugins/datasource/grafana-azure-monitor-datasource/components/ResourcePicker/utils.ts @@ -27,7 +27,7 @@ export function isGUIDish(input: string) { export function findRow(rows: ResourceRowGroup, id: string): ResourceRow | undefined { for (const row of rows) { - if (row.id === id) { + if (row.id.toLowerCase() === id.toLowerCase()) { return row; } diff --git a/public/app/plugins/datasource/grafana-azure-monitor-datasource/resourcePicker/resourcePickerData.ts b/public/app/plugins/datasource/grafana-azure-monitor-datasource/resourcePicker/resourcePickerData.ts index 80888808c3a..be6fcc5624d 100644 --- a/public/app/plugins/datasource/grafana-azure-monitor-datasource/resourcePicker/resourcePickerData.ts +++ b/public/app/plugins/datasource/grafana-azure-monitor-datasource/resourcePicker/resourcePickerData.ts @@ -94,19 +94,19 @@ export default class ResourcePickerData { const query = ` resourcecontainers | where type == "microsoft.resources/subscriptions" - | where id == "${subscriptionURI}" + | where id =~ "${subscriptionURI}" | project subscriptionName=name, subscriptionId | join kind=leftouter ( resourcecontainers | where type == "microsoft.resources/subscriptions/resourcegroups" - | where id == "${resourceGroupURI}" + | where id =~ "${resourceGroupURI}" | project resourceGroupName=name, resourceGroup, subscriptionId ) on subscriptionId | join kind=leftouter ( resources - | where id == "${resourceURI}" + | where id =~ "${resourceURI}" | project resourceName=name, subscriptionId ) on subscriptionId