ArmBatchModelFactory.BatchVmExtension Method

Definition

The configuration for virtual machine extensions.

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

Parameters

name
String

The name of the virtual machine extension.

publisher
String

The name of the extension handler publisher.

extensionType
String

The type of the extensions.

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
BinaryData

JSON formatted public settings for the extension.

protectedSettings
BinaryData

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

provisionAfterExtensions
IEnumerable<String>

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

Returns

A new BatchVmExtension instance for mocking.

Applies to