Azure / azure-dev

A developer CLI that reduces the time it takes for you to get started on Azure. The Azure Developer CLI (azd) provides a set of developer-friendly commands that map to key stages in your workflow - code, build, deploy, monitor, repeat.
https://aka.ms/azd
MIT License
396 stars 190 forks source link

[Issue] Access ConnectionStrings using .NET preferred mechanism #3042

Open isaacrlevin opened 9 months ago

isaacrlevin commented 9 months ago

Based on this conversation in another PR https://github.com/Azure/azure-dev/pull/3017#pullrequestreview-1745998594

The existing process to get the connection string for the C# templates is to store the actual connection string in KeyVault, then have a "KEY" that is stored in an environment variable that acts as a lookup when retrieving the secret from KeyVault.

Per @davidfowl it would be ideal for the connection string to follow the idiomatic naming convention for Connection strings. Doing this requires to update the CORE bicep templates that build out the infrastructure deployments. These templates are shared amongst ALL language templates and would require updating every template if that change is made.

@jongio asked me to create this issue so we can discuss further.

rajeshkamal5050 commented 6 months ago

Fix is on the c# templates. Keeping it in backlog.