Steps I used: Login-AzureRmAccount -- I ran this cmdlet in Powershell in admin mode once logged I ran this below query
New-ShardMapManager -UserName 'user_name' -Password 'enterd password' -SqlServerName 'server_name.database.windows.net' -SqlDatabaseName 'Elastic_poc_db'
I am getting following error :
New-ShardMapManager : The term 'New-ShardMapManager' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ ~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-ShardMapManager:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
I am Using Powershell 4 version
I ran into this problem much more recently than the above post, and the information in previous replies is out of date. My solution may contain anti-practices, but it worked for me.
In a PowerShell prompt running as Administrator, run the following:
From the same PowerShell prompt you used in step 1, run this:
You should now be able to run New-ShardMapManager and its siblings in PowerShell.