You are previewing Microsoft Windows Azure Development Cookbook.
O'Reilly logo
Microsoft Windows Azure Development Cookbook

Book Description

Realize the full potential of Windows Azure with this superb Cookbook that has over 80 recipes for building advanced, scalable cloud-based services. Simply pick the solutions you need to answer your requirements immediately.

  • Packed with practical, hands-on cookbook recipes for building advanced, scalable cloud-based services on the Windows Azure platform explained in detail to maximize your learning

  • Extensive code samples showing how to use advanced features of Windows Azure blobs, tables and queues.

  • Understand remote management of Azure services using the Windows Azure Service Management REST API

  • Delve deep into Windows Azure Diagnostics

  • Master the Windows Azure AppFabric Service Bus and Access Control Service

  • * eBook available as PDF and ePub downloads and also on PacktLib Book formats

  • In Detail

    The Windows Azure platform is Microsoft's Platform-as-a-Service environment for hosting services and data in the cloud. It provides developers with on-demand computing, storage, and service connectivity capabilities that facilitate the hosting of highly scalable services in Windows Azure datacenters across the globe.

    This practical cookbook will show you advanced development techniques for building highly scalable cloud-based services using the Windows Azure platform. It contains over 70 practical, task-based, and immediately usable recipes covering a wide range of advanced development techniques for building highly scalable services to solve particular problems/scenarios when developing these services on the Windows Azure platform.

    Packed with reusable, real-world recipes, the book starts by explaining the various access control mechanisms used in the Windows Azure platform. Next you will see the advanced features of Windows Azure Blob storage, Windows Azure Table storage, and Windows Azure Queues. The book then dives deep into topics such as developing Windows Azure hosted services, using Windows Azure Diagnostics, managing hosted services with the Service Management API, using SQL Azure and the Windows Azure AppFabric Service Bus. You will see how to use several of the latest features such as VM roles, Windows Azure Connect, startup tasks, and the Windows Azure AppFabric Caching Service.

    Build advanced scalable cloud-based services with the Windows Azure platform

    Table of Contents

    1. Microsoft Windows Azure Development Cookbook
      1. Table of Contents
      2. Microsoft Windows Azure Development Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers and more
          1. Why subscribe?
          2. Free access for Packt account holders
        2. Instant Updates on New Packt Books
      7. Preface
        1. What this book covers
        2. What you need for this book
        3. Who this book is for
        4. Conventions
        5. Reader feedback
        6. Customer support
          1. Downloading the example code for this book
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Controlling Access in the Windows Azure Platform
        1. Introduction
        2. Managing Windows Azure Storage Service access keys
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Connecting to the Windows Azure Storage Service
          1. Getting ready
          2. How to do it...
            1. How it works...
          3. Using SetConfigurationSettingPublisher()
            1. How to do it...
              1. How it works...
            2. Connecting to the storage emulator
              1. Getting ready
              2. How to do it...
                1. How it works...
                2. There's more...
              3. Managing access control for containers and blobs
                1. Getting ready
                2. How to do it...
                  1. How it works...
                  2. See also
                3. Creating a Shared Access Signature for a container or blob
                  1. Getting ready
                  2. How to do it...
                    1. How it works...
                    2. There's more...
                    3. See also
                  3. Using a container-level access policy
                    1. Getting ready
                    2. How to do it...
                      1. How it works...
                    3. Authenticating against the Windows Azure Service Management REST API
                      1. How to do it...
                      2. Authenticating with the Windows Azure AppFabric Caching Service
      9. 2. Handling Blobs in Windows Azure
        1. Introduction
        2. Setting properties and metadata for a blob
          1. How to do it...
            1. How it works...
          2. Using blob directories
            1. How to do it...
              1. How it works...
            2. Creating and using a blob snapshot
              1. How to do it...
                1. How it works...
                2. CloudDrive.Snapshot()
              2. Creating and using the root container for blobs
                1. Getting ready
                2. How to do it...
                  1. How it works...
                  2. See also
                3. Uploading blocks to a block blob
                  1. How to do it...
                    1. How it works...
                    2. See also
                  2. Uploading a VHD into a page blob
                    1. Getting ready
                    2. How to do it...
                      1. How it works...
                      2. There's more...
                      3. See also
                    3. Downloading a blob asynchronously
                      1. How to do it...
                      2. Optimizing blob uploads and downloads
      10. 3. Going NoSQL with Windows Azure Tables
        1. Introduction
        2. Creating a table
          1. How to do it...
            1. How it works...
          2. Creating a data model and context for an entity
            1. How to do it...
              1. How it works...
              2. TableServiceEntity class
              3. See also
            2. Using entity group transactions
              1. Getting ready
              2. How to do it...
                1. How it works...
                2. See also
              3. Diagnosing problems when using the Table service
                1. How to do it...
                2. How it works...
                3. There's more...
              4. Handling concurrency with the Table service
                1. Getting ready
                2. How to do it...
                  1. How it works...
                  2. There's more...
                  3. See also
                3. Choosing a PartitionKey and RowKey for a table
                  1. How to do it...
                    1. How it works...
                  2. Using continuation tokens and server-side paging
                    1. Getting ready
                    2. How to do it...
                      1. How it works...
                      2. See also
                    3. Performing asynchronous queries
                      1. Getting ready
                      2. How to do it...
                      3. Performing queries in parallel
      11. 4. Disconnecting with Windows Azure Queues
        1. Introduction
        2. Managing Windows Azure queues
          1. How to do it...
          2. How it works...
        3. Adding messages to a queue
          1. How to do it...
            1. How it works...
          2. Retrieving messages from a queue
            1. How to do it...
            2. How it works...
          3. Storing large amounts of data for a message
            1. How to do it...
              1. How it works...
            2. Implementing a backoff when polling a queue
              1. How to do it...
                1. How it works...
              2. Identifying and handling poison messages
                1. How to do it...
                  1. How it works...
      12. 5. Developing Hosted Services for Windows Azure
        1. Introduction
        2. Choosing the service model for a hosted service
          1. How to do it...
          2. How it works...
        3. Choosing which Windows Azure storage type to use
          1. How to do it...
          2. How it works...
        4. Configuring the service model for a hosted service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Handling upgrades and configuration changes
            2. Storing Configuration in Azure storage
        5. Hosting multiple websites in a web role
          1. How to do it...
          2. How it works...
          3. There's more...
        6. Providing a custom domain name for a hosted service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
            1. Using the hosts file to map domains
        7. Implementing HTTPS in a web role
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Using makecert to create a test certificate
        8. Sharing session state with the Windows Azure AppFabric Caching Service
          1. How to do it...
          2. How it works...
          3. There's more...
          4. See also
        9. Using local storage in an instance
          1. How to do it...
            1. How it works...
            2. See also
          2. Using startup tasks in a Windows Azure Role
            1. How to do it...
            2. How it works...
            3. There's more...
              1. Developing startup tasks
          3. Managing upgrades and changes to a hosted service
            1. Getting ready
            2. How to do it...
            3. How it works...
            4. There's more...
              1. Using PowerShell cmdlets to upgrade a hosted service
              2. Changing the number of endpoints in a hosted service
              3. Version issue when performing in-place upgrades
              4. Limitations on in-place upgrades
          4. Handling changes to the configuration and topology of a hosted service
            1. How to do it...
            2. How it works...
            3. There's more...
          5. Using an Azure Drive in a hosted service
            1. How to do it...
              1. How it works...
              2. See also
            2. Using the Azure Drive simulation in the development environment
              1. Getting ready
              2. How to do it...
              3. How it works...
            3. Using a VM Role
              1. How to do it...
              2. How it works...
              3. Differencing disks
              4. See also
            4. Using Windows Azure Connect
              1. Getting ready
              2. How to do it...
                1. How it works...
                2. Windows Azure AppFabric Service Bus
                3. Moving connection to another Windows Azure subscription
              3. Consuming data from the Windows Azure MarketPlace DataMarket
                1. How to do it...
                  1. How it works...
                2. Using Web Deploy with Windows Azure
                  1. Getting ready
                  2. How to do it...
                  3. How it works...
      13. 6. Digging into Windows Azure Diagnostics
        1. Introduction
        2. Initializing the configuration of Windows Azure Diagnostics
          1. How to do it...
            1. How it works...
            2. There's more...
              1. Configuring the Event Log data buffer
              2. Configuring the performance counter data buffer
          2. Using a configuration file with Windows Azure Diagnostics
            1. How to do it...
              1. How it works...
              2. There's more...
            2. Using the Windows Azure Diagnostics trace listener
              1. How to do it...
              2. How it works...
              3. There's more...
              4. See also
            3. Performing an on-demand transfer
              1. How to do it...
                1. How it works...
              2. Implementing custom logging
                1. How to do it...
                  1. How it works...
                2. Accessing data persisted to Windows Azure Storage
                  1. How to do it...
                  2. How it works...
                3. Using the Windows Azure Platform PowerShell cmdlets to configure Windows Azure Diagnostics
                  1. Getting ready
                  2. How to do it...
                    1. How it works...
                    2. Azure Management cmdlets
                  3. Using IntelliTrace to diagnose problems with a hosted service
                    1. Getting ready
                    2. How to do it...
                    3. How it works...
      14. 7. Managing Hosted Services with the Service Management API
        1. Introduction
        2. Creating a Windows Azure hosted service
          1. Getting ready
            1. How it works...
            2. How to do it...
              1. How it works...
              2. There's more...
                1. Locations and affinity groups
            3. Deploying an application into a hosted service
              1. How to do it...
                1. How it works...
                  1. There's more...
              2. Upgrading an application deployed to a hosted service
                1. How to do it...
                  1. How it works...
                2. Retrieving the properties of a hosted service
                  1. How to do it...
                    1. How it works...
                    2. There's more...
                    3. See also
                  2. Autoscaling with the Windows Azure Service Management REST API
                    1. Getting ready
                    2. How to do it...
                      1. How it works...
                    3. Using the Windows Azure Platform PowerShell cmdlets
                      1. Getting ready
                      2. How to do it...
      15. 8. Using SQL Azure
        1. Introduction
        2. Provisioning a SQL Azure Server
          1. How to do it...
          2. How it works...
        3. Creating a SQL Azure database
          1. How to do it...
          2. How it works...
          3. There's more...
            1. Copying a database
            2. Increasing the size of a database
        4. Migrating a database to SQL Azure
          1. Getting ready
          2. How to do it...
          3. How it works...
        5. Measuring SQL Azure usage
          1. How to do it...
            1. How it works...
          2. Connecting to SQL Azure with ADO.NET
            1. How to do it...
              1. How it works...
            2. Handling connection failures to SQL Azure
              1. Getting ready
              2. How to do it...
                1. How it works...
                2. There's more...
                3. See also
              3. Scaling out SQL Azure into the Windows Azure Blob Service
                1. How to do it...
                  1. How it works...
                  2. There's more...
      16. 9. Looking at the Windows Azure AppFabric
        1. Introduction
        2. Creating a namespace for the Windows Azure AppFabric
          1. How to do it...
          2. How it works...
          3. There's more...
        3. Using the Service Bus as a relay service
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        4. Using Service Bus events
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
          5. See also
        5. Using a Service Bus message buffer
          1. Getting ready
          2. How to do it...
          3. How it works...
          4. There's more...
        6. Using the Windows Azure AppFabric Caching service
          1. Getting ready
          2. How to do it...
            1. How it works...
            2. There's more...
              1. Using a configuration file to configure the Caching service
              2. Session-state provider and output-cache provider
      17. Index