Compartilhar via


VMExtension Class

Definition

The configuration for virtual machine extensions.

public class VMExtension : System.ClientModel.Primitives.IJsonModel<Azure.Compute.Batch.VMExtension>, System.ClientModel.Primitives.IPersistableModel<Azure.Compute.Batch.VMExtension>
type VMExtension = class
    interface IJsonModel<VMExtension>
    interface IPersistableModel<VMExtension>
Public Class VMExtension
Implements IJsonModel(Of VMExtension), IPersistableModel(Of VMExtension)
Inheritance
VMExtension
Implements

Constructors

VMExtension(String, String, String)

Initializes a new instance of VMExtension.

Properties

AutoUpgradeMinorVersion

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

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

Name

The name of the virtual machine extension.

ProtectedSettings

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

ProvisionAfterExtensions

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

Publisher

The name of the extension handler publisher.

Settings

JSON formatted public settings for the extension.

Type

The type of the extension.

TypeHandlerVersion

The version of script handler.

Explicit Interface Implementations

IJsonModel<VMExtension>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<VMExtension>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<VMExtension>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<VMExtension>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<VMExtension>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to