Share via

Create a Linux virtual machine and install Nginx Error message

Jeremiah Otaru 20 Reputation points
2023-12-11T09:59:37.2433333+00:00

i get this error while trying out the exercise from the (Describe Azure compute and networking services) "Create a Linux virtual machine and install Nginx"

az vm create \

--resource-group learn-60170c16-3498-49ac-b16b-69e2316c2391 \

--name my-vm \

--public-ip-sku Standard \

--image Ubuntu2204 \

--admin-username azureuser \

--generate-ssh-keys

{"status":"Failed","error":{"code":"DeploymentFailed","target":"/subscriptions/6a102217-8579-4a7b-a135-4ed6f44db887/resourceGroups/learn-60170c16-3498-49ac-b16b-69e2316c2391/providers/Microsoft.Resources/deployments/vm_deploy_Bo2xMjNcfqgRahUmRLPY485GNmhVaa4C","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.","details":[{"code":"PropertyChangeNotAllowed","target":"imageReference","message":"Changing property 'imageReference' is not allowed."}]}}

Azure VMware Solution
0 comments No comments

Answer accepted by question author

Olga Os - MSFT 5,966 Reputation points Microsoft Employee
2023-12-11T18:18:21.8566667+00:00

Hello Jeremiah Otaru,

Welcome to the MS Q&A Forum.

It seems under the same learning sandbox you tried to create a VM with the different image and it wasn't allowed. (First successful deployment was a VM from the image Ubuntu 20.04 LTS - Focal Fossa).

Could you please try to activate a new sandbox and deploy a new VM one more time?

Sincerely,

Olga Os.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.