Skip to content

Cli nukes existing SSH id_rsa key when creating AKS cluster #7926

Description

@andig

Describe the bug
Creating an AKS cluster with

az aks create ... --generate-ssh-keys

will silenty overwrite an existing key in .ssh/id_rsa. Just nuked mine and I lost ssh access to my remote hosts.

To Reproduce

az aks create ... --generate-ssh-keys

Expected behavior
Raise an error message if key file already exists

Environment summary
OSX howebrew

Metadata

Metadata

Assignees

Labels

AKSaz aks/acs/openshift

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions