惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
P
Palo Alto Networks Blog
T
ThreatConnect
Apple Machine Learning Research
Apple Machine Learning Research
博客园_首页
T
True Tiger Recordings
P
Privacy & Cybersecurity Law Blog
B
Blog
IT之家
IT之家
Last Week in AI
Last Week in AI
F
Full Disclosure
Hacker News: Ask HN
Hacker News: Ask HN
C
Comments on: Blog
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Microsoft Security Blog
Microsoft Security Blog
博客园 - 【当耐特】
N
News and Events Feed by Topic
NISL@THU
NISL@THU
腾讯CDC
雷峰网
雷峰网
Security Latest
Security Latest
李成银的技术随笔
M
Microsoft Research Blog - Microsoft Research
L
LangChain Blog
L
Lohrmann on Cybersecurity
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Check Point Blog
Y
Y Combinator Blog
Recent Announcements
Recent Announcements
博客园 - Franky
N
News | PayPal Newsroom
V
V2EX
A
About on SuperTechFans
The Register - Security
The Register - Security
月光博客
月光博客
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Google Online Security Blog
Google Online Security Blog
MyScale Blog
MyScale Blog
Cisco Talos Blog
Cisco Talos Blog
Vercel News
Vercel News
WordPress大学
WordPress大学
C
Cyber Attacks, Cyber Crime and Cyber Security
The Hacker News
The Hacker News
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
IntelliJ IDEA : IntelliJ IDEA – the Leading IDE for Professional Development in Java and Kotlin | The JetBrains Blog
爱范儿
爱范儿
A
Arctic Wolf
L
LINUX DO - 最新话题
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 衡子

Ubuntu24.04更改SSH端口 记录安装过程 - 衡子 Azure CLI创建管理员用户 创建VMSS中的instance 创建不带公网IP的VM Azure LSv3系列VM 自动挂载NVMe本地磁盘 Azure AD访问Azure Storage Azure Linux VM使用Managed Identity获取Key-vault的Secret Azure AD SSO with Google Cloud Identity 通过VM SWAP OS DISK升级VM 通过API获取Azure KeyVault Securet VM间网络PPS和带宽测试 Azure获取access token的方法 VM间记录时延 Windows Terminal的一些配置 安装hping Azure解除不再使用Directory的关联 使用VSCode Remote Containers功能实现开发环境统一 Azure AKS容器网络详解
Azure Front Door添加自定义域名
衡子 · 2022-01-25 · via 博客园 - 衡子

Azure Front Door Standard & Premium是基于Microsoft全球网络边缘的PoP提供的全球负载均衡、网络加速、CDN和安全等服务的产品。它把之前的Azure CDN、Azure Front Door和Azure WAF三个产品集成到一个产品中。

Azure Front Door Standard和Premium的功能区别如下:

Premium版本主要在安全功能和Private Link功能上比Standard版本有增强。

本文将介绍在配置Azure Front Door时,添加用户自定义域名的过程,由于不涉及Standard和Premium不同的部分,所以本文的配置采用Standard版本。

一 创建Azure Front Door profile

1 选择Front Door Standard/Premium服务

在Azure的Networking Service中选择Azure Front Door Standard/Premium,要注意的是,不是Azure Front Door服务:

点击Create后:

选择Azure Front Door Standard/Premium 和Custom Create:

选择Standard版本:

2 添加Endpoint

在Endpoint选择中,选择添加endpoint:

填写名称:

3 添加Origin Groups

在Endpoint的配置页面中配置Origin Groups:

在配置中添加Orgin:

填写相关内容:

填写Healthy Probe的相关内容:

4 添加路由

添加路由:

根据配置填写相关的内容:

配置完成后,点击创建。

创建完成后,可以通过Endpoint的域名访问后端网站:

$ curl https://azurefd.z01.azurefd.net

Hello World

二 添加自定义域名

1 添加Domain

在Front Door管理页面上,点击添加domain

填写相关内容:

2 获取DNS TXT信息

点击添加后,在Custom Domain页面上可以看到Validation state变成Pending后,点击pending:

这里显示的是需要在DNS中添加的TXT记录信息:

通过下面的命令可以监控域名验证状态:

watch -n 5 "az afd custom-domain list -g fd --profile-name azurefd | \

jq .[].domainValidationState"

 状态如下:

3 添加TXT记录

在DNS供应商的配置页面上,添加TXT记录:

添加好记录几分钟后,状态变成Approved:

在页面上可以看到相关状态:

点击unassociated:

点击Associate。

在关联好后,可以看到证书也创建成功:

证书有半年的有效期,在证书过期前90天,Microsoft会自动更新证书。

此时adf.weiheng.ink在没有创建Cname的情况下,已经配置完成,在把域名指向azurefd.z01.azurefd.net后,流量就导向了Azure Front Door。

4 添加CNAME记录

通过curl查看状态:

域名解析、证书工作正常,并且可以看到Cache击中的header。

三 总结

通过Azure Front Door Standard/Premium,通过DNS TXT记录,添加用户自定义域名,方便用户DNS域名管理以及Azure托管的证书创建。