Share via


VirtualMachineRunCommandScriptSource Class

Definition

Describes the script sources for run command.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.VirtualMachineRunCommandScriptSourceTypeConverter))]
public class VirtualMachineRunCommandScriptSource : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IVirtualMachineRunCommandScriptSource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.VirtualMachineRunCommandScriptSourceTypeConverter))>]
type VirtualMachineRunCommandScriptSource = class
    interface IVirtualMachineRunCommandScriptSource
    interface IJsonSerializable
Public Class VirtualMachineRunCommandScriptSource
Implements IVirtualMachineRunCommandScriptSource
Inheritance
VirtualMachineRunCommandScriptSource
Attributes
Implements

Constructors

VirtualMachineRunCommandScriptSource()

Creates an new VirtualMachineRunCommandScriptSource instance.

Properties

CommandId

Specifies a commandId of predefined built-in script.

Script

Specifies the script content to be executed on the VM.

ScriptUri

Specifies the script download location.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of VirtualMachineRunCommandScriptSource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of VirtualMachineRunCommandScriptSource.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20210701.IVirtualMachineRunCommandScriptSource.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of VirtualMachineRunCommandScriptSource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

Applies to