0

i tried

az vm create \
--resource-group my_Env \
--name newVMfromImage \
--image Machine-image \
--admin-username myuser \
--data-disk-sizes-gb 150 --size Standard_B1ms \
--ssh-key-value /path/to/my/puvlik/key/azure.pub
--verbose

and i get this response :

Deployment failed. Correlation ID: **-**-**-**-**. {
  "error": {
    "code": "PropertyChangeNotAllowed",
    "message": "Changing property 'linuxConfiguration.ssh.publicKeys' is not allowed.",
    "target": "linuxConfiguration.ssh.publicKeys"
  }
}

i created the key via putty and copied only the public key to my Linux VM

2 Answers 2

1

this means that your vm is already created and you try to update, but you defined a different publicKey for it, which is not supported. change the vm name or resource group or both and this error will go away

Sign up to request clarification or add additional context in comments.

Comments

1

Correct, this seems like that your VM has already been created previously and is currently in the deployment state. It is still being configured that is might be why you are not able to see it.

You might also want to have a look at this issue.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.