Writing the template
From Visual Studio, when Azure SDK is installed (2.9 at the time of writing this book), you have cloud templates under the Visual C# templates tree, and the Azure Resource Group project is available:
There are many predefined templates already available to handle some generic and common deployment scenarios with typical services deployed in combinations:
To better understand how it works, we start from a blank project template. The project constitution looks like this:
It contains:
azuredeploy.json
: This is the template itself.azuredeploy.parameters.json
: This contains the persistence of initial values for defined parameters (we'll describe them later).AzCopy.exe
: This is a common command-line utility to copy files from a local machine to an Azure storage account. This is useful if we want to deploy code from storage during this phase.Deploy-AzureResourceGroup.ps1
: This is a PowerShell script that runs a template against the subscription and deploys code from the solution...