VirtualMachineRunCommandScriptSource Class

Definition

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

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.VirtualMachineRunCommandScriptSourceTypeConverter))]
public class VirtualMachineRunCommandScriptSource : Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.IVirtualMachineRunCommandScriptSource
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.Compute.Models.Api20230701.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. 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 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.Api20230701.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