gpt4 book ai didi

azure - 如何使用自托管 ExtensionBundle

转载 作者:行者123 更新时间:2023-12-03 06:58:16 24 4
gpt4 key购买 nike

在本地工作时,如何引导 azure-core-tools 从自托管端点下载“Microsoft.Azure.Functions.ExtensionBundle”而不是“https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft” .Azure.Functions.ExtensionBundle/index.json”?

在企业环境中,互联网代理通常会阻止对互联网的访问,而 artefact 必须改为托管在 Intranet 上。

最佳答案

感谢@DeepDave-MT 评论,我得以弄清楚。

按照严格路径上传扩展包和index.json:

/Microsoft.Azure.Functions.ExtensionBundle/<version>/Microsoft.Azure.Functions.ExtensionBundle.<version>.zip (可从https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/2.13.0/Microsoft.Azure.Functions.ExtensionBundle.2.13.0.zip下载)

/Microsoft.Azure.Functions.ExtensionBundle/index.json (您使用该文件 https://functionscdn.azureedge.net/public/ExtensionBundles/Microsoft.Azure.Functions.ExtensionBundle/index.json )

启动 az function core 工具之前设置环境变量 FUNCTIONS_EXTENSIONBUNDLE_SOURCE_URI=https://example.net/some/path/

Az 核心工具将首先获取 index.json,检查其中列出的版本,然后下载 zip。

关于azure - 如何使用自托管 ExtensionBundle,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72704047/

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