使用Management API配置Azure网站“始终开启”模式

时间:2014-08-06 10:57:43

标签: azure azure-web-sites azure-sdk-.net

可以将Azure网站设置为" Always On"使用Azure门户。

我尝试使用Azure SDK实现相同功能

var config = new WebSiteUpdateConfigurationParameters
{
    WebSocketsEnabled = true,
    AppSettings = appSettings,
    ConnectionStrings = connectionStrings,
    Use32BitWorkerProcess = false,
    ????
};

await client.WebSites.UpdateConfigurationAsync(webSpaceName, sitename, config);

有没有解决方法,或者我错过了什么?

1 个答案:

答案 0 :(得分:2)

看起来尚未将AlwaysOn属性添加到Azure SDK中。我们将在即将发布的SDK版本中添加它。

不幸的是,目前唯一的解决方法是直接调用Azure网站API - http://msdn.microsoft.com/en-us/library/azure/dn166985.aspx(文档有点过时,因为他们没有提到AlwaysOn,但API会接受它。) / p>

相关问题