Open davidfowl opened 4 months ago
Moving this to preview 5. The preview 4 mode of operation will be something like this:
var keyVault = builder.ExecutionContext.IsPublishMode ?
builder.AddKeyVault("kv") :
builder.AddConnectionString("kv");
builder.AddProject<Projects.Api>("api").WithReference(kv);
We'll add the ability to use an existing resource in preview 5
For GA we'll do use AddConnectionString(...).
We removed the ability to specify a connection string directly for arbitrary resources now that we have the
AddConnectionString
method. This adds a bit of friction when you want to directly specify the information for pre-provisioned to be used in development, while still allowing them to be provisioned during deployment.