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:
+1
-1
@@ -27,7 +27,7 @@ export function isGUIDish(input: string) {
|
|||||||
|
|
||||||
export function findRow(rows: ResourceRowGroup, id: string): ResourceRow | undefined {
|
export function findRow(rows: ResourceRowGroup, id: string): ResourceRow | undefined {
|
||||||
for (const row of rows) {
|
for (const row of rows) {
|
||||||
if (row.id === id) {
|
if (row.id.toLowerCase() === id.toLowerCase()) {
|
||||||
return row;
|
return row;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -94,19 +94,19 @@ export default class ResourcePickerData {
|
|||||||
const query = `
|
const query = `
|
||||||
resourcecontainers
|
resourcecontainers
|
||||||
| where type == "microsoft.resources/subscriptions"
|
| where type == "microsoft.resources/subscriptions"
|
||||||
| where id == "${subscriptionURI}"
|
| where id =~ "${subscriptionURI}"
|
||||||
| project subscriptionName=name, subscriptionId
|
| project subscriptionName=name, subscriptionId
|
||||||
|
|
||||||
| join kind=leftouter (
|
| join kind=leftouter (
|
||||||
resourcecontainers
|
resourcecontainers
|
||||||
| where type == "microsoft.resources/subscriptions/resourcegroups"
|
| where type == "microsoft.resources/subscriptions/resourcegroups"
|
||||||
| where id == "${resourceGroupURI}"
|
| where id =~ "${resourceGroupURI}"
|
||||||
| project resourceGroupName=name, resourceGroup, subscriptionId
|
| project resourceGroupName=name, resourceGroup, subscriptionId
|
||||||
) on subscriptionId
|
) on subscriptionId
|
||||||
|
|
||||||
| join kind=leftouter (
|
| join kind=leftouter (
|
||||||
resources
|
resources
|
||||||
| where id == "${resourceURI}"
|
| where id =~ "${resourceURI}"
|
||||||
| project resourceName=name, subscriptionId
|
| project resourceName=name, subscriptionId
|
||||||
) on subscriptionId
|
) on subscriptionId
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user