You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Dataverse插件访问Azure Tenant内部API报错问题求助

Power Platform VNet支持下Dataverse插件访问Azure资源问题排查与解决

据我了解,PowerPlatform中有一项相对较新的功能——Virtual Network support for Power Platform,它可让Dataverse插件访问Azure租户内的本地资源(如API、SQL服务器等),实现类似VPN的功能。

文档指出:

使用Dataverse插件安全连接Azure中受端点保护的私有资源(如Web API)或私有网络内的任何资源(如SQL、Web API)。Power Platform会使用托管委托子网的虚拟网络中配置的自定义DNS解析所有端点。

为Dataverse环境配置VNet支持后,我编写了如下插件,期望能访问Azure租户内的资源:

using System.Net.Http;

namespace Plugin.Test;

public class TestPlugin : IPlugin
{
    public void Execute(IServiceProvider serviceProvider)
    {
        try
        {
            using var client = new HttpClient();
            client.GetAsync("http://myVMsName/").GetAwaiter().GetResult(); // An Azure VM's DNS name in our Azure Tenant
        }
        catch (Exception ex)
        {
            throw new InvalidPluginExecutionException(ex.ToString());
        }
    }
}

但将该插件注册到事件(如Account创建事件)并触发时,出现错误:

The remote name could not be resolved: 'myVMsName'

我们已向微软提交支持工单,对方确认Power Platform的VNet支持组件配置正确,且同一VNet中存在名为myVMsName的服务器,可正常响应HTTP请求。

请问是否有人成功实现过类似操作?或对此问题有更多见解?感谢!

问题已解决

  • 需完整配置主VNet和备用VNet,Power Platform VNet支持才能正常运行。
  • 我们的插件始终被注入到备用VNet中,而该VNet最初未配置名称服务器。
  • 为备用VNet添加名称服务器后,插件可解析域名至IP,但仍无法访问服务。
  • 推测微软后台进行了相关配置,在支持团队通知重试后,问题得以解决。

内容的提问来源于stack exchange,提问作者Álmos Mókus

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.06.15 18:14:58