@Sourav Thanks for reaching out. When migrating to the isolated worker model, you need to change the packages your application references.
If you haven't already, update your project to reference the latest stable versions of:
You can replace references to Microsoft.Azure.WebJobs.Extensions.ServiceBus
with the latest version of
Microsoft.Azure.Functions.Worker.Extensions.ServiceBus.
Any changes to extension versions during this process might require you to update your host.json
file as well. The Service Bus extension has breaking changes in the structure between versions 4.x and 5.x. For more information, see Azure Service Bus bindings for Azure Functions.
Kindly note that with the isolated model, the only way to configure the extension running in the host is through host.json.
Reference documents:
- https://learn.microsoft.com/en-us/azure/azure-functions/migrate-dotnet-to-isolated-model?tabs=net8
- https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-service-bus?tabs=isolated-process%2Cextensionv5%2Cextensionv3&pivots=programming-language-csharp
- https://learn.microsoft.com/en-us/azure/azure-functions/dotnet-isolated-process-guide?tabs=linux#start-up-and-configuration