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

标签 azure azure-web-app-service azure-sdk-.net

可以使用 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 网站 API - http://msdn.microsoft.com/en-us/library/azure/dn166985.aspx (文档有点过时了,因为他们没有提到 AlwaysOn,但 API 会接受它)。

关于azure - 使用管理 API 配置 Azure 网站 "Always On"模式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25158618/

相关文章:

azure - 有没有用于azure存储的odata客户端

git - Azure网站部署特定的Web项目

c# - Azure 应用服务 View 尚未预编译错误

azure - DocumentDB UnauthorizedException : "The MAC signature found in the HTTP request is not the same as the computed signature."

azure - 使用ARM参数选择对象变量中的字段

azure - 如何在 terraform 中使用 azuread_application 在 azure 中创建服务主体,错误权限不足,无法完成操作

azure - 配置 Microsoft Azure Web App 的远程 IIS 管理后找不到 Microsoft.Web.Configuration.AppHostFileProvider

Azure .NET SDK - 列出所有虚拟机,无法进行身份验证

Azure 的 CloudContext.Clients.Create?????ManagementClient 方法已弃用?

visual-studio - 如何从Azure Webrole文件获取SSL证书?