MachineExtensionPatch Class

Definition

Describes a Machine Extension Update.

public class MachineExtensionPatch : Azure.ResourceManager.ConnectedVMwarevSphere.Models.ResourcePatch
type MachineExtensionPatch = class
    inherit ResourcePatch
Public Class MachineExtensionPatch
Inherits ResourcePatch
Inheritance
MachineExtensionPatch

Constructors

MachineExtensionPatch()

Initializes a new instance of MachineExtensionPatch.

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.

ForceUpdateTag

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

MachineExtensionType

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

ProtectedSettings

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

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formated json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Publisher

The name of the extension handler publisher.

Settings

Json formatted public settings for the extension.

To assign an object to this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formated json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

Tags

Resource tags.

(Inherited from ResourcePatch)
TypeHandlerVersion

Specifies the version of the script handler.

Applies to