Compartilhar via


ArmComputeModelFactory.RunCommandDocument Método

Definição

Inicializa uma nova instância de 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

Parâmetros

schema
String

O esquema de comando de execução da VM.

id
String

A ID do comando de execução da VM.

osType
SupportedOperatingSystemType

O tipo de sistema operacional.

label
String

O rótulo de comando de execução da VM.

description
String

A descrição do comando de execução da VM.

script
IEnumerable<String>

O script a ser executado.

parameters
IEnumerable<RunCommandParameterDefinition>

Os parâmetros usados pelo script.

Retornos

Uma nova RunCommandDocument instância para zombar.

Exceções

schema, id, label ou description é nulo.

Aplica-se a