Variable Groups in Azure DevOps Pipelines

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ม.ค. 2025

ความคิดเห็น • 16

  • @gdgo6166
    @gdgo6166 ปีที่แล้ว +1

    thanks for saving my a$$, never thought i have to link variable group to my pipeline!

  • @youtubenewbie1012
    @youtubenewbie1012 ปีที่แล้ว +2

    Is there a way to prompt selection of variable group upon run instead of hard coding the single variable group?

  • @chetanesque158
    @chetanesque158 2 ปีที่แล้ว +1

    what if you have more than one variable group? That is an obvious question which you missed

  • @shreyasbhisikar9413
    @shreyasbhisikar9413 2 ปีที่แล้ว

    Can you use single variable group across all Azure Devops project ?

  • @ahmadkarim7249
    @ahmadkarim7249 2 ปีที่แล้ว

    Nice Video, I have a question if you can answer me, I have created a variable group named DEV and have a variable insdie DEV group is "connectionstring". In azure repo I have a file called .env, I want to store the value of a "connectionstring" variable into .env. How can I do this?

  • @RifatErdemSahin
    @RifatErdemSahin 2 ปีที่แล้ว

    Great video mate > how to i automate this creation process and does it make sense to run it and always link it to the key vault values?

  • @ganeshkeerthi9257
    @ganeshkeerthi9257 ปีที่แล้ว

    Nice video and clear explanation

  • @zENMYx
    @zENMYx 6 หลายเดือนก่อน

    Great.. but there's no real explanation on how do set different variables for different branches. Its all set statically within the YAML itself. This was also of help, thanks!

    • @zENMYx
      @zENMYx 6 หลายเดือนก่อน

      I was able to achieve this by setting the value within our variable group as a specific branch name then using $[variables[variables['Build.SourceBranchName']]] to reference the output from our variable.

  • @Folderq
    @Folderq 3 ปีที่แล้ว

    If there's secret variable in group this doesn't work. Could You specify how to fix it, please?

    • @radhikarathiram4863
      @radhikarathiram4863 3 ปีที่แล้ว

      I had the same problem when using Azure key vault

  • @MoisesMadeira-fc1ws
    @MoisesMadeira-fc1ws 5 หลายเดือนก่อน

    Thanks!

  • @jashvasabbu6479
    @jashvasabbu6479 3 ปีที่แล้ว

    Thanks for the video.. Its really helpful.
    I have one requirement like in my codeway yml file I have 3 environments like Dev stg and pro.
    When I run the pipeline all the environments are executing one after other.
    But my requirement is I want to select only specific environment to run like choice parameters same as in Jenkins.
    Is there any way to achieve to build specific environment.
    Thanks in advance

  • @priyankay8122
    @priyankay8122 3 ปีที่แล้ว

    Can you please explain "How to add two variable groups in same stage?"

    • @Folderq
      @Folderq 3 ปีที่แล้ว

      - group: 'groupA'
      - group: 'groupB'

  • @Jblaaa-codes
    @Jblaaa-codes 3 ปีที่แล้ว

    Thank you for this video. I am not sure if I understand correctly how these are used. I have a keyvault linked variable group. I was trying to follow this video and the MS doc.
    I have a group say 'variable-group' and I have a secret in a keyvault called 'my-secret'. In the pipeline I had placed these lines and kept getting a syntax failure
    variables:
    - group: 'variable-group'
    -name: secret-from-kv
    value: $[variables.my-secret]
    I was however easily able to do this.
    variables:
    - group: 'variable-group'
    then down in the pipeline when I wanted to reference that variable I do this and it works. I thought the above code would let you tweak the naming of secrets within the pipeline but may be missing something.
    -script:
    echo $(my-secret)