我尝试切换网站的连接字符串以执行数据库故障转移,这是HighAvailability的一部分。请建议是否有适合当前要求的解决方法。
但是,在Azure门户中作为PowerShell工作流程Runbook,在本地计算机上运行的相同脚本未执行。
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
答案 0 :(得分:0)
可以通过将模块添加到Assets下的自动化帐户来完成 资产>模块>添加模块 浏览图库以查找AzureRM.Compute