private void GetScaleSettings()
{
var command = new GetScaleSettingsCommand(MobileServiceName)
{
SubscriptionId = SubscriptionId,
Certificate = ManagementCertificate
};
command.Execute();
TotalInstanceCount = command.ScaleSettings.InstanceCount;
ComputeMode = command.ScaleSettings.ComputeMode;
}