Trivadis biGENiUS is a tool that automates database deployments using Microsoft Team Foundation Server. It generates deployment scripts and packages them as artifacts that can be deployed through TFS builds and releases. The biGENiUS TFS extension includes tasks to generate scripts, run builds, and deploy scripts to environments during releases. It provides logging and versioning of all deployment steps and changes for continuous delivery of database changes using TFS.
Unlocking the Potential of the Cloud for IBM Power Systems
TechEvent Trivadis biGenius
1. BASEL BERN BRUGG DÜSSELDORF FRANKFURT A.M. FREIBURG I.BR. GENEVA
HAMBURG COPENHAGEN LAUSANNE MUNICH STUTTGART VIENNA ZURICH
Trivadis biGENiUS®
Deployment Automation with Microsoft Team Foundation Server ®
Alex Bechtloff
2. Agenda
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
2 10/1/2018
1. biGENiUS® - generating scripts
2. Team Foundation Server ® functions
3. Trivadis biGENiUS® TFS Extension
4. biGENiUS® – Deployment automation
Generate Task
Release Steps
5. biGENiUS® PowerShell Deployment Tools
3. Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
3 10/1/2018
biGENiUS® - generating scripts
4. 2 built-in toolsets
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
4 10/1/2018
GUI
– Adjustable destination folder
– Selectable Environment
5. 2 built-in toolsets
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
5 10/1/2018
Command line
– Parameters for
• Project
• Version
• Environment
• Destination folder
• Login/password
6. Needed functionality
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
7 10/1/2018
Delta deployment of changes only manually
– TSQL scripts run DROP / CREATE
– Old/dropped/renamed objects remain
No logging of changes
– What-If scenarios
– „What changed with the last release ?“
No versioning of TSQL scripts or changes
Customer request:
– „one-click deployment automation“
7. Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
8 10/1/2018
Team Foundation Server® functions
8. Team Foundation Server ® Builds
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
9 10/1/2018
Builds
– Checks-out
sources from TFS
version control
repositories
– Executes tasks
on source code
– Publishes
artifacts for later
usage in releases
– Can be triggered
automatically
9. biGENiUS® TFS Build - logging
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
10 10/1/2018
Logging information is saved and versioned
Additional html file is created and versioned
10. Team Foundation Server ® Releases
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
11 10/1/2018
Releases
– Multiple release
definitions and
branches possible
– Takes the Build
artifacts
– Deploys artifacts
to destination
environments
11. biGENiUS® TFS Release - logging
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
12 10/1/2018
Logging
information is
saved and
versioned
Additional html
logfile is created
and versioned
12. Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
13 10/1/2018
Trivadis biGENiUS® TFS Extension
13. biGENiUS ® TFS - Extension
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
14 10/1/2018
Soon available in
Microsoft Marketplace
Bundles necessary tasks
for connecting TFS
Build and Release
Full logging, versioning and
e-mail functionality
Easy management and upgrade in Team
Foundation Server – Manage Extensions
Follow us on http://support.bigenius.info
14. biGENiUS® Generate Task
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
15 10/1/2018
Reads the config file and calls biGENiUS
15. biGENiUS® Generate Task - Output
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
16 10/1/2018
Generates Folder structure
– For T-SQL
• biGENiUS® output
– Creates Data-tier
application package
(DACPAC)
• For each database used in
project
Check-in with TFS version
control repository
16. Release Steps – Environment Definition
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
17 10/1/2018
Reads the biGENiUS® config file,
sets some environment variables
Executes defined tasks
– Based on customer / project
needs
– Example (PROD environment):
Staging area DROP/CREATE objects
Cleansing area DROP/CREATE objects
Data Warehouse core DELTA deploy of objects/object
changes using DACPACs
Data Marts DELTA deploy of objects/object
changes using DACPACs
17. biGENiUS® Release Steps
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
18 10/1/2018
Artifacts connect the builds to possibly multiple release
definitions
4-eyes principle possible
• Approval prior to each phase
• Sends e-mail to
• Single user or group of
approvers
• Triggered start
• Dependency from prior
successful phase / tasks
18. biGENiUS ® PowerShell Deployment Tools
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
19 10/1/2018
Run-able without Team
Foundation Server
Bundles necessary tasks in
PowerShell Module
Lot of PowerShell CMDlets
for various tasks
Connection to stand-alone
GIT version control
repository
Soon to come
19. Questions and Answers …
Alex Bechtloff
Principal Consultant
Tel. +43 1 332 35 31 30
Alex.Bechtloff@trivadis.com
10/1/2018
Trivadis biGENiUS - Deployment Automation with Microsoft
Team Foundation Server
20