msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

'No HTTP resource was found that matches the request URI' in Microsoft.Graph.Identity.Governance cmdlets

Open sergeyz7 opened this issue 5 years ago • 4 comments

Some of Microsoft.Graph.Identity.Governance cmdlets fail trying to retrieve Access Package resource-specific entities (e.g. listing all resources in a catalog with Get-MgEntitlementManagementAccessPackageCatalogAccessPackageResource succeeds but attempting to access a specific resource by its ID fails). 2021-01-20_12-33-44

AB#7662

sergeyz7 avatar Jan 20 '21 12:01 sergeyz7

Retrieving resource roles of a resource in a catalog requires the origin system type to also be included in the filter expression, see https://docs.microsoft.com/graph/api/accesspackagecatalog-list-accesspackageresourceroles?view=graph-rest-beta&tabs=http

markwahl-msft avatar Jan 20 '21 18:01 markwahl-msft

The first example from my original post is with Get-MgEntitlementManagementAccessPackageCatalogAccessPackageResource - which works to list all resources but fails to retrieve a specific resource by ID. The -Filter parameter for that cmdlet is not available in the same parameter set that -AccessPackageResourceId is in.

sergeyz7 avatar Jan 21 '21 15:01 sergeyz7

@sergeyz7 As per the docs, it looks like you can only list access package resources - https://docs.microsoft.com/en-us/graph/api/accesspackagecatalog-list-accesspackageresources?view=graph-rest-beta&tabs=http. This command will be cleaned up in the next SDK release.

peombwa avatar May 19 '21 21:05 peombwa

Clean up done in #670.

peombwa avatar May 24 '21 21:05 peombwa