Delen via


VirtualMachineExtension Class

Definition

Describes a Virtual Machine Extension.

[Microsoft.Rest.Serialization.JsonTransformation]
public class VirtualMachineExtension : Microsoft.Azure.Management.Compute.Models.ResourceWithOptionalLocation
[<Microsoft.Rest.Serialization.JsonTransformation>]
type VirtualMachineExtension = class
    inherit ResourceWithOptionalLocation
Public Class VirtualMachineExtension
Inherits ResourceWithOptionalLocation
Inheritance
VirtualMachineExtension
Attributes

Constructors

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.

Properties

AutoUpgradeMinorVersion

Gets or sets 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

Gets or sets indicates whether the extension should be automatically upgraded by the platform if there is a newer version of the extension available.

ForceUpdateTag

Gets or sets how the extension handler should be forced to update even if the extension configuration has not changed.

Id

Gets resource Id

(Inherited from ResourceWithOptionalLocation)
InstanceView

Gets or sets the virtual machine extension instance view.

Location

Gets or sets resource location

(Inherited from ResourceWithOptionalLocation)
Name

Gets resource name

(Inherited from ResourceWithOptionalLocation)
ProtectedSettings

Gets or sets the extension can contain either protectedSettings or protectedSettingsFromKeyVault or no protected settings at all.

ProtectedSettingsFromKeyVault

Gets or sets the extensions protected settings that are passed by reference, and consumed from key vault

ProvisionAfterExtensions

Gets or sets collection of extension names after which this extension needs to be provisioned.

ProvisioningState

Gets the provisioning state, which only appears in the response.

Publisher

Gets or sets the name of the extension handler publisher.

Settings

Gets or sets json formatted public settings for the extension.

SuppressFailures

Gets or sets 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.

Tags

Gets or sets resource tags

(Inherited from ResourceWithOptionalLocation)
Type

Gets resource type

(Inherited from ResourceWithOptionalLocation)
TypeHandlerVersion

Gets or sets specifies the version of the script handler.

VirtualMachineExtensionType

Gets or sets specifies the type of the extension; an example is "CustomScriptExtension".

Methods

Validate()

Validate the object.

Applies to