我正在使用扩展模板,并且我想在其中使用另一个模板仅用于参数。但我不能,我不确定语法是否错误。收到此错误:/templatetest.yml(行:8,列:1):意外值“模板”
#This is in parameter file in separate repo .policyparams.yml
parameters:
- name: runPerfTests
type: boolean
default: false
Run Code Online (Sandbox Code Playgroud)
resources:
repositories:
- repository: MSLearnDocker
type: git
name: AzureCoreApp/MSLearnDocker
ref: refs/heads/master
template: policyparams.yml@MSLearnDocker
stages:
- stage: Build
displayName: Build
jobs:
- job: Build
steps:
- script: echo running Build
- stage: UnitTest
displayName: Unit Test
dependsOn: Build
jobs:
- job: UnitTest
steps:
- script: echo running UnitTest
- ${{ if eq(parameters.runPerfTests, true) }}:
- stage: PerfTest
displayName: Performance Test
dependsOn: Build
jobs: …Run Code Online (Sandbox Code Playgroud) 鉴于 azure 应用程序服务设置是在 azure 门户中完成的,并且除了服务连接之外,还设置了 azure devops 管道。有没有办法使用基于 Arm 模板的基础设施 yaml 管道来自动创建服务连接?我们想要运行此管道并更新用户 yaml 管道中的服务连接。