Can someone please show a way to get the current values for a standalone ARM template without using PowerShell, and without resorting to running az deployment group create
?
Standalone means that the ARM template is NOT linked to any other ARM templates. Instead, a standalone ARM template is just run one-off on a standalone basis.
Our requirement is that we NOT use PowerShell or other dependencies.
We are looking for something that is equivalent to terraform output
but for ARM templates.
Given that there is a way to do this with PowerShell, there must be some other easy way. Perhaps using the CLI, or perhaps with some custom function.
CodePudding user response:
A template must be linked in order to produce outputs.
Just nested template doesn't produce outputs, you'll get an error if will try to reference it:
The language expression property 'outputs' doesn't exist, available properties are 'template, templateHash, parameters, mode, debugSetting, provisioningState, validationLevel'.
CodePudding user response:
Has the deployment already run? Do you know the name of the deployment?
If so you should be able to use:
az deployment group show
https://blog.johnnyreilly.com/2021/12/28/azure-cli-show-query-output-properties