/// <summary> /// The Prepare Deployment Operation validates and prepares your /// deployment for IaaS Classic to ARM migration. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations. /// </param> /// <param name='serviceName'> /// Required. Name of the cloud service. /// </param> /// <param name='deploymentName'> /// Required. Name of the deployment to be migrated. /// </param> /// <param name='parameters'> /// Required. Deployment Network resource parameters for migration. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static AzureOperationResponse BeginPrepareMigration(this IDeploymentOperations operations, string serviceName, string deploymentName, PrepareDeploymentMigrationParameters parameters) { return Task.Factory.StartNew((object s) => { return ((IDeploymentOperations)s).BeginPrepareMigrationAsync(serviceName, deploymentName, parameters); } , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult(); }
/// <summary> /// The Prepare Deployment Operation validates and prepares your /// deployment for IaaS Classic to ARM migration. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations. /// </param> /// <param name='serviceName'> /// Required. Name of the cloud service. /// </param> /// <param name='deploymentName'> /// Required. Name of the deployment to be migrated. /// </param> /// <param name='parameters'> /// Required. Deployment Network resource parameters for migration. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task<AzureOperationResponse> BeginPrepareMigrationAsync(this IDeploymentOperations operations, string serviceName, string deploymentName, PrepareDeploymentMigrationParameters parameters) { return operations.BeginPrepareMigrationAsync(serviceName, deploymentName, parameters, CancellationToken.None); }
/// <summary> /// The Validate Deployment Operation validates your deployment for /// IaaS Classic to ARM migration. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.Management.Compute.IDeploymentOperations. /// </param> /// <param name='serviceName'> /// Required. Name of the cloud service. /// </param> /// <param name='deploymentName'> /// Required. Name of the deployment to be migrated. /// </param> /// <param name='parameters'> /// Required. Deployment Network resource parameters for migration. /// </param> /// <returns> /// The Validate Deployment Migration operation response. /// </returns> public static Task<XrpMigrationValidateDeploymentResponse> ValidateMigrationAsync(this IDeploymentOperations operations, string serviceName, string deploymentName, PrepareDeploymentMigrationParameters parameters) { return operations.ValidateMigrationAsync(serviceName, deploymentName, parameters, CancellationToken.None); }