Skip to content

[BUG]: sqlpackage not found on a Linux self hosted agent #19584

Closed
@vanmash

Description

New issue checklist

Task name

SqlAzureDacpacDeploymentV1

Task version

V1

Issue Description

A bug happened!
##[error]No agent found in pool Default satisfies both of the following demands: agent.os, sqlpackage. All demands: agent.os -equals Linux, sqlpackage, Agent.Version -gtVersion 2.164.1

my note:
might be connected to #18913

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Ubuntu 20.4

Relevant log output

##[error]No agent found in pool Default satisfies both of the following demands: agent.os, sqlpackage. All demands: agent.os -equals Linux, sqlpackage, Agent.Version -gtVersion 2.164.1

Full task logs with system.debug enabled

 [REPLACE THIS WITH YOUR INFORMATION] 

Repro steps

- task: SqlAzureDacpacDeployment@1
                  retryCountOnTaskFailure: 1
                  inputs:
                    azureSubscription: $(servicePrincipal)
                    AuthenticationType: 'servicePrincipal'
                    ServerName: 'sql-$(TF_VAR_PRODUCT)-$(TF_VAR_ENV).database.windows.net'
                    DatabaseName: 'sqldb-$(TF_VAR_PRODUCT)-$(TF_VAR_ENV)'
                    deployType: 'InlineSqlTask'
                    SqlInline: |
                      <SQL script>
                    IpDetectionMethod: 'AutoDetect'

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions