-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SendConfigurationApply function does not succeed #4545
Comments
|
So I am running Start-DSCConfiguration with Verbose, Wait, and Force turned on. I do not have all users present in this tenant. We made a new tenant for testing purposes. Do you know of an efficient way to export the user list from the production tenant and import to the test tenant? Also, won't there be issues with the user ID's considering we don't have the same domains in both tenant? If so, is there a better way to test recovery functionality that I am not aware of? |
Can I get an update on the above questions? We are concerned about how we can test without overwriting or potentially impacting our production tenant |
Is there no way to test recovery with M365DSC without attempting to recover on the live environment? |
@samevansakido If you do an export of a tenant, you can then change the information in the Let's know if you need further assistance. |
Description of the issue
I have seen a lot of reports on this issue in this github, but it looks like the original requesters never respond so I don't get to see the actual resolutions.
I am running into an issue testing recovering a configuration in a seperate tenant. The export went well with no issues, I have created the MOF, but when I run it I get a couple errors.
First off I keep getting: Unable to retrieve AccessToken. Have you registered the 'Microsoft Graph PowerShell' application already? Please run
'Connect-MgGraph -Scopes Domain.Read.All' and logon using '[email protected]'
For every policy. I have that command running directly above the call, as seen below:
UpdateTenant:
$TargetCredential = Get-Credential
#Get-AzureADTenantDetail
Connect-MgGraph -Scopes Domain.Read.All
Update-M365DSCAllowedGraphScopes -ResourceNameList @("AADConditionalAccessPolicy") -Type Update
Write-Host "Starting Creation of MOF now..."
#Below creates MOF
#D:\Users\Admin\Documents\M365\ConditionalAccess\M365TenantConfig.ps1 -Credential $TargetCredential
Write-Host "Stopping any DSC Configs currently running"
Stop-DSCConfiguration -Force
Write-Host "Removing DSCConfiguration Stage"
Remove-DSCConfigurationDocument -Stage Current
Write-Host "Starting DSC Config Now..."
Start-DscConfiguration -Path D:\Users\Admin\Documents\M365\ConditionalAccess -Wait -Verbose -Force
The above error regarding Connect-Mgraph doesn't appear to be the biggest issue though. I keep getting the "SendConfigurationApply" function failing. Error:
The SendConfigurationApply function did not succeed.
+ CategoryInfo : NotSpecified: (root/Microsoft/...gurationManager:String) [], CimException
+ FullyQualifiedErrorId : MI RESULT 1
+ PSComputerName : localhost
Microsoft 365 DSC Version
1.24.403.1
Which workloads are affected
Azure Active Directory (Entra ID)
The DSC configuration
No response
Verbose logs showing the problem
Environment Information + PowerShell Version
The text was updated successfully, but these errors were encountered: