props.put(USERNAME, DEFAULT_USER_NAME);
X509Certificate sshCert = null;
try {
sshCert = createX509Certificate(azureCredential, po.getEmailAsFolder());
} catch (FileNotFoundException e) {
throw new StackCreationFailureException(e);
} catch (CertificateException e) {
throw new StackCreationFailureException(e);
}
try {
props.put(SSHPUBLICKEYFINGERPRINT, sshCert.getSha1Fingerprint().toUpperCase());
} catch (CertificateEncodingException e) {
throw new StackCreationFailureException(e);
} catch (NoSuchAlgorithmException e) {
throw new StackCreationFailureException(e);
}
props.put(SSHPUBLICKEYPATH, String.format("/home/%s/.ssh/authorized_keys", DEFAULT_USER_NAME));
props.put(AFFINITYGROUP, po.getCommonName());
if (azureTemplate.getVolumeCount() > 0) {
List<Integer> disks = new ArrayList<>();