Skip to content

Conversation

@magodo
Copy link
Collaborator

@magodo magodo commented Aug 7, 2025

Previously, when --include-role-assignment is specified, the resource mode will list the specified resources together with the role assignments directly assigned on the resources via azlist, which in turn will query the specified resources via ARG's Resource table, using a predict like id in (id1, id2,...).

The problem is that not all resource types are supported in the Resource table (e.g. template deployment resource). Also, it makes no sense to ask the user to specify the ARG table in the resource mode.

This PR updates the azlist dependency, use the new ListByIds() API to list those specified resources, together with the extension resources. This gets rid of querying from ARG to avoid un-supported resource types.

magodo added 2 commits August 7, 2025 16:54
…`--include-role-assignment` is specified

Previously, when `--include-role-assignment` is specified, the resource mode will list the specified resources together with the role assignments directly assigned on the resources via `azlist`, which in turn will query the specified resources via ARG's `Resource` table, using a predict like `id in (id1, id2,...)`.

The problem is that not all resource types are supported in the `Resource` table (e.g. template deployment resource). Also, it makes no sense to ask the user to specify the ARG table in the resource mode.

This PR updates the `azlist` dependency, use the new `ListByIds()` API to list those specified resources, together with the extension resources. This gets rid of querying from ARG to avoid un-supported resource types.
Copy link
Member

@gerrytan gerrytan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work! Approved.

@magodo magodo merged commit 717c756 into Azure:main Aug 8, 2025
7 checks passed
@magodo magodo added the bug Something isn't working label Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants