Skip to content

Useful SQL Server related Powershell Modules for the DBA

Reading Time: 2 minutes

In this post I cover useful SQL Server related Powershell Modules for the DBA. So, with that being said lets start with one which is probably the most common module.

SQLServer

First of all, lets clear one thing up. The SQLServer
module is a newer version of the old PSSQL module. So, if happen to see any vendor documentation referring to PSSQL they probably mean this module. It’s more then likely that they need to update their documentation.

You can use this older version for backwards compatibility, however the SQLServer module has newer cmdlets.

Azure/AzureRM/AzureRM.Core/Az

OK, lets see if I can cover this without causing mass confusion. In the beginning there was the Azure module, designed to cover the old ASM (Azure Service Manager) fabric Azure use to use.

As you might know, the Azure fabric has now changed and uses the ARM (Azure resource manager) architecture. Instead of changing the existing Azure module to cater for both Microsoft decided to create a new module with RM on the end.

To cater for the cross platform version of Powershell called Powershell Core Microsoft released an additional module which has similar functionality to the AzureRM module. For those of you who are not aware, Powershell Core is also known as Powershell 6.

As you can imagine the two separate AzureRM modules has got very confusing for people. Therefore to resolve this Microsoft are now releasing the Az module to replace them. You can find out more about this in detail here.

DBATools

For those of you who may not have heard of the extremely popular DBATools module yet here’s some more information.

It’s a module developed by various members of the SQL Server community. It was originally aimed at doing SQL Server migrations but it has grown and now covers a lot more.

For example, recently it has added cmdlets to help with Availability Groups. Which you can read more about in detail here.

A spin off from this module is DBAChecks, which I talked about in my previous post in detail here.

UserRights

Now I’ve used this on Windows Server 2016 Core edition and it’s great. It’s a really easy module which allows you to allocate rights to service accounts. You can use this instead of having to delve into complex code. You can find out more about this module in detail here.

Final word

Well that’s it from me in this post. These are modules I tend to find useful and are not a complete list of modules you can use with SQL Server. Feel free to comment on what others you use.

Published inUncategorized

Be First to Comment

Leave a Reply

Your email address will not be published. Required fields are marked *