gpt4 book ai didi

Azure 资源管理器模板 : Is there a way to get resourceId with a regular expression representing resource name?

转载 作者:行者123 更新时间:2023-12-03 04:08:41 25 4
gpt4 key购买 nike

我想知道是否有一种方法可以获取名称与另一个订阅中的正则表达式匹配的资源ID。原因是在部署过程中会生成随机后缀并将其附加到资源名称中,因此事先不知道资源名称。我知道resourceId()如果资源名称已知,函数可以为您提供资源 ID。

最佳答案

您可以通过使用先前模板的输出作为新模板的输入来实现此目的:

Azure ARM templates - using the output of other deployments

以下是如何在 Azure DevOps 中实现此目的:

How do I use ARM 'outputs' values another release task?

关于Azure 资源管理器模板 : Is there a way to get resourceId with a regular expression representing resource name?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58159398/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com