One thought on “Azure Deployments With Powershell”

  1. I'm living this right now, actually. The biggest thing in the PS1 files is the New-AzureRmResourceGroupDeployment. That's what calls the template and params files. The ps1 I'm using actually reads the templates file into an @OptionalParameters object that is passed into the cmdlet.

    New-AzureRmResourceGroupDeployment -Name ($TemplateFile.Split('.')[0] + '-' + ((Get-Date).ToUniversalTime()).ToString('MMdd-HHmm')) ` -ResourceGroupName $ResourceGroupName ` -TemplateUri $templateUri ` @OptionalParameters ` -Force -Verbose ` -ErrorVariable ErrorMessages

Comments are closed.