How to use windows azure features on windows
Upcoming SlideShare
Loading in...5
×
 

How to use windows azure features on windows

on

  • 689 views

In this session we are going to take a look of Windows Azure features that can help us to write better applications for Windows 8. A Metro style app (and not only) need to communicate with different ...

In this session we are going to take a look of Windows Azure features that can help us to write better applications for Windows 8. A Metro style app (and not only) need to communicate with different services and load different resources from different locations from internet. Windows Azure is a very good place to host and store these resources.

Statistics

Views

Total Views
689
Views on SlideShare
466
Embed Views
223

Actions

Likes
0
Downloads
3
Comments
0

24 Embeds 223

http://vunvulearadu.blogspot.ro 126
http://vunvulearadu.blogspot.com 21
http://vunvulearadu.blogspot.co.uk 11
http://vunvulearadu.blogspot.hu 9
http://vunvulearadu.blogspot.in 9
http://vunvulearadu.blogspot.de 7
http://vunvulearadu.blogspot.jp 5
http://vunvulearadu.blogspot.se 4
http://vunvulearadu.blogspot.fi 4
http://vunvulearadu.blogspot.co.il 4
http://vunvulearadu.blogspot.kr 3
http://www.vunvulearadu.blogspot.hu 3
http://vunvulearadu.blogspot.tw 3
http://vunvulearadu.blogspot.be 2
http://vunvulearadu.blogspot.ca 2
http://vunvulearadu.blogspot.com.es 2
http://vunvulearadu.blogspot.sg 1
http://vunvulearadu.blogspot.fr 1
http://vunvulearadu.blogspot.com.au 1
http://vunvulearadu.blogspot.nl 1
http://vunvulearadu.blogspot.hk 1
http://vunvulearadu.blogspot.co.nz 1
http://vunvulearadu.blogspot.ie 1
http://vunvulearadu.blogspot.ch 1
More...

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification
  • Request Channel URIRegister with your Cloud ServiceAuthenticate & Push Notification

How to use windows azure features on windows How to use windows azure features on windows Presentation Transcript

  • How to use Windows Azure features on Windows 8 Radu Vunvulea vunvulear@gmail.com http://vunvulearadu.blogspot.com
  • How to use Windows Azure features on Windows 8 Radu Vunvulea vunvulear@gmail.com http://vunvulearadu.blogspot.com
  • Agenda• A short introduction in Metro App• Push Notifications• Scenario 1• Scenario 2• Scenario 3• Shared Access Signature• Scenario 4• Scenario 5• Conclusion
  • Metro Style application• Focus on user experience
  • Metro Style application• Focus on user experience• Consistent UI through all the applications
  • Metro Style application• Focus on user experience• Consistent UI through all the applications• Do one think, but do it best
  • What does Windows Azure offers to us• Tables• Blobs• Queues• Service Bus• SQL Azure• Push Notifications• Shared Access Signature• Web roles• Worker roles• Cache roles• Virtual Machines roles• ... and a lot more
  • Push Notifications• Using this mechanism we can send toasts, badges, tiles and row notifications to the client application• The send request notifications can be send from a cloud service Metro Style App Notification Client Cloud Service Platform Windows Push Notification Service
  • Scenario 1 Windows Azure
  • Scenario 1 – Azure Tables• Use table storage to store what each patient eat at each meal• The price for storing data in table storage is very low Timestamp Partition Key Row Key … … … 2005-10-30 T Client ID Meal type 10:45 UTCProblem• How user can have limited access to only one part of the table ?
  • Scenario 1 - Azure Tables + SASProblem• How user can have limited access to only one part of the table?Solution• We can use Shared Access Signature• What we can do with Shared Access Signature • Limit access of the user to only a specific numbers of tables • Limit access to a specific partition key and row key intervals • Limit what kind of actions a user can do on the table • Give access to a resource for a specific time interval
  • What is Shared Access Signature• Limit user access to a specific Windows Azure resource• Types of resources: • Tables • Queues • Blobs and containers• You don’t need to know or register user LIVE account• The only thing that you share with the user is a token• User can access your resource based on a token
  • How to create a SAS for Azure Tables• Create the access policySharedAccessTablePolicy tablePolicy = new SharedAccessTablePolicy(){ Permissions = SharedAccessTablePermissions.Query | SharedAccessTablePermissions.Add, SharedAccessExpiryTime = DateTime.UtcNow + TimeSpan.FromHours(1)};• Assign permissionsTablePermissions tablePermissions = new TablePermissions();tablePermissions.SharedAccessPolicies.Add( "Client1", tablePolicy);myTable.SetPermissions(tablePermissions);• Generate the access token signaturetableToken = myTable.GetSharedAccessSignature( new SharedAccessTablePolicy(), "Client1_1", 10, 0, 19, 100);
  • How to create a SAS for Azure Blobs• Create the access signaturevar sharedAccessSignature = myBlob.GetSharedAccessSignature( new SharedAccessPolicy() { Permissions = SharedAccessPermissions.Write | SharedAccessPermissions.Read, SharedAccessExpiryTime = DateTime.UtcNow + TimeSpan.FromHours(1); }• Generate access URLstring sharedAccessSignatureUri = blob.Uri.AbsoluteUri + + sharedAccessSignature;• Use the access signaturevar storageCredentialsSAS = new StorageCredentialsSharedAccessSignature( sharedAccessSignature);var blobClient = new CloudBlobClient( myAccount.BlobEndpoint, storageCredentialsSAS);var myBlob = blobClient .GetBlobReference(“myContainer/firstBlob.txt”);string currentContentOfBlob = myBlob.DownloadText();myBlob.UploadText(“New text appended”);
  • How to create a SAS for Azure Queues• Create the access signatureSharedAccessQueuePolicy sharedAccessPolicy = new SharedAccessQueuePolicy(){ Permissions = SharedAccessQueuePermissions .ProcessMessages, SharedAccessExpiryTime = DateTime.UtcNow + TimeSpan.FromHours(1)};string policyIdentifier = "QueuePolicy1";QueuePermissions queuePermissions= new QueuePermissions();queuePermissions.SharedAccessPolicies.Add( policyIdentifier, sharedAccessPolicy);myQueue.SetPermissions(queuePermissions);• Generate access token signaturestring accessSignature = myQueue.GetSharedAccessSignature( new SharedAccessQueuePolicy(), policyIdentifier);
  • Scenario 2 Windows Azure
  • Scenario 2 – Blob Storage• Store all content on Blob Storage• Cheap• Scalable• Can stream any type of content• Multiply devices of the same client can access the same resources based on the Shared Access Signature • We can send the access token by email
  • Scenario 3 Windows Azure
  • Scenario 3 – Azure Queues• Each document for processing a command is send to Azure queue• The message from the queue can be consumed by the core application that process the message• Limited access based on Shared Access Signature • The user that generate the requests will not be able to read or pop any kind of messages from the queue
  • How to access Windows Azure content?
  • Proxy
  • Shared Access Signature Web Role
  • Scenario 4• We are a well know photograph• We decide that we what to share our pictures with peoples that own a Windows 8 tablet all around the world• Based on a subscriptions for each album we hope to make money• An album can contain 10 to n photos How can we share this content with our clients?
  • Scenario 4 - Blobs• A simple solution is using blobs plus Shared Access Signature• For each client we create an access token that allow clients to access the album for which they already paid• Over this structure we create a web-application that allow clients to download the albums based on a token• We can use the token that is generated by Shared Access Signature
  • Scenario 5• Let’s imagine an application that will display stock reports for each week• This information is generated based on a lot of computation power• Because of this the company decides to sell this valuable content based on a weekly subscriptions• A client can have access only to information for the weeks that he paid• The client want to access this content from a Metro app created by us but he also want to import this data in his own systems Stock
  • Scenario 5 – Azure Tables• Store all the weakly report information on Azure Tables• Create a service that give the user the ability to access report data based on a username and password• Update and manage the username list and what reports they can access
  • Scenario 5 – Azure Tables• Store all the weakly report information on Azure Tables• Create a service that give the user the ability to access report data based on a username and password• Update and manage the username list and what reports they can access• Define a Shared Access Policy based on partition key and row key Partition Key – Week unique id (201234) Row Key – Report name
  • Conclusion
  • Conclusion Metro style apps are great to create a consistent, elegant & compelling user experience
  • THE END Radu Vunvulea vunvulear@gmail.com http://vunvulearadu.blogspot.com