Share via


ComputeBatchModelFactory.VMExtension Method

Definition

The configuration for virtual machine extensions.

public static Azure.Compute.Batch.VMExtension VMExtension(string name = default, string publisher = default, string type = default, string typeHandlerVersion = default, bool? autoUpgradeMinorVersion = default, bool? enableAutomaticUpgrade = default, System.Collections.Generic.IDictionary<string,string> settings = default, System.Collections.Generic.IDictionary<string,string> protectedSettings = default, System.Collections.Generic.IEnumerable<string> provisionAfterExtensions = default);
static member VMExtension : string * string * string * string * Nullable<bool> * Nullable<bool> * System.Collections.Generic.IDictionary<string, string> * System.Collections.Generic.IDictionary<string, string> * seq<string> -> Azure.Compute.Batch.VMExtension
Public Shared Function VMExtension (Optional name As String = Nothing, Optional publisher As String = Nothing, Optional type 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 IDictionary(Of String, String) = Nothing, Optional protectedSettings As IDictionary(Of String, String) = Nothing, Optional provisionAfterExtensions As IEnumerable(Of String) = Nothing) As VMExtension

Parameters

name
String

The name of the virtual machine extension.

publisher
String

The name of the extension handler publisher.

type
String

The type of the extension.

typeHandlerVersion
String

The version of 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
IDictionary<String,String>

JSON formatted public settings for the extension.

protectedSettings
IDictionary<String,String>

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

provisionAfterExtensions
IEnumerable<String>

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

Returns

A new VMExtension instance for mocking.

Applies to