-
Notifications
You must be signed in to change notification settings - Fork 124
Description
Since 17 december our pipeline in Azure runs into this error. Something wrong with getting PIM DirectoryRoles. Perhaps something with missing a filter after reading this link https://learn.microsoft.com/en-us/answers/questions/2154953/how-to-fix-the-provider-is-missing-error
➡️
##[error]Invoke-MgGraphRequest : GET https://graph.microsoft.com/v1.0/policies/roleManagementPolicies//rules
HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: 0fee1bb2-d2db-4339-bdff-a42a53e9358b
client-request-id: 1f7313fd-6772-454e-8667-ebcb38708079
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"West
Europe","Slice":"E","Ring":"5","ScaleUnit":"007","RoleInstance":"AM4PEPF0002BAD4"}}
Cache-Control: private
Date: Wed, 17 Dec 2025 02:07:29 GMT
Content-Type: application/json
{"error":{"code":"UnknownError","message":"{"errorCode":"MissingProvider","message":"The provider is missing.",
"instanceAnnotations":[]}","innerError":{"date":"2025-12-17T02:07:30","request-id":"0fee1bb2-d2db-4339-bdff-a42a53e93
58b","client-request-id":"1f7313fd-6772-454e-8667-ebcb38708079"}}}
At C:\Program Files\WindowsPowerShell\Modules\EntraExporter\3.0.1\command\Get-AzurePIMDirectoryRoles.ps1:97 char:21
- ... $response = Invoke-MgGraphRequest -Uri "v1.0/policies/roleManagementP ...
-
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~- CategoryInfo : InvalidOperation: (Method: GET, Re...ebcb38708079
}:HttpRequestMessage) [Invoke-MgGraphRequest], HttpResponseException - FullyQualifiedErrorId : InvokeGraphHttpResponseException,Microsoft.Graph.PowerShell.Authentication.Cmdlets.Invok
eMgGraphRequest
##[error]PowerShell exited with code '1'.
- CategoryInfo : InvalidOperation: (Method: GET, Re...ebcb38708079