public void Execute(DeploymentParameters deploymentParams) { var orchestrator = new ServiceOrchestrator(); var databaseStep = new CreateDatabase(deploymentParams.SubscriptionId, deploymentParams.PublishSettingsFile, deploymentParams.DatabaseName, deploymentParams.ScriptsDirectory, deploymentParams.Username, deploymentParams.Password, ref orchestrator, deploymentParams.DeploymentLocation); databaseStep.ExecuteDeploymentStep().Commit(); CommandHelpers.PrintResult(databaseStep.ConnectionString, databaseStep.GetSuccessText()); }
public CreateStorage(string subscriptionId, string publishSettings, string storageName, ref ServiceOrchestrator orchestrator, string location = LocationConstants.NorthEurope) { SubscriptionId = subscriptionId; PublishSettings = publishSettings; StorageName = storageName; Location = location; Orchestrator = orchestrator; }
public void Execute(DeploymentParameters deploymentParams) { var orchestrator = new ServiceOrchestrator(); var storageStep = new CreateStorage(deploymentParams.SubscriptionId, deploymentParams.PublishSettingsFile, deploymentParams.StorageAccountName, ref orchestrator, deploymentParams.DeploymentLocation); storageStep.ExecuteDeploymentStep().Commit(); storageStep.PostProcess(); CommandHelpers.PrintResult(storageStep.ConnectionString, storageStep.GetSuccessText()); }
public CreateDatabase(string subscriptionId, string publishSettings, string databaseName, string scriptDirectory, string userName, string password, ref ServiceOrchestrator orchestrator, string location = LocationConstants.NorthEurope) { SubscriptionId = subscriptionId; PublishSettings = publishSettings; DatabaseName = databaseName; ScriptDirectory = scriptDirectory; Username = userName; Password = password; Location = location; Orchestrator = orchestrator; }