microsoft / microsoft/aspire

Add support for Azure Sql Elastic Pool

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

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

_No response_

### Describe the solution you'd like

When creating an Azure SqlServer resource it would be helpful to be able to define one or more elastic pools that databases may be added to rather than adding them directly to the SqlServer:

```cs
var sqlServer = builder.AddAzureSqlServer("sqlServer");
var pool = sqlServer.AddElasticPool("sqlPool");

// Added directly to the SqlServer
var db0 = sqlServer.AddDatabase("db0");

// Added to the Elastic Pool
var db1 = pool.AddDatabase("db1");
var db2 = pool.AddDatabase("db2");
```

### Additional context

_No response_

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.