WindowsConfiguration Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. WindowsConfiguration
- com.
public final class WindowsConfiguration
Specifies Windows operating system settings on the virtual machine.
Constructor Summary
Constructor | Description |
---|---|
WindowsConfiguration() |
Creates an instance of Windows |
Method Summary
Modifier and Type | Method and Description |
---|---|
List<Additional |
additionalUnattendContent()
Get the additional |
Boolean |
enableAutomaticUpdates()
Get the enable |
Boolean |
enableVMAgentPlatformUpdates()
Get the enable |
Patch |
patchSettings()
Get the patch |
Boolean |
provisionVMAgent()
Get the provision |
String |
timeZone()
Get the time |
void |
validate()
Validates the instance. |
Win |
winRM()
Get the winRM property: Specifies the Windows Remote Management listeners. |
Windows |
withAdditionalUnattendContent(List<AdditionalUnattendContent> additionalUnattendContent)
Set the additional |
Windows |
withEnableAutomaticUpdates(Boolean enableAutomaticUpdates)
Set the enable |
Windows |
withEnableVMAgentPlatformUpdates(Boolean enableVMAgentPlatformUpdates)
Set the enable |
Windows |
withPatchSettings(PatchSettings patchSettings)
Set the patch |
Windows |
withProvisionVMAgent(Boolean provisionVMAgent)
Set the provision |
Windows |
withTimeZone(String timeZone)
Set the time |
Windows |
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
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:
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:
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:
patchSettings
public PatchSettings patchSettings()
Get the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.
Returns:
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:
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:
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:
withAdditionalUnattendContent
public WindowsConfiguration withAdditionalUnattendContent(List
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:
Returns:
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:
Returns:
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:
Returns:
withPatchSettings
public WindowsConfiguration withPatchSettings(PatchSettings patchSettings)
Set the patchSettings property: [Preview Feature] Specifies settings related to VM Guest Patching on Windows.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withWinRM
public WindowsConfiguration withWinRM(WinRMConfiguration winRM)
Set the winRM property: Specifies the Windows Remote Management listeners. This enables remote Windows PowerShell.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for