How to install PubSub along with Microsoft.Azure.Functions.ExtensionBundle

Aaron Manill 86 Reputation points
2022-02-28T19:12:27.98+00:00

I am looking to implement PubSub in an existing project that is already using the Microsoft.Azure.Functions.ExtensionBundle, which currently does not contain PubSub. What is the easiest way to get PubSub implemented my serverless implementation in this case, do I need to remove Microsoft.Azure.Functions.ExtensionBundle from host.json and manually install everything I currently use with func extensions install ?

Azure Web PubSub
Azure Web PubSub
An Azure service that provides real-time messaging for web applications using WebSockets and the publish-subscribe pattern.
59 questions
Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,262 questions
0 comments No comments
{count} votes

Accepted answer
  1. AnuragSingh-MSFT 19,846 Reputation points
    2022-03-02T10:42:32.87+00:00

    Hi @Aaron Manill ,

    Welcome to Microsoft Q&A! Thanks for posting the question.

    I see that you are trying to use PubSub in an existing project, however the extension bundle version, being used in this project, does not contain PubSub. Please note that - you can't explicitly install extensions in a function app that is using extension bundles. You will have to remove the extensionBundle section in host.json before explicitly installing extensions. Please refer to the Important section of this link: Explicitly install extensions.

    --updated 03/08/2022--
    The table documented here points to 3.4.0 version of extension.json which has pubsub binding included in the extension bundle. However, this version has not been released yet. I am reaching out to the Internal team for more clarification and update as required.

    Please let me know if you have any questions.

    ---
    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful