/// <summary> /// Stops all of the roles within a cloud service /// </summary> public void Stop() { var command = new UpdateRoleStatusCommand(Name, Slot, UpdateDeploymentStatus.Suspended) { SubscriptionId = SubscriptionId, Certificate = ManagementCertificate }; command.Execute(); }
/// <summary> /// Used to start a deployment /// </summary> public void Start() { var command = new UpdateRoleStatusCommand(ServiceName, DeploymentSlot, UpdateDeploymentStatus.Running) { SubscriptionId = SubscriptionId, Certificate = ManagementCertificate }; command.Execute(); }