1 / 27

Automation tools for Azure infrastructure

Automation tools for Azure infrastructure. Aleksandar Nikolić | Microsoft MVP. BRK3266. Agenda. Azure PowerShell Azure CLI 2.0 ARM Templates Azure Building Blocks Terraform Ansible. PS> whoami. Aleksandar Nikolić PowerShell and Azure trainer Microsoft Azure MVP

maryt
Télécharger la présentation

Automation tools for Azure infrastructure

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Automation tools for Azure infrastructure Aleksandar Nikolić | Microsoft MVP BRK3266

  2. Agenda Azure PowerShell Azure CLI 2.0 ARM Templates Azure Building Blocks Terraform Ansible

  3. PS> whoami Aleksandar Nikolić PowerShell and Azure trainer Microsoft Azure MVP Cloud and Datacenter Management MVP Co-founder of PowerShellMagazine.com @alexandair

  4. What do we want to accomplish? A management in a consistent manner at scale Some form of automation is desired Automate the complete Azure infrastructure deployment and management lifecycle

  5. Infrastructure automation tools Automate the configuration of VMs Automate infrastructure management Automate application deployment and delivery Azure PowerShell Azure CLI 2.0

  6. Automate the configuration of VMs Ansible, Chef, and Puppet Desired State Configuration (DSC) VM customization for Linux VMs cloud-init VM customization for all Azure VMs Azure Custom Script Extension and Run Command

  7. Automate infrastructure management The infrastructure build process ARM templates Azure Building Blocks Terraform Custom VM image builds Packer Actions across your Azure and on-premises infrastructure Azure Automation

  8. How to use them Locally PowerShell console or some other shell Windows Subsystem for Linux (WSL) Azure Cloud Shell Visual Studio Code Docker containers

  9. Azure PowerShell AzureRM, a set of modules that use the ARM model PowerShell Gallery or GitHub repo (.msi) Az, a set of modules run on top of Windows PowerShell/PowerShell Core Azure Cloud Shell

  10. Demo Azure PowerShell

  11. Azure CLI 2.0 Command-line experience for managing Azure resources Install it on macOS, Linux, and Windows Azure Cloud Shell az interactive Run it in a Docker container (Linux) docker run -it microsoft/azure-cli

  12. Demo Azure CLI 2.0

  13. ARM Template Deployment of resources using templates Resources are JSON objects Customize the deployment parameterizing some of the property values Very powerful; deploy large and complex architectures Authoring is not for the faint of heart

  14. Demo ARM Templates

  15. Azure Building Blocks A tool for deploying Azure infrastructure based on proven practices A CLI tool (azbb) and set of pre-built ARM templates Requires Azure CLI 2.0 Deployment workflow: Specify settings for using the Building Blocks JSON schema azbb merges these settings with best practice defaults Produce a set of parameter files azbb deploys these parameter files using a set of pre-built ARM templates

  16. Azure Building Blocks (a picture is worth a thousand words) Source: https://github.com/mspnp/template-building-blocks/wiki/overview

  17. Demo Azure Building Blocks

  18. HashiCorp Terraform Allows you to define and create an entire Azure infrastructure An open source tool that codifies APIs into declarative configuration files Installed and immediately available for you to use in Cloud Shell Microsoft-published Terraform instance on Linux in the Azure Marketplace Terraform and Azure Terraform extensions for Visual Studio Code

  19. Demo Terraform

  20. Ansible An automation engine for configuration management, VM creation, or app deployment Uses an agent-less model Authenticates and manages target machines using the SSH keys Configuration tasks are defined in Ansible playbooks

  21. Demo Ansible

  22. Summary Imperative, ad-hoc cross-platform scripting Azure PowerShell and Azure CLI Deployment using a declarative model is the real deal ARM templates, Terraform, Ansible, and Building Blocks (infrastructure management) Chef, Puppet, Ansible, and DSC (VM configurations) Use Azure Cloud Shell within Visual Studio Code

  23. Infrastructure as code + configuration as code for the win!

  24. Thank you!

  25. Please evaluate this sessionYour feedback is important to us! Please evaluate this session through MyEvaluations on the mobile appor website. Download the app:https://aka.ms/ignite.mobileApp Go to the website: https://myignite.techcommunity.microsoft.com/evaluations

More Related