/// <summary>
        /// Used to update the number of instances for an existing role
        /// </summary>
        /// <param name="roleName">The name of the role</param>
        /// <param name="instanceCount">the number of instances to increment or decrement to</param>
        public void UpdateInstanceCountForRole(string roleName, int instanceCount)
        {
            var config = GetConfiguration(roleName);

            config.SetInstanceCountForRole(roleName, instanceCount);

            var commandSetter = new SetDeploymenConfigurationCommand(ServiceName, config, DeploymentSlot)
            {
                SubscriptionId = SubscriptionId,
                Certificate    = ManagementCertificate
            };

            commandSetter.Execute();
        }
        /// <summary>
        /// Updates a role instance count within a cloud services
        /// </summary>
        public void UpdateRoleInstanceCount(string roleName, int instanceCount)
        {
            var config = new GetDeploymenConfigurationCommand(Name)
            {
                SubscriptionId = SubscriptionId,
                Certificate    = ManagementCertificate
            };

            config.Execute();
            config.Configuration.SetInstanceCountForRole(roleName, instanceCount);
            var update = new SetDeploymenConfigurationCommand(Name, config.Configuration)
            {
                SubscriptionId = SubscriptionId,
                Certificate    = ManagementCertificate
            };

            update.Execute();
        }