Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 40 million developers.Sign up
Renamed and subsequently fixed an issue with the module manifest that removed Get-DbaBackupHistory. Now it is Get-DbaDbBackupHistory.
Marching onward to dbatools 1.0, a ton of commands have been renamed to align with our now mature naming scheme. These changes were made in today's release, version 0.9.411 aka regularlegs, now available on GitHub and the PowerShell Gallery.
Here's the general idea:
- DbaDatabase has mostly been renamed to DbaDb with a couple exceptions
- DbaSql has been changed to just Dba, no exceptions. Think of Dba as "Sql".
- DbaConfig has been renamed to DbatoolsConfig
- TempDbConfiguration has been renamed to TempdbConfig
- All Configuration commands are Config except SpConfigure
- DbaDacpac has been renamed to DbaDacPackage. Dac is the prefix for our data-tier application commands.
- DbaDbQueryStoreOptions has been renamed to DbaDbQueryStoreOption
If you use the old name, it'll still work but will show a warning that the command name has been changed and its alias will be removed in 1.0
If you'd like help renaming dbatools scripts within your command, use the newly created function Invoke-DbatoolsRenameHelper, available in regularlegs. The screenshot below shows is what it looked like when I ran the this:
Get-ChildItem -Recurse C:\temp\community-presentations\*.ps1 | Invoke-DbatoolsRenameHelper | Out-GridView
There are other cool updates with this release. In preparation for my doomsday prepping with dbatools presentation at SQLGLA, I created a new command, Export-DbaInstance, which I'll write more about in a future post.
In order for Export-DbaInstance to work well, I had to create a number of underlying commands, some of which may be of interest to you.
Get-DbaTrigger has been removed and
Get-DbaDbTrigger have been added in its place. Unfortunately, there was no appropriate alias, so it was removed without an alias.
new website documentation coming soon
We'll soon be moving our documentation to a system that automatically generates docs from markdown! Expect to see that by next week. It'll be a great relief once released because keeping the website manually updated with all these changes is a near impossible task.
The command index will remain and be updated manually since it requires some categorization. That page also needs updating; I should have that done by Monday.
Recall that using old command names will show big ol yellow warnings and dbachecks uses a number of the renamed commands. So, dbachecks will be updated today, too, a couple hours after this email is sent out ✔
It's been a while since the last release because we primarily focus on the PowerShell Gallery.
sleepygary is a nice and stable release that has a tons of bug fixes, over 400 commands, and newly beefed up snapshot commands. You can read more at dbatools.io/snapshots
Since the last release, we also created a bunch of awesome Extended Events commands. You can read more about the included these at dbatools.io/xevents. Chrissy and Gianluca also did a presentation at SQLBits about it. You can find the slides at sqlps.io/xecode.
Also included are a ton of perfmon commands (DbaPf), but those don't have an associated blog post yet.