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 localizations not working with PowerShell 7.2.6 #29

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 Localizations failed with the following response:

 Organization/Branding/Localizations.json
Export-AzureAD: GET https://graph.microsoft.us/v1.0/organization/[REDACTED]/branding/localizations
HTTP/1.1 404 Not Found
Cache-Control: no-cache
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:08 GMT
Content-Type: application/json
Content-Encoding: gzip
{"error":{"code":"Request_ResourceNotFound","message":"Empty segment encountered in request URL. Please make sure that a valid request URL is specified.","innerError":{"date":"2022-08-22T20:21:08","request-id":"[REDACTED]","client-request-id":"[REDACTED]"}}}

All other types were successful except for CAE Policy.

merill commented 1 year ago

I believe this has been fixed now.

Can you please try with the newest EntraExporter module and re-open this if it is still an issue?

SamErde commented 1 year ago

Will test and let you know ASAP!