你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

CommandJob Class

Definition

Command job definition.

[System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.CommandJobTypeConverter))]
public class CommandJob : Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.ICommandJob, Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Runtime.IValidates
[<System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.CommandJobTypeConverter))>]
type CommandJob = class
    interface ICommandJob
    interface IJsonSerializable
    interface IJobBaseProperties
    interface IResourceBase
    interface IValidates
Public Class CommandJob
Implements ICommandJob, IValidates
Inheritance
CommandJob
Attributes
Implements

Constructors

CommandJob()

Creates an new CommandJob instance.

Properties

CodeId

ARM resource ID of the code asset.

Command

[Required] The command to execute on startup of the job. eg. "python train.py"

ComputeId

ARM resource ID of the compute resource.

Description

The asset description text.

DisplayName

Display name of job.

DistributionType

[Required] Specifies the type of distribution framework.

EnvironmentId

[Required] The ARM resource ID of the Environment specification for the job.

EnvironmentVariable

Environment variables included in the job.

ExperimentName

The name of the experiment the job belongs to. If not set, the job is placed in the "Default" experiment.

Identity

Identity configuration. If set, this should be one of AmlToken, ManagedIdentity, UserIdentity or null. Defaults to AmlToken if null.

IdentityType

[Required] Specifies the type of identity framework.

Input

Mapping of input data bindings used in the job.

IsArchived

Is the asset archived?

JobType

[Required] Specifies the type of job.

LimitJobLimitsType

[Required] JobLimit type.

LimitTimeout

The max run duration in ISO 8601 format, after which the job will be cancelled. Only supports duration with precision as low as Seconds.

Output

Mapping of output data bindings used in the job.

Parameter

Input parameters.

Property

The asset property dictionary.

ResourceInstanceCount

Optional number of instances or nodes used by the compute target.

ResourceInstanceType

Optional type of VM used as supported by the compute target.

ResourceProperty

Additional properties bag.

Service

List of JobEndpoints. For local jobs, a job endpoint will have an endpoint value of FileStreamObject.

Status

Status of the job.

Tag

Tag dictionary. Tags can be added, removed, and updated.

Methods

DeserializeFromDictionary(IDictionary)

Deserializes a IDictionary into an instance of CommandJob.

DeserializeFromPSObject(PSObject)

Deserializes a PSObject into an instance of CommandJob.

FromJson(JsonNode)

Deserializes a JsonNode into an instance of Microsoft.Azure.PowerShell.Cmdlets.MachineLearningServices.Models.Api20220501.ICommandJob.

FromJsonString(String)

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

ToJson(JsonObject, SerializationMode)

Serializes this instance of CommandJob into a JsonNode.

ToJsonString()

Serializes this instance to a json string.

ToString()
Validate(IEventListener)

Validates that this object meets the validation criteria.

Applies to