![]()
Microsoft Windows Azure Development Cookbook
Table of Contents
Microsoft Windows Azure Development Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers and more
Why subscribe?
Free access for Packt account holders
Instant Updates on New Packt Books
Preface
What this book covers
What you need for this book
Who this book is for
Conventions
Reader feedback
Customer support
Downloading the example code for this book
Errata
Piracy
Questions
1. Controlling Access in the Windows Azure Platform
Introduction
Managing Windows Azure Storage Service access keys
Getting ready
How to do it...
How it works...
Connecting to the Windows Azure Storage Service
Getting ready
How to do it...
How it works...
Using SetConfigurationSettingPublisher()
How to do it...
How it works...
Connecting to the storage emulator
Getting ready
How to do it...
How it works...
There's more...
Managing access control for containers and blobs
Getting ready
How to do it...
How it works...
See also
Creating a Shared Access Signature for a container or blob
Getting ready
How to do it...
How it works...
There's more...
See also
Using a container-level access policy
Getting ready
How to do it...
How it works...
Authenticating against the Windows Azure Service Management REST API
How to do it...
How it works...
There's more...
Authenticating with the Windows Azure AppFabric Caching Service
Getting ready
How to do it...
How it works...
2. Handling Blobs in Windows Azure
Introduction
Setting properties and metadata for a blob
How to do it...
How it works...
Using blob directories
How to do it...
How it works...
Creating and using a blob snapshot
How to do it...
How it works...
CloudDrive.Snapshot()
Creating and using the root container for blobs
Getting ready
How to do it...
How it works...
See also
Uploading blocks to a block blob
How to do it...
How it works...
See also
Uploading a VHD into a page blob
Getting ready
How to do it...
How it works...
There's more...
See also
Downloading a blob asynchronously
How to do it...
How it works...
Optimizing blob uploads and downloads
How to do it...
How it works...
There's more...
See also
Using retry policies with blob operations
How to do it...
How it works...
There's more...
Transient Fault Handling Framework
Copying a blob with the Windows Azure Storage Service REST API
How to do it...
How it works...
There's more...
Using the REST API with the Queue service and Table service
See also
Leasing a blob using the Protocol classes in the Windows Azure Storage Client Library
How to do it...
How it works...
There's more...
Using a blob lease as a singleton ticket
See also
Using the Windows Azure Content-Delivery Network (CDN)
How to do it...
How it works...
There's more...
3. Going NoSQL with Windows Azure Tables
Introduction
Creating a table
How to do it...
How it works...
Creating a data model and context for an entity
How to do it...
How it works...
TableServiceEntity class
See also
Using entity group transactions
Getting ready
How to do it...
How it works...
See also
Diagnosing problems when using the Table service
How to do it...
How it works...
There's more...
Handling concurrency with the Table service
Getting ready
How to do it...
How it works...
There's more...
See also
Choosing a PartitionKey and RowKey for a table
How to do it...
How it works...
Using continuation tokens and server-side paging
Getting ready
How to do it...
How it works...
See also
Performing asynchronous queries
Getting ready
How to do it...
How it works...
See also
Performing queries in parallel
Getting ready
How to do it...
How it works...
See also
Handling the WritingEntity and ReadingEntity events
How to do it...
How it works...
See also
4. Disconnecting with Windows Azure Queues
Introduction
Managing Windows Azure queues
How to do it...
How it works...
Adding messages to a queue
How to do it...
How it works...
Retrieving messages from a queue
How to do it...
How it works...
Storing large amounts of data for a message
How to do it...
How it works...
Implementing a backoff when polling a queue
How to do it...
How it works...
Identifying and handling poison messages
How to do it...
How it works...
5. Developing Hosted Services for Windows Azure
Introduction
Choosing the service model for a hosted service
How to do it...
How it works...
Choosing which Windows Azure storage type to use
How to do it...
How it works...
Configuring the service model for a hosted service
Getting ready
How to do it...
How it works...
There's more...
Handling upgrades and configuration changes
Storing Configuration in Azure storage
Hosting multiple websites in a web role
How to do it...
How it works...
There's more...
Providing a custom domain name for a hosted service
Getting ready
How to do it...
How it works...
There's more...
Using the hosts file to map domains
Implementing HTTPS in a web role
How to do it...
How it works...
There's more...
Using makecert to create a test certificate
Sharing session state with the Windows Azure AppFabric Caching Service
How to do it...
How it works...
There's more...
See also
Using local storage in an instance
How to do it...
How it works...
See also
Using startup tasks in a Windows Azure Role
How to do it...
How it works...
There's more...
Developing startup tasks
Managing upgrades and changes to a hosted service
Getting ready
How to do it...
How it works...
There's more...
Using PowerShell cmdlets to upgrade a hosted service
Changing the number of endpoints in a hosted service
Version issue when performing in-place upgrades
Limitations on in-place upgrades
Handling changes to the configuration and topology of a hosted service
How to do it...
How it works...
There's more...
Using an Azure Drive in a hosted service
How to do it...
How it works...
See also
Using the Azure Drive simulation in thedevelopment environment
Getting ready
How to do it...
How it works...
Using a VM Role
How to do it...
How it works...
Differencing disks
See also
Using Windows Azure Connect
Getting ready
How to do it...
How it works...
Windows Azure AppFabric Service Bus
Moving connection to another WindowsAzure subscription
Consuming data from the Windows Azure MarketPlace DataMarket
How to do it...
How it works...
Using Web Deploy with Windows Azure
Getting ready
How to do it...
How it works...
6. Digging into Windows Azure Diagnostics
Introduction
Initializing the configuration of Windows Azure Diagnostics
How to do it...
How it works...
There's more...
Configuring the Event Log data buffer
Configuring the performance counter data buffer
Using a configuration file with Win...