WindowsConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.WindowsConfiguration

public final class WindowsConfiguration

Specifies Windows operating system settings on the virtual machine.

Constructor Summary

Constructor Description
WindowsConfiguration()

Creates an instance of WindowsConfiguration class.

Method Summary

Modifier and Type Method and Description
List<AdditionalUnattendContent> additionalUnattendContent()

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

Boolean enableAutomaticUpdates()

Get the enableAutomaticUpdates property: Indicates whether Automatic Updates is enabled for the Windows virtual machine.

Boolean enableVMAgentPlatformUpdates()

Get the enableVMAgentPlatformUpdates property: Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine.

PatchSettings patchSettings()

Get the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.

Boolean provisionVMAgent()

Get the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine.

String timeZone()

Get the timeZone property: Specifies the time zone of the virtual machine.

void validate()

Validates the instance.

WinRMConfiguration winRM()

Get the winRM property: Specifies the Windows Remote Management listeners.

WindowsConfiguration withAdditionalUnattendContent(List<AdditionalUnattendContent> additionalUnattendContent)

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

WindowsConfiguration withEnableAutomaticUpdates(Boolean enableAutomaticUpdates)

Set the enableAutomaticUpdates property: Indicates whether Automatic Updates is enabled for the Windows virtual machine.

WindowsConfiguration withEnableVMAgentPlatformUpdates(Boolean enableVMAgentPlatformUpdates)

Set the enableVMAgentPlatformUpdates property: Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine.

WindowsConfiguration withPatchSettings(PatchSettings patchSettings)

Set the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.

WindowsConfiguration withProvisionVMAgent(Boolean provisionVMAgent)

Set the provisionVMAgent property: Indicates whether virtual machine agent should be provisioned on the virtual machine.

WindowsConfiguration withTimeZone(String timeZone)

Set the timeZone property: Specifies the time zone of the virtual machine.

WindowsConfiguration withWinRM(WinRMConfiguration winRM)

Set the winRM property: Specifies the Windows Remote Management listeners.

Methods inherited from java.lang.Object

Constructor Details

WindowsConfiguration

public WindowsConfiguration()

Creates an instance of WindowsConfiguration class.

Method Details

additionalUnattendContent

public List additionalUnattendContent()

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

Returns:

the additionalUnattendContent value.

enableAutomaticUpdates

public Boolean enableAutomaticUpdates()

Get the enableAutomaticUpdates property: 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.

Returns:

the enableAutomaticUpdates value.

enableVMAgentPlatformUpdates

public Boolean enableVMAgentPlatformUpdates()

Get the enableVMAgentPlatformUpdates property: Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine. Default value is false.

Returns:

the enableVMAgentPlatformUpdates value.

patchSettings

public PatchSettings patchSettings()

Get the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.

Returns:

the patchSettings value.

provisionVMAgent

public Boolean provisionVMAgent()

Get the provisionVMAgent property: 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.

Returns:

the provisionVMAgent value.

timeZone

public String timeZone()

Get the timeZone property: Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?\#System\_TimeZoneInfo\_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones).

Returns:

the timeZone value.

validate

public void validate()

Validates the instance.

winRM

public WinRMConfiguration winRM()

Get the winRM property: Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.

Returns:

the winRM value.

withAdditionalUnattendContent

public WindowsConfiguration withAdditionalUnattendContent(List additionalUnattendContent)

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

Parameters:

additionalUnattendContent - the additionalUnattendContent value to set.

Returns:

the WindowsConfiguration object itself.

withEnableAutomaticUpdates

public WindowsConfiguration withEnableAutomaticUpdates(Boolean enableAutomaticUpdates)

Set the enableAutomaticUpdates property: 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.

Parameters:

enableAutomaticUpdates - the enableAutomaticUpdates value to set.

Returns:

the WindowsConfiguration object itself.

withEnableVMAgentPlatformUpdates

public WindowsConfiguration withEnableVMAgentPlatformUpdates(Boolean enableVMAgentPlatformUpdates)

Set the enableVMAgentPlatformUpdates property: Indicates whether VMAgent Platform Updates is enabled for the Windows virtual machine. Default value is false.

Parameters:

enableVMAgentPlatformUpdates - the enableVMAgentPlatformUpdates value to set.

Returns:

the WindowsConfiguration object itself.

withPatchSettings

public WindowsConfiguration withPatchSettings(PatchSettings patchSettings)

Set the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.

Parameters:

patchSettings - the patchSettings value to set.

Returns:

the WindowsConfiguration object itself.

withProvisionVMAgent

public WindowsConfiguration withProvisionVMAgent(Boolean provisionVMAgent)

Set the provisionVMAgent property: 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.

Parameters:

provisionVMAgent - the provisionVMAgent value to set.

Returns:

the WindowsConfiguration object itself.

withTimeZone

public WindowsConfiguration withTimeZone(String timeZone)

Set the timeZone property: Specifies the time zone of the virtual machine. e.g. "Pacific Standard Time". Possible values can be [TimeZoneInfo.Id](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.id?\#System\_TimeZoneInfo\_Id) value from time zones returned by [TimeZoneInfo.GetSystemTimeZones](https://docs.microsoft.com/dotnet/api/system.timezoneinfo.getsystemtimezones).

Parameters:

timeZone - the timeZone value to set.

Returns:

the WindowsConfiguration object itself.

withWinRM

public WindowsConfiguration withWinRM(WinRMConfiguration winRM)

Set the winRM property: Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.

Parameters:

winRM - the winRM value to set.

Returns:

the WindowsConfiguration object itself.

Applies to