I am getting the below error while trying to deploy an Ubuntu Linux VM . My VNET, Availability Set, Storage Account, Container, NIC, all got deployed successfully. But i am having issue while trying to deploy the VM. I have created an SSH Public Key in my local machine and the file name is "ssh.txt.pub". My private key file name is "ssh.txt"
I kept the parameter blank for "adminPasswordOrKey" securestring param, so that while deploying it will ask me to provide the public key. After providing the public key in the box during deployment, i get the below error :
{
"code": "DeploymentFailed",
"message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.",
"details": [
{
"code": "BadRequest",
"message": "Could not find member 'adminPasswordOrKey' on object of type 'OSProfile'. Path 'properties.osProfile.adminPasswordOrKey', line 1, position 333."
}
]
}
What is the way to pass on the public key generated from my local machine so that the VM gets deployed successfully?
My code is in the below repo
https://github.com/palchak/Ubuntu-VM.git
Any help would be appreciated