你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
WindowsConfiguration 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
指定虚拟机上的 Windows 操作系统设置。
public class WindowsConfiguration
type WindowsConfiguration = class
Public Class WindowsConfiguration
- 继承
-
WindowsConfiguration
构造函数
WindowsConfiguration() |
初始化 WindowsConfiguration 类的新实例。 |
WindowsConfiguration(Nullable<Boolean>, Nullable<Boolean>, String, IList<AdditionalUnattendContent>, PatchSettings, WinRMConfiguration) |
初始化 WindowsConfiguration 类的新实例。 |
属性
AdditionalUnattendContent |
获取或设置指定其他 base-64 编码的 XML 格式信息,这些信息可以包含在 Windows 安装程序使用的 Unattend.xml 文件中。 |
EnableAutomaticUpdates |
获取或设置指示是否为 Windows 虚拟机启用了自动汇报。 默认值为 true。 <br><br>对于虚拟机规模集,可以更新此属性,更新将在 OS 重新预配时生效。 |
PatchSettings |
获取或设置指定与来宾内修补 (KB) 相关的设置。 |
ProvisionVMAgent |
获取或设置指示是否应在虚拟机上预配虚拟机代理。 <br><br>如果未在请求正文中指定此属性,则默认行为是将其设置为 true。 这将确保 VM 代理安装在 VM 上,以便以后可以向 VM 添加扩展。 |
TimeZone |
获取或设置指定虚拟机的时区。 例如“太平洋标准时间”。 <br><br>可以从 TimeZoneInfo.GetSystemTimeZones 返回的时区 TimeZoneInfo.Id 值。 |
WinRM |
获取或设置指定 Windows 远程管理侦听器。 这将启用远程 Windows PowerShell。 |