获取独立手臂模板的输出VAR
有没有办法在不使用PowerShell的情况下获取独立ARM模板的当前值,而无需诉诸于运行AZ部署组创建
?
独立的意味着手臂模板与任何其他手臂模板没有链接。取而代之的是,独立的臂模板仅在独立的基础上进行一次。
我们的要求是我们不使用Powershell或其他依赖关系。
我们正在寻找相当于Terraform输出
但用于ARM模板的东西。
鉴于有一种方法可以使用PowerShell进行此操作,因此必须还有其他一些简单的方法。也许使用CLI,或者使用一些自定义功能。
Is there 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
部署已经运行了吗?
您知道部署的名称吗?
如果是这样,您应该能够使用:
AZ部署组显示
https://learn.microsoft.com/en-us/cli/azure/deployment/group?view= azure-cli-cli-latest#az-deployment groump-show
https:///blog.johnnyreilly。 com/2021/12/28/azure-cli-show-show-Query-output-properties
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://learn.microsoft.com/en-us/cli/azure/deployment/group?view=azure-cli-latest#az-deployment-group-show
https://blog.johnnyreilly.com/2021/12/28/azure-cli-show-query-output-properties
必须链接模板才能产生输出。
只是嵌套模板不会产生输出,如果尝试引用它,您将获得错误:
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: