ArmGuestConfigurationModelFactory.LcmConfigurationSetting Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of LcmConfigurationSetting.
public static Azure.ResourceManager.GuestConfiguration.Models.LcmConfigurationSetting LcmConfigurationSetting (Azure.ResourceManager.GuestConfiguration.Models.LcmConfigurationMode? configurationMode = default, bool? isModuleOverwriteAllowed = default, Azure.ResourceManager.GuestConfiguration.Models.ActionAfterReboot? actionAfterReboot = default, float? refreshFrequencyInMins = default, bool? rebootIfNeeded = default, float? configurationModeFrequencyInMins = default);
static member LcmConfigurationSetting : Nullable<Azure.ResourceManager.GuestConfiguration.Models.LcmConfigurationMode> * Nullable<bool> * Nullable<Azure.ResourceManager.GuestConfiguration.Models.ActionAfterReboot> * Nullable<single> * Nullable<bool> * Nullable<single> -> Azure.ResourceManager.GuestConfiguration.Models.LcmConfigurationSetting
Public Shared Function LcmConfigurationSetting (Optional configurationMode As Nullable(Of LcmConfigurationMode) = Nothing, Optional isModuleOverwriteAllowed As Nullable(Of Boolean) = Nothing, Optional actionAfterReboot As Nullable(Of ActionAfterReboot) = Nothing, Optional refreshFrequencyInMins As Nullable(Of Single) = Nothing, Optional rebootIfNeeded As Nullable(Of Boolean) = Nothing, Optional configurationModeFrequencyInMins As Nullable(Of Single) = Nothing) As LcmConfigurationSetting
Parameters
- configurationMode
- Nullable<LcmConfigurationMode>
Specifies how the LCM(Local Configuration Manager) actually applies the configuration to the target nodes. Possible values are ApplyOnly, ApplyAndMonitor, and ApplyAndAutoCorrect.
If true - new configurations downloaded from the pull service are allowed to overwrite the old ones on the target node. Otherwise, false.
- actionAfterReboot
- Nullable<ActionAfterReboot>
Specifies what happens after a reboot during the application of a configuration. The possible values are ContinueConfiguration and StopConfiguration.
The time interval, in minutes, at which the LCM checks a pull service to get updated configurations. This value is ignored if the LCM is not configured in pull mode. The default value is 30.
Set this to true to automatically reboot the node after a configuration that requires reboot is applied. Otherwise, you will have to manually reboot the node for any configuration that requires it. The default value is false. To use this setting when a reboot condition is enacted by something other than DSC (such as Windows Installer), combine this setting with the xPendingReboot module.
How often, in minutes, the current configuration is checked and applied. This property is ignored if the ConfigurationMode property is set to ApplyOnly. The default value is 15.
Returns
A new LcmConfigurationSetting instance for mocking.