Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Visual Studio 2015 and Azure Resource Manager

Paul Hacker
December 06, 2016

Visual Studio 2015 and Azure Resource Manager

Does it take you days to deploy your infrastructure? In this session we are going to introduce you to Azure Resource Manager and demonstrate how we create Azure Resource Manager (ARM) templates using Visual Studio 2015 and then deploy the infrastructure in minutes. We are going to peek under the covers of the ARM templates to show you what is going on inside the template and why you should be implementing it today. We will look at the Azure portal and walk through the infrastructure we deployed. Lastly we will look at the Azure Resource Template Visualizer and show you a great way to use it to get you started with ARM template creation.

Paul Hacker

December 06, 2016
Tweet

More Decks by Paul Hacker

Other Decks in Technology

Transcript

  1. P re s e n t e d b y

    Visual Studio 2015 and Azure Resource Manager Templates Paul Hacker
  2. Resource Groups  Tightly coupled containers of multiple resources of

    similar or different types  Every resource *must* exist in one and only one resource group  Resource groups can span regions Resource Group
  3. Coupling for Resources Resource Group is a unit of management

     Lifecycle: deployment, update, delete, status  Grouping: metering, billing, quota: applied & rolled up to group
  4. Azure Templates Azure Templates can: Simplify Orchestration Ensure Idempotency Provide

    Cross-Resource Configuration and Update Support Azure Templates are: Source file, checked-in Specifies resources and dependencies (VMs, WebSites, DBs) and connections (config, LB sets) Parametized input/output SQL - A Website Virtual Machines SQL-A Website [SQL CONFIG] VM (2x) DEPENDS ON SQL DEPENDS ON SQL SQL CONFIG
  5. Deployment • Visual Studio tracks template execution • Created within

    a resource group • Released through RM or Visual Studio Resource Group
  6. Resource Extensions VM+DSC/Chef/Puppet/CustomScript/etc. AppService + WebDeploy SQL DB + BACPAC

    Copies Nested Templates NewOrExisting Patterns Advanced Template Scenarios
  7. Role Based Access Control • Allows secure access with granular

    permissions • Assignable to users, groups, or service principals • Built-in roles make it easy to get started
  8. Two Key Concepts Role Definitions • describes the set of

    permissions (e.g. read actions) • can be used in multiple assignments Role Assignments • associate role definitions with an identity (e.g. user/group) at a scope (e.g. resource group) • always inherited – subscription assignments apply to all resources
  9. Granular Scopes /subscriptions/{id}/resourceGroups/{name}/providers/…/sites/{site} subscription level – grants permissions to all

    resources in the sub resource group level – grants permissions to all resources in the group resource level – grants permissions to the specific resource
  10. Resource Locks •Accidents happen. Resource locks help prevent them :)

    •Resource locks allow administrators to create policies which prevent write actions or prevent accidental deletion.
  11. Key Concepts • Resource lock • Policy which enforces a

    "lock level" at a particular scope • Lock level • Type of enforcement; current values include CanNotDelete and ReadOnly • Scope: • The realm to which the lock level is applied. Expressed as a URI; can be set at the resource group, or resource scope.
  12. Many examples available @ https://github.com/Azure/azure-quickstart- templates More examples available @

    https://github.com/rjmax/ArmExamples Documentation available @ http://azure.microsoft.com/en- us/documentation/articles/resource-group-overview/ Deploy a template today!
  13. Getting Started Azure Resource Manager Overview Using Windows PowerShell with

    Resource Manager Using the Azure Cross-Platform Command-Line Interface with the Resource Manager Using the Azure Portal to manage your Azure resources Creating and Deploying Applications Authoring Azure Resource Manager Templates Deploy an application with Azure Resource Manager template Troubleshooting Resource Group Deployments in Azure Azure Resource Manager Template Functions Advanced Template Operations Organizing Resources Using tags to organize your Azure resources Managing and Auditing Access Managing and Auditing Access to Resources Authenticating a Service Principal with Azure Resource Manager Create a new Azure Service Principal using the Azure classic portal Next Steps
  14. Stay Connected If you have questions or would like more

    information, feel free to contact me via email [email protected] • www.agilethought.com • www. linkedin.com/company/AgileThought • @AgileThought