Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Mastering Cloud Development using Microsoft Azure
Mastering Cloud Development using Microsoft Azure

Mastering Cloud Development using Microsoft Azure: Master the art of efficiently composing Azure services and implement them in real-world scenarios

Arrow left icon
Profile Icon Freato Profile Icon Marco Parenzan
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3 (2 Ratings)
Paperback Jun 2016 352 pages 1st Edition
eBook
₹799.99 ₹2919.99
Paperback
₹3649.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Freato Profile Icon Marco Parenzan
Arrow right icon
$19.99 per month
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3 (2 Ratings)
Paperback Jun 2016 352 pages 1st Edition
eBook
₹799.99 ₹2919.99
Paperback
₹3649.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
₹799.99 ₹2919.99
Paperback
₹3649.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with a Packt Subscription?

Free for first 7 days. ₹800 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing
Table of content icon View table of contents Preview book icon Preview Book

Mastering Cloud Development using Microsoft Azure

Chapter 2. Enhancing the Hybrid Process

In this chapter, you will learn how to integrate services to their local environment and processes. By integrating their local environment with the cloud, companies implement hybrid solutions to help themselves improve efficiency.

CloudMakers.XYZ

CloudMakers needs to manage some old software solutions already developed before this cloud experience. The migration in the cloud should be transparent, because there is not a specific activity for the customer. They need to recreate the same deployment environment for three-tier web applications to minimize the impact of the migration.

A frontend web server and a backend relational database make up the infrastructure for a typical three-tier, data-centric application. It was a common solution back in the last decade (and in some cases, a common solution today). This is due to some facts, which are mentioned here:

  • The lack of affordable and performing alternatives to a relational database brought us to the typical "database-first" approach, best supported by tools that "scaffold" the database and automatically build the pages for CRUD operations.
  • There was no culture for scalability, as all invocations were synchronous. So, one of the main topics was the...

Service Manager (classic) mode versus Resource Manager mode

Azure has introduced Azure Resource Manager (ARM) to solve the challenges related to the way we manage projects in Azure. Most of the solutions deployed are a combination of two or more services. For example, running a virtual machine requires the deployment of three different services:

  • A VM instance
  • A storage account that contains the disk images
  • A cloud service

A customer solution is more complex that this, and there are two main issues:

  • Deploying a solution can be complex due to the number of services that needs to be created and configured
  • Organizing and managing all these resources can become cumbersome if we cannot associate some metadata to describe why we have deployed every single resource and the solution it refers. If we can do this, we can then list, group, and filter services by solution and have a more clear and usable view of resources

ARM has changed the way we manage and deploy resources by including the following features...

Configuring a Resource mode Virtual Network for the frontend servers

A VN is a representation of your own network in the cloud. It is a way to organize your VM. Three important aspects that need to be considered are:

  • Resource management: Group and subdivide VMs in different VNs by internal security policies (some VMs cannot reach some others VMs).
  • Address spaces: Different virtual networks can have different sets of addresses. A single address space can be subdivided into subnets.
  • Security: While internal to a single VN, each VM can reach other VMs by default. You can control inbound and outbound traffic at subnet-level VMs with Network Security Groups.

VNs in an Azure account can be found in the Ibiza portal in two distinct containers by going to Browse | Virtual Networks or Browse | Virtual Networks (Classic). From the Classic portal, you will find only Classic VNs.

You can create a VN by going to New | Networking | Virtual Network, by deciding whether you need a classic or a Resource Manager...

Configuring a Service mode (classic) Virtual Network for the backend servers

At the time of writing this book, not all virtual network features have been migrated to ARM virtual networks. VPN is one of these features. Therefore, it is necessary to create a VN in the Service Manager mode to configure a VPN to have safe access from the CloudMakers office. As we have two VNs, it is also necessary to have a safe and privileged access from the frontline ARM VN to this backend VN.

Configuring VN in the classic mode is quite different from ARM. The configuration in the service is XML-based (not JSON-based, like ARM), and it has no specific API. You need to write some XML to configure your VN. One issue is that you can change or create your VN only at the account level. There is only one network configuration XML that contains the network configuration of the entire account. Making changes to this configuration for a project can affect your other deployments.

Tip

Make a copy of the downloaded VN XML...

Connecting two virtual networks with site-to-site connection

We have created a Service Mode Classic VPN named CloudMakersClassic in order to access to VPNs. We have created another VPN in an ARM Virtual Network called CloudMakers to take advantage of the resource templates and resource groups. The two virtual networks are different by features and by roles, one being the VN for frontend servers and one for backend servers. Up to now, they don't communicate with each other. Up to now, they are two unrelated networks that could communicate only with public IP (but in our sample only ARM VN has one) and without any special privilege. In this situation we can have some security issues, that we need to avoid. So, we can configure a site-to-site connection to allow a privileged access to the classic VN. So, we can configure a site-to-site connection to allow access to the classic VN.

To start, we need to configure CloudMakers' ARM VN, the frontend ARM VN, or, in VPN terms, the local...

Configuring Office connectivity with a point-to-site VPN

To connect to the VPN from Office, a point-to-site VPN connection is necessary. From the virtual network configuration, create a new VPN connection, selecting the type as Point-to-site:

Configuring Office connectivity with a point-to-site VPN

Client Address Spaces is the client network assigned to the user's virtual adapter when they connect to the VPN.

The authorization in a point-to-site VPN is certificate-based. It is an asymmetric encryption algorithm that is used to sign the communication, where the keys are contained in certificates. A self-signed public key certificate means that the trust to the certificate is given by the fact that it was received by the VPN via an upload from an Azure account by the owner of the Azure subscription.

To create a self-signed certificate for a Windows developer with Visual Studio 2015, Makecert.exe is the tool necessary to generate it. In the Developer Command Prompt for Visual Studio 2015, type the following command:

makecert -sky exchange -r ...

CloudMakers.XYZ


CloudMakers needs to manage some old software solutions already developed before this cloud experience. The migration in the cloud should be transparent, because there is not a specific activity for the customer. They need to recreate the same deployment environment for three-tier web applications to minimize the impact of the migration.

A frontend web server and a backend relational database make up the infrastructure for a typical three-tier, data-centric application. It was a common solution back in the last decade (and in some cases, a common solution today). This is due to some facts, which are mentioned here:

  • The lack of affordable and performing alternatives to a relational database brought us to the typical "database-first" approach, best supported by tools that "scaffold" the database and automatically build the pages for CRUD operations.

  • There was no culture for scalability, as all invocations were synchronous. So, one of the main topics was the correct sizing of the...

Service Manager (classic) mode versus Resource Manager mode


Azure has introduced Azure Resource Manager (ARM) to solve the challenges related to the way we manage projects in Azure. Most of the solutions deployed are a combination of two or more services. For example, running a virtual machine requires the deployment of three different services:

  • A VM instance

  • A storage account that contains the disk images

  • A cloud service

A customer solution is more complex that this, and there are two main issues:

  • Deploying a solution can be complex due to the number of services that needs to be created and configured

  • Organizing and managing all these resources can become cumbersome if we cannot associate some metadata to describe why we have deployed every single resource and the solution it refers. If we can do this, we can then list, group, and filter services by solution and have a more clear and usable view of resources

ARM has changed the way we manage and deploy resources by including the following features...

Configuring a Resource mode Virtual Network for the frontend servers


A VN is a representation of your own network in the cloud. It is a way to organize your VM. Three important aspects that need to be considered are:

  • Resource management: Group and subdivide VMs in different VNs by internal security policies (some VMs cannot reach some others VMs).

  • Address spaces: Different virtual networks can have different sets of addresses. A single address space can be subdivided into subnets.

  • Security: While internal to a single VN, each VM can reach other VMs by default. You can control inbound and outbound traffic at subnet-level VMs with Network Security Groups.

VNs in an Azure account can be found in the Ibiza portal in two distinct containers by going to Browse | Virtual Networks or Browse | Virtual Networks (Classic). From the Classic portal, you will find only Classic VNs.

You can create a VN by going to New | Networking | Virtual Network, by deciding whether you need a classic or a Resource Manager...

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Build an effective development environment in Azure using the right set of technologies.
  • Architect a full-stack solution in the cloud to choose the best service set
  • A comprehensive guide full of real-life examples to help you take your developer skills up a notch

Description

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.

Who is this book for?

If you are a developer, a full-stack developer, or an architect with an intermediate level understanding of cloud computing and Microsoft Azure, and you want to take your skills up a notch, this book is for you. Prior knowledge and understanding of cloud development strategies is assumed.

What you will learn

  • Set up a development environment with VMs, ARM, and RemoteApp
  • Connect with VPNs to manage security and backups
  • Establish a front-end architecture with AppService, storage, search, and caching
  • Implement identity solutions, integrate applications, and use data
  • Integrate cross-platform mobile applications with the cloud
  • Consistently build and manage an API layer for millions of users
  • Work with messages in the enterprise
  • Deploy your services as an IT expert with ARM templates

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jun 28, 2016
Length: 352 pages
Edition : 1st
Language : English
ISBN-13 : 9781782173335
Vendor :
Microsoft
Languages :

What do you get with a Packt Subscription?

Free for first 7 days. ₹800 p/m after that. Cancel any time!
Product feature icon Unlimited ad-free access to the largest independent learning library in tech. Access this title and thousands more!
Product feature icon 50+ new titles added per month, including many first-to-market concepts and exclusive early access to books as they are being written.
Product feature icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Product feature icon Thousands of reference materials covering every tech concept you need to stay up to date.
Subscribe now
View plans & pricing

Product Details

Publication date : Jun 28, 2016
Length: 352 pages
Edition : 1st
Language : English
ISBN-13 : 9781782173335
Vendor :
Microsoft
Languages :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just ₹400 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 12,662.97
Implementing Azure Solutions
₹4096.99
Mastering Identity and Access Management with Microsoft Azure
₹4915.99
Mastering Cloud Development using Microsoft Azure
₹3649.99
Total 12,662.97 Stars icon

Table of Contents

9 Chapters
1. Building Basic Services Chevron down icon Chevron up icon
2. Enhancing the Hybrid Process Chevron down icon Chevron up icon
3. Building the Frontend Chevron down icon Chevron up icon
4. Building the Backend Chevron down icon Chevron up icon
5. Building the Mobile Experience Chevron down icon Chevron up icon
6. Building the API Layer Chevron down icon Chevron up icon
7. Working with Messages Chevron down icon Chevron up icon
8. Deploying Solutions in Azure Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(2 Ratings)
5 star 0%
4 star 50%
3 star 0%
2 star 50%
1 star 0%
Christopher White Sep 27, 2018
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
The work is focused and provided a general overview. The book promotes the service however excludes general examples of applications and performances. In general, the text is worth reading, however, the text might need supplementation for successful application of the Azure Cloud Platform.
Amazon Verified review Amazon
Lasar Lasarov Apr 01, 2018
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
Ich bin vom Buch sehr enttäuscht.Ich habe es gekauft mit der Hoffnung, dass es mir schnell einen Überblick über MS Azure und den Programmieraspekten diesbezüglich verschafft. Obwohl das Buch eher dünn ist, es es voller Theorie und ziemlich langatmig geschrieben. Ich hatte Schwierigkeiten konzentriert zu bleiben. Ausserdem hat es mir nicht einen Überblick verschafft.Jetzt nach nicht mal 70 Seiten habe ich keine Lust mehr, es weiterzulesen. Stattdessen schaue ich mich nach einem anderem Buch um, dass sich etwas "glatter" liest.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is included in a Packt subscription? Chevron down icon Chevron up icon

A subscription provides you with full access to view all Packt and licnesed content online, this includes exclusive access to Early Access titles. Depending on the tier chosen you can also earn credits and discounts to use for owning content

How can I cancel my subscription? Chevron down icon Chevron up icon

To cancel your subscription with us simply go to the account page - found in the top right of the page or at https://subscription.packtpub.com/my-account/subscription - From here you will see the ‘cancel subscription’ button in the grey box with your subscription information in.

What are credits? Chevron down icon Chevron up icon

Credits can be earned from reading 40 section of any title within the payment cycle - a month starting from the day of subscription payment. You also earn a Credit every month if you subscribe to our annual or 18 month plans. Credits can be used to buy books DRM free, the same way that you would pay for a book. Your credits can be found in the subscription homepage - subscription.packtpub.com - clicking on ‘the my’ library dropdown and selecting ‘credits’.

What happens if an Early Access Course is cancelled? Chevron down icon Chevron up icon

Projects are rarely cancelled, but sometimes it's unavoidable. If an Early Access course is cancelled or excessively delayed, you can exchange your purchase for another course. For further details, please contact us here.

Where can I send feedback about an Early Access title? Chevron down icon Chevron up icon

If you have any feedback about the product you're reading, or Early Access in general, then please fill out a contact form here and we'll make sure the feedback gets to the right team. 

Can I download the code files for Early Access titles? Chevron down icon Chevron up icon

We try to ensure that all books in Early Access have code available to use, download, and fork on GitHub. This helps us be more agile in the development of the book, and helps keep the often changing code base of new versions and new technologies as up to date as possible. Unfortunately, however, there will be rare cases when it is not possible for us to have downloadable code samples available until publication.

When we publish the book, the code files will also be available to download from the Packt website.

How accurate is the publication date? Chevron down icon Chevron up icon

The publication date is as accurate as we can be at any point in the project. Unfortunately, delays can happen. Often those delays are out of our control, such as changes to the technology code base or delays in the tech release. We do our best to give you an accurate estimate of the publication date at any given time, and as more chapters are delivered, the more accurate the delivery date will become.

How will I know when new chapters are ready? Chevron down icon Chevron up icon

We'll let you know every time there has been an update to a course that you've bought in Early Access. You'll get an email to let you know there has been a new chapter, or a change to a previous chapter. The new chapters are automatically added to your account, so you can also check back there any time you're ready and download or read them online.

I am a Packt subscriber, do I get Early Access? Chevron down icon Chevron up icon

Yes, all Early Access content is fully available through your subscription. You will need to have a paid for or active trial subscription in order to access all titles.

How is Early Access delivered? Chevron down icon Chevron up icon

Early Access is currently only available as a PDF or through our online reader. As we make changes or add new chapters, the files in your Packt account will be updated so you can download them again or view them online immediately.

How do I buy Early Access content? Chevron down icon Chevron up icon

Early Access is a way of us getting our content to you quicker, but the method of buying the Early Access course is still the same. Just find the course you want to buy, go through the check-out steps, and you’ll get a confirmation email from us with information and a link to the relevant Early Access courses.

What is Early Access? Chevron down icon Chevron up icon

Keeping up to date with the latest technology is difficult; new versions, new frameworks, new techniques. This feature gives you a head-start to our content, as it's being created. With Early Access you'll receive each chapter as it's written, and get regular updates throughout the product's development, as well as the final course as soon as it's ready.We created Early Access as a means of giving you the information you need, as soon as it's available. As we go through the process of developing a course, 99% of it can be ready but we can't publish until that last 1% falls in to place. Early Access helps to unlock the potential of our content early, to help you start your learning when you need it most. You not only get access to every chapter as it's delivered, edited, and updated, but you'll also get the finalized, DRM-free product to download in any format you want when it's published. As a member of Packt, you'll also be eligible for our exclusive offers, including a free course every day, and discounts on new and popular titles.