Lab validation issue: SSH key 'datacenter-kp' does not exist (Azure VM task)

Hi team,

I’m working on the lab Create SSH Key Pair for Azure Virtual Machine.
“The Nautilus DevOps team is strategizing the migration of a portion of their infrastructure to the Azure cloud. Recognizing the scale of this undertaking, they have opted to approach the migration in incremental steps rather than as a single massive transition. To achieve this, they have segmented large tasks into smaller, more manageable units. This granular approach enables the team to execute the migration in gradual phases, ensuring smoother implementation and minimizing disruption to ongoing operations. By breaking down the migration into smaller tasks, the Nautilus DevOps team can systematically progress through each stage, allowing for better control, risk mitigation, and optimization of resources throughout the migration process. For this task, create an SSH key pair with the following requirements: The name of the SSH key pair should be datacenter-kp. The key pair type must be rsa. how to do this”

I created an RSA SSH key named datacenter-kp using ssh-keygen.
The key exists at ~/.ssh/datacenter-kp with correct permissions.

Commands used:
ssh-keygen -t rsa -f ~/.ssh/datacenter-kp
chmod 600 ~/.ssh/datacenter-kp
chmod 644 ~/.ssh/datacenter-kp.pub

Verification:
ls -l ~/.ssh/datacenter-kp*

However, the lab still fails with:
“SSH key ‘datacenter-kp’ does not exist.”

There is no non-root user in this environment.
Please advise if this is a validation issue.

Thanks in advance.

You’ve created a key locally, but not within the azure cluster. So no key is found there. See this note from Azure’s docs for how to do the necessary.