.net - 通过代码将域添加到 Azure 网站

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

如何以编程方式将其他域名添加到 Azure 网站?

希望有我错过的 .NET API,可能在 Azure SDK 或 NuGet 包中。或者也许有一个 REST 接口(interface)。

最佳答案

Windows Azure 网站管理 REST API 应该提供您正在寻找的功能。

楼盘 Site.HostNames Windows Azure 网站的属性可用于提供额外的域名。这些属性可以在网站创建期间或更新时提供。

另请注意 Configuring a custom domain name for a Windows Azure web site 上的一般信息.您还必须以编程方式将验证条目添加到您的 DNS。

我不确定网站管理 API 是否有任何包装 SDKs/libs/powershell commandlet。

关于.net - 通过代码将域添加到 Azure 网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18730806/

相关文章:

c# - 多次在字符串中添加一个字符串

c# - Windows Powershell SDK 和 System.Management.Automation.PSObject

iphone - 如何以最少的代码循环从 Core Data 中的多个实体加载数据?

azure - 将 webapp 与 Azure VNET 集成

c# - List.add() 异步任务等待正确的语法

c# - 在线程之间共享局部变量是否安全(通过回调闭包)?

c# - PayPal 定期捐款分期付款

java - Android Studio的Gradle Sync(SDK)问题

python - 使用 azure cli 将 python 应用程序部署到现有的 azure 应用程序服务

angular - 在 Azure 中部署 Angular 应用程序,但刷新时出现 URL 重写模块错误