Azure Building Blocks

I am pleased to announce that our team just released the second version of Azure Building Blocks! Here’s a quick description, summarized from our repo.

 

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

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:

“type”: “VirtualMachine”,

“settings”: {

“vmCount”: 3,

“osType”: “windows”,

“namePrefix”: “test”,

“adminPassword”: “testPassw0rd!23”,

“nics”: [{“subnetName”: “web”}],

“virtualNetwork”: {“name”: “ra-vnet”}

}

 

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

 

Do you want to add a scaleset? Just add one line to the parameters above:

 

“type”: “VirtualMachine”,

“settings”: {

“vmCount”: 3,

“osType”: “windows”,

“namePrefix”: “test”,

“adminPassword”: “testPassw0rd!23”,

“nics”: [{“subnetName”: “web”}],

“virtualNetwork”: {“name”: “ra-vnet”},

“scaleSetSettings”: {}

}

 

We are now in the process of updating all our reference architectures to use azbb.

Kaynak

telmo sampaio

Sr. Program Manager | CAT > Patterns & Practices

Office: +1 (425) 538-0931 | Cell: +1 (305) 903-5472