Title: Workaround for issue with hosting Durable Functions app on preview Flex Consumption plan · Issue #197 · microsoft/durabletask-java · GitHub
Open Graph Title: Workaround for issue with hosting Durable Functions app on preview Flex Consumption plan · Issue #197 · microsoft/durabletask-java
X Title: Workaround for issue with hosting Durable Functions app on preview Flex Consumption plan · Issue #197 · microsoft/durabletask-java
Description: Problem today If you deploy a Java Durable Functions app to the Flex Consumption plan (currently in preview), you'll see the following error message on Portal when the app starts: Microsoft.Extensions.DependencyInjection: Unable to activ...
Open Graph Description: Problem today If you deploy a Java Durable Functions app to the Flex Consumption plan (currently in preview), you'll see the following error message on Portal when the app starts: Microsoft.Extensi...
X Description: Problem today If you deploy a Java Durable Functions app to the Flex Consumption plan (currently in preview), you'll see the following error message on Portal when the app starts: Microsoft.Ext...
Opengraph URL: https://github.com/microsoft/durabletask-java/issues/197
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Workaround for issue with hosting Durable Functions app on preview Flex Consumption plan","articleBody":"## Problem today\r\nIf you deploy a Java Durable Functions app to the Flex Consumption plan (currently in preview), you'll see the following error message on Portal when the app starts:\r\n\r\nMicrosoft.Extensions.DependencyInjection: Unable to activate type 'DurableTask.Netherite.AzureFunctions.NetheriteProviderFactory'. The following constructors are ambiguous: Void .ctor(Microsoft.Extensions.Options.IOptions`1[Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskOptions], Microsoft.Extensions.Logging.ILoggerFactory, Microsoft.Azure.WebJobs.Host.Executors.IHostIdProvider, Microsoft.Azure.WebJobs.INameResolver, System.IServiceProvider, DurableTask.Netherite.ConnectionResolver, Microsoft.Azure.WebJobs.Extensions.DurableTask.IPlatformInformation) Void .ctor(Microsoft.Extensions.Options.IOptions`1[Microsoft.Azure.WebJobs.Extensions.DurableTask.DurableTaskOptions], Microsoft.Extensions.Logging.ILoggerFactory, Microsoft.Azure.WebJobs.Extensions.DurableTask.IConnectionStringResolver, Microsoft.Azure.WebJobs.Host.Executors.IHostIdProvider, Microsoft.Azure.WebJobs.INameResolver, Microsoft.Azure.WebJobs.Extensions.DurableTask.IPlatformInformation).\r\n\r\n## Workaround\r\n1. Remove the reference to Extension Bundles in `host.json`. \r\n2. Instead of using bundles, [manually install](https://learn.microsoft.com/azure/azure-functions/durable/durable-functions-extension-upgrade#manually-upgrade-the-durable-functions-extension) the latest stable version of [Durable Functions extension](https://www.nuget.org/packages/Microsoft.Azure.WebJobs.Extensions.DurableTask/2.13.4) to your function app:\r\n\r\n```\r\nfunc extensions install -p Microsoft.Azure.WebJobs.Extensions.DurableTask -v 2.13.4\r\n```\r\nThis should add an `extensions.csproj` file to your app directory. \r\n\r\n3. If you're using other Azure Functions extensions, you'll also need to manually install them. \r\n4. Run your app locally to make sure it's working as expected. \r\n5. Redeploy app to Azure and you should no longer see the error message.\r\n\r\n## Notes\r\n\r\nUse this workaround only if you need to deploy your app to the Flex Consumption plan. \r\n\r\nWe're fixing this issue now so customers can continue to use the Extension Bundles, which is the recommended approach, instead of manually installing extension(s). The reason is bundles will ensure that you're automatically on the latest version of extensions, which often contain critical bug and security fixes. Moreover, all extensions in bundles are tested to ensure that they're compatible with each other, saving you from having to deal with .NET errors when extensions you use are incompatible. \r\n","author":{"url":"https://github.com/lilyjma","@type":"Person","name":"lilyjma"},"datePublished":"2024-06-10T22:51:21Z","url":"https://github.com/microsoft/durabletask-java/issues/197"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bb6b67e2-0e23-1044-960a-1a344515c479 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 806C:13B91D:5F884:7B4FB:6AFE31D1 |
| html-safe-nonce | 39ea3a0846d26db2593a95a8e904ed694ba34b6fbfe69be327284c783725f03f |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDZDOjEzQjkxRDo1Rjg4NDo3QjRGQjo2QUZFMzFEMSIsInZpc2l0b3JfaWQiOiIyNDA4NTE4OTc5MTk4Nzc1ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ad701afe1b37f59a9fbea375cc8348a7e89e80d2eae2099bd4a2271d95ee903e |
| hovercard-subject-tag | issue:2344984638 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/durabletask-java/197/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4365b2958ef1948667ee1463157633f555ddcfe73c4445027ce9ec8b0abc80d2/microsoft/durabletask-java/issues/197 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4365b2958ef1948667ee1463157633f555ddcfe73c4445027ce9ec8b0abc80d2/microsoft/durabletask-java/issues/197 |
| og:image:alt | Problem today If you deploy a Java Durable Functions app to the Flex Consumption plan (currently in preview), you'll see the following error message on Portal when the app starts: Microsoft.Extensi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | lilyjma |
| hostname | github.com |
| expected-hostname | github.com |
| None | d70e31220a67f6376c108d2416fa8e7df854c1065b1672ab7a88ab6dc3a809e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/durabletask-java git https://github.com/microsoft/durabletask-java.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 452823832 |
| octolytics-dimension-repository_nwo | microsoft/durabletask-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 452823832 |
| octolytics-dimension-repository_network_root_nwo | microsoft/durabletask-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ccb88d9c92abe69245b429398c8a57ae87070c7c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width