Search code examples
azure-devopsazure-pipelinesazure-pipelines-release-pipeline

Azure devops pipeline - Specific verion for Sqlpackage


In my azure devops release pipeline, i need to specify to use the latest version of sqlpackage.

For my case, both options specifying "latest" or giving a specific verion of sqlpackage are fine.

How to do this?

enter image description here


Solution

  • The demands are not a request to install some software. That is just a filter to find needed software if it exists on a build agent properties. To install the latest version, you may try to use the following: Installation, cross-platform

    yaml example:

    steps:
    - script: |
       dotnet tool install -g microsoft.sqlpackage
      displayName: 'Command Line Script'
    
    - script: 'sqlpackage -version'
      displayName: 'Command Line Script'
    

    result:

    enter image description here