使用 Azure Api 管理为 Azure Function Apps 插槽设置自定义域

问题描述 投票:0回答:1

我有许多azure功能应用程序,我想配置为使用自定义域的子域,但是我随后想将插槽配置为配置到不同的子域,例如 api.mydomain.com 和 staging-api.mydomain .com.

但我正在努力弄清楚如何做到这一点,任何建议都会受到重视。

我是 Api 管理新手,我知道我可以设置策略,但肯定需要为每个子域设置自定义域,如果我设置它们的 cname 和 txt 值相同,那么是否可能,或者我需要为每个插槽使用不同的 Api 管理实例吗?

azure azure-functions azure-api-management
1个回答
0
投票

您可以按照以下步骤将

custom domain
添加到
Function app
:-

访问功能应用程序的部署槽>自定义域>将自定义域添加为根域或子域,我已经添加了用于暂存槽的子域:-

enter image description here

enter image description here

生产槽:-

enter image description here

您还可以为您的

custom domain as a root domain
添加
Production Function App
:-

enter image description here

您还可以通过引用此 SO 答案 和此 MS 文档

,将自定义域添加到 Azure APIM 中的多个 API
© www.soinside.com 2019 - 2024. All rights reserved.