Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding deprecation information to sqlserver task #1885

Merged
merged 1 commit into from
Jun 15, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion Tasks/SqlServerDacpacDeployment/DeployToSqlServer.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,11 @@
[string]$connectionString,
[string]$publishProfile,
[string]$additionalArguments,
[string]$deployInParallel
[string]$deployInParallel
)

Write-Warning "The preview SQL Server Database Deployment task has been deprecated and will be removed soon. An SQL Server Database Deployment task has been released as an extension in the Visual Studio Team Services marketplace at https://aka.ms/iisextn. Install the extension, and use its tasks in the Build/Release definitions, and delete the preview task from the definition."

Write-Verbose "Entering script DeployToSqlServer.ps1" -Verbose
Write-Verbose "environmentName = $environmentName" -Verbose
Write-Verbose "adminUserName = $adminUserName" -Verbose
Expand Down
5 changes: 5 additions & 0 deletions Tasks/SqlServerDacpacDeployment/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# SQL Server Database Deployment

## **Important Notice**
The preview SQL Server Database Deployment task has been **deprecated and will be removed soon**. The task has been **shipped as an extension for Visual Studio Team Services**, and is available in the marketplace - https://marketplace.visualstudio.com/items?itemName=ms-vscs-rm.iiswebapp.

**Install the extension, and add the tasks from the extension in Build or Release Definitions, and remove this SQL Server Database Deployment task from the definition.**

## Overview:

The task is used to deploy SQL Server database to an existing SQL Server instance, and the underlying technologies used by the task are [DACPAC](https://msdn.microsoft.com/en-IN/library/ee210546.aspx) and [SqlPackage.exe](https://msdn.microsoft.com/en-us/library/hh550080\(v=vs.103\).aspx). DACPACs and SqlPackage.exe provide fine-grained control over database creation and upgrades, including upgrades for schema, triggers, stored procedures, roles, users, extended properties etc. Using the task, around eighty different properties can be set to ensure that the database is created or upgraded properly like:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"loc.friendlyName": "SQL Server Database Deployment",
"loc.friendlyName": "[Deprecated] SQL Server Database Deploy",
"loc.helpMarkDown": "[More Information](https://aka.ms/sqlserverdacpackreadme)",
"loc.description": "Deploy SQL Server Database using DACPAC",
"loc.instanceNameFormat": "Deploy SQL DACPAC: $(DacpacFile)",
"loc.instanceNameFormat": "[Deprecated] Deploy SQL DACPAC: $(DacpacFile)",
"loc.group.displayName.deployment": "Deployment",
"loc.group.displayName.target": "Target",
"loc.group.displayName.advanced": "Advanced",
Expand Down
6 changes: 3 additions & 3 deletions Tasks/SqlServerDacpacDeployment/task.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "70A3A82D-4A3C-4A09-8D30-A793739DC94F",
"name": "SqlServerDacpacDeployment",
"friendlyName": "SQL Server Database Deployment",
"friendlyName": "[Deprecated] SQL Server Database Deploy",
"description": "Deploy SQL Server Database using DACPAC",
"helpMarkDown": "[More Information](https://aka.ms/sqlserverdacpackreadme)",
"category": "Deploy",
Expand All @@ -14,7 +14,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 13
"Patch": 14
},
"demands": [
],
Expand Down Expand Up @@ -205,7 +205,7 @@
"helpMarkDown": "This input is valid only for machine groups and is not supported for flat list of machines or output variables yet. Provide a list of machines like, dbserver.fabrikam.com, webserver.fabrikam.com, 192.168.12.34, or tags like, Role:DB; OS:Win8.1. If multiple tags are provided, then the task will run in all the machines with the specified tags. For Azure Resource Groups, provide the virtual machine's name like, ffweb, ffdb. The default is to run the task in all machines."
}
],
"instanceNameFormat": "Deploy SQL DACPAC: $(DacpacFile)",
"instanceNameFormat": "[Deprecated] Deploy SQL DACPAC: $(DacpacFile)",
"execution": {
"PowerShell": {
"target": "$(currentDirectory)\\DeployToSqlServer.ps1",
Expand Down
2 changes: 1 addition & 1 deletion Tasks/SqlServerDacpacDeployment/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"version": {
"Major": 1,
"Minor": 0,
"Patch": 13
"Patch": 14
},
"demands": [],
"minimumAgentVersion": "1.96.2",
Expand Down