The aforementioned Azure Powershell files are now located here. The goal is to determine the relationship between the ARM, parameters, and Template files. We will review and take it from there. Yay!
One thought on “Azure Deployments With Powershell”
Comments are closed.
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