GetSqlAzureManager() public méthode

Gets a manager to use on Sql Azure
public GetSqlAzureManager ( ) : SqlAzureManager
Résultat Elastacloud.AzureManagement.Fluent.SqlAzure.SqlAzureManager
Exemple #1
0
 static void Main(string[] args)
 {
     var manager = new SubscriptionManager("");
     manager.GetSqlAzureManager()
            .AddNewServer("North Europe")
            .AddPublishSettings("")
            .AddNewFirewallRuleForWindowsAzureHostedService()
            .WithSqlAzureCredentials("username", "password")
            .AddNewDatabase("fmgetc")
            .AddNewDatabaseAdminUser("username", "password")
            .ExecuteScripts("scripts")
            .Go();
 }
        public IServiceTransaction ExecuteDeploymentStep()
        {
            var subscriptionManager = new SubscriptionManager(SubscriptionId);
            var dbManager = subscriptionManager.GetSqlAzureManager();

            var transaction = dbManager.AddNewServer(Location)
                                       .AddPublishSettings(PublishSettings)
                                       .AddNewFirewallRuleForWindowsAzureHostedService()
                                       .AddNewFirewallRuleWithMyIp("current location")
                                       .WithSqlAzureCredentials(Username, Password)
                                       .AddNewDatabase(DatabaseName)
                                       .ExecuteScripts(ScriptDirectory)
                                       .Go();
            Orchestrator.AddDeploymentStep(transaction);
            return transaction;
        }