gpt4 book ai didi

azure - Azure 函数应用程序包还原失败

转载 作者:行者123 更新时间:2023-12-03 02:40:53 25 4
gpt4 key购买 nike

我已在 Azure 中创建了一个 blob 触发函数应用,并将 function.proj 文件添加到项目文件列表中。但是,当我保存 function.proj 时,包显示以下消息并失败并显示以下消息:

2020-04-22T09:24:39  Welcome, you are now connected to log-streaming service. The default timeout is 2 hours. Change the timeout with the App Setting SCM_LOGSTREAM_TIMEOUT (in seconds).
2020-04-22T09:25:23.354 [Information] Restoring packages.
2020-04-22T09:25:23.385 [Information] Starting packages restore
2020-04-22T09:25:24.188 [Information] System.UnauthorizedAccessException: Attempted to perform an unauthorized operation.
2020-04-22T09:25:24.189 [Information] at Internal.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
2020-04-22T09:25:24.189 [Information] at Internal.Win32.RegistryKey.Win32Error(Int32 errorCode, String str)
2020-04-22T09:25:24.189 [Information] at Internal.Win32.RegistryKey.SetValue(String name, String value)
2020-04-22T09:25:24.189 [Information] at System.Environment.SetEnvironmentVariableFromRegistry(String variable, String value, Boolean fromMachine)
2020-04-22T09:25:24.190 [Information] at System.Environment.SetEnvironmentVariable(String variable, String value, EnvironmentVariableTarget target)

我可以在以下 github 链接上看到此问题已得到解决:

https://github.com/Azure/azure-functions-host/issues/4665

但我仍然面临这个问题。

最佳答案

您需要转到 API 管理 > 平台功能 > 配置并添加以下应用程序设置:

键:DOTNET_ADD_GLOBAL_TOOLS_TO_PATH
值:

Azure Functions 正在“在底层计算机上全局”缓存包,此应用程序设置将强制它“在应用程序旁边本地”缓存。

关于azure - Azure 函数应用程序包还原失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61362593/

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