We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As of Aspire 9.0, Azure Database for PostgreSQL resources were updated to use Microsoft Entra ID by default.
Then, I start integration according to this article.
It says
builder.AddNpgsqlDbContext<YourDbContext>( "postgresdb", configureDataSourceBuilder: (dataSourceBuilder) => { if (!string.IsNullOrEmpty(dataSourceBuilder.ConnectionStringBuilder.Password)) { return; } dataSourceBuilder.UsePeriodicPasswordProvider(async (_, ct) => { var credentials = new DefaultAzureCredential(); var token = await credentials.GetTokenAsync( new TokenRequestContext([ "https://ossrdbms-aad.database.windows.net/.default" ]), ct); return token.Token; }, TimeSpan.FromHours(24), TimeSpan.FromSeconds(10)); });
but no such overload for AddNpgsqlDbContext exists.
The text was updated successfully, but these errors were encountered:
same issue here
Sorry, something went wrong.
No branches or pull requests
As of Aspire 9.0, Azure Database for PostgreSQL resources were updated to use Microsoft Entra ID by default.
Then, I start integration according to this article.
It says
but no such overload for AddNpgsqlDbContext exists.
The text was updated successfully, but these errors were encountered: