Giter VIP home page Giter VIP logo

Comments (10)

cdenders avatar cdenders commented on August 19, 2024

Maybe helps to indicate I am using password authentication. I'll look into trying a different authentication method.

from microsoft365dsc.

NikCharlebois avatar NikCharlebois commented on August 19, 2024

If using Credentials than you are leveraging the Microsoft Graph SDK app which is probably shared by other processes/apps in your application. This means that all calls to it are being counted against the throttling limit, not just the M365DSC ones. Using Service Principal authentication instead of credentials should definitively help resolve this situation.

from microsoft365dsc.

cdenders avatar cdenders commented on August 19, 2024

I'm trying to push the configuration to a new empty tenant, so there would be no other apps hitting the throttle limit. Is the Throttle limit configurable?

from microsoft365dsc.

cdenders avatar cdenders commented on August 19, 2024

Or can I slow down the push, and/or just keep repeating the push until it finishes?

from microsoft365dsc.

andikrueger avatar andikrueger commented on August 19, 2024

M365DSC does leverage standard Microsoft Graph authentication methods and there should not be more sign-ins than necessary. In the authentication layer of M365DSC there are functions implemented that should verify an existing connection to a tenant and only create a new authentication context if the token would have expired.

Any chance you could share a redacted version of the sign in logs for the user?

from microsoft365dsc.

cdenders avatar cdenders commented on August 19, 2024

Apparently my computer is repeatedly signing in... I didn't realize that a DSC push configuration repeatedly trying in the background?
Screenshot 2024-06-24 133609

Even though I've been using the -wait parameter, I guess I have some push happening as background jobs.

I've now run Remove-DscConfigurationDocument -Stage Pending -force , and this appears to have stopped the repeated logins. Though I'm unclear as to how it started, I've been using the -wait parameter to run the Start-dscconfiguration command interactively. Maybe I missed it one time?

I'll try again in an hour or two, see if I get the throttle error again.

from microsoft365dsc.

andikrueger avatar andikrueger commented on August 19, 2024

Please run Get-DscLocalConfigurationManager and check the settings for the mode of the LCM. LCM does a 15 minute consistency check per default.

from microsoft365dsc.

cdenders avatar cdenders commented on August 19, 2024

Checked my sign-in logs, it has been an hour without any additional sign-ins since I ran Remove-DscConfigurationDocument -Stage Pending -force

ActionAfterReboot : ContinueConfiguration
AgentId : 9B3B3E40-D2A4-11EE-90DC-F4C88A239208
AllowModuleOverWrite : False
CertificateID :
ConfigurationDownloadManagers : {}
ConfigurationID :
ConfigurationMode : ApplyAndMonitor
ConfigurationModeFrequencyMins : 15
Credential :
DebugMode : {NONE}
DownloadManagerCustomData :
DownloadManagerName :
LCMCompatibleVersions : {1.0, 2.0}
LCMState : Idle
LCMStateDetail :
LCMVersion : 2.0
StatusRetentionTimeInDays : 10
SignatureValidationPolicy : NONE
SignatureValidations : {}
MaximumDownloadSizeMB : 500
PartialConfigurations :
RebootNodeIfNeeded : False
RefreshFrequencyMins : 30
RefreshMode : PUSH
ReportManagers : {}
ResourceModuleManagers : {}
PSComputerName :

from microsoft365dsc.

andikrueger avatar andikrueger commented on August 19, 2024

That is correct. Right now, LCM does not have any configuration to verify.

As soon as you run start-dscconfiguration a new config file will be placed in the LCM engine store and be checked every 15 minutes.

These two settings are responsible for doing so:

ConfigurationMode : ApplyAndMonitor
ConfigurationModeFrequencyMins : 15

If you do not want any kind of monitoring you need to set the configuration mode to apply only.

For more information about the LCM configuration please see this article here: https://learn.microsoft.com/en-us/powershell/dsc/managing-nodes/metaconfig?view=dsc-1.1

from microsoft365dsc.

cdenders avatar cdenders commented on August 19, 2024

Thank you for your assistance.

from microsoft365dsc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.