microsoft / microsoft/aspire

Unable to use Azure table-storage with Orleans reminders

Open
#4,010 10 comments 4 reactions 0 assignees View on GitHub
area-integrations orleans
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

Not sure if this is Aspire, Orleans or user issue, but I am unable to use Azure table-storage with reminders. This happens when running locally (preview 5 & 6) using either Aspire provisioned storage-account or storage-emulator. Orleans setup with development-clustering and memory-storages works fine.

```
// AppHost:
var tables = builder.AddAzureStorage("storage").AddTables("tables");
-- OR --
var tables = builder.AddAzureStorage("storage-emulator").RunAsEmulator().AddTables("tables");

var orleans = builder.AddOrleans("myapp-cluster")
.WithClustering(tables)
.WithGrainStorage("myapp-grains", tables)
.WithReminders(tables);

// Orleans-resource:
builder.AddKeyedAzureTableClient("tables");
builder.UseOrleans();
```
Above setup causes orleans-resources to exit with error:
`System.InvalidOperationException: Could not find Reminders provider named 'AzureTableStorage'. This can indicate that either the 'Microsoft.Orleans.Sdk' or the provider's package are not referenced by your application.`

If I switch reminders to use Redis then everything works as expected.

Trying to use table-storage resource with connection-string (builder.AddConnectionString(...)) causes an error with clustering:
`System.InvalidOperationException: Could not find Clustering provider named 'ResourceWithConnectionStringSurrogate'. This can indicate that either the 'Microsoft.Orleans.Sdk' or the provider's package are not referenced by your application.`

Adding Orleans.SDK makes no difference and since Orleans.Server package is present it shouldn't be needed anyways:
```

```

Am I missing some packages or Aspire-setup here?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.