Open insomniacc opened 8 months ago
@insomniacc what I've noticed is that the base url (https://api.accessreviews.identitygovernance.azure.com/v1.0) you are using is cached after calling an API with Invoke-MGraphRequest
and subsequent cmdlet calls append that base url to the API path associated with a cmdlet.
However, when you call Invoke-MgGrphRequest
with graph's base url (https://graph.microsoft.com/v1.0) within the same session, you won't get an error for subsequent cmdlet executions. Therefore, it's not really an authentication issue.
I'm not sure why this has been marked as author feedback. What exactly is it you need from me? The bug is outlined in my original comment and also confirmed by timayabi2020 please can this be assigned to someone to fix?
Describe the bug Running the following command breaks my authentication I'd previously configured with Connect-MgGraph:
Subsequent commands using Get-Mg commands just fail with the following output for example:
Get-MgIdentityGovernanceAccessReviewDefinition_List: The server responded with a Request Error, Status: NotFound
The only way to proceed is to re-run Connect-MgGraph. It seems that the authentication is being broken and the commands do not gracefully handle the issue / complain about authentication in an explicit way.
Expected behavior
Debug Output
Module Version
Environment Data PSVersion 7.2.16