mirror of
https://github.com/grafana/grafana.git
synced 2025-01-09 23:53:25 -06:00
AzureMonitor: Fix issue where resource group name is missing on the resource picker button (#36400)
* AzureMonitor: Fix issue where resource group name is missing in the UI * fix
This commit is contained in:
parent
a18d3007a7
commit
2a4191a2ee
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user