Quantcast
Channel: elastacloud = azurecoder + bareweb » Fiddler
Viewing all articles
Browse latest Browse all 7

v0.2 release of Azure Fluent Management including Sql Azure management

$
0
0

Okay. So we’re back for installment number 2! This release of v0.2 represents a much more resilient version of the Azure Fluent Management library. I noticed that I had introduced a bug into the lib (or reintroduced) so many of you who have downloaded this wouldn’t be able to get this to work without Fiddler. Fiddler is great for debugging HTTP trace information and working out issues but if you leave it on always it can mask other errors. In this case I introduced a bug into the library which stopped the SSL mutual authentication working without fiddler running in the background. What a bind! Anyway, it’s all sorted now so feel free to download v0.2 and test properly. Since I got this out in a rush I forgot to make the interfaces explicit which sort of made the fluent part redundant. I’ve updated this too now.

Anyway, apart from getting the service management deployments working we’ve just added the ability to create a Sql Azure server, set all types of firewall rules – auto detect, for azure hosted services or a remote range, add a new database, add database admin users (as well as a server admin user) and execute a local script directory against the newly created database.

One caveat is the dependency on SQL Server Management Objects (SMO). The speed at which you can execute scripts against the azure database is astounding so this was a no-brained instead of trying to parse the file and slice on GO statements.

var sqlAzure = new SqlAzureManager("6xxxxxxxxxxxx-xxxx-xxxx-xxxxxxxxxxxa");

sqlAzure.AddNewServer(DeploymentManager.LocationWestEurope)
                .AddCertificateFromStore("AAxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx")
                .AddNewFirewallRule("myofficeip", "10.27.27.253", "10.27.27.254")
                .AddNewFirewallRule("anotherip", "10.27.28.11", "10.27.28.254")
                .AddNewFirewallRuleForWindowsAzureHostedService()
                .AddNewFirewallRuleWithMyIp("myhomeip")
                .WithSqlAzureCredentials("ukwaug", "M@cc0mputer")
                .AddNewDatabase("test")
                .AddNewDatabaseAdminUser("ukwaugdb", "M@cc0mputer")
                .ExecuteScripts(@"C:\Projects\Tech Projects\Elastacloud")
                .Go();

v0.2 should be up on nuget now. Have fun and send us any feedback, bugs or requests.

BTW – Ensure you that you add the following into your App.Config or web.config (we plan on updating our nuget install to make this default during the week).

<configuration>
  <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0"/>
  </startup>
</configuration>


Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images