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

VirtualMachineExtension 构造函数

定义

重载

VirtualMachineExtension()

初始化 VirtualMachineExtension 类的新实例。

VirtualMachineExtension(String, String, String, String, IDictionary<String, String>, String, String, String, String, Nullable<Boolean>, Nullable<Boolean>, Object, Object, String, VirtualMachineExtensionInstanceView, Nullable<Boolean>, KeyVaultSecretReference, IList<String>)

初始化 VirtualMachineExtension 类的新实例。

VirtualMachineExtension()

初始化 VirtualMachineExtension 类的新实例。

public VirtualMachineExtension ();
Public Sub New ()

适用于

VirtualMachineExtension(String, String, String, String, IDictionary<String, String>, String, String, String, String, Nullable<Boolean>, Nullable<Boolean>, Object, Object, String, VirtualMachineExtensionInstanceView, Nullable<Boolean>, KeyVaultSecretReference, IList<String>)

初始化 VirtualMachineExtension 类的新实例。

public VirtualMachineExtension (string location = default, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string forceUpdateTag = default, string publisher = default, string virtualMachineExtensionType = default, string typeHandlerVersion = default, bool? autoUpgradeMinorVersion = default, bool? enableAutomaticUpgrade = default, object settings = default, object protectedSettings = default, string provisioningState = default, Microsoft.Azure.Management.Compute.Models.VirtualMachineExtensionInstanceView instanceView = default, bool? suppressFailures = default, Microsoft.Azure.Management.Compute.Models.KeyVaultSecretReference protectedSettingsFromKeyVault = default, System.Collections.Generic.IList<string> provisionAfterExtensions = default);
new Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * string * string * Nullable<bool> * Nullable<bool> * obj * obj * string * Microsoft.Azure.Management.Compute.Models.VirtualMachineExtensionInstanceView * Nullable<bool> * Microsoft.Azure.Management.Compute.Models.KeyVaultSecretReference * System.Collections.Generic.IList<string> -> Microsoft.Azure.Management.Compute.Models.VirtualMachineExtension
Public Sub New (Optional location As String = Nothing, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional forceUpdateTag As String = Nothing, Optional publisher As String = Nothing, Optional virtualMachineExtensionType As String = Nothing, Optional typeHandlerVersion As String = Nothing, Optional autoUpgradeMinorVersion As Nullable(Of Boolean) = Nothing, Optional enableAutomaticUpgrade As Nullable(Of Boolean) = Nothing, Optional settings As Object = Nothing, Optional protectedSettings As Object = Nothing, Optional provisioningState As String = Nothing, Optional instanceView As VirtualMachineExtensionInstanceView = Nothing, Optional suppressFailures As Nullable(Of Boolean) = Nothing, Optional protectedSettingsFromKeyVault As KeyVaultSecretReference = Nothing, Optional provisionAfterExtensions As IList(Of String) = Nothing)

参数

location
String

资源位置

id
String

资源 ID

name
String

资源名称

type
String

资源类型

tags
IDictionary<String,String>

资源标记

forceUpdateTag
String

应如何强制更新扩展处理程序,即使扩展配置尚未更改。

publisher
String

扩展处理程序发布者的名称。

virtualMachineExtensionType
String

指定扩展的类型;例如“CustomScriptExtension”。

typeHandlerVersion
String

指定脚本处理程序的版本。

autoUpgradeMinorVersion
Nullable<Boolean>

指示如果扩展在部署时可用,则是否应使用较新的次要版本。 但是,部署后,除非重新部署,否则扩展不会升级次要版本,即使此属性设置为 true 也是如此。

enableAutomaticUpgrade
Nullable<Boolean>

指示如果有较新版本的可用扩展,则平台是否应自动升级扩展。

settings
Object

扩展的 Json 格式公共设置。

protectedSettings
Object

该扩展可以包含 protectedSettings 或 protectedSettingsFromKeyVault,或者根本不包含受保护的设置。

provisioningState
String

预配状态,仅显示在响应中。

instanceView
VirtualMachineExtensionInstanceView

虚拟机扩展实例视图。

suppressFailures
Nullable<Boolean>

指示是否将禁止从扩展引发的故障, (操作故障(如未连接到 VM)将不会被禁止,而不考虑此值) 。 默认值为 false。

protectedSettingsFromKeyVault
KeyVaultSecretReference

扩展保护的设置,这些设置通过引用传递,并从密钥保管库使用

provisionAfterExtensions
IList<String>

扩展名称的集合,之后需要预配此扩展。

适用于