Getting Started with windows Azure development

 

This is a follow up to my usergroup presentation I recently did for Gold Coast Usergroup recently. I have many emails, ok just 2 asking me to document my presentation so they can get started developing with windows Azure.

before you get started you need to make sure your development machine is running, Vista or Windows Server 2008 or my favorite windows 7, you also need to have IIS 7.0 with  WCF HTTP activation installed.

Next you will need to have Visual Studio 2008 or Visual Web Developer Express. please make sure you have the latest service packs  installed. This way you will have .NET .35 Sp1.

Next step is downloading all the necessary SDKs, the best way is to simply go to

clip_image001[7]

http://microsoft.com/azure and look for the link “Get tools & SDK” Download and install the SDK and Azure tools for Visual studio, while you are here you might want to bookmark this page, In addition  to tools and SDKs, there are tons of whitepapers and training videos and other resources available.

 

now we are ready to launch Visual Studio, since we installed windows azure tools for visual studio, we should be able to see windows Azure template projects under cloud Service. Lets select cloud Service, I’m going to name my solution MyFirstCloudApp. press OK and you should see the “New Cloud Service Project” window.

clip_image001[5]

Highlight “ASP.NET Web Role” and add it to your Cloud Service Solution by pressing > button, before pressing OK click on the pencil icon on the newly created ASP.NET web role to rename the project to MyCouldApp from the default WebRole1.

Two projects should have been created in your solution. MyCloadApp project is very similar to a standard ASP.NET web application project, but has been modified to work with Windows Azure.

View the contents of Servicedefinition.csdef and ServiceConfiguration.cscfg in the Project MyFirstCouldApp. 

 

clip_image001

 

The ServiceDefinition.csdef file contains the metadata needed by the Windows Azure fabric to understand the requirements of your application, such as which roles are used. It will also contain configuration settings that apply to all instances. .The ServiceConfiguration.cscfg file lets you set the values for the configuration settings and the number of instances to run for each role.


The Roles node in the Cloud Services project enables you to configure what roles the services include (Web, worker or both) as well as which projects are used for these roles.
Adding configuring roles through the Roles node will update the ServiceDefinition.csdef and ServiceConfiguration.cscfg files.

Open Default.aspx, and add some HTML I’m just going to add an THML tag <H1> and ASP Button and ASP Label control, idea here is that we are working with the ASP.net application .

Lets execute the service in Windows Azure by pressing F5 . The service will build and then launch the local development fabric

 

right click the Development Fabric icon in the system tray and seimagelect  Show Development Fabric UI.

click on the service Details view the service details, you should see a URL and IP address and port number, when you execute a windows Azure service it will try to allocate the port  specified in the ServiceDefinition.csdef if this port is not available, then next available port is used.

Click on the webrole and the instance 0, you should see the log for this instance.

switch back to visual studio and stop debugging, open ServiceConfiguration.cscfg and change the number of instances from 1 to 5, Press F5 and then switch to Development Fabric UI, now you should see 5 instances instead of one, you might have to refresh if you still see one instance.

Next week I will have another blog about deploying this app to the cloud.

Comments

# re: Getting Started with windows Azure development
Gravatar Hey Now Sherv,

Nice Post.

Thx 4 the info,

Catto
Left by Catto on 11/4/2009 3:40 PM
# re: Getting Started with windows Azure development
Gravatar thanks man, you always have kind words
Left by Sherv on 11/4/2009 4:20 PM
# re: Getting Started with windows Azure development
Gravatar
adfa
[url=http://www.adasd.com]adf[/url]
sadf
Left by jane on 11/13/2009 7:24 PM
# re: Getting Started with windows Azure development
Gravatar This is a very nice article. I am sure a lot of developers will benefit from it. The snap shots have made it very simple to understand. Thanks!
Left by chapel hill real estate on 12/20/2009 11:55 PM
# re: Getting Started with windows Azure development
Gravatar I appreciate you taking the time to compile this article & post it. It was quite easy for me to understand it. Thanks.
Left by Train Horns on 12/31/2009 3:31 AM
# re: Getting Started with windows Azure development
Gravatar This seems to be a very vital article about Windows Azure development so I've bookmark this article. :)
Left by New Home Builders Indianapolis on 1/7/2010 1:03 AM
# re: Getting Started with windows Azure development
Gravatar Thanks for the info. I can't wait to get started!
Left by bowling how to on 1/10/2010 7:55 PM
# re: Getting Started with windows Azure development
Gravatar Thanks Karsten for putting together this post – you covered a few key steps that anyone who wants to use WA Diagnostics will need to remember.In addition to Cerebrata’s Cloud Storage Studio, I also demonstrated Cloud eXplorer and Table eXplorer from Clumsy Leaf during the PDC talk on Diagnostics.
Left by table de roulette du casino on 1/15/2010 3:10 AM
# re: Getting Started with windows Azure development
Gravatar Thanks Karsten for putting together this post – you covered a few key steps that anyone who wants to use WA Diagnostics will need to remember
Left by Self help programs on 1/17/2010 10:53 AM
# re: Getting Started with windows Azure development
Gravatar There is a need of good massage for the breast growth and in good shape.
Left by augmentation mammaire on 1/18/2010 12:27 AM
# re: Getting Started with windows Azure development
Gravatar Hey, this guide helped me alot. Thanks for taking the efforts to compile & share it with us.
Left by Non Chexsystems Banks on 2/3/2010 8:36 AM
# ugg classic cardy
Gravatar the ugg classic cardy combine a classic prep argyle pattern and cozy ugg bailey sweater knit for coolest, comfiest, casual look. a merino wool blend silhouette made to look like your favorite sweater featuring a soft ugg classic cardyfoam insole covered with genuine ugg ultra tallsheepskin
Left by crochet ugg boots on 2/3/2010 8:50 PM
# re: Getting Started with windows Azure development
Gravatar Link media is a inspiring action.Program trailers and the website give viewers access to tools and connections to take action on social issues
Left by TVLinks on 2/12/2010 5:58 AM
# re: Getting Started with windows Azure development
Gravatar Thanks for the info. I've been wanting to use Azure but wasn't quite sure where to start.
Left by eloise dog beds on 2/12/2010 8:36 AM
# re: Getting Started with windows Azure development
Gravatar Good starting article man - really got me into Azure
Left by North Face Hiking Boots on 2/17/2010 9:44 AM
# re: Getting Started with windows Azure development
Gravatar thanks for sharing this article.
Left by aion kinah on 2/23/2010 3:26 AM
# re: Getting Started with windows Azure development
Gravatar Is there a patch or virtual setup you can get to run on XP, or does Windows server 2008 work on XP. Have only used Apache PHP so far, so a windows setup is quite new to me, but seems to be the way things are going.
Left by Beadalon on 2/24/2010 4:32 AM
# re: Getting Started with windows Azure development
Gravatar This is what I was looking for so long, thanks for sharing with all the users. :)
Left by Outsource Manufacturing on 2/24/2010 8:05 AM
# re: Getting Started with windows Azure development
Gravatar nice post very informative useful who are have doubt they can clear it reading this blog.......well work.......thanks...penis vergrößerung
Left by samudrapandian on 2/24/2010 9:40 AM
# Reply:
Gravatar Thanks for sharing the information.It is definitely going to help me some time.
Left by tow truck Bothell on 3/2/2010 6:34 AM
# re: Getting Started with windows Azure development
Gravatar If the passing rent differs from the Estimated Rental Value,then either the Term&Reversion,Layer or Equivalent Yield methods will be employed.
Left by homes sale on 3/2/2010 1:11 PM
# re: Getting Started with windows Azure development
Gravatar Thanks for a nice explanation. The snapshots helped a lot.
Left by Rapidshare search on 3/11/2010 6:14 AM
# re: Getting Started with windows Azure development
Gravatar Thanks for the great tutorial. It is a lot of help.
Left by furniture bedroom furniture on 3/11/2010 10:05 AM
# re: Getting Started with windows Azure development
Gravatar The sap shots are what truly set this apart and give it value and helped me to truly get your meaning. Thank you!
Left by Table Lamps Lighting on 3/11/2010 12:21 PM
# re: Getting Started with windows Azure development
Gravatar windows Azure development by using Visual Studio is great and helpful for coders of .net.
Left by seo company on 3/11/2010 3:47 PM
# re: Getting Started with windows Azure development
Gravatar yes certainly windows azure development is very useful for C# programmers
Left by cheap lcd tv on 3/15/2010 10:43 AM
# re: Getting Started with windows Azure development
Gravatar Really interested in these series of posts, Azure is somewhat of a mystery to me and I'm really interested in learning how to create and deploy applications to this platform.
Left by gioca a blackjack on 3/16/2010 6:13 AM
# re: Getting Started with windows Azure development
Gravatar In Windows Azure applications, configuration can work exactly the same as standard .Net applications. If you have a web role, then you have a web.config. & if you have a worker role, you get an app.config. This lets you provide configuration information to your role when it starts.
Left by Chronic Depression Treatment on 3/16/2010 7:27 PM
# re: Getting Started with windows Azure development
Gravatar I appreciate you taking the time to compile this article & post it. It was quite easy for me to understand it. Thanks.


traffic ultimatum
Left by Helenhayes on 3/17/2010 4:47 AM

Leave Your Comment

Title*
Name*
Email (never displayed)
 (will show your gravatar)
Url
Comment*

 

Preview Your Comment.