microsoft / EntraExporter

PowerShell module to export a local copy of an Entra (Azure AD) tenant configuration.
https://aka.ms/EntraExporter
MIT License
568 stars 89 forks source link

Export of Continuous Access Evaluation Policy not working on PowerShell 7 #30

Closed SamErde closed 1 year ago

SamErde commented 2 years ago

I tested Export-AzureAD -Path . -All on Windows PowerShell 5.1 and on PowerShell 7.2.6 today. The full export was successful in Windows PowerShell. When using PowerShell 7, the export of Continuous Access Evaluation Policy failed with the following response:

 Identity/ContinuousAccessEvaluationPolicy
Export-AzureAD: GET https://graph.microsoft.us/beta/identity/continuousAccessEvaluationPolicy
HTTP/1.1 400 Bad Request
Transfer-Encoding: chunked
Vary: Accept-Encoding
Strict-Transport-Security: max-age=31536000
request-id: [REDACTED]
client-request-id: [REDACTED]
x-ms-ags-diagnostic: {"ServerInfo":{"DataCenter":"USGov Arizona","Slice":"E","Ring":"5","ScaleUnit":"001","RoleInstance":"[REDACTED]"}}
Date: Mon, 22 Aug 2022 20:21:13 GMT
Content-Type: application/json
Content-Encoding: gzip
{"error":{"code":"BadRequest","message":"Resource not found for the segment 'continuousAccessEvaluationPolicy'.","innerError":{"date":"2022-08-22T20:21:14","request-id":"[REDACTED]","client-request-id":"[REDACTED]"}}}

All other types were successful except for localizations.

merill commented 1 year ago

This has been fixed in the latest release!

SamErde commented 1 year ago

Nice work, and thanks!