gpt4 book ai didi

azure - 通过代理从 Visual Studio 部署 Azure 函数

转载 作者:行者123 更新时间:2023-12-03 04:16:25 33 4
gpt4 key购买 nike

我正在尝试将 Azure 函数项目从 Visual Studio 2017 部署到 Azure,但收到代理身份验证错误。

我已将本地代理设置添加到 Visual Studio 配置中,但仍然无法使其工作。

 <defaultProxy enabled="true" useDefaultCredentials="true">
<proxy bypassonlocal="True" proxyaddress=" HYPERLINK "http://<yourproxy:port#>"
http://<yourproxy:port#>"/>
</defaultProxy>

我是否可以在 JSON 配置中设置代理,类似于在 Web 应用程序配置中设置代理来解决此问题?

感谢您对此的帮助。

谢谢

最佳答案

我找到了解决这个问题的方法。如果有人遇到同样的问题,这可能对你有用

  1. 为msdeploy.exe添加代理设置,您需要先找到它(通常在C:\Program Files (x86)\IIS\Microsoft Web Deploy V3中)并编辑msdeploy.exe.config文件

    <system.net>
    <defaultProxy useDefaultCredentials="true" />
    </system.net>
  2. 在项目的发布配置文件(可以有多个)(位于项目 > 属性 > PublishProfiles 下)中,您需要添加以下行,以便它使用 msdeploy.exe 进行发布。

    <UseMsdeployExe>true</UseMsdeployExe>

关于azure - 通过代理从 Visual Studio 部署 Azure 函数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52538338/

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com