Skip to content

How to add a sql connection string to an existing database? #2848

Closed Answered by mip1983
mip1983 asked this question in Q&A
Discussion options

You must be logged in to vote

Thanks, for that, got this all working. As a small thing, it would be good if there where a prompt some where, perhaps in the <summary> comment on 'AddConnectionString', or on azd where it says 'enter a value for sqlConnection' perhaps it could output '(alternatively create an environment variable called AZURE_SQL_CONNECTION)'.

Because the second parameter to AddConnectionString is 'environmentVariableName', I thought that was what it would be looking for as an input, but I guess it's just what the output variable name is on the container app. Maybe that argument should also determine what azd calls it in the main.parameters.json?

(btw: I like the 'enrich' change as a way of augmenting th…

Replies: 3 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@davidfowl
Comment options

Answer selected by davidfowl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants