admin管理员组

文章数量:1123140

So I've created a resource pubsub.yaml which references a Service Bus Connection String. It works fine on my local machine using .NET Aspire, however when I use the az up (Container Apps) it fails. In the Aspire Dashboard I can see the daprstore is running but the service itself is stuck on a pending state. In Container Apps I can also see that the Dapr Components is set to redis instead of Service Bus. Any idea what's going wrong?

I tried the following code below:

var pubSub = builder.AddDaprPubSub("pubsub");

var apiService = builder.AddProject<Projects.SomeService>("someservice")
    .WithDaprSidecar()
    .WithReference(pubSub);

builder.Build().Run();

Service Bus YAML:

apiVersion: dapr.io/v1alpha1
kind: Component
metadata:
  name: pubsub
spec:
  type: pubsub.azure.servicebus
  version: v1
  metadata:
  - name: connectionString
    value: "Endpoint=someEndPoint"
  - name: topic
    value: "someTopic"
  - name: subscriptionName
    value: "someSubscriptionName"

本文标签: azureWhy is Dapr PubSub set to redis instead of Service Bus in ContainerApps (NET Aspire)Stack Overflow