Giter VIP home page Giter VIP logo

arm-template-deploy's Introduction

ARM Template Deploy

When developing ARM templates it is necessary to have a reliable repeatable way of deploying said templates. This is not so bad when one template is being developed, however it gets much more difficult if the template contains nested templates. This requires that the templates are accessible to Azure over a public URL.

Additionally there is the speed of deployment. If working with just one resource group then the work flow is:

  • create resource group
  • deploy templates
  • delete resource group
  • wait for resource group to delete
  • repeat

This can really slow down development time.

This NPM module aims to solve this by providing commands that assist with these work flows.

Build

The build command will gather up all the templates into a build directory and package them up as Zip files. This latter feature is useful when templates are being packaged up for the Azure Marketplace

Deploy

This command has two sub commands:

  • upload
  • deploy

The upload command uploads the built templates to the specified blob storage container.

The deploy command then deploys the templates from that blob storage container so that Azure is able to access them.

To assist with the speed up of deployment the deploy mechanism takes the name of the desired resource group (from the configuration file) and appends an incremental number to it. So the first time the deployment is run the group will have 1 appended. The second time it is run the previous resource group will be deleted asynchronously and the new group created and deployed to. Thus the workflow is now:

  • delete previous resource group
  • create new resource group
  • deployment templates to new resource group

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.