使用管理 API 配置 Azure 网站"Always On"模式



可以使用Azure门户将Azure网站设置为"始终在线"。

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

var config = new WebSiteUpdateConfigurationParameters
{
    WebSocketsEnabled = true,
    AppSettings = appSettings,
    ConnectionStrings = connectionStrings,
    Use32BitWorkerProcess = false,
    ????
};
await client.WebSites.UpdateConfigurationAsync(webSpaceName, sitename, config);

是否有任何解决方法,或者我错过了什么?

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

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

最新更新