Microsoft Azure Infrastructure as a Service Iaa S

  • Slides: 25
Download presentation
Microsoft Azure: Infrastructure as a Service (Iaa. S)

Microsoft Azure: Infrastructure as a Service (Iaa. S)

Module 2 - Azure Resource Manager (ARM) Overview

Module 2 - Azure Resource Manager (ARM) Overview

Benefits of Azure Resource Manager (ARM) • • • Desired-state deployment Faster deployments Role-based

Benefits of Azure Resource Manager (ARM) • • • Desired-state deployment Faster deployments Role-based access control (RBAC) Resource-provider model Common interface for Azure and Azure Stack

ARM Definitions • Resource - Atomic unit of deployment • Resource group - Collection

ARM Definitions • Resource - Atomic unit of deployment • Resource group - Collection of resources • Resource provider - Manages specific kinds of resources • Resource type - Specifies the type of resource

Resource Groups A Resource Group is a Unit of Management • • • Application

Resource Groups A Resource Group is a Unit of Management • • • Application Lifecycle Containment – Deployment, update, delete and status Declarative solution for Deployment – “Config as Code” Grouping – Metering, billing, quote: applied and rolled up to the group Consistent Management Layer Access Control – Scope for RBAC permissions

Azure Resource Groups • Tightly coupled containers of multiple resources of similar or different

Azure Resource Groups • Tightly coupled containers of multiple resources of similar or different types • Resource groups can span regions RESOURCE GROUP • Every resource *must* exist in one and only one resource group

Resource Group Lifecycle Question: Should these resources be in the same group or a

Resource Group Lifecycle Question: Should these resources be in the same group or a different one? Hint: Do they have common lifecycle and management? Answer: It’s up to you.

Organizational Concepts Resource groups Tags • Tightly coupled to a container of resources •

Organizational Concepts Resource groups Tags • Tightly coupled to a container of resources • Loosely coupled user or system defined categorization • Follows RBAC rules • Arbitrary boundaries • 1 resource group at a time • 15 tags to use as needed Resource groups and tags are the building blocks from which users define applications.

Deployment Templates SQL-A Website What? Instantiation of repeatable config. Configuration Resource Group [SQL CONFIG]

Deployment Templates SQL-A Website What? Instantiation of repeatable config. Configuration Resource Group [SQL CONFIG] VM (2 x) • Source file, can be checked-in • Specifies resources, dependencies and connections • Parameterized input/output DEPENDS ON SQL Why? • Ensure Idempotency SQL - A • Simplify orchestration • Provide cross-resource configuration and update support SQL CONFIG Website Virtual Machines

Demo: Resource Groups and Templates

Demo: Resource Groups and Templates

Module 2 - Azure Resource Manager (ARM) Resource Providers

Module 2 - Azure Resource Manager (ARM) Resource Providers

Resource Providers • Used to deploy specific types of resources • Identified by provider

Resource Providers • Used to deploy specific types of resources • Identified by provider namespace • e. g. , Microsoft. Compute, Microsoft. Storage, Microsoft. Web (~25 Microsoft or Customer namespaces) • Resource types • • Each provider namespace manages one or more resource types: e. g. , virtual. Machines Different regional availability and api. Versions • Power. Shell • • Get-Azure. Location Get-Azure. RMResource. Provider

Resource Provider Types (examples) Resource Type Usage Microsoft. Compute/virtual. Machines Virtual Machines (VMs) ~

Resource Provider Types (examples) Resource Type Usage Microsoft. Compute/virtual. Machines Virtual Machines (VMs) ~ (V 2) Microsoft. Storage/storage. Accounts Storage accounts (V 2) Microsoft. Compute/availability. Sets Microsoft. Network/network. Interfaces Virtual network interface card (NIC) Microsoft. Network/load. Balancers Azure Load Balancer or Internal Load Balancer Microsoft. Network/virtual. Networks Virtual networks (V 2) Microsoft. Classic. Storage V 1 storage – not managed by ARM Microsoft. Classic. Compute V 1 VMs – not managed by ARM Many more!

How do I know what resources providers are available?

How do I know what resources providers are available?

How can I see what Resource Providers are in use in my subscription? https:

How can I see what Resource Providers are in use in my subscription? https: //resources. azure. com

Resource Definition • Name • Unique for resource group and resource type (e. g.

Resource Definition • Name • Unique for resource group and resource type (e. g. , Microsoft. Compute/virtual. Machines) • Id • • Unique across Azure /subscriptions/GUID/resource. Groups/my. RG/providers/Microsoft. Compute/virtual. Machines/vm. Name • Location • Resource. Type • Resource. Group • Properties • Additional properties specific to the resource provider

Other Azure Resource Manager links https: //azure. microsoft. com/en-us/documentation/templates/ https: //github. com/Azure/azure-quickstart-templates http: //armviz.

Other Azure Resource Manager links https: //azure. microsoft. com/en-us/documentation/templates/ https: //github. com/Azure/azure-quickstart-templates http: //armviz. io http: //capturegroup. azurewebsites. net https: //code. visualstudio. com/ • Visual Studio Code Extensions: https: //marketplace. visualstudio. com/VSCode *Capture group requires Org. Id sign in and is very sensitive

Module 2 - Azure Resource Manager (ARM) Tools

Module 2 - Azure Resource Manager (ARM) Tools

Tools typically used by IT with ARM

Tools typically used by IT with ARM

Visual Studio

Visual Studio

Template options

Template options

Files Generated by Template Power. Shell script for deployment JSON Template JSON Parameter file

Files Generated by Template Power. Shell script for deployment JSON Template JSON Parameter file

Demo: Visual Studio Deployment

Demo: Visual Studio Deployment

Troubleshooting Deployments Azure Portal Azure Resource Manager

Troubleshooting Deployments Azure Portal Azure Resource Manager