<?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>Pearl Tech &#187; Azure Services</title>
	<atom:link href="http://blog.pearltechnology.com/tag/azure-services/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.pearltechnology.com</link>
	<description></description>
	<lastBuildDate>Tue, 25 May 2010 14:37:15 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Deploying to Windows Azure</title>
		<link>http://blog.pearltechnology.com/deploying-to-windows-azure/#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed</link>
		<comments>http://blog.pearltechnology.com/deploying-to-windows-azure/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 20:32:25 +0000</pubDate>
		<dc:creator>AaronH</dc:creator>
				<category><![CDATA[Application Development]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Azure Services]]></category>
		<category><![CDATA[Azure Tools]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Web Role]]></category>
		<category><![CDATA[Windows Azure]]></category>

		<guid isPermaLink="false">http://blog.pearltechnology.com/?p=504</guid>
		<description><![CDATA[Microsoft is expected to remove the CTP from their Azure Platform this month at PDC in Los Angeles. Until then, you can still receive access to their free cloud services platform. To get started with Azure you need a Windows Live ID and signup with Microsoft Connect to receive an access code (aka tokens).



When you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Windows-Azure.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="alignleft size-medium wp-image-508" title="Windows Azure" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Windows-Azure-300x54.png" alt="Windows Azure" width="300" height="54" /></a>Microsoft is expected to remove the CTP from their <a href="http://www.microsoft.com/windowsazure/">Azure Platform</a> this month at <a href="http://microsoftpdc.com/">PDC</a> in Los Angeles. Until then, you can still receive access to their free cloud services platform. To get started with Azure you need a Windows Live ID and <a href="http://www.microsoft.com/windowsazure/account/">signup</a> with <a href="http://connect.microsoft.com/">Microsoft Connect</a> to receive an access code (<em>aka tokens</em>).<br />
<center><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Microsoft-Connect.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="size-medium wp-image-511" title="Microsoft Connect" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Microsoft-Connect-300x135.png" alt="Microsoft Connect" width="300" height="135" /></a><br />
</center></p>
<p>When you receive your access token, you can begin creating projects on the Azure platform with the <a href="https://windows.azure.com">Azure Developer Portal</a>. You can only create one project with the CTP, but you can have multiple services inside each project (<em>web/worker roles</em>).<br />
<center><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Projects.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-515" title="Azure Projects" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Projects-300x86.png" alt="Azure Projects" width="300" height="86" /></a><br />
</center></p>
<p>After you&#8217;ve created your project in the developer portal, you can add services which will be the endpoints you deploy to for Windows Azure. We will add a Windows Azure Service in this example.<br />
<center><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Windows-Azure-Add-Service.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-517" title="Windows Azure Add Service" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Windows-Azure-Add-Service-300x137.png" alt="Windows Azure Add Service" width="300" height="137" /></a><br />
</center></p>
<p>To create our Windows Azure application, we need to create a package (cspkg) that contains our application contents and a configuration definition (cscfg) that defines our roles. Microsoft has created Azure tools to assist in generating the package and configuration file. You can download the <a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=8d75d4f7-77a4-4adf-bce8-1b10608574bb&amp;displaylang=en">Azure SDK</a> to create Azure applications using Visual Studio. The <a href="http://www.microsoft.com/downloads/details.aspx?familyid=AA40F3E2-AFC5-484D-B4E9-6A5227E73590&amp;displaylang=en">Azure SDK</a> allows you to run your own local development fabric before pushing your application into the cloud. <a href="http://eclipse.org/">Eclipse</a> also has its own <a href="http://www.windowsazure4e.org/">Azure Tools</a> if you prefer to develop in the Eclipse environment.</p>
<p>After installation of the Azure Tools, you now have a new project template &#8220;Cloud Service&#8221; which we&#8217;ll use to create our web role.<br />
<center><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Visual-Studio-Cloud-Service-Template.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-519" title="Visual Studio Cloud Service Template" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Visual-Studio-Cloud-Service-Template-300x200.png" alt="Visual Studio Cloud Service Template" width="300" height="200" /></a><br />
</center><br />
After providing a name for your Cloud Service project, you are prompted to select which roles you would like to use. We will choose &#8220;ASP.NET Web Role&#8221; for this example.<br />
<center><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Roles.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-522" title="Azure Roles" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Roles-300x188.png" alt="Azure Roles" width="300" height="188" /></a><br />
</center></p>
<p>After clicking &#8220;Ok&#8221;, you will now have a Cloud Service project and a Web Role project in your solution. We will now remove the Web Role for this exercise, and replace it with an existing ASP.NET application called <a href="http://weblogs.asp.net/scottgu/archive/2008/11/24/new-asp-net-charting-control-lt-asp-chart-runat-quot-server-quot-gt.aspx">ASP.NET Chart Controls</a> which Scott Guthrie announced last year. This application did not work on the PDC release of Azure, but Azure now allows web applications to run in Full Trust with some <a href="http://blogs.msdn.com/windowsazure/archive/2009/03/18/hosting-roles-under-net-full-trust.aspx">minor tweaking</a>.<br />
<center><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/ASP.NET-Chart-Controls-Solution.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="size-medium wp-image-524" title="ASP.NET Chart Controls Solution" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/ASP.NET-Chart-Controls-Solution-189x300.png" alt="ASP.NET Chart Controls Solution" width="95" height="150" /></a><br />
</center></p>
<p>We now have our solution complete and have one web role we would like to deploy to the cloud. We must now publish the solution to Azure. We right-click on the Cloud Service project and click &#8220;Publish&#8221; which opens up the <a href="http://windows.azure.com">Azure Developer Portal</a>.</p>
<p>After logging in with Windows Live, you want to deploy your application to the Staging Environment before pushing it live. To deploy, you simply select the application package (cspkg) and configuration definition (cscfg) from your &#8220;/publish&#8221; folder in the cloud service &#8220;/bin/Debug&#8221; directory.<br />
<center><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Package-and-Configuration-Selection.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-530" title="Azure Package and Configuration Selection" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Package-and-Configuration-Selection-300x113.png" alt="Azure Package and Configuration Selection" width="300" height="113" /></a><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Package-and-Configuration.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-527" title="Azure Package and Configuration" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Package-and-Configuration-300x26.png" alt="Azure Package and Configuration" width="300" height="26" /></a><br />
</center></p>
<p>Clicking on &#8220;Deploy&#8221; will load the Azure package and service definition to the cloud and create a VM necessary to run the application. The environment takes some time to setup and will show its state as &#8220;Initialization&#8221; until the VM is entirely ready. You are given a URI based upon a randomly generated GUID to view your application and test it before moving it into production. Having two environments is nice if you also have database changes that need to coincide with your deployment.<br />
<center><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Staging-Environment.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-537" title="Azure Staging Environment" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/Azure-Staging-Environment-300x226.png" alt="Azure Staging Environment" width="300" height="226" /></a><br />
</center></p>
<p>Once the application has been verified, you can click the center arrows icon to swap the Staging site into Production. You can see the two environments have now been switched.<br />
<center><br />
<a href="http://blog.pearltechnology.com/wp-content/uploads/2009/11/ASP.NET-Chart-Controls-Azure.png#utm_source=feed&amp;utm_medium=feed&amp;utm_campaign=feed"><img class="aligncenter size-medium wp-image-538" title="ASP.NET Chart Controls Azure" src="http://blog.pearltechnology.com/wp-content/uploads/2009/11/ASP.NET-Chart-Controls-Azure-300x212.png" alt="ASP.NET Chart Controls Azure" width="300" height="212" /></a><br />
</center></p>
<p>Azure does make the deployment process a bit more involved, but there is an <a href="http://blogs.msdn.com/windowsazure/archive/2009/09/17/introducing-the-windows-azure-service-management-api.aspx">managed Azure Deployment API</a> in the works to automate the build and deploy steps you may need in your organization. You can <a href="http://aspchartcontrols.cloudapp.net/">view</a> our sample ASP.NET Chart Controls application running on Azure Services (<em>cloudapp.net</em>). Kudos to Microsoft for allowing full trust applications! We will be watching for more exciting features from the <a href="http://blogs.msdn.com/windowsazure/">Azure Team</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.pearltechnology.com/deploying-to-windows-azure/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
