Hands-On Cloud Solutions with Azure - Greg Leonardo - E-Book

Hands-On Cloud Solutions with Azure E-Book

Greg Leonardo

0,0
23,99 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

Azure provides cloud-based solutions to support your business demands. Building and running solutions on Azure will help your business maximize the return on investment and minimize the total cost of ownership.
Hands-On Cloud Solutions with Azure focuses on addressing the architectural decisions that usually arise when you design or migrate a solution to Microsoft Azure. You will start by designing the building blocks of infrastructure solution on Azure, such as Azure compute, storage, and networking, followed by exploring the database options it offers. You will get to grips with designing scalable web and mobile solutions and understand where to host your Active Directory and Identity Solution. Moving on, you’ll learn how to extend DevOps to Azure.
You will also beneft from some exciting services that enable extremely smooth operations and streamlined DevOps between on-premises and cloud. The book will help you to design a secure environment for your solution, on both the Cloud and hybrid. Toward the end, you’ll see how to manage and monitor cloud and hybrid solutions.
By the end of this book, you will be armed with all the tools and knowledge you need to properly plan and design your solutions on Azure, whether it’s for a brand new project or migration project.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB
MOBI

Seitenzahl: 178

Veröffentlichungsjahr: 2018

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Hands-On Cloud Solutions with Azure

 

 

 

 

 

 

Architecting, developing, and deploying the Azure way

 

 

 

 

 

 

 

 

 

 

Greg Leonardo

 

 

 

 

 

 

 

 

 

 

 

BIRMINGHAM - MUMBAI

Hands-On Cloud Solutions with Azure

 

Copyright © 2018 Packt Publishing

 

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

Commissioning Editor: Vijin BorichaAcquisition Editor: Prachi BishtContent Development Editor: Priyanka DeshpandeTechnical Editor: Mohit HassijaCopy Editor: Safis EditingProject Coordinator: Drashti PanchalProofreader: Safis EditingIndexer: Pratik ShirodkarGraphics: Tom ScariaProduction Coordinator: Arvindkumar Gupta

First published: October 2018

Production reference: 1311018

Published by Packt Publishing Ltd. Livery Place 35 Livery Street Birmingham B3 2PB, UK.

ISBN 978-1-78646-865-9

www.packtpub.com

   
mapt.io

Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.

Why subscribe?

Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals

Improve your learning with Skill Plans built especially for you

Get a free eBook or video every month

Mapt is fully searchable

Copy and paste, print, and bookmark content

Packt.com

Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at [email protected] for more details.

At www.packt.com, you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks. 

Contributors

About the author

Greg Leonardo has been working in the IT industry since his time in the military. He is a father, veteran, developer, teacher, speaker, Azure MVP, and an early adopter. He has have worked in many facets of IT throughout his career. He is president of #TampaCC, a community meetup, that runs #TampaCC, Azure User Group, Azure Medics, and various technology events throughout Tampa.

I would like to thank my wife, Kate, and my two sons, Maddux and Lucas, for giving me the freedom to pursue sharing my experiences through this book. 

 

About the reviewers

Gajanan Chandgadkar has more than 12 years' experience in the IT sector. He has spent over 6 years in the USA helping large enterprises architect, migrate, and deploy applications in AWS and Azure. He's been running production workloads on AWS for over 6 years, and on Azure for the past year. He is a certified solutions architect professional and a certified DevOps professional with over seven certifications in trending technologies. Gajanan is also a technology enthusiast who has extended his interest and experiences to include different topics, such as application development, container technology, and continuous delivery.

He is currently working with Happiest Minds Technologies as a DevOps architect, having worked with Wipro Technologies Corporation in the past.

 

 

 

Rohit Prakash is an Azure solutions engineer, with an unabashed fondness for Windows and Microsoft Azure in both disciplines. He specializes in Azure IaaS/PaaS design and implementation. In the past, he has made several contributions to Microsoft Community by contributing to TechNet articles, with a focus on Azure. He has been a member of the Microsoft BizSpark program since his college days and he has also been offered an MSDN subscription by Microsoft. He loves writing blogs as a way of sharing his thoughts.

He works with Fujitsu Consulting India and lives in Noida, India, where his personal time is split evenly between family and friends. He enjoys visiting peaceful and devotional locations.

 

 

 

Packt is searching for authors like you

If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.

Table of Contents

Title Page

Copyright and Credits

Hands-On Cloud Solutions with Azure

Packt Upsell

Why subscribe?

Packt.com

Contributors

About the author

About the reviewers

Packt is searching for authors like you

Preface

Who this book is for

What this book covers

To get the most out of this book

Download the example code files

Download the color images

Conventions used

Get in touch

Reviews

Getting Started with Azure

Technical requirements

What is cloud computing?

What problems does it solve?

What is Azure?

Before you start, have a plan

How do I start using Azure?

I have set up my Tenant – what's next?

Let's walk through a marketplace example

Extending Directory Services to Azure

Terminology to remember with Azure

Summary

Questions

Further reading

Moving Existing Apps to Azure

Technical requirements

How I approach the discussion

Rehost

Refactor

Re-architect

Rewrite

Creating resources in the Azure Portal

Migrating to Azure

Let's talk SaaS migrations

Office 365

Let's talk IaaS

PowerShell and ARM Template

Deploy-AzureResourceGroup.ps1

azuredeploy.parameters.json

azuredeploy.json

Let's talk PaaS

Deploy-Azure-WebsiteAndDatabase.parameters.json

Deploy-Azure-WebsiteAndDatabase.template.json

Summary

Questions

Further reading

Building Solutions in Azure

Technical requirements

Let me Azure you of something!

Azure blueprints

Key Vault

VNet

Mobile

IoT

AI and Machine Learning

Understanding responsibility

Infrastructure as a Service

Platform as a Service

Software as a Service

Azure Active Directory

Plan for success

Let’s talk architecture styles

Common application patterns

How to make technology choices

Designing applications in Azure

Some of my thoughts on selecting resources in Azure

App Services

Database services

Storage accounts

CosmosDB

Microservices/containers

Real-world examples

Summary

Questions

Further reading

Understanding the Infrastructure behind Solutions Built in Azure

Technical requirements

Setting up your development environment

Managing cost

How I approach guidance

Understanding Infrastructure as Code

Developing locally

Infrastructure as Code

How I develop locally

Summary

Questions

Further reading

Developing Solutions the Right Way in Azure

Technical requirements

The developer journey

Let's talk about security

Honorable mention – security center

Application authentication

Let's talk Dependency Injection

Let's talk logging

Let's talk about data storage

Understanding service lifetimes

Adding Intelligence to your solutions

Using Application Insights

Leveraging on-premises resources

Summary

Questions

Further reading

Deploying Solutions to Azure

Technical requirements

Deploying solutions in Azure

What is DevOps?

Azure Boards

Azure Artifacts

Azure Pipelines

Azure Test Plans

How I use Azure DevOps

What are deployment slots?

How Azure helps with DevOps

Summary

Questions

Further reading

Putting It All Together

Technical requirements

Our journey

Dashboards

Azure Advisors

High Availability Advisor

Security Advisor/Security Center

Performance Advisor

Cost Advisor

Monitoring

Core capabilities

Shared capabilities

Infrastructure capabilities

Application capabilities

Advanced topics

What is Azure Front Door?

What is Azure confidential computing?

Quick tips on Azure estimating and cost control

Summary

Questions

Further reading

Best Practices to Make Your Life Easier in Azure

Tenant and subscriptions

Virtual machines (VMs)

Virtual networks

Azure App Services

Data stores

Azure Key Store

Azure Mobile

Summary

Questions

Further reading

Assessments

Chapter 1 – Getting Started with Azure

Chapter 2 – Moving Existing Apps to Azure

Chapter 3 – Building Solutions in Azure

Chapter 4 – Understanding the Infrastructure behind Solutions Built in Azure

Chapter 5 – Developing Solutions the Right Way in Azure

Chapter 6 – Deploying Solutions to Azure

Chapter 7 – Putting It All Together

Chapter 8 – Best Practices to Make Your Life Easier in Azure

Other Books You May Enjoy

Leave a review - let other readers know what you think

Preface

This book will focus on addressing the architectural decisions that usually arise when you are designing or migrating a solution to Microsoft Azure. It will start by designing the building blocks of infrastructure solution on Azure, such as Azure compute, storage, and networking, and will then explore the database options available in Microsoft Azure. You will get to grips with designing scalable web and mobile solutions and understand where to host your Active Directory/Identity solution. Moving on, you will find out how to extend your DevOps to Azure. You will benefit from some exciting services that enable extremely smooth operations and streamlined DevOps between on-premises and the cloud. The book will help you design a secure environment for your solution, whether on the cloud or hybrid. Toward the end, it will show you how to manage and monitor cloud and hybrid solutions. This book will arm you with all the tools and knowledge you need to properly plan and design your solution on Azure, whether it's a brand new project or a migration project.

Who this book is for

If you're an IT consultant, developer, or solutions architect looking to design effective solutions for your organization, this book is for you. Some knowledge of cloud computing will assist with understanding the key concepts covered in this book.

What this book covers

Chapter 1, Getting Started with Azure, covers the things that are important when getting started with Azure.

Chapter 2, Moving Existing Apps to Azure, includes lifting, shifting, or migrating the apps and understanding how to get the existing apps to Azure.

Chapter 3, Building Solutions in Azure, covers the things you need to know about building and developing solutions in Azure.

Chapter 4, Understanding the Infrastructure behind Solutions Built in Azure, explains how to leverage ARM templates and infrastructure-as-code, and helps with adopting standards to provide guidance on resource usage in Azure.

Chapter 5, Developing Solutions the Right Way in Azure, explains how to develop solutions in Azure, things you have to trust, guidance on selecting the type of resources to develop, and explains how to leverage application insights in your application development to help with application monitoring and support.

Chapter 6, Deploying Solutions to Azure, covers the things you need to know about deploying solutions in Azure.

Chapter 7, Putting it All Together, includes monitoring and supporting applications and troubleshooting issues.

Chapter 8, Best Practices to Make Your Life Easier in Azure, includes some best practices and tips on making your life easier in Azure and covers development practices in connection with dashboards and monitoring.

To get the most out of this book

Some basic knowledge of cloud computing would come in handy. A knowledge of other Azure services would be a bonus.

Download the example code files

You can download the example code files for this book from your account at www.packt.com. If you purchased this book elsewhere, you can visit www.packt.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

Log in or register at

www.packt.com

.

Select the

SUPPORT

tab.

Click on

Code Downloads & Errata

.

Enter the name of the book in the

Search

box and follow the onscreen instructions.

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 https://github.com/PacktPublishing/Hands-On-Cloud-Solutions-with-Azure. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

We also provide a PDF file that has color images of the screenshots/diagrams used in this book. You can download it here: https://www.packtpub.com/sites/default/files/downloads/9781786468659_ColorImages.pdf.

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "The parameters are the input to the template and are the values that are provided by the parameters file."

A block of code is set as follows:

{

"$schema"

:

"http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#"

,

"contentVersion"

:

""

,

"parameters"

: { },

"variables"

: { },

"functions"

: { },

"resources"

: [ ],

"outputs"

: { }}

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

Login-AzureRmAccount

Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "Enter an App Name, Subscription, Resource Group Name, and Database Provider to Azure Database for MySQL."

Warnings or important notes appear like this.
Tips and tricks appear like this.

Get in touch

Feedback from our readers is always welcome.

General feedback: Email [email protected] and mention the book title in the subject of your message. If you have questions about any aspect of this book, please email us at [email protected].

Errata: Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you have found a mistake in this book, we would be grateful if you would report this to us. Please visit www.packt.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details.

Piracy: If you come across any illegal copies of our works in any form on the internet, we would be grateful if you would provide us with the location address or website name. Please contact us at [email protected] with a link to the material.

If you are interested in becoming an author: If there is a topic that you have expertise in, and you are interested in either writing or contributing to a book, please visit authors.packtpub.com.

Reviews

Please leave a review. Once you have read and used this book, why not leave a review on the site that you purchased it from? Potential readers can then see and use your unbiased opinion to make purchase decisions, we at Packt can understand what you think about our products, and our authors can see your feedback on their book. Thank you!

For more information about Packt, please visit packt.com.

Getting Started with Azure

In this chapter, we will learn how to set up our virtual organization called the tenant, understand how to access it, and what elements make up our Azure experience. We will learn the differences and boundaries between a tenant, subscription, and resource groups. Then, we will cover how to leverage the marketplace to provide quick solutions through the portal and understand common terminology.

In this chapter, we will be covering the following topics:

Getting started with Azure

How I started using Azure

Understanding the role of the marketplace in Azure

Common Azure terminology used when using the portal

Technical requirements

There are no technical requirements for this chapter, but these are important links you should review:

Azure portal:

https://portal.azure.com/

Azure Resource Limits: 

https://docs.microsoft.com/en-us/azure/azure-subscription-service-limits

Azure Pricing Calculator: 

https://azure.microsoft.com/en-us/pricing/calculator/

Azure Connect: 

https://docs.microsoft.com/en-us/azure/active-directory/connect/active-directory-aadconnect

Azure Active Directory Pricing: 

https://azure.microsoft.com/en-us/pricing/details/active-directory/

Azure Marketplace Labs:

https://azuremarketplace.microsoft.com/en-us/marketplace/?source=datamarket

Private Cloud:

https://azure.microsoft.com/en-us/overview/what-is-a-private-cloud/

What is cloud computing?

It is the delivery of computer services over the internet to assist with resource flexibility, scale, and innovation. These services include servers/VMs, physical storage, data repositories, networking resources, analytics, software, and more. These services are offered at a much smaller pay-for-use model than physical data centers and organizations generally migrate to the compute service model for the following reasons:

Global

allows an organization to scale elastically and allow regional entry points, providing a more consistent experience for their user base

Speed

allows the faster provision of resources and helps release pressure on capacity planning because it removed the need to order and wait for resources

Cost

is simplified into a pay-as-you-go model, removing the capital expense over the physical resources

Security

is provided through an extensive set of policies and controls that strengthen your overall security posture

Productivity

is increased by removing a significant number of tasks, such as hardware setup, patching, and other operational management chores

Performance

is achieved through worldwide distribution of services and is regularly updated to the latest generation of computing hardware

Cloud computing comes in private, public, and hybrid types, with each offering its own benefits:

Public clouds

are generally owned by third parties such as Amazon, Microsoft, and Google, who control all the supporting infrastructure, hardware, and software

Private clouds

are owned by a business and maintained on a private network

Hybrid clouds

are combinations of public and private, as well as on-premise resources

But at the end of the day, what problems do clouds solve? Let’s understand this in the following section.

What problems does it solve?

The biggest benefit of the cloud is it allows organizations to expand without a large capital cost, and also allows new/small businesses to shrink their startup or capital into a pay-as-you-go model. The cloud allows for innovation to happen without the traditional fears of infrastructure purchases, giving the ability to bring up and tear down in a rapid and cost effective way with little concern for the infrastructure needed.

Think of it as an unlimited playground where the only true limit is your imagination. You can now build, migrate, or rebuild your applications, so you truly only have to worry about the application and not about everything around it. So, the problem it solves is allowing your organization to scale faster, while controlling cost and offline responsibilities to help streamline IT operations.

The cloud targets not only development but operational resources, allowing you to focus on the things that truly matter to an organization. It fosters increased communication between all facets of the organization, from requirement gathering to automated deployment and testing. Let’s take a look at Microsoft’s cloud solution, Azure.

What is Azure?

Azure is Microsoft’s cloud offering, which comes in private, on-premise (Azure Stack), government, and public versions (refer to this link for further details https://azure.microsoft.com/en-us/overview/what-is-a-private-cloud/). It was announced on October 2008, released on February 2010, and is the next evolution of virtualization. The magic of Azure is built on top of a technology called Service Fabric and Fabric controllers; it works as a distributed application system that handles the allocation of servers or services, monitors the health of these, and heals them as needed. Each Fabric Controller orchestrates all the resources needed within the Azure platform. All the network resources and servers have been abstracted out of your view and there is no longer a need to support and maintain these resources. This will create what is referred to as a closed ecosystem, and Azure offers its services in this closed ecosystem for mass consumption. This closed ecosystem allows its consumers to not have to worry about the underlying technology and, in most cases, the operating system needs to support that technology. This has helped in abstracting away the need to support the many facets of technology in today's organizations.

As I grew up in the development world, I had to learn firsthand how frameworks moved the line of responsibility. In the development of applications, this leads to some uncomfortable moments as I had to learn to adjust to these new lines. This learning process allowed me to focus more on the application I was developing and less on how each piece needed to be integrated with the underlying system. New frameworks such as the Entity Framework for database integration or the Windows Identity Framework