Ejemplo n.º 1
0
 /// <summary>
 /// Start a run from a snapshot on a remote compute target.
 /// </summary>
 /// <remarks>
 /// Starts an experiment run on the remote compute target using the provided
 /// definition.json file to define the run.
 /// The code for the run is retrieved using the snapshotId in definition.json.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// The Azure Subscription ID.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The Name of the resource group in which the workspace is located.
 /// </param>
 /// <param name='workspaceName'>
 /// The name of the workspace.
 /// </param>
 /// <param name='experimentName'>
 /// The experiment name.
 /// </param>
 /// <param name='definition'>
 /// A JSON run definition structure.
 /// </param>
 /// <param name='runId'>
 /// A run id. If not supplied a run id will be created automatically.
 /// </param>
 public static StartRunResult StartSnapshotRun(this IRunsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName, RunDefinition definition, string runId = default(string))
 {
     return(operations.StartSnapshotRunAsync(subscriptionId, resourceGroupName, workspaceName, experimentName, definition, runId).GetAwaiter().GetResult());
 }