concept dbatool in category dbatools

appears as: dbatools, dbatools, dbatools
Learn dbatools in a Month of Lunches

This is an excerpt from Manning's book Learn dbatools in a Month of Lunches.

Often based on solutions found on popular blog posts, Stack Overflow, and Reddit, dbatools commands automate and simplify so many of the tasks we’ve all had to do multiple times.

This means that you don’t need to remember the formula for calculating maximum memory settings or where you saved the T-SQL for converting a trace to extended events (thank you, Jonathan Kehayias). dbatools also interacts with many popular SQL Community tools created by creators like Ola Hallengren (The Maintenance Solution we love), Glenn Berry (awesome diagnostic queries), Adam Machanic (sp_whoisactive), Brent Ozar (First Responder Kit), and Marcin Gminski (sqlwatch).

Where is Microsoft in all of this? While the SQL Tools Team has its own module, SqlServer (formerly SQLPS), Microsoft has been incredibly supportive of dbatools. Not only do Premier Field Engineers use and blog about dbatools, the SQL Tools Team also allows us to include many of the bits that power SQL Server Management Studio.

Figure 2.3. The publicly available code signing certificate from dbatools
signed code
Listing 8.1. Accessing local Registered Servers with dbatools
PS C:\> Get-DbaRegServer

Name          ServerName                     Group  Description       Source
----          ----------                     -----  -----------       ------
dockersql1    macmini                               Node 1 in test AG Local Server Groups
dockersql2    macmini,14333                         Node 2 in test AG Local Server Groups
sql01         sql01                          onprem                   Azure Data Studio
azure sql db  dbatools.database.windows.net  cloud                    Azure Data Studio