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 2056e85 commit d5deaa2Copy full SHA for d5deaa2
src/ResourceManager/HDInsight/Commands.HDInsight/ManagementCommands/NewAzureHDInsightClusterCommand.cs
@@ -323,7 +323,7 @@ public override void ExecuteCmdlet()
323
parameters.RdpPassword = RdpCredential.Password.ConvertToString();
324
}
325
326
- if (OSType == OSType.Linux)
+ if (OSType == OSType.Linux && SshCredential != null)
327
{
328
parameters.SshUserName = SshCredential.UserName;
329
if (!string.IsNullOrEmpty(SshCredential.Password.ConvertToString()))
0 commit comments