azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

Default environment name to current directory name...

Open markweitzel opened this issue 3 years ago • 4 comments

When doing an azd up command with a template, the user is prompted for an environment name. We should default this to the name of the current empty directory. Note, we'll still need to verify the naming constraints, e.g. length. azd up --template todo-nodejs-mongo 2022-05-02 17-38-39

markweitzel avatar May 02 '22 21:05 markweitzel

Related Azure/azure-dev-pr#981

jongio avatar May 02 '22 22:05 jongio

We want "environment name" to be unique across all of azure, to prevent name collisions. It feels like this strategy makes that way less likely. I think Azure/azure-dev-pr#981 points to the fact that the directory name is more likely tied to a repository name which we expect would not vary widely which also gives me pause about doing what Mark proposes.

ellismg avatar May 12 '22 06:05 ellismg

Okay, maybe the default name is something else. Like folder name + random char. How about we hold on this and take it after we fleshout naming.

jongio avatar May 12 '22 15:05 jongio

@ellismg This is probably related to your proposal.

savannahostrowski avatar Jul 29 '22 17:07 savannahostrowski