You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to display the resource group even if we don't have access to it? We will not be able to do action on it, of course.
The text was updated successfully, but these errors were encountered:
vsantele
changed the title
Canno group by resource group if I have access to a resource but not its resource group
Cannot group by resource group if I have access to a resource but not its resource group
Mar 18, 2024
It's more the opposite way. I don't have access to the resource group, only to one resource in it, but I still want to group all my available resources by resource group.
At the moment, if I want to group by resource group, I get an error because the AzureResource of the related resource group of my service app is not in the array allResources passed in groupByResourceGroup
But we can find the name of this resource group. So why not have this RG displayed in the list and not only RG where I got right on it?
Here is a schema to be clear:
- MyRG1 <- I have access
-- MyCosmosDB <- I Have access
- MyRG2 <- I don't have access
-- MyAppService <- I have access
I cannot group my resources by resource group because of MyRG2.
One way of solving this is to display only a "visual RG" when a user doesn't have access to the parent RG of a resource. This way, we can always group by RG. A "visual RG" will not have all the options inside its context menu like other RG (delete, edit tags, etc)
But, GroupingItemFactory.createResourceGroupGroupingItem requires an AzureResource, so I don't think it's possible to do this without further exploration.
One way of solving this is to display only a "visual RG" when a user doesn't have access to the parent RG of a resource. This way, we can always group by RG. A "visual RG" will not have all the options inside its context menu like other RG (delete, edit tags, etc)
Hi, I have a "tricky" case that is not well handled by the extension.
In a subscription, I have access to an App Service but not its resource group. So, when I tried to group by resource group, I got the following error:
The error is thrown by this line (src/tree/azure/grouping/AzureResourceGroupingManager.ts#164)
It is possible to display the resource group even if we don't have access to it? We will not be able to do action on it, of course.
The text was updated successfully, but these errors were encountered: