ArmComputeModelFactory.RunCommandDocument Method

Definition

Initializes a new instance of RunCommandDocument.

public static Azure.ResourceManager.Compute.Models.RunCommandDocument RunCommandDocument (string schema = default, string id = default, Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType osType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, string label = default, string description = default, System.Collections.Generic.IEnumerable<string> script = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Compute.Models.RunCommandParameterDefinition> parameters = default);
static member RunCommandDocument : string * string * Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType * string * string * seq<string> * seq<Azure.ResourceManager.Compute.Models.RunCommandParameterDefinition> -> Azure.ResourceManager.Compute.Models.RunCommandDocument
Public Shared Function RunCommandDocument (Optional schema As String = Nothing, Optional id As String = Nothing, Optional osType As SupportedOperatingSystemType = Azure.ResourceManager.Compute.Models.SupportedOperatingSystemType.Windows, Optional label As String = Nothing, Optional description As String = Nothing, Optional script As IEnumerable(Of String) = Nothing, Optional parameters As IEnumerable(Of RunCommandParameterDefinition) = Nothing) As RunCommandDocument

Parameters

schema
String

The VM run command schema.

id
String

The VM run command id.

osType
SupportedOperatingSystemType

The Operating System type.

label
String

The VM run command label.

description
String

The VM run command description.

script
IEnumerable<String>

The script to be executed.

parameters
IEnumerable<RunCommandParameterDefinition>

The parameters used by the script.

Returns

A new RunCommandDocument instance for mocking.

Exceptions

schema, id, label or description is null.

Applies to