获取独立手臂模板的输出VAR

发布于 2025-02-09 23:14:17 字数 294 浏览 2 评论 0原文

有没有办法在不使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

笑脸一如从前 2025-02-16 23:14:17

必须链接模板才能产生输出。

只是嵌套模板不会产生输出,如果尝试引用它,您将获得错误:

不存在语言表达式属性'输出',可用属性是'模板,templatehash,参数,模式,debugsetting,provisioningState,valiverationLevel'。

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'.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文