Sunteți pe pagina 1din 21

LECTURE 2

DEVELOP AZURE APPLICATION


IN VISUAL STUDIO
FSOFT SOLUTION BOARD
January 8, 2014

THIS LECTURE

Developing Environment
Getting Azure document & material
Programming guidance
Developing Azure using Visual Studio
Using the Windows Azure Portal

Copyright 2011 FPT Software

ENVIRONMENT
This is for the .NET case
Azure also supports Java and other languages
This is both for developing in Azure and using
the Compute/Storage emulator. You need
good hardware to run emulators.

Copyright 2011 FPT Software

ENVIRONMENT
Hardware requirement:
No exact hardware requirement, try with your
application
Minimum 2GB RAM. Recommended 4GB RAM
For CPU, recommended 2 Core and above

Copyright 2011 FPT Software

ENVIRONMENT
OS & Software requirement
Windows 7 or Windows Server 2008/2008 R2,
64bit
IIS 7.0
SQL Express 2008
Visual Studio 2010 SP1

Copyright 2011 FPT Software

ENVIRONMENT
You will mainly develop in Visual Studio 2010
SP1
Familiarity with VS 2010 SP1 is a bonus

Some small differences in Windows Azure


Using Compute and Storage emulator
Packaging and Uploading your work
Debugging

Copyright 2011 FPT Software

ENVIRONMENT:
INSTALLING WINDOWS AZURE
Install SDK & tools from
https://www.windowsazure.com/enus/develop/net/
(preferably via Web Installer)
Install training kit from
http://www.microsoft.com/download/en/detail
s.aspx?id=8396
Labs will be based on the training kit
Copyright 2011 FPT Software

AZURE MATERIALS
Books:
No official book since 2009
Current books are very out-of-date
No new books until the end of 2012

Suggested references:
Programming Windows Azure for underlying ideas
Windows Azure Step by Step for quick tutorial
Windows Azure Development Cookbook for
advanced and up to date information
Copyright 2011 FPT Software

AZURE MATERIALS
The official page:
https://www.windowsazure.com/en-us/develop/net/
The Azure blog for up-to-date information
http://blogs.msdn.com/b/windowsazure/
The advanced guidance for any particular area
https://www.windowsazure.com/en-us/develop/net/guidance/
The forums where you ask related question: MSDN and
StackOverflow
Some favorite authors
David Chappell: Strongly suggested
http://www.davidchappell.com/writing/white_papers.php
Copyright 2011 FPT Software

AZURE MATERIALS
Strongly suggest:
Reading the course book (material taken from
official page and white papers by David Chappell)
Doing the tutorial (material taken from Windows
Azure Training Kit)

Copyright 2011 FPT Software

10

SHORT GUIDANCE
Step 1: Prepare your environment
In your developing computer
In cloud

Step 2: Design your application


Step 3: Program your application
Debug using the Compute & Storage emulator

Step 4: Package and upload your application


Using Visual Studio
Using Azure Portal
Copyright 2011 FPT Software

11

SHORT GUIDANCE
First first question: Should we write this app?
First question: Is this app suitable for Azure?
Second question: What component/feature of
Azure can be used for this app?
Third question: How do those components
communicate?
Fourth question: How can those components
be shared?
Copyright 2011 FPT Software

12

SHORT GUIDANCE

It is not so complicated
Copyright 2011 FPT Software

13

SHORT GUIDANCE
Some difference in Azure:
How the emulator works: You better try it onpremise first
How you debug: No writing to the console. Use
Diagnostics
How you deploy and run: Configuration often
change.
How you access resources (eg storage): Cloud
resources over on-premise
Copyright 2011 FPT Software

14

USING VISUAL STUDIO


Visual C# -> New Cloud Project
Add Name
Add Roles (Roles are basically components of
your applications that will run in the cloud).
Youll be able to add more roles later
Select Roles from existing template (if
applicable)
Congrats, Youve created a cloud project
Copyright 2011 FPT Software

15

USING VISUAL STUDIO


Sometimes your application needs to access services and
resources in Azure such as Windows Azure Storage, Windows
Azure SQL Database, Windows Azure Caching
You must first create a subscription to the resources via
Windows Azure Portal
Then your application can access resources using
The REST API
The managed library in .NET

Your application doesnt have to be also on Azure (though it


may affect the pricing)

Copyright 2011 FPT Software

16

USING VISUAL STUDIO

Copyright 2011 FPT Software

17

USING WINDOWS AZURE PORTAL


Visit windows.azure.com
Sign in with your Live account (if already
registered)
Our focus in this course:
Cloud Services
Azure Storage
SQL Azure

Switch to the old portal for more advanced


features
Copyright 2011 FPT Software

18

USING WINDOWS AZURE PORTAL

Copyright 2011 FPT Software

19

USING WINDOWS AZURE PORTAL

Copyright 2011 FPT Software

20

THIS LECTURE

Developing Environment
Getting Azure document & material
Programming guidance
Developing Azure using Visual Studio
Using the Windows Azure Portal

Copyright 2011 FPT Software

21

S-ar putea să vă placă și