msgraph-sdk-powershell
msgraph-sdk-powershell copied to clipboard
Get-MgBetaIdentityGovernancePrivilegedAccess(Group) missing provider
Describe the bug Get-MgBetaIdentityGovernancePrivilegedAccess returns an error: {"errorCode":"MissingProvider","message":"The provider is missing.","instanceAnnotations":[]} Status: 400 (BadRequest) ErrorCode: UnknownError Same error for Get-MgBetaIdentityGovernancePrivilegedAccessGroup
To Reproduce Steps to reproduce the behavior:
- Connect-MgGraph
- Get-MgBetaIdentityGovernancePrivilegedAccess or Get-MgBetaIdentityGovernancePrivilegedAccessGroup
Expected behavior Output one or more Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphPrivilegedAccessRoot or Microsoft.Graph.Beta.PowerShell.Models.IMicrosoftGraphPrivilegedAccessGroup
Debug Output Get-MgBetaIdentityGovernancePrivilegedAccess -debug DEBUG: [CmdletBeginProcessing]: - Get-MgBetaIdentityGovernancePrivilegedAccess begin processing with parameterSet 'Get'. DEBUG: [Authentication]: - AuthType: 'Delegated', TokenCredentialType: 'InteractiveBrowser', ContextScope: 'CurrentUser', AppName: 'Microsoft Graph Command Line Tools'. DEBUG: [Authentication]: - Scopes: [AdministrativeUnit.Read.All, AdministrativeUnit.ReadWrite.All, Directory.Read.All, Group.Read.All, Group.ReadWrite.All, openid, PrivilegedAccess.ReadWrite.AzureADGroup, PrivilegedAssignmentSchedule.ReadWrite.AzureADGroup, profile, RoleAssignmentSchedule.ReadWrite.Directory, RoleEligibilitySchedule.ReadWrite.Directory, RoleManagement.ReadWrite.Directory, User.Read, User.Read.All, User.ReadWrite.All, email]. DEBUG: ============================ HTTP REQUEST ============================
HTTP Method: GET
Absolute Uri: https://graph.microsoft.com/beta/identityGovernance/privilegedAccess
Headers: FeatureFlag : 00000043 Cache-Control : no-store, no-cache User-Agent : Mozilla/5.0,(Windows NT 10.0; Microsoft Windows 10.0.19045; en-US),PowerShell/2024.0.0 Accept-Encoding : gzip SdkVersion : graph-powershell-beta/2.13.1 client-request-id : d96e860f-e3b0-478b-a66f-40b63661c8bc
Body:
DEBUG: ============================ HTTP RESPONSE ============================
Status Code: BadRequest
Headers: Cache-Control : private Vary : Accept-Encoding Strict-Transport-Security : max-age=31536000 request-id : 435704f6-e222-407a-8255-7f4d15eb1e28 client-request-id : d96e860f-e3b0-478b-a66f-40b63661c8bc x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"North Central US","Slice":"E","Ring":"3","ScaleUnit":"002","RoleInstance":"CH01EPF0002F373"}} Date : Fri, 09 Feb 2024 19:41:18 GMT
Body: { "error": { "code": "UnknownError", "message": "{"errorCode":"MissingProvider","message":"The provider is missing.","instanceAnnotations":[]}", "innerError": { "date": "2024-02-09T19:41:18", "request-id": "435704f6-e222-407a-8255-7f4d15eb1e28", "client-request-id": "d96e860f-e3b0-478b-a66f-40b63661c8bc" } } }
Get-MgBetaIdentityGovernancePrivilegedAccess_Get: {"errorCode":"MissingProvider","message":"The provider is missing.","instanceAnnotations":[]}
Status: 400 (BadRequest) ErrorCode: UnknownError Date: 2024-02-09T19:41:18
Headers: Cache-Control : private Vary : Accept-Encoding Strict-Transport-Security : max-age=31536000 request-id : 435704f6-e222-407a-8255-7f4d15eb1e28 client-request-id : d96e860f-e3b0-478b-a66f-40b63661c8bc x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"North Central US","Slice":"E","Ring":"3","ScaleUnit":"002","RoleInstance":"CH01EPF0002F373"}} Date : Fri, 09 Feb 2024 19:41:18 GMT
DEBUG: [CmdletEndProcessing]: - Get-MgBetaIdentityGovernancePrivilegedAccess end processing.
Module Version ModuleType Version Name prerelease Script 2.13.1 Microsoft.Graph.Authentication Script 2.13.1 Microsoft.Graph.Beta.Identity.Governance Script 2.13.1 Microsoft.Graph.DirectoryObjects Script 2.13.1 Microsoft.Graph.Groups Script 2.13.1 Microsoft.Graph.Identity.Governance Script 2.13.1 Microsoft.Graph.Users
Environment Data Name Value PSVersion 7.4.1 PSEdition Core GitCommitId 7.4.1 OS Microsoft Windows 10.0.19045 Platform Win32NT PSCompatibleVersions {1.0, 2.0, 3.0, 4.0…} PSRemotingProtocolVersion 2.3 SerializationVersion 1.1.0.1 WSManStackVersion 3.0