Comments (6)
Can you try running with the -Debug parameter? This should show the exact Graph API call that is failing. Once you do that can you try running that same command using Graph Explorer and let me know if you are still seeing the issue?
from azureadexporter.
Hey @merill , thank you for the swift reply. We run the export from a azure devops pipeline and usually it fails after an hour or two (the tenant has a lot of users to export) but when adding the Debug-switch it fails almost immediately (with the initially reported error) so it seems that there might be issues with setting Debug here (non-interactive shell?).
Any other ideas or does the error handling code need to check if the Message property exists?
from azureadexporter.
I also get the same error when running Export-AzureAD
directly in PowerShell. For example:
❯ Export-AzureAD -Path .\ -Type ConditionalAccess -Debug
Identity/Conditional/AccessPolicies
DEBUG: GET /v1.0/identity/conditionalAccess/policies HTTP/1.1
HTTP: graph.microsoft.com
ConsistencyLevel: eventual
User-Agent: Mozilla/5.0 (Windows NT 10.0; Microsoft Windows 10.0.19042; en-US) PowerShell/5.1.19041.1682 Invoke-MgGraphRequest
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): y
Invoke-MgGraphRequest : The pipeline has been stopped.
At C:\Program Files\WindowsPowerShell\Modules\azureadexporter\1.0.941508\internal\Invoke-Graph.ps1:116 char:48
+ ... $results = Invoke-MgGraphRequest -Method GET -Uri $uriQueryEndpointF ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Invoke-MgGraphRequest], PipelineStoppedException
+ FullyQualifiedErrorId : Microsoft.Graph.PowerShell.Authentication.Cmdlets.InvokeMgGraphRequest
The property 'Message' cannot be found on this object. Verify that the property exists.
At C:\Program Files\WindowsPowerShell\Modules\azureadexporter\1.0.941508\Export-AzureAD.ps1:115 char:21
+ $e = $_.ErrorDetails.Message
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
Identity/Conditional/NamedLocations
DEBUG: GET /v1.0/identity/conditionalAccess/namedLocations HTTP/1.1
HTTP: graph.microsoft.com
ConsistencyLevel: eventual
User-Agent: Mozilla/5.0 (Windows NT 10.0; Microsoft Windows 10.0.19042; en-US) PowerShell/5.1.19041.1682 Invoke-MgGraphRequest
Confirm
Continue with this operation?
[Y] Yes [A] Yes to All [H] Halt Command [S] Suspend [?] Help (default is "Y"): y
The property 'Message' cannot be found on this object. Verify that the property exists.
At C:\Program Files\WindowsPowerShell\Modules\azureadexporter\1.0.941508\Export-AzureAD.ps1:115 char:21
+ $e = $_.ErrorDetails.Message
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [], PropertyNotFoundException
+ FullyQualifiedErrorId : PropertyNotFoundStrict
from azureadexporter.
Unfortunately I cannot use Graph Explorer yet in GCC-High. (Any idea when that will change?)
from azureadexporter.
This issue is still open and I am curious if the root was solved or at least a reason was found.
I am facing the same issue that the exception handling is not able to give me a clear error while trying to get all users from an AAD tenant. Running the export with -Verbose only shows me
VERBOSE: GET https://graph.microsoft.com/beta/users?expand=extensions&$count=true&$skiptoken=m~AQAnO2U5Z4OzswOzA7 with 0-byte payload
VERBOSE: received 542616-byte response of content type application/json
So I don't know the reason why it is failing after ~300 GET commands.
from azureadexporter.
I have fixed the error handling to provide more detailed messages.
Can you please retry and let me know if you are still seeing this issue?
from azureadexporter.
Related Issues (20)
- Unable to open .json outputs HOT 5
- How do I restore a backup? HOT 1
- Some CA Policies missing in the export HOT 7
- Cannot find LinkedIn account connections HOT 1
- Cannot find Show option to remain signed in HOT 1
- Consistent backup HOT 1
- Conditional Access Policy: Multiple Grants - Null value HOT 5
- Enhancement: Exclude Members from Dynamic Groups HOT 1
- Expiring AccessToken during export HOT 1
- Enhancement: User Manager Export HOT 1
- MUltiple HOT 2
- Use export tool for B2C Tenants via MSI HOT 1
- Recovery Capabilities for Disaster Scenarios HOT 1
- AzureADExporter refuses to write anything to disk HOT 1
- Extra urlencoded '$' sign in accessPackageResourceRoleScopes request
- The accessReviews endpoint is deprecated
- Publish a new version to PowerShell Gallery HOT 1
- Authentication via Application-Permission HOT 7
- USGov Support HOT 3
- Report of Exported Data
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azureadexporter.