@azure/functions-extensions-servicebus does not work with @azure/functions version 4.9.0, when starting function following errors is being thrown:
[2025-12-19T13:35:13.429Z] Executed 'Functions.serviceBusTrigger' (Failed, Id=b4becf29-6453-4d45-82a0-29b52102c64f, Duration=2ms)
[2025-12-19T13:35:13.429Z] System.Private.CoreLib: Exception while executing function: Functions.serviceBusTrigger. System.Private.CoreLib: Result: Failure
[2025-12-19T13:35:13.429Z] Exception: Unable to create client. Please register the extensions library with your function app. Error: Factory for type "AzureServiceBusReceivedMessage" is not registered. Register a factory implementation before creating clients.
[2025-12-19T13:35:13.429Z] Stack: Error: Unable to create client. Please register the extensions library with your function app. Error: Factory for type "AzureServiceBusReceivedMessage" is not registered. Register a factory implementation before creating clients.
[2025-12-19T13:35:13.429Z] at fromRpcTypedData (file:///pnpm-esbuild-exponential-backoff/dist/dist/src/functions/index.mjs:57207:25)
[2025-12-19T13:35:13.429Z] at InvocationModel.<anonymous> (file:///pnpm-esbuild-exponential-backoff/dist/dist/src/functions/index.mjs:56595:73)
[2025-12-19T13:35:13.429Z] at Generator.next (<anonymous>)
[2025-12-19T13:35:13.429Z] at file:///pnpm-esbuild-exponential-backoff/dist/dist/src/functions/index.mjs:56470:79
[2025-12-19T13:35:13.429Z] at new Promise (<anonymous>)
[2025-12-19T13:35:13.429Z] at __awaiter2 (file:///pnpm-esbuild-exponential-backoff/dist/dist/src/functions/index.mjs:56449:22)
[2025-12-19T13:35:13.429Z] at InvocationModel.getArguments (file:///pnpm-esbuild-exponential-backoff/dist/dist/src/functions/index.mjs:56570:24)
[2025-12-19T13:35:13.429Z] at y.<anonymous> (/opt/homebrew/Cellar/azure-functions-core-tools@4/4.2.2/workers/node/dist/src/worker-bundle.js:2:38523)
[2025-12-19T13:35:13.429Z] at Generator.next (<anonymous>)
[2025-12-19T13:35:13.429Z] at o (/opt/homebrew/Cellar/azure-functions-core-tools@4/4.2.2/workers/node/dist/src/worker-bundle.js:2:36540).
If you downgrade @azure/functions version to 4.7.4-preview all works as expected.
This can be replicated by upgrading package version in the https://github.com/swapnil-nagar/msft-azure-service-bus-batch/blob/swapnil/serviceBusMessageSettlementFix/pnpm-esbuild-exponential-backoff/package.json.
@azure/functions-extensions-servicebus does not work with
@azure/functionsversion4.9.0, when starting function following errors is being thrown:If you downgrade
@azure/functionsversion to4.7.4-previewall works as expected.This can be replicated by upgrading package version in the https://github.com/swapnil-nagar/msft-azure-service-bus-batch/blob/swapnil/serviceBusMessageSettlementFix/pnpm-esbuild-exponential-backoff/package.json.