Skip to content

Commit 39bfe77

Browse files
committed
add pipeline update workaround
1 parent 228e7b1 commit 39bfe77

2 files changed

Lines changed: 23 additions & 4 deletions

File tree

docs/tools/sqlpackage/sqlpackage-download.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ ms.topic: conceptual
99
author: "dzsquared"
1010
ms.author: "drskwier"
1111
ms.reviewer: "maghan; sstein"
12-
ms.date: 06/02/2021
12+
ms.date: 06/24/2021
1313
---
1414

1515
# Download and install sqlpackage
@@ -46,7 +46,7 @@ dotnet add package Microsoft.SqlServer.DACFx
4646

4747
This release of sqlpackage includes a standard Windows installer experience, and a .zip:
4848

49-
1. Download and run the [DacFramework.msi installer for Windows](https://go.microsoft.com/fwlink/?linkid=2157201).
49+
1. Download and run the [DacFramework.msi installer for Windows](https://aka.ms/dacfx-msi).
5050
2. Open a new Command Prompt window, and run sqlpackage.exe
5151
- sqlpackage is installed to the ```C:\Program Files\Microsoft SQL Server\150\DAC\bin``` folder
5252

docs/tools/sqlpackage/sqlpackage-pipelines.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: SqlPackage in development pipelines
3-
description: Learn how to troubleshoot database development pipelines with SqlPackage.exe by checking the installed build number.
3+
description: Learn how to leverage and troubleshoot database development pipelines with SqlPackage.exe.
44
ms.prod: sql
55
ms.prod_service: sql-tools
66
ms.technology: tools-other
@@ -9,7 +9,7 @@ ms.assetid: 198198e2-7cf4-4a21-bda4-51b36cb4284b
99
author: "dzsquared"
1010
ms.author: "drskwier"
1111
ms.reviewer: "maghan; sstein"
12-
ms.date: 11/4/2020
12+
ms.date: 06/25/2021
1313
---
1414

1515
# SqlPackage in development pipelines
@@ -46,6 +46,25 @@ By leveraging the [run](https://docs.github.com/en/free-pro-team@latest/actions/
4646
4747
:::image type="content" source="media/sqlpackage-pipelines-github-action.png" alt-text="GitHub action output displaying build number 15.0.4897.1":::
4848
49+
## Update SqlPackage on the pipeline agent
50+
51+
In some scenarios, the current version of SqlPackage installed in the pipeline environment may be insufficient. An additional step can be used to install a newer version of SqlPackage before running any DacPac or BacPac operations in the same pipeline. This task can be combined with a step to [check the version](#checking-the-sqlpackage-version) to ensure that the upgrade completed as expected.
52+
53+
### Azure Pipelines
54+
By leveraging the [Powershell](/azure/devops/pipelines/tasks/utility/powershell) task in an Azure Pipeline, a step can be added to an Azure Pipeline that downloads the desired MSI and installs it silently.
55+
56+
```yaml
57+
- task: PowerShell@2
58+
displayName: 'upgrade sqlpackage'
59+
inputs:
60+
targetType: 'inline'
61+
script: |
62+
# use evergreen or specific dacfx msi link below
63+
wget -O DacFramework.msi "https://aka.ms/dacfx-msi"
64+
msiexec.exe /i "DacFramework.msi" /qn
65+
```
66+
67+
4968
## Next steps
5069
5170
- Learn more about [sqlpackage](sqlpackage.md)

0 commit comments

Comments
 (0)