<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Azure Support &#187; Featured</title>
	<atom:link href="http://www.azuresupport.com/tag/featured/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.azuresupport.com</link>
	<description>Windows Azure Tutorial</description>
	<lastBuildDate>Mon, 25 Apr 2011 10:32:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Migrating an ASP.NET site to an Azure Web Role</title>
		<link>http://www.azuresupport.com/2010/02/migrating-an-asp-net-site-to-an-azure-web-role/</link>
		<comments>http://www.azuresupport.com/2010/02/migrating-an-asp-net-site-to-an-azure-web-role/#comments</comments>
		<pubDate>Wed, 24 Feb 2010 08:16:34 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Migrating]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=612</guid>
		<description><![CDATA[Migrating existing ASP.NET sites to Azure is a process that right now must be performed manually (no sign yet of a migration tool).  The Azure Web Role is very similar to an ASP.NET web project but has some significant differences which unfortunately mean that a straight copy of the project won&#8217;t do the trick. It [...]]]></description>
			<content:encoded><![CDATA[<p>Migrating existing ASP.NET sites to Azure is a process that right now must be performed manually (no sign yet of a migration tool).  The Azure Web Role is very similar to an <a href="http://www.aspnet101.com">ASP.NET</a> web project but has some significant differences which unfortunately mean that a straight copy of the project won&#8217;t do the trick.</p>
<p>It is possible to add as Cloud Service project to a solution with an ASP.NET web site but the simplest solution is to create a solution with a Cloud Service and a Web Role and copy the files over, and so I will follow this procedure for this walk-through:</p>
<ol>
<li>Create a Cloud Service and a Web Role in Visual Studio. Please refer to this this <a href="http://www.azuresupport.com/2010/01/azure-tutorial-building-a-hello-azure-app-in-visual-studio/">tutorial</a> for details on doing this. So your solution should look like below:<br />
 <img class="alignnone size-full wp-image-615" title="img2" src="http://64.207.144.116/wp-content/uploads/2010/02/ScreenHunter_01-Feb.-23-15.34.gif" alt="" width="226" height="308" /></li>
<li>Open the folder of the ASP.NET website to be migrated in the File Explorer and drag the files across to the Web Role (you can just open the standard  Windows File Explorer and place it next to Visual Studio). Do not copy the bin folder and the web.config file.</li>
<li>Manually add the references of the ASP.NET website to the Web Role (Right-click the Web Role in the Solution Explorer and select Add Reference&#8230;). </li>
<li>All the .aspx pages in an Azure Web Role have an associated designer.cs or designer.vb page in addition to the code behind page. To manually generate to these files, select the .aspx pages, right-click and select Convert to Web Application.<br />
 <img class="alignnone size-full wp-image-616" title="mig3" src="http://64.207.144.116/wp-content/uploads/2010/02/ScreenHunter_02-Feb.-23-15.38.gif" alt="" width="379" height="265" /></li>
<li>In an ASP.NET web application files in the App_Code folder usually have their build action set to Content. In an Azure Web Role these files need to be set to Compile. To do this, select the files in the App_Code folder, right-click and select Properties. In the Properties window set the Build Action to Compile.</li>
<li>Copy the configuration elements from the web.config  in your ASP.NET site to the web.config in the Azure Web Role. This can be quite tedious but the quick fixes to this often create compilation errors or overwrite some key features of Azure (such as Diagnostics).</li>
</ol>
<p>That&#8217;s it, now we can proceed to <a href="http://www.azuresupport.com/2010/03/migrating-a-sql-server-database-to-sql-azure/">migrate a SQL Server database to SQL Azure</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azuresupport.com/2010/02/migrating-an-asp-net-site-to-an-azure-web-role/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Publish and Deploy an Application on Windows Azure</title>
		<link>http://www.azuresupport.com/2010/01/publish-and-deploy-an-application-on-windows-azure/</link>
		<comments>http://www.azuresupport.com/2010/01/publish-and-deploy-an-application-on-windows-azure/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 05:34:52 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Deploy]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Publish]]></category>
		<category><![CDATA[Web Role]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=514</guid>
		<description><![CDATA[In a previous article we looked at how to build a basic Azure application using Visual Studio. We now continue with how to publish and deploy that the application. For this demo we will be deploying a Web Role on Azure. In the Visual Studio Solution Explorer right click the cloud project and select Publish&#8230; [...]]]></description>
			<content:encoded><![CDATA[<p>In a previous article we looked at how to <a href="http://www.azuresupport.com/2010/01/azure-tutorial-building-a-hello-azure-app-in-visual-studio/">build a basic Azure application using Visual Studio</a>. We now continue with how to publish and deploy that the application. For this demo we will be deploying a Web Role on Azure.</p>
<ol>
<li>In the Visual Studio Solution Explorer right click the cloud project and select Publish&#8230;<br />
 <img class="alignnone size-full wp-image-516" title="screen1" src="http://64.207.144.116/wp-content/uploads/2010/01/screen1.gif" alt="" width="242" height="186" /><br />
 This will result in Visual Studio rolling up the solution into a package containing two files &#8211; a .cspkg file which contains the code for the app and a .cscfg file which is the configuration settings for the app (as shown below). Once this is done, the Windows Azure developer portal will automatically be launched in the browser.</p>
<p><br class="spacer_" /></p>
<p><img class="alignnone size-full wp-image-518" title="ScreenHunter_02 Feb. 01 12.25" src="http://64.207.144.116/wp-content/uploads/2010/01/ScreenHunter_02-Feb.-01-12.251.gif" alt="Publish and Deploy an Application on Windows Azure" width="529" height="175" /></p>
</li>
<li>In the online Windows Azure developer portal you will already have at least one project name &#8211; click on the appropriate project name. We now need to create a hosted service to run the application, so  click New Service:<br />
 <img class="alignnone size-full wp-image-519" title="screen2" src="http://64.207.144.116/wp-content/uploads/2010/01/screen21.gif" alt="Publish and Deploy an Application on Windows Azure" width="397" height="226" /></li>
<li>On the Create A New Service page you will be presented with two options &#8211; Storage Account and Hosted Services, as we are looking to host and run an application  -  click Hosted Services.</li>
<li>Enter a Service Label which will enable you to identify this hosted service (this will not be visible to the public). The Service Description is optional.</li>
<li>On the Create A Service page enter a Public Service Name for the app. You will also need to configure the Affinity Group settings. Most applications have several parts &#8211; databases, storage, processes etc. For optimum performance these should be located as geographically close as possible to eachother.If the application is simply a  standalone app which doesn&#8217;t require any other services click the No radio button, otherwise you should create a new Affinity Group and select a geographic region (which should be the region you expect the majority of your application&#8217;s traffic to come from). Click Create once this has been done.<br />
 <img class="alignnone size-full wp-image-523" title="ScreenHunter_07 Feb. 01 13.11" src="http://64.207.144.116/wp-content/uploads/2010/01/ScreenHunter_07-Feb.-01-13.111.gif" alt="Publish and Deploy an Application on Windows Azure" width="548" height="137" /></li>
<li>Azure will now create an environment for hosting the application and you will be shown the main Hosted Service page. Click Deploy&#8230; </li>
<li>In the appropriate fields browse to the the configuration and code files which were created by Visual Studio. Enter a Service Deployment Name and click Deploy:<br />
 <img class="alignnone size-full wp-image-525" title="ScreenHunter_08 Feb. 01 13.19" src="http://64.207.144.116/wp-content/uploads/2010/01/ScreenHunter_08-Feb.-01-13.191.gif" alt="Publish and Deploy an Application on Windows Azure" width="538" height="401" /></li>
<li>The application has now been provisioned and configured but is not yet live and running. To start the application click Run. There will be a pause of several minutes while Azure starts the application. During this phase it will go through two intermediate stages &#8211; &#8216;Initalizing&#8217; (which creates the instances for running the app) and  &#8216;Busy&#8217; (which wires up the app to the load balancer and tests the app is available). Finally a &#8216;Ready&#8217; status will finally be displayed and the application is now live.</li>
<li>Click the &#8216;Web Site URL&#8217; link to see the application running live.</li>
</ol>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.azuresupport.com/2010/01/publish-and-deploy-an-application-on-windows-azure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Azure Tutorial &#8211; Building a &#8216;Hello Azure&#8217; App in Visual Studio</title>
		<link>http://www.azuresupport.com/2010/01/azure-tutorial-building-a-hello-azure-app-in-visual-studio/</link>
		<comments>http://www.azuresupport.com/2010/01/azure-tutorial-building-a-hello-azure-app-in-visual-studio/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 08:04:58 +0000</pubDate>
		<dc:creator>azuresupport</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[Featured]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Visual Studio]]></category>

		<guid isPermaLink="false">http://www.azuresupport.com/?p=163</guid>
		<description><![CDATA[The first thing to do is download and install the Azure Tools &#38; SDK , this installs the Visual Studio templates as well as a simulated Azure environment on your local machine.  To run the development environment from Visual Studio, you will need to run the Visual Studio as an admin. In Visual Studio, start [...]]]></description>
			<content:encoded><![CDATA[<p>The first thing to do is download and install the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=6967ff37-813e-47c7-b987-889124b43abd&amp;displaylang=en">Azure Tools &amp; SDK</a> , this installs the Visual Studio templates as well as a simulated Azure environment on your local machine.  To run the development environment from Visual Studio, you will need to run the Visual Studio as an admin.</p>
<p>In Visual Studio, start a Cloud Project from File -&gt; New Project&#8230; . In the New Project dialog select either Visual Basic -&gt; Cloud Service or C# -&gt; Cloud Service:<br />
 <img class="size-full wp-image-175 alignnone" src="http://azuresupport.com/wp-content/uploads/2009/12/ScreenHunter_01-Dec.-27-13.271.gif" alt="" width="642" height="433" /></p>
<p><br class="spacer_" /></p>
<p>Next, select the type of role for to be used. In this demonstration we will select an ASP.NET Web Role which is similar to an ASP.NET website.  Highlight &#8220;ASP.NET Web Role&#8221; and click the &#8216;&gt;&#8217; button:</p>
<p><img class="alignnone size-full wp-image-169" title="azure" src="http://azuresupport.com/wp-content/uploads/2009/12/ScreenHunter_02-Dec.-27-13.281.gif" alt="" width="642" height="400" /></p>
<p><br class="spacer_" /></p>
<p>Then name the ASP.NET Web Web Role:</p>
<p><img class="alignnone size-full wp-image-167" title="Load" src="http://azuresupport.com/wp-content/uploads/2009/12/ScreenHunter_03-Dec.-27-13.292.gif" alt="" width="642" height="399" /></p>
<p><br class="spacer_" /></p>
<p>The local Azure application is now created. There are two parts to the solution &#8211; the Cloud Service (&#8220;CloudService2&#8243;) which contains definitions and configurations for running the app on Azure, and the Web Role (&#8220;Hello&#8221;) which is the ASP.NET website. You add some functionality to the default.aspx page at this stage if you wish.</p>
<p><img class="alignnone size-full wp-image-179" title="hello2" src="http://azuresupport.com/wp-content/uploads/2009/12/hello21.gif" alt="" width="230" height="268" /></p>
<p>NOTE &#8211; To add Roles to the solution, right-click on the Roles folder in the Solution Explorer and select Add and select the Role to add to the solution.<br class="spacer_" /></p>
<p>In the Solution Explorer double-click CloudServices2 -&gt; Roles -&gt; Hello. This loads the configuration settings for the Azure application. In this example we will be changing the Instance count to 2. This will result in our app being run on two instances and enjoying automatic load-balancing between the two instances. Once this change has been made, Hit F5 to run the application.</p>
<p><img class="alignnone size-full wp-image-180" title="helloworld3" src="http://azuresupport.com/wp-content/uploads/2009/12/helloworld31.gif" alt="" width="634" height="452" /></p>
<p><br class="spacer_" /></p>
<p>Once the web page is running there should be a blue Windows Azure Simulation Environment icon in your desktop icon-tray. Right click this and select Show Development Fabric UI to launch the Development Fabric tool. The Dev Fabric is the tool to interact, view and control the local Azure Environment. Expanding the nodes will show two green nodes below the Hello Role. These are the two instances of the ASP.NET application. Selecting them will bring up the running info of the instance.</p>
<p><img class="alignnone size-full wp-image-181" title="helloworld4" src="http://azuresupport.com/wp-content/uploads/2009/12/helloworld41.gif" alt="" width="642" height="492" /></p>
<p><br class="spacer_" /></p>
<p>That&#8217;s it! this has been an extremely brief run through and in later articles we will go into greater depth. Next, we can move on to <a href="http://www.azuresupport.com/2010/01/publish-and-deploy-an-application-on-windows-azure/">Deploying the App on Azure</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.azuresupport.com/2010/01/azure-tutorial-building-a-hello-azure-app-in-visual-studio/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

