dapr / dotnet-sdk

Dapr SDK for .NET
Apache License 2.0
1.12k stars 340 forks source link

Dapr Topic subscription does not work on Azure Container Apps #1197

Closed bastiennoel93 closed 1 year ago

bastiennoel93 commented 1 year ago

Hello,

I don't see any subscriptions on my topic when deploying my api on azure container app.

In my app environment container, I created a component with the type "pubsub.azure.servicebus.topics" with the metadata for connecting to the namespace.

I've added the code in my api to subscribe to the topic :

app.UseCloudEvents();
app.UseEndpoints(endpoints =>
{
    endpoints.MapSubscribeHandler();
});

When I call "/dapr/subscribe" in my api, I see the various endpoints with their topics.

Subscription is done locally using Tye.

Is there anything else I need to do for the subscription to work on azure container app?

bastiennoel93 commented 1 year ago

It's okay, it was just an identity issue.