Azure 应用服务自定义主机名
Azure App Service Custom Hostnames
我们在 Azure 上托管我们的应用程序,需要在自定义主机名部分添加一个子域。我们需要动态执行此操作,因此需要在 运行 时间完成。
我试过使用 Azure 管理 rest API 但在拨打任何电话时似乎找不到该应用程序。
在不使用 Azure 门户的情况下向应用服务添加自定义 header 的最佳方法是什么?
提前致谢。
您可以在您的应用程序前面放置一个 API 管理,并使用“Set HTTP header”转换策略将自定义 header 添加到请求中:
Assigns a value to an existing response and/or request header or adds
a new response and/or request header
通过 API 文档,他们有一个电话满足了我们的需要。
https://docs.microsoft.com/en-us/rest/api/appservice/webapps/createorupdatehostnamebinding
我们在 Azure 上托管我们的应用程序,需要在自定义主机名部分添加一个子域。我们需要动态执行此操作,因此需要在 运行 时间完成。
我试过使用 Azure 管理 rest API 但在拨打任何电话时似乎找不到该应用程序。
在不使用 Azure 门户的情况下向应用服务添加自定义 header 的最佳方法是什么?
提前致谢。
您可以在您的应用程序前面放置一个 API 管理,并使用“Set HTTP header”转换策略将自定义 header 添加到请求中:
Assigns a value to an existing response and/or request header or adds a new response and/or request header
通过 API 文档,他们有一个电话满足了我们的需要。
https://docs.microsoft.com/en-us/rest/api/appservice/webapps/createorupdatehostnamebinding