Share via


MachineExtension Constructors

Definition

Overloads

MachineExtension()

Initializes a new instance of the MachineExtension class.

MachineExtension(String, String, String, String, IDictionary<String, String>, String, String, String, String, Nullable<Boolean>, Object, Object, String, MachineExtensionPropertiesInstanceView)

Initializes a new instance of the MachineExtension class.

MachineExtension()

Initializes a new instance of the MachineExtension class.

public MachineExtension ();
Public Sub New ()

Applies to

MachineExtension(String, String, String, String, IDictionary<String, String>, String, String, String, String, Nullable<Boolean>, Object, Object, String, MachineExtensionPropertiesInstanceView)

Initializes a new instance of the MachineExtension class.

public MachineExtension (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, string forceUpdateTag = default, string publisher = default, string machineExtensionType = default, string typeHandlerVersion = default, bool? autoUpgradeMinorVersion = default, object settings = default, object protectedSettings = default, string provisioningState = default, Microsoft.Azure.Management.HybridCompute.Models.MachineExtensionPropertiesInstanceView instanceView = default);
new Microsoft.Azure.Management.HybridCompute.Models.MachineExtension : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * string * string * string * string * Nullable<bool> * obj * obj * string * Microsoft.Azure.Management.HybridCompute.Models.MachineExtensionPropertiesInstanceView -> Microsoft.Azure.Management.HybridCompute.Models.MachineExtension
Public Sub New (location As String, 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 machineExtensionType As String = Nothing, Optional typeHandlerVersion As String = Nothing, Optional autoUpgradeMinorVersion As Nullable(Of Boolean) = Nothing, Optional settings As Object = Nothing, Optional protectedSettings As Object = Nothing, Optional provisioningState As String = Nothing, Optional instanceView As MachineExtensionPropertiesInstanceView = Nothing)

Parameters

location
String

The geo-location where the resource lives

id
String

Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

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.

machineExtensionType
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.

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
MachineExtensionPropertiesInstanceView

The machine extension instance view.

Applies to