After ensuring that the ARM template has no errors, it's time to execute the template and provision environment along with the application deployment. This script is very similar to Test-ARMTemplate.ps1
. It takes the same parameters but instead of testing the template, this script starts the actual deployment process using the New-AzureRmResourceGroupDeployment
cmdlet. This script is executed from the release pipeline. The entire script is shown here.
param( [string] $ARMTemplatePath, [string] $ARMTemplateParametersPath, [string] $resourceGroupName, [string] $OMSWorkspaceName, [string] $skuName , [string] $deploymentName, [string] $pullserverRegKey, [string] $pullserverPort, [string] $webAppPort, [string] $deployLocation, [string] $wsResourceGroup, [string] $containerName ) New-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName...