Archived from chef/arm-template-deploy
  • TypeScript 93%
  • JavaScript 7%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Clinton Wolfe 895ba8627a
Merge pull request #14 from chef/sm/redirect_contributors_inactive
CHEF-28750 - Create CONTRIBUTING.md file with inactive template
2026-01-15 16:36:40 -05:00
.vscode Initial checkin of module 2019-08-13 10:56:52 +01:00
lib Linting violation 2019-08-20 15:49:07 +01:00
scripts Added pipeline file for AzDo 2019-08-13 12:42:36 +01:00
.gitignore Added pipeline file for AzDo 2019-08-13 12:42:36 +01:00
azure-pipeline.yml Removed release stage from pipeline 2019-08-13 15:52:26 +01:00
CONTRIBUTING.md Create File with standard template 2025-12-12 10:36:16 +05:30
package-lock.json Added pipeline file for AzDo 2019-08-13 12:42:36 +01:00
package.json Added shebang line to allow NPM to correctly create necessary shim 2019-08-13 15:25:17 +01:00
README.md Added archive_note_to_readme 2025-12-12 14:52:32 +05:30
tsconfig.json Release only occurs on release branch 2019-08-13 14:41:27 +01:00
tslint.json Initial checkin of module 2019-08-13 10:56:52 +01:00

Archived Repository

This repository has been archived and will no longer receive updates. It was archived as part of the Repository Standardization Initiative. If you are a Chef customer and need support for this repository, please contact your Chef account team.

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