<?xml version="1.0" encoding="UTF-8" standalone="yes"?><oembed><version><![CDATA[1.0]]></version><provider_name><![CDATA[AnttiTech]]></provider_name><provider_url><![CDATA[https://anttitech.wordpress.com]]></provider_url><author_name><![CDATA[Antti Makkonen]]></author_name><author_url><![CDATA[https://anttitech.wordpress.com/author/anttimakkonen/]]></author_url><title><![CDATA[I have my app in the Azure. Now&nbsp;what?]]></title><type><![CDATA[link]]></type><html><![CDATA[<p>So you have your application running on Azure. Some next steps would be beneficial to have. Well maybe, but you need to first figure out answers to a couple of important things.</p>
<ul>
<li>Backup</li>
<li>Monitoring</li>
<li>Autoscaling</li>
</ul>
<p>As of now Azure does not provide any solutions of the shelf. You need to build those by yourself. I will describe one possible setup that will provide you some functionality for the points listed above. Being a Cloud Man that I am, this setup is also running entirely on the Cloud  🙂</p>
<p><strong>Setup</strong></p>
<p>Firstly, the setup. In order to get things up and running you will need the following tools and accounts:</p>
<ul>
<li><a href="http://aws.amazon.com/windows/">Amazon EC2</a> account with Windows 2008 and Amazon monitoring service.</li>
<li>Windows 2008 server (with SQL Server 2008 R2 client utilities) for Azure backup.</li>
<li>SQL 2008 RC2 server for Azure SQL backup.</li>
<li><a href="http://www.cerebrata.com/Products/AzureManagementCmdlets/Default.aspx">Azure Management Cmdlets</a> tools for Azure Storage backup.</li>
<li><a href="http://www.red-gate.com/products/sql-development/sql-comparison-bundle/">Red-Gate SQL Comparison Bundle</a> version 9 or above for Azure SQL backup.</li>
<li><a href="http://www.paraleap.com/AzureWatch">AzureWatch</a> account for Autoscaling and monitoring Azure web and worker roles.</li>
<li>(Optionally) <a href="http://www.dropbox.com/">Dropbox</a> with Packrat service so you will get unlimited undo history on your backups.</li>
</ul>
<p>The overall picture of this setup will look something like in the picture below. You could replace <a href="http://aws.amazon.com/windows/">Amazon EC2 Windows 2008 server + SQL 2008 RC2</a> with Azure VM role, or your own hosted server and <a href="http://www.dropbox.com/">Dropbox</a> with Azure storage account. By replacing Amazon with Azure WM role you will gain savings on the data transfer fees and the steps should be fairly similar. If you decide to do that I would recommend having those under different Azure subscription so that one Administrator cannot delete your backups and your service!</p>
<div data-shortcode="caption" id="attachment_48" style="width: 550px" class="wp-caption aligncenter"><a href="https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg"><img loading="lazy" aria-describedby="caption-attachment-48" data-attachment-id="48" data-permalink="https://anttitech.wordpress.com/2011/03/21/i-have-my-app-in-the-azure-now-what/azure-setup-2/" data-orig-file="https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg" data-orig-size="960,720" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="High level picture of monitored Azure app with backup" data-image-description="&lt;p&gt;Overall picture of services and components you need to monitor, backup and scale your Azure app automatically.&lt;/p&gt;
" data-image-caption="" data-medium-file="https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg?w=300" data-large-file="https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg?w=960" class="size-full wp-image-48" title="High level picture of monitored Azure app with backup" src="https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg?w=540&#038;h=405" alt="Azure setup" width="540" height="405" srcset="https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg?w=540&amp;h=405 540w, https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg?w=150&amp;h=113 150w, https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg?w=300&amp;h=225 300w, https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg?w=768&amp;h=576 768w, https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg 960w" sizes="(max-width: 540px) 100vw, 540px" /></a><p id="caption-attachment-48" class="wp-caption-text">High level picture of monitored Azure app with backup and autoscale.</p></div>
<p>In addition, make sure that Windows 2008 Server has at least SQL Server 2008 R2 installed especially bcp.exe version 10.50.1600.1. That is because bcp.exe utility is used to perform database backups and older versions had nasty bug that prevented backup from working.</p>
<p>If you have several services running on one Azure subscription it is useful to direct their logs into one shared storage account. This is because <a href="http://www.paraleap.com/AzureWatch">AzureWatch</a> can monitor only one log account per subscription.</p>
<p><strong>Installation instructions</strong></p>
<p>I don&#8217;t go to all the details because steps those are quite obvious. If you get confused with my quick instructions, please send me an email and I will add more details into this blog post.</p>
<ol>
<li>Get Amazon account and launch Windows 2008 server with SQL 2008 RC2 server or Make VM role for Azure.</li>
<li>Install SQL Server 2008 R2 client utilities</li>
<li>Install <a href="http://www.dropbox.com/">Dropbox</a></li>
<li>Install <a href="http://www.cerebrata.com/Products/AzureManagementCmdlets/Default.aspx">Azure Management Cmdlets</a></li>
<li>Install <a href="http://www.red-gate.com/products/sql-development/sql-comparison-bundle/">Red-Gate SQL Comparison Bundle</a></li>
<li>Get <a href="http://www.paraleap.com/AzureWatch">AzureWatch</a> account and install the control panel to 2008 server.</li>
</ol>
<p><strong>Scripts</strong></p>
<p>You should also automate running of these PowerShell scripts with Windows 2008 Server Scheduler:</p>
<ul>
<li>Remember that you need to give full path to PowerShell script in Task arguments like this:</li>
</ul>
<blockquote><p>-noninteractive -nologo -command &#8220;&amp;&#8221;c:\my backup scripts\backup.ps1&#8243;&#8221;</p></blockquote>
<ul>
<li>Modify SQL backup script from <a href="http://www.simple-talk.com/sql/database-administration/simple-database-backups-with-sql-azure/?utm_source=simpletalk&amp;utm_medium=email&amp;utm_content=Mooney-20110321&amp;utm_campaign=sqldatacompare">Mike Mooneys</a> blog to suite your needs. Make sure that zip files are stored in folder that is Dropbox synchronized.</li>
<li>Modify backup sample scripts of <a href="http://www.cerebrata.com/Products/AzureManagementCmdlets/Default.aspx">Azure Management Cmdlets</a> to suite your needs. Samples can be found from installation folder. You can direct backup to Azure storage account or to Dropbox folder.</li>
</ul>
<p>That&#8217;s it!</p>
<div class="mceTemp mceIEcenter" style="text-align:center;">
<dl class="wp-caption aligncenter">
<dt class="wp-caption-dt"><a href="https://anttitech.files.wordpress.com/2011/03/clouding.jpg"><img loading="lazy" data-attachment-id="49" data-permalink="https://anttitech.wordpress.com/2011/03/21/i-have-my-app-in-the-azure-now-what/clouding/" data-orig-file="https://anttitech.files.wordpress.com/2011/03/clouding.jpg" data-orig-size="2048,1536" data-comments-opened="1" data-image-meta="{&quot;aperture&quot;:&quot;3.2&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;E71&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;1300393377&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;4.9&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}" data-image-title="Clouding" data-image-description="" data-image-caption="" data-medium-file="https://anttitech.files.wordpress.com/2011/03/clouding.jpg?w=300" data-large-file="https://anttitech.files.wordpress.com/2011/03/clouding.jpg?w=1024" class="size-medium wp-image-49" title="Clouding" src="https://anttitech.files.wordpress.com/2011/03/clouding.jpg?w=300&#038;h=225" alt="" width="300" height="225" srcset="https://anttitech.files.wordpress.com/2011/03/clouding.jpg?w=300&amp;h=225 300w, https://anttitech.files.wordpress.com/2011/03/clouding.jpg?w=600&amp;h=450 600w, https://anttitech.files.wordpress.com/2011/03/clouding.jpg?w=150&amp;h=113 150w" sizes="(max-width: 300px) 100vw, 300px" /></a></dt>
<dd class="wp-caption-dd">Happy Clouding!</dd>
</dl>
</div>
]]></html><thumbnail_url><![CDATA[https://anttitech.files.wordpress.com/2011/03/azure-setup1.jpg?fit=440%2C330]]></thumbnail_url><thumbnail_width><![CDATA[]]></thumbnail_width><thumbnail_height><![CDATA[]]></thumbnail_height></oembed>