test question for reporting behavior

Art Vandelay 10 Reputation points
2026-06-16T13:49:16.2533333+00:00

How do I make an azure vm using CLI? It needs to be EUS, size dsv2 and with premium storage

Community Center | Not monitored

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. AI answer

    2026-06-16T13:49:44.4033333+00:00

    Use the Azure CLI az vm create command and specify the region, size, and a Premium-capable SKU such as a DSv2-series VM. For East US (eastus) and a DSv2 size with Premium storage enabled, a basic example is:

    az vm create \
      --resource-group myResourceGroup \
      --name myVM \
      --location eastus \
      --image Ubuntu2204 \
      --size Standard_DS2_v2 \
      --os-disk-type Premium_LRS \
      --admin-username azureuser \
      --generate-ssh-keys
    

    Key points:

    • --location eastus creates the VM in East US.
    • --size Standard_DS2_v2 selects a DSv2-series size that supports Premium disks.
    • --os-disk-type Premium_LRS ensures the OS disk uses Premium storage.

    Adjust the resource group, VM name, image, and size as needed.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer 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.