我使用的步骤: Login-AzureRmAccount --我在管理模式下运行Powershell中的此cmdlet。登录后,我运行以下查询
New-ShardMapManager -UserName 'user_name' -Password 'enterd password' -SqlServerName 'server_name.database.windows.net' -SqlDatabaseName 'Elastic_poc_db'
我收到以下错误:
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
我使用的是Powershell 4版本
https://stackoverflow.com/questions/41287457
复制相似问题