I'm trying to connect to a Azure SQL server (under a different subscription) using SQLPS
Auth method is SQL server auth.
When I try to import-module SQLPS, I get this error:
Error: import-module : The specified module 'sqlps' was not loaded because no valid module file was found in any module directory.
While I'm able to connect to the same Azure SQL server from windows powershell, I have no clue why I'm not able to perform the same on Azure Powershell. I understand that appropriate .psm1 modules should exist for powershell to understand this, but can someone help me on how to do it?
I have tried exporting/importing the module from
C:\Program Files\Microsoft SQL Server\120\Tools\PowerShell\Modules
and didn't workout too...