如何使用调用禁用(未运行)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 进行测试来部署它,这次我收到了详细的错误消息。
这是因为默认设置是 blob,即使它未在应用程序设置中显示,因此您可以将环境变量 AzureWebJobsSecretStorageType
值更改为 Files
。
此后,您将能够在 VS 中上传功能已停止的逻辑应用。
关于visual-studio - 如何使用调用禁用(未运行)Azure Function 的 VS 部署 Azure 逻辑应用程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55638616/