visual-studio - 如何使用调用禁用(未运行)Azure Function 的 VS 部署 Azure 逻辑应用程序?

标签 visual-studio azure powershell azure-functions azure-logic-apps

如何使用调用禁用(未运行)Azure Function 的 VS 部署 Azure 逻辑应用?

当我让 Azure Function 运行 VS 2017 中的 Azure 逻辑应用部署时,一切都很棒。

当我停止 Azure Function 运行时,Azure 逻辑应用的部署失败并出现以下错误:

11:54:05 - Template deployment returned the following errors:
11:54:05 - 11:54:04 AM - Resource Microsoft.Logic/workflows '[CONFIDENTIAL STRING...]' failed with message '{
11:54:05 -   "error": {
11:54:05 -     "code": "ListFunctionKeysFailed",
11:54:05 -     "message": "Request to obtain the keys for function '/subscriptions/[CONFIDENTIAL STRING...] failed. Error details: 'System.InvalidOperationException: Runtime keys are stored on blob storage. This API doesn't support this configuration. Please change Environment variable AzureWebJobsSecretStorageType value to 'Files'. For more info, visit https://aka.ms/funcsecrets\r\n   at Kudu.Core.Functions.FunctionManager.<GetKeyObjectFromFile>d__9`1.MoveNext() in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\Functions\\FunctionManager.cs:line 141\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Kudu.Core.Functions.FunctionManager.<GetFunctionSecretsAsync>d__12.MoveNext() in C:\\Kudu Files\\Private\\src\\master\\Kudu.Core\\Functions\\FunctionManager.cs:line 220\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)\r\n   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)\r\n   at Kudu.Services.Functions.FunctionController.<GetSecrets>d__12.MoveNext() in C:\\Kudu Files\\Private\\src\\master\\Kudu.Services\\Functions\\FunctionController.cs:line 141'."
11:54:05 -   }
11:54:05 - }'
11:54:05 - 11:54:04 AM - Template output evaluation skipped: at least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.
11:54:05 - 11:54:04 AM - Template output evaluation skipped: at least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.
11:54:05 - 
11:54:05 - 
11:54:05 - Deploying template using PowerShell script failed.
11:54:05 - Tell us about your experience at https://go.microsoft.com/fwlink/?LinkId=691202

最佳答案

我尝试得到同样的错误,然后我使用 Azure Portal 进行测试来部署它,这次我收到了详细的错误消息。

enter image description here

这是因为默认设置是 blob,即使它未在应用程序设置中显示,因此您可以将环境变量 AzureWebJobsSecretStorageType 值更改为 Files

enter image description here

此后,您将能够在 VS 中上传功能已停止的逻辑应用。

关于visual-studio - 如何使用调用禁用(未运行)Azure Function 的 VS 部署 Azure 逻辑应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55638616/

相关文章:

azure - Azure 存储库变更日志在哪里?

Powershell 编辑元数据,轨道号 1-9 前需要前导零

PowerShell Set-Content 和 Out-File - 有什么区别?

c# - 无法启动进程 dotnet.exe

c++ - 切换值范围

visual-studio - 如何在visual studio 2015cordova项目中更新cordova-ios版本?

pandas - 将 Pandas 或 Pyspark 数据框从 Databricks 保存到 SharePoint

node.js - Azure Web应用程序: activate application logging for more than 12 hours

.net - xmlwriter writedoctype格式化

.net - 在 Visual Studio 2017 中使用 Windows 窗体应用程序?