你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

WindowsConfiguration 类

定义

指定虚拟机上的 Windows 操作系统设置。

public class WindowsConfiguration
type WindowsConfiguration = class
Public Class WindowsConfiguration
继承
WindowsConfiguration

构造函数

WindowsConfiguration()

初始化 WindowsConfiguration 类的新实例。

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

初始化 WindowsConfiguration 类的新实例。

属性

AdditionalUnattendContent

获取或设置指定其他 base-64 编码的 XML 格式的信息,这些信息可以包含在 Windows 安装程序使用的 Unattend.xml 文件中。

EnableAutomaticUpdates

获取或设置指示是否为 Windows 虚拟机启用了自动汇报。 默认值为 true。 对于虚拟机规模集,可以更新此属性,更新将在 OS 重新预配时生效。

EnableVMAgentPlatformUpdates

获取或设置指示是否为 Windows 虚拟机启用 VMAgent Platform 汇报。 默认值为 false。

PatchSettings

获取或设置 [预览功能] 指定与 Windows 上的 VM 来宾修补相关的设置。

ProvisionVMAgent

获取或设置指示是否应在虚拟机上预配虚拟机代理。 如果未在请求正文中指定此属性,则默认将其设置为 true。 这将确保 VM 代理安装在 VM 上,以便以后可以向 VM 添加扩展。

TimeZone

获取或设置指定虚拟机的时区。 例如“太平洋标准时间”。 可以从 TimeZoneInfo.GetSystemTimeZones 返回的时区 TimeZoneInfo.Id 值。

WinRM

获取或设置指定 Windows 远程管理侦听器。 这将启用远程 Windows PowerShell。

适用于