共用方式為


WindowsConfiguration Class

Definition

Specifies Windows operating system settings on the virtual machine.

public class WindowsConfiguration
type WindowsConfiguration = class
Public Class WindowsConfiguration
Inheritance
WindowsConfiguration

Constructors

WindowsConfiguration()

Initializes a new instance of the WindowsConfiguration class.

WindowsConfiguration(Nullable<Boolean>, Nullable<Boolean>, String, IList<AdditionalUnattendContent>, PatchSettings, WinRMConfiguration)

Initializes a new instance of the WindowsConfiguration class.

Properties

AdditionalUnattendContent

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

EnableAutomaticUpdates

Gets or sets indicates whether Automatic Updates is enabled for the Windows virtual machine. Default value is true. &lt;br&gt;&lt;br&gt; For virtual machine scale sets, this property can be updated and updates will take effect on OS reprovisioning.

PatchSettings

Gets or sets specifies settings related to in-guest patching (KBs).

ProvisionVMAgent

Gets or sets indicates whether virtual machine agent should be provisioned on the virtual machine. &lt;br&gt;&lt;br&gt; When this property is not specified in the request body, default behavior is to set it to true. This will ensure that VM Agent is installed on the VM so that extensions can be added to the VM later.

TimeZone

Gets or sets specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". &lt;br&gt;&lt;br&gt; Possible values can be TimeZoneInfo.Id value from time zones returned by TimeZoneInfo.GetSystemTimeZones.

WinRM

Gets or sets specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.

Applies to