|
183 | 183 | "const_ihsArguments1": "[concat(' ',variables('name_dmgrVM'),' ',parameters('ihsUnixUsername'),' ',parameters('ihsAdminUsername'),' ',parameters('ihsAdminPassword'),' ',variables('name_storageAccount'))]", |
184 | 184 | "const_ihsArguments2": "[concat(' ',variables('name_share'),' ',variables('const_mountPointPath'))]", |
185 | 185 | "const_ihsDnsLabelPrefix": "[concat(parameters('ihsDnsLabelPrefix'), take(replace(parameters('guidValue'),'-',''),6))]", |
| 186 | + "const_ihsLinuxConfiguration": { |
| 187 | + "disablePasswordAuthentication": true, |
| 188 | + "ssh": { |
| 189 | + "publicKeys": [ |
| 190 | + { |
| 191 | + "path": "[concat('/home/', parameters('ihsUnixUsername'), '/.ssh/authorized_keys')]", |
| 192 | + "keyData": "[parameters('ihsUnixPasswordOrKey')]" |
| 193 | + } |
| 194 | + ] |
| 195 | + } |
| 196 | + }, |
186 | 197 | "const_linuxConfiguration": { |
187 | 198 | "disablePasswordAuthentication": true, |
188 | 199 | "ssh": { |
|
604 | 615 | "computerName": "[variables('name_ihsVM')]", |
605 | 616 | "adminUsername": "[parameters('ihsUnixUsername')]", |
606 | 617 | "adminPassword": "[parameters('ihsUnixPasswordOrKey')]", |
607 | | - "linuxConfiguration": "[if(equals(parameters('ihsAuthenticationType'), 'password'), json('null'), variables('const_linuxConfiguration'))]", |
| 618 | + "linuxConfiguration": "[if(equals(parameters('ihsAuthenticationType'), 'password'), json('null'), variables('const_ihsLinuxConfiguration'))]", |
608 | 619 | "customData": "[base64(concat(parameters('ibmUserId'), ' ', parameters('ibmUserPwd')))]" |
609 | 620 | }, |
610 | 621 | "networkProfile": { |
|
0 commit comments