Exemplo n.º 1
0
 /// <summary>
 /// Start a run on a remote compute target.
 /// </summary>
 /// <remarks>
 /// Starts an experiment run using the provided definition.json file to define
 /// the run.
 /// The source code and configuration is defined in a zip archive in
 /// project.zip.
 /// </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='runDefinitionFile'>
 /// The JSON file containing the RunDefinition
 /// </param>
 /// <param name='projectZipFile'>
 /// The zip archive of the project folder containing the source code to use for
 /// the run.
 /// </param>
 /// <param name='runId'>
 /// A run id. If not supplied a run id will be created automatically.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <StartRunResult> StartRunAsync(this IRunsOperations operations, System.Guid subscriptionId, string resourceGroupName, string workspaceName, string experimentName, Stream runDefinitionFile, Stream projectZipFile, string runId = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.StartRunWithHttpMessagesAsync(subscriptionId, resourceGroupName, workspaceName, experimentName, runDefinitionFile, projectZipFile, runId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }