Azure ARM Templates CLD321 Aaron Saikovski

Slides:



Advertisements
Similar presentations
Andrew Hennessy Automating Server Application migrations to the Cloud – Goodbye Server INF21 3.
Advertisements

Kevin Francis Developing on Windows Devices ARC33 2.
Jessica Payne Microsoft Global Incident Response and Recovery
Mike James Building a cross-platform pedometer app with Xamarin & Azure MOB334.
James Bannan Freddy vs JSON: Azure Resource Manager CLD44 3.
Nick Application Development for the Universal Windows Platform MOB225.
Alec Tucker An Introduction to Cross Platform Native App Development using Xamarin to Develop, Test and Monitor MOB227.
Orin Thomas 30 Bad Habits of Server Administrators INF32 3.
Kevin Francis Big Building Blocks – a tour of Dynamics ARC323 A.
Joe Clancy Deployment Lifecycles and New Policy Features with the Azure Resource Manager ARC22 1.
James Bannan The Cloud That Chuck Norris Built: Resilient Architecture in Azure ARC44 3.
A deep dive into Azure AD B2C
3 Ways to Integrate Business Systems to Partners
Serverless in Office 365 Build services with Azure Functions
Microsoft Ignite /5/ :32 AM
1/27/2018 5:13 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Making of the Ignite Bot
What's New in System Center Configuration Manager, Current Branch and Intune INF324a Steven Hosking.
Building ARM IaaS Application Environment
30 Tips and Tricks for Managing and Running Ubuntu/Bash/Windows Subsystem for Linux WIN321B Orin Thomas.
Deploying Complex and Large Scale Azure Environments –
Introduction to ASP.NET Core
The Zen of Package Management
Power BI for the Enterprise
Microsoft Virtual Academy
Conversation As a Platform - Part 1
Accelerate Windows 10 deployments through telemetry driven insights using Upgrade Analytics WIN321a Zach Dvorak.
Now, let’s implement/trial Windows Defender Advanced Threat Protection
Deploying Linux on Microsoft Public and Private cloud
Building Business Application with Office 365 and Other Line Business Systems
Using Azure Key Vault for Encrypting and Securing your Cloud Workloads
Developing Hybrid Apps on Microsoft Azure Stack
Microsoft Ignite /19/2018 2:35 AM
Need for Speed: Why Applications With No Database and No Services are Fast ARC334 Nick Randolph – Built to Roam.
Mastering Connectivity to O365
Building a Continuous Delivery Pipeline for ASP.NET Core Apps
Jenkins and Azure OPEN322 Michael Friedrich.
Microservices, Docker, .NET, Windows, Linux, Azure. Oh, My!
7/19/2018 9:40 PM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Microsoft Virtual Academy
Darren Neimke and Jonathan Ruckert
Microsoft Build /12/2018 2:41 PM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY,
Build vNext in VSO and TFS 2015
What’s new in Visual Studio in 2015?
"SessionTitle": "Infrastructure as Code"
Microsoft Edge for Developers
Rob Farley, LobsterPot Solutions
11/27/2018 4:20 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Twenty Windows Tools You Never Knew Existed
Application Insights:
12/5/ :36 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN.
Modern cloud PaaS for mobile apps, web sites, API's and business logic apps
Bare Metal Development for the Universal Windows Platform
Securely pass passwords into your deployment
Jeff Hollan / Kevin Lam Program Manager / Principal Program Manager- Microsoft Bringing Logic Apps into DevOps with Visual Studio and monitoring.
Microsoft Ignite /2/2019 1:15 AM Power Up Your Cross Platform Mobile Code with Platform Specific Features using Xamarin Alec Tucker MOB331 © 2015.
Microsoft Connect /17/2019 9:55 PM
The Power of a Great API Damian Brady
What is Visual Studio Code?
Deep Dive into Azure API Apps and Logic Apps
Microsoft Azure Managing Users & Resources with Azure Resource Manager
Tech Ed North America /12/2019 6:45 AM Required Slide
Jonathan Ruckert & Darren Neimke
UI test automation of MVC apps with Microsoft Edge WebDriver
Chris Henley & Ben DiQual
Empower your users with Azure Active Directory Premium
Microsoft Virtual Academy
Securing ASP.NET in an Azure Environment
Presentation transcript:

Azure ARM Templates - 101 CLD321 Aaron Saikovski Microsoft Ignite 2016 12/12/2017 6:34 AM Azure ARM Templates - 101 CLD321 Aaron Saikovski Specialist Solution Architect – Microsoft Cloud Technologies Rackspace Australia © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Agenda Intros History Anatomy Demo – “Hello World” 12/12/2017 6:34 AM Agenda Intros History Anatomy Demo – “Hello World” Building and deploying Tips and Tricks Demo – Deploying a complete stack Questions © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12/12/2017 6:34 AM About me © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12/12/2017 6:34 AM Some History © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

History Microsoft Ignite 2016 12/12/2017 6:34 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12/12/2017 6:34 AM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Anatomy of an ARM template 12/12/2017 6:34 AM Anatomy of an ARM template © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Blank ARM Template { "$schema": "http://schema.management.azure.com/ 12/12/2017 6:34 AM { "$schema": "http://schema.management.azure.com/ schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "", "parameters": { }, "variables": { }, "resources": [ ], "outputs": { } } © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Blank ARM Template – Parameter File "parameters": { "<parameter-name>" : { "type" : "<type-of-parameter-value>", "defaultValue": "<default-value-of-parameter>", "allowedValues": [ "<array-of-allowed-values>" ], "minValue": <minimum-value-for-int>, "maxValue": <maximum-value-for-int>, "minLength": <minimum-length-for-string-or-array>, "maxLength": <maximum-length-for-string-or-array-parameters>, "metadata": { "description": "<description-of-the parameter>" } © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Demo “HelloWorld” ARM Template Deployment Microsoft Ignite 2016 12/12/2017 6:34 AM Demo “HelloWorld” ARM Template Deployment © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Building and Deploying 12/12/2017 6:34 AM Building and Deploying © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Building your own templates 12/12/2017 6:34 AM Building your own templates Active Online community Shared repositories -> GitHub, Quickstart Visual Studio tools help get you started Seek out an expert at Microsoft Ignite 2017  Useful Links: https://github.com/Azure/azure-quickstart-templates https://azure.microsoft.com/en-us/resources/templates/ © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Visual Studio Tools JSON Outline view Ready to go templates 12/12/2017 6:34 AM JSON Outline view Ready to go templates © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

It’s free and cross platform! Visual Studio Code 12/12/2017 6:34 AM It’s free and cross platform! © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Building your own templates 12/12/2017 6:34 AM Building your own templates ARM templates -> deploy -> redeploy Source control and versioning Deploy via Visual Studio or via PowerShell New-AzureRmResourceGroupDeployment -Name ((Get-ChildItem $templateFile).BaseName + '-' + ((Get-Date).ToUniversalTime()).ToString('MMdd-HHmm')) -ResourceGroupName $ResourceGroupName -TemplateFile $templateFile -TemplateParameterFile $parametersFile © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Deploying an ARM template via Visual Studio 12/12/2017 6:34 AM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Recap Lots of samples available Tooling is 1st class Microsoft Ignite 2016 12/12/2017 6:34 AM Recap Lots of samples available Tooling is 1st class Lots of options for deployment Start with existing and modify to suit Incremental deployment model © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

12/12/2017 6:34 AM Tips and Tricks © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Tips and Tricks ARM -> Resource Group ->Resources 12/12/2017 6:34 AM Tips and Tricks ARM -> Resource Group ->Resources Resource Location -> Different to Resource Group Standard Storage -> Premium Keep SDK and tools up to date © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Tips and Tricks..cont Use JSON Lint (http://jsonlint.com/) 12/12/2017 6:34 AM Tips and Tricks..cont Use JSON Lint (http://jsonlint.com/) Layer templates Set correct subscription $activesub = Get-AzureRmSubscription -SubscriptionId 'XXX-XXX-XXX-XXX' -TenantId 'XXX-XXX-XXX-XXX' $activesub | Set-AzureRmContext © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Tips and Tricks..cont 12/12/2017 6:34 AM $templateFile = "$basepath\storage-account\storageaccount.json" $params = @{storageAccountType="Standard_LRS";storageAccountCount=1;storageAccountSuffix="ign";environment="Test";buildDate="04/01/2017";buildBy="AaronS"} New-AzureRmResourceGroupDeployment -Name ((Get-ChildItem $templateFile).BaseName + '-' + ((Get-Date).ToUniversalTime()).ToString('MMdd-HHmm')) ` -ResourceGroupName $ResourceGroupName ` -TemplateFile $templateFile ` -TemplateParameterObject $params ` -Force © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Useful Links Visual Studio Code - https://code.visualstudio.com/ 12/12/2017 6:34 AM Useful Links Visual Studio Code - https://code.visualstudio.com/ Git Extensions - https://gitextensions.github.io/ Azure Storage Explorer: http://storageexplorer.com/ Azure Resource Explorer: https://resources.azure.com/ Azure Quickstart Templates: http://bit.ly/1IJvrkQ Best Practices Guide: http://bit.ly/2jGSEjg ARM Authoring Guide: http://bit.ly/2jGPqwc © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Recap Resources deployed to different region than Resource Group Microsoft Ignite 2016 12/12/2017 6:34 AM Recap Resources deployed to different region than Resource Group Keep tools up to date JSONLint fix JSON syntax -TemplateParameterObject via PowerShell © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Demo Building a complete stack Microsoft Ignite 2016 12/12/2017 6:34 AM Demo Building a complete stack © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Demo – Deploy a Single VM 12/12/2017 6:34 AM © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Recap Layered ARM Deployment Simple VM Deployment Microsoft Ignite 2016 12/12/2017 6:34 AM Recap Layered ARM Deployment Simple VM Deployment Incremental ARM Model Mix of Visual Studio and PowerShell Change VM Size via ARM Resource dependencies © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Session Recap Intros History Anatomy Demo – “Hello World” 12/12/2017 6:34 AM Session Recap Intros History Anatomy Demo – “Hello World” Building and deploying Tips and Tricks Demo – Deploying a complete stack © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Questions Microsoft Ignite 2016 12/12/2017 6:34 AM © 2016 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Continue your Ignite learning path 12/12/2017 6:34 AM Continue your Ignite learning path Visit Channel 9 to access a wide range of Microsoft training and event recordings https://channel9.msdn.com/ Head to the TechNet Eval Centre to download trials of the latest Microsoft products http://Microsoft.com/en-us/evalcenter/ Visit Microsoft Virtual Academy for free online training visit https://www.microsoftvirtualacademy.com © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Win a Spark After Dark drone pilot pass by completing your session evaluation ASAP  #MSAUIGNITE

12/12/2017 6:34 AM Thank you Chat with me in the Speaker Lounge Find me (@RuskyDuck72 or email: aaron.saikovski@rackspace.com) or at the Rackspace booth © 2014 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.