Wednesday, July 25, 2018

Azure Deployments With Powershell

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!

1 comment:

  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

    ReplyDelete