同一虚拟网络中的 Azure Bastion 和私有 Link:通过 Bastion 访问虚拟机失败

Azure Bastion and Private Link in the same Virtual Network: Access to Virtual Machine via Bastion fails

我在 Azure 中设置了一个虚拟网络,其中包括 Azure Bastion、Azure 虚拟机和通往不同 Azure 资源的专用链接(其中包括专用 DNS 区域“privatelink.azure.com”)。我从 Bastion 和运行良好的 VM 开始。但是,一旦我将专用链接添加到同一个 VNET,我就会在尝试通过 Bastion 访问 VM 时收到错误消息:

APP.DIALOG_HEADER_CONNECTION_ERROR

我该怎么做才能解决这个问题并能够再次访问 VM?

问题是,每当将具有私有 DNS 区域“privatelink.azure.com”的私有网络 link 连接到 Bastion 虚拟网络时,通过 Bastion 访问 VM 会失败,并出现上述异常以上。

为了能够在同一个 VNET 中使用专用 DNS 区域“privatelink.azure.com”拥有堡垒和专用链接,请在您的“privatelink.azure.com”区域中使用

创建一条记录

姓名=management.privatelink.azure.com

类型 = CNAME

别名 = arm-frontdoor-prod.trafficmanager.net