Get-AzRoleEligibilitySchedule Filter Queries #20564
-
Hi all, Does I was trying this to filter all eligible Get-AzRoleEligibilitySchedule `
-Scope "/subscriptions/<subscription_id>" `
-Filter "principalId eq '<principal_id>' and roleDefinitionId eq '/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c'" And also filtering with more than one role such as Get-AzRoleEligibilitySchedule `
-Scope "/subscriptions/<subscription_id>" `
-Filter "principalId eq '<principal_id>' and roleDefinitionId eq '/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c' or roleDefinitionId eq '/providers/Microsoft.Authorization/roleDefinitions/8e3af657-a8ff-443c-a75c-2fe8c4bcb635'" But it seems like these don't return everything. Not sure if these more advanced queries are supported with I don't see in the documentation if this is supported: https://learn.microsoft.com/en-us/powershell/module/az.resources/get-azroleeligibilityschedule?view=azps-9.2.0#example-3-list-all-role-eligible-schedules-for-a-resource-with-filters |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
We don't have detail instruction about how to use |
Beta Was this translation helpful? Give feedback.
-
I convey message from @amanswaika You can use below way.
|
Beta Was this translation helpful? Give feedback.
I convey message from @amanswaika
You can use below way.