通过code添加域到Azure的网站网站、code、Azure

2023-09-03 04:01:41 作者:微笑背后的悲伤╰有谁懂

我如何以编程方式添加一个额外的域名解析为Azure的网站?

How do I programmatically add an additional domain name to an Azure Web Site?

希望有这个,我错过了,也许在Azure的SDK或的NuGet包.NET API。或者,也许有一个REST接口。

Hopefully there .NET API for this that I missed, perhaps in the Azure SDK or a NuGet package. Or perhaps there is a REST interface.

推荐答案

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

The Windows Azure Web Sites Management REST API should provide the functionality you are looking for.

属性 Site.HostNames Windows Azure的Web站点的属性可以用来提供额外的域名。可以建立一个网站或更新时期间提供的属性。

The property Site.HostNames property of Windows Azure Web Site can be used to provide additional domain names. The properties can be provided during creation of a web site or when updating.

请还注意到一般信息上的为Windows Azure的网站配置自定义域名。您还必须验证进入编程方式添加到您的DNS。

Please also take note of the general info on Configuring a custom domain name for a Windows Azure web site. You would also have to programmatically add the verification entry to your DNS.

我不知道是否有任何包装的SDK /库/ PowerShell的命令行开关的网站管理API。

I am not sure if there are any wrapper SDKs/libs/powershell commandlets for the web sites management API.

 
精彩推荐
图片推荐