使用 Azure Function 应用设置自定义域 [英] Setting up a custom domain with an Azure Function app

查看:26
本文介绍了使用 Azure Function 应用设置自定义域的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个以动态定价运行的 Azure Function 应用,并且正在尝试设置自定义域.

I have an Azure Function app running on dynamic pricing and am trying to set up a custom domain.

我已添加并验证了域并相应地设置了 CNAME 记录.当我在 Azure 门户中查看应用服务设置时,自定义域正确显示为URL".但是,如果我尝试使用此域(访问 HTTP 触发函数),则会返回错误 404 - 未找到 Web 应用程序".

I have added and verified the domain and setup the CNAME record accordingly. The custom domain shows up correctly as the "URL" when I view the App Service settings in the Azure portal. If I try to use this domain, however (to access an HTTP trigger function), I am returned with "Error 404 - Web app not found."

当我查看门户中的函数 URL 时,它仍然显示 x.azurewebsites.net 域,而不是我添加的自定义域.为了让 Functions 与自定义域一起工作,我还需要做些什么吗?

When I look at the Function URL in the portal, it still shows the x.azurewebsites.net domain, not the custom domain I have added. Is there anything additional I need to do to get Functions working with a custom domain?

推荐答案

复制自我的 在 MSDN 论坛上回答:

确实,动态功能计划尚不支持自定义域.这种支持将在稍后提供(此时没有明确的 ETA 可分享).

Indeed, custom domains are not yet supported for Dynamic Function plans. This support will come a bit later (no clear ETA to share at this point).

这篇关于使用 Azure Function 应用设置自定义域的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆