Azure Building Blocks: Simplifying Resource Deployment
Important Note: Version 2.1.1 of Azure Building Blocks introduced breaking changes to versions earlier than 2.0.4. Versions earlier than 2.0.4 will no longer function. Please upgrade to version 2.0.4 or greater to continue using Azure Building Blocks.
The Azure Building Blocks project is a command line tool and set of Azure Resource Manager templates designed to simplify deployment of Azure resources. Users author a set of simplified parameters to specify settings for Azure resources, and the command line tool merges these parameters with best practice defaults to produce a set of final parameter files that can be deployed with the Azure Resource Manager templates.
Install the Azure Building Blocks using npm:
npm install -g @mspnp/azure-building-blocks
Verify the version of azure building blocks you are running using the command below. Make sure you are running version 2.0.4 or later.
Full documentation for the command line tool and parameter file schema is available on the Wiki.
Azure Building Blocks parameters to deploy three identical VMs:
The command line tool merges best practice defaults to the parameters as follows:
- Enables diagnostics on all VMs
- Deploys the VMs in an availability set
- All VM disks are managed
- OS is latest Windows Server 2016 image
- Public IP created for each VM
To add a scaleset with three identical VMs:
The list below shows changes introduced with the latest versions.
- Fixed minor bugs
- Introduced a more rigorous versioning scheme
- Introduced breaking changes to versions less than 2.0.4
- Added standalone load balancer building block
- Added standalone application gateway building block
- Changes to VM building block to allow use of pre-existing load balancer and application gateway
- Added support for 'single-step' disk encryption to VM building block
- Fixed bug on internal load balancer
- Added support for 'custom data' to VM building block