不确定是否有办法做到这一点,但我想查看之前运行的 yaml 管道中的参数,以便我可以看到管道运行时输入或选择的内容。那可能吗?我发现的唯一解决方法是根据每个参数添加标签。
如何在多个阶段拥有相同的托管代理?例如。在一个阶段构建解决方案,然后在另一阶段针对这些构建文件运行测试。无需将构建文件发布到工件。
我试图使用对象的变量列表来定义值的类型和默认值,并在动态块中使用它。我知道有一个实验性功能,但只是想知道如果没有实验性功能我将如何做到这一点?
\n变量.rf
\nvariable "identity" {\n type = list(object({\n type = string\n identity_ids = list(string)\n }))\n default = [\n {\n type = null\n identity_ids = null\n }\n ]\n}\n
Run Code Online (Sandbox Code Playgroud)\n主.tf
\nresource "azurerm_cognitive_account" "azure" {\n # Required\n name = var.name\n location = var.location\n resource_group_name = var.resource_group_name\n kind = var.kind\n sku_name = var.sku_name\n\n dynamic "identity" {\n for_each = var.identity\n content {\n type = identity.value.type\n identity_ids = identity.value.identity_ids\n }\n }\n}\n
Run Code Online (Sandbox Code Playgroud)\n作为模块使用
\nmodule "cognitive_account" {\n source = "../modules/cognitive-account"\n name = …
Run Code Online (Sandbox Code Playgroud) 我可以看到有一项将本地文件上传到 Azure 存储或 VM 的任务。但是我们如何从 blob 或文件共享下载到管道代理中呢?目前我正在使用带有 SAS URI 的 azcopy。Pipelines 中是否有一项任务可以使用服务连接来执行此操作?