-
Notifications
You must be signed in to change notification settings - Fork 523
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
Script completes successfully but does not update config #1914
Comments
Is this still an issue? Some settings are not changed immediately. |
I see. Yes. The BlockMacSync is still $False instead of $True. |
I just tried to reproduce this issue in my lab, but in my case the value of BlockMacSync changes immediately after deploying the configuration.
|
The Uninstall-M365DSCOutdatedObjects command does not only remove outdated M365 DSC versions, but it also removes outdated dependencies. Can you repeat the test with only having installed the most current versions of the dependencies and no older dependency versions? |
@yingying96 is this still an issue after removing the outdated dependencies? Thanks |
@yingying96 The cmdlet is Uninstall-M365DSCOutdatedDependencies, not Uninstall-M365DSCOutdatedObjects. This is a mistake in our documentation, sorry for that. |
related PR #1977 |
Thanks! Yes it's still an issue after removing the outdated dependencies. |
Could you try to set this value manually and do an export afterwards? We are not able to reproduce this issue at the moment. Could you past the verbose of this cmdlet Start-DSCConfiguration -wait -verbose -force -Path <PATH TO YOUR FOLDER HOLDING THE MOF FILE> |
Is this happening with any resource within Microsoft 365 DSC? Did you verify the permissions within the tenant? https://microsoft365dsc.com/user-guide/get-started/authentication-and-permissions/ |
Yes i tried about 4-5 resource (OneDrive, SharePoint, Power Platform and etc). I'm trying out with credentials first. The account is a global admin. |
Do the applications PnP and Graph have appropriate permissions? |
This will only list the permissions needed. To get these within M365 you would need to run the following command: https://microsoft365dsc.com/user-guide/cmdlets/Update-M365DSCAllowedGraphScopes/ See example 2. |
Yup also ran the command to update environment 'global' and received the result "Allowed Graph scopes updated" |
Here's the full script For M365Configuration.ps1
For M365ConfigurationData.psd1
|
Can i check if the script works for anyone else? Just wondering if my script is wrong or it's a setup issue. |
@yingying96 Have you managed to solve this issue ? i am having the same problem here. WOuld be really helpfull if you could tell me wht you exactly did to get the changes to be affected. |
I'm trying to run the script locally first but it does not update my config
The script ended successfully but when i export the config again, the values were not changed (from $False to $True) as highlighted below.
The text was updated successfully, but these errors were encountered: