File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/Compute/Compute/VirtualMachine/Operation Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -444,7 +444,7 @@ public async Task<ResourceConfig<VirtualMachine>> CreateConfigAsync()
444
444
445
445
446
446
List < SshPublicKey > sshPublicKeyList = new List < SshPublicKey > ( ) ;
447
- if ( _cmdlet . ConfigAsyncVisited == true && ( _cmdlet . SshKeyName != null || _cmdlet . GenerateSshKey == true ) )
447
+ if ( _cmdlet . SshKeyName != null || _cmdlet . GenerateSshKey == true )
448
448
{
449
449
if ( ImageAndOsType ? . OsType != OperatingSystemTypes . Linux )
450
450
{
@@ -1071,6 +1071,10 @@ private static string GetStorageAccountNameFromUriString(string uriStr)
1071
1071
1072
1072
private string SshKeyForLinux ( )
1073
1073
{
1074
+ if ( this . ConfigAsyncVisited == true )
1075
+ {
1076
+ this . GenerateSshKey = false ;
1077
+ }
1074
1078
1075
1079
if ( this . GenerateSshKey . IsPresent && ! this . IsParameterBound ( c => c . SshKeyName ) )
1076
1080
{
You can’t perform that action at this time.
0 commit comments