Book Image

Mastering Cloud Development using Microsoft Azure

By : Roberto Freato, Marco Parenzan
Book Image

Mastering Cloud Development using Microsoft Azure

By: Roberto Freato, Marco Parenzan

Overview of this book

Microsoft Azure is a cloud computing platform that supports many different programming languages, tools, and frameworks, including both Microsoft-specific and third-party software and systems. This book starts by helping you set up a professional development environments in the cloud and integrating them with your local environment to achieve improved efficiency. You will move on to create front-end and back-end services, and then build cross-platform applications using Azure. Next you’ll get to grips with advanced techniques used to analyze usage data and automate billing operations. Following on from that, you will gain knowledge of how you can extend your on-premise solution to the cloud and move data in a pipeline. In a nutshell, this book will show you how to build high-quality, end-to-end services using Microsoft Azure. By the end of this book, you will have the skillset needed to successfully set up, develop, and manage a full-stack Azure infrastructure.
Table of Contents (15 chapters)
Mastering Cloud Development using Microsoft Azure
About the Authors
About the Reviewer


This is a book for you, the developer, who lives in his/her comfort zone. This book is made up of the experience gained during the evolution of the Web from its inception (the nineties) to the present. Earlier, you used a single reference architecture and reused it as many times as possible. This is because you grew up in an object-oriented development era with a focus on tools and languages. Therefore, you are used to developing web and applications in the same manner using the same tools. You find moving away from a monolithic, three tier, strongly-coupled, SQL-based, on-premise, web-only development environment uncomfortable.

This is a book for you, the developer, who does not know why you should move away from your comfort zone, or you do not find real value evolving your skills and embrace the cloud.

You are not alone; many other developers over the world feel the same way we did just quite some time ago.

Facing new challenges

Software complexity is increasing over time and we need to concentrate on the functional aspects of domain problem, coding domain logic, and presentation. If possible, we would reuse as many functionalities that we could if they respected common patterns that were accepted, solved, and shared by developer community.

Development is different to Operations, as the developer has a different role from an IT professional. While developing solutions, we cannot really avoid any knowledge about operations, deployment, security, and authentication issues.

On-premise, many solutions are avoided because of lack of business view and no clearance from the management. We need to move our business costs from capital expenses to operation expenses. This lowers acquisition barriers as every company, single professionals, or small independent teams can access the same cloud power. We can also view this as a democratization of the web.

We now live in a global village, and we need to deploy our solutions worldwide, minimizing latency and give the users better responses without moving away from our company and country.

We need a self-service approach to turn services on and off, instantiating and destroying appliances, which allow us to control costs and invites experimenting, new technologies, platforms, and architectures.

The cloud democratizes access to advanced deployment scenarios such as clustering and high availability, backup, and operational management.

This is a book for you, the developer, who feels uncomfortable and needs to improve your skills and embrace the cloud. This book is all about real-world scenarios where you can train new skills and the start mapping your daily projects in this new and exciting world.

Let's move on, together.

What this book covers

Chapter 1, Building Basic Services, shows you how to start approaching the basic concepts of cloud computing in Azure and how to move some basic on-premise functionalities to the cloud.

Chapter 2, Enhancing the Hybrid Process, shows you how to integrate services to your local environment and processes and how to move virtual machine and networking concepts to the cloud.

Chapter 3, Building the Frontend, shows you how to build a comprehensive frontend composed of Azure services and approach the Platform-as-a-Service model to reduce costs.

Chapter 4, Building the Backend, explains how to use polyglot persistence to build a tailored-data platform, where each logical application block has its corresponding optimal technology and evaluate some new technologies to embrace new challenges.

Chapter 5, Building the Mobile Experience, covers the world of mobile apps development from the hybrid apps point of view and how a mobile-focused developer can approach building a backend Azure service.

Chapter 6, Building the API Layer, shows you how to handle real world API development, deployment, and long-term management.

Chapter 7, Working with Messages, shows you how you can build solutions composed by different blocks and explains the services that need to communicate in an asynchronous a decoupled manner.

Chapter 8, Deploying Solutions in Azure, shows you how to handle Azure service and to proceed with deployment in a formal, repeatable, and modern way.

What you need for this book

You need a good spec machine with any version of Windows from Window 7 to Windows 10 installed on it.

Visual Studio 2015 is the development environment that you require for this book, and all features required for this book are available from the free Community edition (

Azure SDK for Visual Studio 2015 is required, and you can download it at

You will sign up for a Microsoft Azure subscription at the start of the book if you have not already got one: there are various paid options, but a one-month trial is available.

There is also the Visual Studio Dev Essentials initiative (, which gives us access to many benefits, such as an Azure subscription with $25 prepaid monthly credit.

Who this book is for

This book is for developers who want to improve their development skills in terms of development style and patterns with the cloud using some real-world, end-to-end scenarios, inspiring them to map their real projects at home.

This book is for Windows and .NET developers, as examples are mainly displayed as ASP.NET and C# code.


In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles are shown as follows: "First, deallocate the VM by invoking the deallocate command."

A block of code is set as follows:

  <Subnet name="DataServer">

Any command-line input or output is written as follows:

$vn = Get-AzureRmVirtualNetwork 
  -ResourceGroupName "CloudMakers" -Name "CloudMakers"

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Locate the New action and choose Data + Storage (or another semantically equivalent group)."


Warnings or important notes appear in a box like this.


Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail , and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for this book from your account at If you purchased this book elsewhere, you can visit and register to have the files e-mailed directly to you.

You can download the code files by following these steps:

  1. Log in or register to our website using your e-mail address and password.

  2. Hover the mouse pointer on the SUPPORT tab at the top.

  3. Click on Code Downloads & Errata.

  4. Enter the name of the book in the Search box.

  5. Select the book for which you're looking to download the code files.

  6. Choose from the drop-down menu where you purchased this book from.

  7. Click on Code Download.

You can also download the code files by clicking on the Code Files button on the book's webpage at the Packt Publishing website. This page can be accessed by entering the book's name in the Search box. Please note that you need to be logged in to your Packt account.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR / 7-Zip for Windows

  • Zipeg / iZip / UnRarX for Mac

  • 7-Zip / PeaZip for Linux

The code bundle for the book is also hosted on GitHub at We also have other code bundles from our rich catalog of books and videos available at Check them out!

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from


Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to and enter the name of the book in the search field. The required information will appear under the Errata section.


Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.


If you have a problem with any aspect of this book, you can contact us at , and we will do our best to address the problem.