private CloudArgs PrepareCloudArgs()
{
// Service config file url and azure package file need to be set later
return new CloudArgs
{
NumberOfTries = int.Parse(Settings.Default.NumberOfTries),
StorageName = this.cbxStorageNames.SelectedValue == null ? this.cbxStorageNames.Text : this.cbxStorageNames.SelectedValue.ToString(),
HostedServiceName = this.cbxHostedNames.SelectedValue == null ? this.cbxHostedNames.Text : this.cbxHostedNames.SelectedValue.ToString(),
DeploymentSlot = this.cbxDeploymentSlot.SelectedItem == null ? string.Empty : this.cbxDeploymentSlot.SelectedItem.ToString(),
AzureLocation = this.cbxLocations.SelectedValue == null ? string.Empty : this.cbxLocations.SelectedValue.ToString(),
IsUpgrade = chbxIsUpgrade.Checked,
ManagementCertificatebase64string = this.managementCertificateBase64,
SubscriptionId = this.cbxSubscriptions.SelectedValue == null ? string.Empty : this.cbxSubscriptions.SelectedValue.ToString(),
IsBuildCompleted = false,
CertificatePaths = this.certsToDeploy
};
}