You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When trying to export all user accounts from a tenant with a large amount of accounts, the export process aborts if a user account is not found. I assume the deleted account existed when the process started, but was deleted right after.
|---[15547/40527] rob.palmxxxxx✅
|---[15548/40527] lucy.keaxxxxxxx✅
|---[15549/40527] svc.row1xxxxxxxError Log created at {file://Z:/11300-M365DSC-ErrorLog.log}
❌
Error Log created at {file://Z:/11300-M365DSC-ErrorLog.log}
⌛ Export took {3644 seconds} for {15549 instances}
PS Z:\> cat .\11300-M365DSC-ErrorLog.log
[2025/01/3112:01:14]
{InvalidOperation}
System.Exception: [Request_ResourceNotFound] : Resource 'svc.row1xxxxxxx' does not exist or one of its queried reference-property objects are not present.
"Error retrieving data:"
at Get-MgUserLicenseDetail<Process>, C:\Program Files\WindowsPowerShell\Modules\Microsoft.Graph.Users\2.25.0\exports\ProxyCmdletDefinitions.ps1: line 5174
at Get-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.129.2\DSCResources\MSFT_AADUser\MSFT_AADUser.psm1: line 194
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.129.2\DSCResources\MSFT_AADUser\MSFT_AADUser.psm1: line 1095
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.129.2\Modules\M365DSCReverse.psm1: line 689
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.129.2\Modules\M365DSCUtil.psm1: line 1512
at <ScriptBlock>,<No file>: line 1
TenantId: xxxxx.onmicrosoft.com
[2025/01/3112:01:14]
{InvalidOperation}
System.Management.Automation.RuntimeException: The property 'Password' cannot be found on this object. Verify that the property exists and can be set.
at System.Management.Automation.ExceptionHandlingOps.CheckActionPreference(FunctionContext funcContext, Exception exception)
at System.Management.Automation.Interpreter.ActionCallInstruction`2.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
at System.Management.Automation.Interpreter.EnterTryCatchFinallyInstruction.Run(InterpretedFrame frame)
"Error during Export:"
at Export-TargetResource, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.129.2\DSCResources\MSFT_AADUser\MSFT_AADUser.psm1: line 1096
at Start-M365DSCConfigurationExtract, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.129.2\Modules\M365DSCReverse.psm1: line 689
at Export-M365DSCConfiguration, C:\Program Files\WindowsPowerShell\Modules\Microsoft365DSC\1.25.129.2\Modules\M365DSCUtil.psm1: line 1512
at <ScriptBlock>,<No file>: line 1
TenantId: xxxxx.onmicrosoft.com
Description of the issue
When trying to export all user accounts from a tenant with a large amount of accounts, the export process aborts if a user account is not found. I assume the deleted account existed when the process started, but was deleted right after.
Microsoft 365 DSC Version
V1.25.129.2
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: