Upload
winwire-technologies-inc
View
234
Download
2
Embed Size (px)
Citation preview
Azure Resource Manager Templates
Notes:
If you experience audio issues during the webinar, you can dial in through telephone details provided to you in your
registration confirmation email.
Please feel free to post questions in the questions dialog and we will try to answer as many as we can at the end.
Recording of this session will be shared in next 24-48 hours.
You can also write to us at [email protected] for any clarifications or information.
Session Speaker
Amit DubayDirector – Cloud & Mobility
WinWire Technologies
Microsoft Azure Certified Developer
Sai Gunaranjan
Technical Architect
WinWire Technologies
Microsoft Specialist in• Implementing Microsoft Azure Infrastructure
Solutions
• Architecting Microsoft Azure Solutions
Agenda
Demo
Deployment Options
Benefits of ARM
Introduction to Azure Resource Manager (ARM)
Q & A
1
2
4
5
6
Authoring ARM Templates3
Introduction to Azure Resource Manager
It was first announced at Build 2014 and is the currently the preferred
method for deployment of resources on Azure.
• Provides a new way to deploy and manage solutions, as a
group.
• Deployment of resources, can be an coordinated operation
using JSON based template know as ARM Templates
The Azure Resource Manager (ARM) is the service used to provision
resources in your Azure subscription.
Introduction to Azure Resource Manager
ARM Accessible via Azure Stack
• Azure PowerShell
• Azure CLI for Linux, Mac &
Windows
• Azure Portal
• REST API
• Comes in inbuilt support for ARM
• Same templates & commands
works on Public & Private Cloud
instances.
Benefits of Azure Resource Manager
1 Prevent deletion/modification of resources using resources Locks
2 Role-Based Access Control (RBAC) is natively integrated
3 Deploy, manage, and monitor all of the resources
4Declarative templates
5 View rolled-up costs for the entire group or for a group of resources
6 Enables to group & manage multiple resources as a single logical group
7 Repeatedly deploy solutions, throughout the development lifecycle
8 Set sequence of deployment by defining dependencies
Adoption of Azure Resource Manager
Azure SDK for .NET is
provided as a set of NuGet
Packages
SDK for .NET
The ARM Java SDK is hosted
in GitHub Azure Java SDK
repository
SDK for Java REST API
One or several calls to the
ARM’s RESTful API
Azure Resource Manager (ARM) Preview SDKs are available for multiple languages and platforms.
Each of these language implementations are available through their ecosystem package managers
and GitHub.
Authoring ARM Templates
Azure Subscription Visual Studio + Azure
SDK or Any text editorAzure PowerShell
Pre Requisites
Authoring ARM Templates
Plan Your Template
Resources types you need to deploy
Version of the resource provider API, you will use when deploying
the resources
Where those resources will
resideSequence of resource
deployment
Output of the
template
Declaration & definition of variables in the template
ARM Template contains the following elements.
Authoring ARM Templates
{
"$schema": "http://schema.management.azure.com/schemas /2015-01-01/deploymentTemplate.json#",
"contentVersion": “1.0.0.0",
"parameters": { },
"variables": { },
"resources": [ ],
"outputs": { }
}
Element Required Description
$schema Yes Location of the JSON schema file.
contentVersion Yes Version of the template.
parameters No Values provided during deployment execution.
variables No Internal variables
resources Yes Azure services deployed or updated in a resource group
outputs No Values that are returned after deployment
Deployment Options
Azure Portal Based Deployment Upload the JSON template into the portal for deployment
Azure PowerShellNew - AzureRmResourceGroupDeployment - Name DemoDeployment -
ResourceGroupName AzureDemo -TemplateFile C:\temp\azuredeploy.json
Azure CLIAzure group deployment create -f azuredeploy.json -g AzureDemo - n
DemoDeployment
ARM REST APIhttps://management.azure.com/subscriptions/<YourSubscriptionId>/resourcegroups/<YourRes
ourceGroupName>/providers/Microsoft.Resources/deployments/<YourDeploymentName>?api
-version=2015-01-01
Click to Deploy Deploy templates directly from GitHub by clicking on the deploy icon on the
template
Visual Studio Directly deploy resource groups & resources from visual studio
Demo
Q & A
Next Webinar
Topic : DevOps and Visual Studio Team Services
When: June 29 at 9am PDT
http://www.winwire.com/blog-winsights/
www.twitter.com/winwire
www.winwire.com