“New-ShardMapManager”未被识别为尝试通过powershell访问的cmdlet的名称

时间:2016-12-22 16:15:19

标签: azure azure-sql-database powershell-v4.0 azure-elastic-scale azure-elastic-sharding

我使用的步骤: 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版本

1 个答案:

答案 0 :(得分:1)

New-ShardMapManager不是Azure资源管理器的一部分,可以从这里单独下载:https://gallery.technet.microsoft.com/scriptcenter/Azure-SQL-DB-Elastic-731883db