Powershell Runbook-术语';获取AzureRMWebAppSlot';未识别为cmdlet的名称

Powershell Runbook-术语';获取AzureRMWebAppSlot';未识别为cmdlet的名称,powershell,azure,azure-powershell,azure-automation,Powershell,Azure,Azure Powershell,Azure Automation,作为高可用性的一部分,我正在尝试切换网站的连接字符串以执行DB故障切换。请建议是否有适合当前要求的解决方法 但是,在Azure portal中作为PowerShell工作流Runbook运行时,在我的本地计算机上运行的同一脚本没有执行 Powershell代码: 错误: 这可以通过将模块添加到资产下的自动化帐户来实现 资源>模块>添加模块 浏览图库查找AzureRM.Compute那么这个问题的目的是什么呢?我在任何地方都找不到这个,我想这可能会对一些人有所帮助这简直是无处不在;)这不是此cmd

作为高可用性的一部分,我正在尝试切换网站的连接字符串以执行DB故障切换。请建议是否有适合当前要求的解决方法

但是,在Azure portal中作为PowerShell工作流Runbook运行时,在我的本地计算机上运行的同一脚本没有执行

Powershell代码: 错误:
这可以通过将模块添加到资产下的自动化帐户来实现 资源>模块>添加模块
浏览图库查找AzureRM.Compute

那么这个问题的目的是什么呢?我在任何地方都找不到这个,我想这可能会对一些人有所帮助这简直是无处不在;)这不是此cmdlet特有的。请将其标记为答案,这将帮助其他人。
Set-AzureRMWebAppSlot -ResourceGroupName $reourceGroupName -Name $WebSiteName -ConnectionStrings $SecnodaryConnectionStrings -Slot $WebSiteSlot
    Set-AzureRMWebAppSlot : The term 'Set-AzureRMWebAppSlot' 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 AppService-DBConnnectionFailoverSwitch:37 char:37
    + 
    + CategoryInfo          : ObjectNotFound: (Set-AzureRMWebAppSlot:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException