Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure...

26
Azure Master Class: Introduction To Azure ARM Templates

Transcript of Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure...

Page 1: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Azure Master Class:

Introduction To Azure ARM Templates

Page 2: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Expected Learning OutcomesAzure Master Class: Introduction To Azure ARM Templates

@tetranoodle

By the end of this section, you should be able to:

Understand basic cloud computing conceptsDescribe the Azure Resource ManagerDefine resource groups and resource providersOutline the basic structure of an ARM templateCreate an ARM templateInstall Visual Studio Code

Page 3: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

“Cloud computing is a kind of Internet-based

computing that provides shared processing

resources and data to computers and other devices on demand.”

- Wikipedia

@tetranoodle

Page 4: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

@tetranoodle

BenefitsOf Cloud Computing

Page 5: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Capex To Opex

Page 6: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

@tetranoodle

Agility

Page 7: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Flexibility

Page 8: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

@tetranoodle

GreenEnergy

Page 9: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Savings€

Page 10: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Growth

@tetranoodle

Page 11: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Infrastructure as a Service (IaaS), Providing Infrastructure hosting

Platform as a Service (PaaS), Providing framework services to IT directors

Software as a Service (SaaS), Providing software application service to end-users

@tetranoodle

Page 12: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Azure Resource Manager

What is ARM?Azure Masterclass: Introduction to ARM Templates

Web Apps

Storage AccountServers

Virtual Machine Virtual Network

3rd Party Services

@tetranoodle

Page 13: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Provides security and auditing capabilities

Supports multiple client SDKs

Based on JSON syntax

Support for pre-defined, structured templates

Define the resources to be deployed in Azure

@tetranoodle

Page 14: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

DeploymentTip

@tetranoodle

Page 15: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Basic TerminologyAzure Masterclass: Introduction to ARM Templates

Resource Provider

RM Template

Syntax

Resource Group

Resource

@tetranoodle

Page 16: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Benefits of using Azure Resource ManagerAzure Masterclass: Introduction to ARM Templates

Template-driven

Idempotent

Multi-service

Declarative

Multi-region Access control

Some of the key benefits of using the Azure Resource Manager are:

@tetranoodle

Page 17: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Basic Structure of an ARM TemplateAzure Masterclass: Introduction to ARM Templates

Here is the basic structure of an ARM template:

@tetranoodle

Page 18: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Basic Structure of an ARM TemplateAzure Masterclass: Introduction to ARM Templates

Schema

Content Version

Parameters

Variables

Resources

Output

Mandatory

Layout of ARM template

Defines ARM template design

Mandatory

Convenience and tacking

Not mandatory

Provides flexibility

Values provided with customized deployment

Not mandatory

Values used to simplify language expressions

Mandatory

Key component of ARM templates

Defines collection of resources

Not mandatory

Values returned after deployment

@tetranoodle

Page 19: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Sample ARM TemplateAzure Masterclass: Introduction to ARM Templates

If you take an empty resource template, it looks like this:

@tetranoodle

Page 20: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

ARM Templates In Azure DEMO

@tetranoodle@tetranoodle

Page 21: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Play Video

Page 22: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Tools for ARM TemplatesAzure Masterclass: Introduction to ARM Templates

You can use Azure to create ARM resources

Azure is useful, but may not be scalable

Use one of many available IDEs or tools to edit JSON templates

Visual Studio

Sublime TextVisual Studio Code

Notepad

@tetranoodle

Page 23: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Tools for ARM TemplatesAzure Masterclass: Introduction to ARM Templates

Visual Studio

Sublime TextVisual Studio

Code

Notepad

Can edit JSON templates

Limited functionality

Easy way to start

Automatically generates JSON for Resource groups you create

One of the best IDEs

Lightweight, loads fast

ARM package, quick authoring

Not very stable

Lacks in ARM authoring support

@tetranoodle

Page 24: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Install Visual Studio Code DEMO

@tetranoodle

Page 25: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

Play Video

Page 26: Azure Master Class: Introduction To Azure ARM Templates · Tools for ARM Templates Azure Masterclass: Introduction to ARM Templates You can use Azure to create ARM resources Azure

@tetranoodle