Closed rjmholt closed 3 years ago
Settled on this in https://github.com/PowerShell/PSArm/pull/76.
The experience is that files use the .PSArm.ps1
extension and Publish-ArmTemplate -Path <path>
runs on those files (or directories, recursively), executing the scripts and collecting the results to instantiate as a nested ARM template to be deployed with the chosen tool.
Key questions:
Arm
keyword simply define a declaration, or should it emit a template to a file? Should we need to assign it to a variable to use or should we lean on convention to make it just do the right thing?.arm.ps1
file extension?New-AzResourceGroupDeployment