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
Azure VMware Solution
An Azure service that runs native VMware workloads on Azure.
356 questions
0 comments No comments
{count} votes

Accepted answer
  1. Olga Os - MSFT 5,921 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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

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