We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd229af commit ceab374Copy full SHA for ceab374
src/Aks/Aks/Commands/NewAzureRmAks.cs
@@ -266,7 +266,11 @@ private void PreValidate()
266
267
private string GenerateSshKeyValue()
268
{
269
- String generateSshKeyPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".ssh", "id_rsa"); ;
+ String generateSshKeyFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".ssh");
270
+ if (!Directory.Exists(generateSshKeyFolder)) {
271
+ Directory.CreateDirectory(generateSshKeyFolder);
272
+ }
273
+ String generateSshKeyPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".ssh", "id_rsa");
274
if (File.Exists(generateSshKeyPath))
275
276
throw new AzPSArgumentException(
0 commit comments