Skip to content
New issue

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

Local code snippets and correct persisted volumes #760

Merged
merged 4 commits into from
Apr 26, 2024

Conversation

IEvangelist
Copy link
Member

@IEvangelist IEvangelist commented Apr 26, 2024

Summary

In this PR:

Fixes #672


Internal previews

📄 File 🔗 Preview link
docs/fundamentals/persist-data-volumes.md Persist .NET Aspire app data using volumes

@dotnet-bot dotnet-bot added the fundamentals Content related to fundamentals. label Apr 26, 2024
@IEvangelist IEvangelist requested a review from tdykstra April 26, 2024 17:45
@IEvangelist IEvangelist merged commit 25e6f17 into dotnet:main Apr 26, 2024
7 checks passed
// Retrieve the password you created from user secrets
var password = builder.Configuration["samplepassword"];
```
- `Parameters:{resourceName}-password`: In the case of the SQL Server resource (which was named `"sql"`), the password is stored in the configuration with the key `Parameters:sql-password`.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@IEvangelist to avoid conflicts between volumes from different app hosts, the volume names are prefixed with the app host name. Wouldn't it make sense to do the same for parameters?

@IEvangelist IEvangelist deleted the volumes branch May 1, 2024 19:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fundamentals Content related to fundamentals.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Create a persistent password shouldn't point to sample method
4 participants