Share via


MachineRunCommandScriptSource Class

Definition

Describes the script sources for run command. Use only one of script, scriptUri, commandId.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandScriptSourceTypeConverter))]
public class MachineRunCommandScriptSource : Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.IMachineRunCommandScriptSource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.ConnectedMachine.Models.MachineRunCommandScriptSourceTypeConverter))>]
type MachineRunCommandScriptSource = class
    interface IMachineRunCommandScriptSource
    interface IJsonSerializable
Public Class MachineRunCommandScriptSource
Implements IMachineRunCommandScriptSource
Inheritance
MachineRunCommandScriptSource
Attributes
Implements

Constructors

MachineRunCommandScriptSource()

Creates an new MachineRunCommandScriptSource instance.

Properties

CommandId

Specifies the commandId of predefined built-in script.

Script

Specifies the script content to be executed on the machine.

ScriptUri

Specifies the script download location. It can be either SAS URI of an Azure storage blob with read access or public URI.

ScriptUriManagedIdentityClientId

Client Id (GUID value) of the user-assigned managed identity. ObjectId should not be used if this is provided.

ScriptUriManagedIdentityObjectId

Object Id (GUID value) of the user-assigned managed identity. ClientId should not be used if this is provided.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of MachineRunCommandScriptSource.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of MachineRunCommandScriptSource.

FromJson(JsonNode)

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

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of MachineRunCommandScriptSource into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()

Applies to