Skip to content

Commit 8f010d9

Browse files
committed
Merge branch 'aspire92' of https://github.com/Azure-Samples/azure-sql-db-aspire into aspire92
2 parents cb1a3e1 + da3caef commit 8f010d9

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# SQL Server Aspire Samples
22

3-
A set of samples that show how to integrate SQL Server and Azure SQL with .NET Aspire. **Updated to use Aspire 9.2.**
3+
A set of samples that show how to integrate SQL Server and Azure SQL with .NET Aspire.
4+
5+
**Updated to use Aspire 9.2.**
46

57
+ [SQL Server Aspire Samples](#sql-server-aspire-samples)
68
+ [Base Sample](#base-sample)
@@ -44,7 +46,13 @@ dotnet user-secrets set 'ConnectionStrings:db' '<your-connection-string>'
4446

4547
- Folder: [`./hostedss`](./hostedss)
4648

47-
Change the BYOSS sample so the SQL Server is deployed and managed by Aspire orchestration, providing a basic integration with the Aspire environment. SQL Server is deployed in a OCI container by Aspire. No changes to WebAPI project.
49+
Change the BYOSS sample so the SQL Server is deployed and managed by Aspire orchestration, providing a basic integration with the Aspire environment. SQL Server is deployed in a OCI container by Aspire. No changes to WebAPI project. If you want to set the password for the created SQL Server, you can do it by setting the `` user secret:
50+
51+
```bash
52+
dotnet user-secrets set 'Parameters:sqlsrv-password' '<your-password>'
53+
```
54+
55+
otherwise a random generated password will be used. Read all the details on Azure SQL and SQL Server integration with Aspire here: [.NET Aspire SQL Server integration](https://learn.microsoft.com/en-us/dotnet/aspire/database/sql-server-integration)
4856

4957
The integration with Aspire is quite basic in this sample as it is done using only on the server side, introducting usage the `Aspire.Hosting.SqlServer` library in AppHost project.
5058

0 commit comments

Comments
 (0)