ArmComputeModelFactory.WindowsConfiguration Method

Definition

Initializes a new instance of WindowsConfiguration.

public static Azure.ResourceManager.Compute.Models.WindowsConfiguration WindowsConfiguration (bool? provisionVmAgent = default, bool? isAutomaticUpdatesEnabled = default, string timeZone = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.AdditionalUnattendContent> additionalUnattendContent = default, Azure.ResourceManager.Compute.Models.PatchSettings patchSettings = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.WinRMListener> winRMListeners = default, bool? isVmAgentPlatformUpdatesEnabled = default);
static member WindowsConfiguration : Nullable<bool> * Nullable<bool> * string * seq<Azure.ResourceManager.Compute.Models.AdditionalUnattendContent> * Azure.ResourceManager.Compute.Models.PatchSettings * seq<Azure.ResourceManager.Compute.Models.WinRMListener> * Nullable<bool> -> Azure.ResourceManager.Compute.Models.WindowsConfiguration
Public Shared Function WindowsConfiguration (Optional provisionVmAgent As Nullable(Of Boolean) = Nothing, Optional isAutomaticUpdatesEnabled As Nullable(Of Boolean) = Nothing, Optional timeZone As String = Nothing, Optional additionalUnattendContent As IEnumerable(Of AdditionalUnattendContent) = Nothing, Optional patchSettings As PatchSettings = Nothing, Optional winRMListeners As IEnumerable(Of WinRMListener) = Nothing, Optional isVmAgentPlatformUpdatesEnabled As Nullable(Of Boolean) = Nothing) As WindowsConfiguration

Parameters

provisionVmAgent
Nullable<Boolean>

Indicates whether virtual machine agent should be provisioned on the virtual machine. When this property is not specified in the request body, it is set to true by default. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.

isAutomaticUpdatesEnabled
Nullable<Boolean>

Indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning.

timeZone
String

Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Possible values can be TimeZoneInfo.Id value from time zones returned by TimeZoneInfo.GetSystemTimeZones.

additionalUnattendContent
IEnumerable<AdditionalUnattendContent>

Specifies additional base-64 encoded XML formatted information that can be included in the Unattend.xml file, which is used by Windows Setup.

patchSettings
PatchSettings

[Preview Feature] Specifies settings related to VM Guest Patching on Windows.

winRMListeners
IEnumerable<WinRMListener>

Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.

isVmAgentPlatformUpdatesEnabled
Nullable<Boolean>

Indicates whether VMAgent Platform Updates are enabled for the Windows Virtual Machine.

Returns

A new WindowsConfiguration instance for mocking.

Applies to