Share via


VirtualMachineExtension Constructors

Definition

Overloads

VirtualMachineExtension()

Initializes a new instance of the VirtualMachineExtension class.

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>)

Initializes a new instance of the VirtualMachineExtension class.

VirtualMachineExtension()

Initializes a new instance of the VirtualMachineExtension class.

public VirtualMachineExtension ();
Public Sub New ()

Applies to

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>)

Initializes a new instance of the VirtualMachineExtension class.

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)

Parameters

location
String

Resource location

id
String

Resource Id

name
String

Resource name

type
String

Resource type

tags
IDictionary<String,String>

Resource tags

forceUpdateTag
String

How the extension handler should be forced to update even if the extension configuration has not changed.

publisher
String

The name of the extension handler publisher.

virtualMachineExtensionType
String

Specifies the type of the extension; an example is "CustomScriptExtension".

typeHandlerVersion
String

Specifies the version of the script handler.

autoUpgradeMinorVersion
Nullable<Boolean>

Indicates whether the extension should use a newer minor version if one is available at deployment time. Once deployed, however, the extension will not upgrade minor versions unless redeployed, even with this property set to true.

enableAutomaticUpgrade
Nullable<Boolean>

Indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.

settings
Object

Json formatted public settings for the extension.

protectedSettings
Object

The extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.

provisioningState
String

The provisioning state, which only appears in the response.

instanceView
VirtualMachineExtensionInstanceView

The virtual machine extension instance view.

suppressFailures
Nullable<Boolean>

Indicates whether failures stemming from the extension will be suppressed (Operational failures such as not connecting to the VM will not be suppressed regardless of this value). The default is false.

protectedSettingsFromKeyVault
KeyVaultSecretReference

The extensions protected settings that are passed by reference, and consumed from key vault

provisionAfterExtensions
IList<String>

Collection of extension names after which this extension needs to be provisioned.

Applies to