Share via


MachineExtension Class

Definition

Describes a Machine Extension.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineExtensionTypeConverter))]
public class MachineExtension : Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IMachineExtension, Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineExtensionTypeConverter))>]
type MachineExtension = class
    interface IMachineExtension
    interface IJsonSerializable
    interface ITrackedResource
    interface IResource
    interface IValidates
Public Class MachineExtension
Implements IMachineExtension, IValidates
Inheritance
MachineExtension
Attributes
Implements

Constructors

MachineExtension()

Creates an new MachineExtension instance.

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

ForceUpdateTag

How the extension handler should be forced to update even if the extension configuration has not changed.

Id

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

InstanceViewName

The machine extension name.

InstanceViewType

Specifies the type of the extension; an example is "CustomScriptExtension".

InstanceViewTypeHandlerVersion

Specifies the version of the script handler.

Location

The geo-location where the resource lives

MachineExtensionType

Specifies the type of the extension; an example is "CustomScriptExtension".

MachineName
Name

The name of the resource

ProtectedSetting

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

ProvisioningState

The provisioning state, which only appears in the response.

Publisher

The name of the extension handler publisher.

ResourceGroupName

Gets the resource group name

Setting

Json formatted public settings for the extension.

StatusCode

The status code.

StatusDisplayStatus

The short localizable label for the status.

StatusLevel

The level code.

StatusMessage

The detailed status message, including for alerts and error messages.

StatusTime

The time of the status.

SystemDataCreatedAt

The timestamp of resource creation (UTC).

SystemDataCreatedBy

The identity that created the resource.

SystemDataCreatedByType

The type of identity that created the resource.

SystemDataLastModifiedAt

The timestamp of resource last modification (UTC)

SystemDataLastModifiedBy

The identity that last modified the resource.

SystemDataLastModifiedByType

The type of identity that last modified the resource.

Tags

Resource tags.

Type

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

TypeHandlerVersion

Specifies the version of the script handler.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of MachineExtension.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of MachineExtension.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IMachineExtension.

FromJsonString(String)

Creates a new instance of MachineExtension, deserializing the content from a json string.

ToJson(JsonObject, SerializationMode)

Serializes this instance of MachineExtension into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to