Hello @Bob Zhao
It looks like there’s an issue with the SSH public key parameter in your deployment command. The error message indicates that the value of linuxConfiguration.ssh.publicKeys.keyData
is invalid. Here are a few things you can check:
Correct Path: Ensure that the path to your public key is correct. It should be ~/.ssh/authorized_keys
(note the plural keys
).
Public Key Content: Verify that the content of the public key file is correct. You can do this by running:
cat ~/.ssh/authorized_keys
The output should start with ssh-rsa
followed by the key.
Parameter Value: Make sure you are passing the actual content of the public key, not the path to the file. You can update your command like this:
az deployment group create -n -g --template-file ./marinerazuredeploy.json --parameters projectName= adminUsername=bob adminPublicKey=
Key Format: Ensure that the key is in the correct format. Sometimes, extra spaces or newlines can cause issues.
Try these steps and see if they resolve the issue. If you still encounter problems, feel free to share more details!