public static void ResizePool(BatchController controller, BatchAccountContext context, string poolId, int targetDedicated) { BatchClient client = new BatchClient(controller.BatchManagementClient, controller.ResourceManagementClient); PoolResizeParameters parameters = new PoolResizeParameters(context, poolId, null) { TargetDedicated = targetDedicated }; client.ResizePool(parameters); }
public override void ExecuteCmdlet() { PoolResizeParameters parameters = new PoolResizeParameters(this.BatchContext, this.Id, null, this.AdditionalBehaviors) { TargetDedicated = this.TargetDedicated, ResizeTimeout = this.ResizeTimeout, ComputeNodeDeallocationOption = this.ComputeNodeDeallocationOption }; BatchClient.ResizePool(parameters); }
protected override void ProcessRecord() { PoolResizeParameters parameters = new PoolResizeParameters(this.BatchContext, this.Id, null, this.AdditionalBehaviors) { TargetDedicated = this.TargetDedicated, ResizeTimeout = this.ResizeTimeout, ComputeNodeDeallocationOption = this.ComputeNodeDeallocationOption }; BatchClient.ResizePool(parameters); }
protected override void ExecuteCmdletImpl() { PoolResizeParameters parameters = new PoolResizeParameters(this.BatchContext, this.Id, null, this.AdditionalBehaviors) { TargetDedicatedComputeNodes = this.TargetDedicatedComputeNodes, TargetLowPriorityComputeNodes = this.TargetLowPriorityComputeNodes, ResizeTimeout = this.ResizeTimeout, ComputeNodeDeallocationOption = this.ComputeNodeDeallocationOption }; BatchClient.ResizePool(parameters); }