Share via

Not able to create a VM linux

Deepak 20 Reputation points
2025-09-01T03:33:38.61+00:00

Hi, I am not able to create a linux vm under my student account.
The page don't throw any error and I am struct on the create page. I know you can create vm for allowed region, even tried that but no success.
I am in this section. Home -> Free services
Can you please help me, so I can create a free 750 hours linux vm.

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.

0 comments No comments

Answer accepted by question author

TP 157.5K Reputation points Volunteer Moderator
2025-09-01T03:48:06.4+00:00

Hi Deepak,

There is a bug in the Marketplace Free VM offer that has public IP set to Standard SKU (correct), but still has allocation set to Dynamic (incorrect). What you can do is manually create VM using correct parameters to qualify for free. To start the process you may use link below:

https://portal.azure.com/#create/Microsoft.VirtualMachine

For Linux, when creating, set

  • Size: Standard_B1s
  • Image: Ubuntu Server 22.04 LTS - x64 Gen2
  • OS disk size: 64 GiB (P6)
  • OS disk type: Premium SSD (locally-redundant storage)
  • Monitoring tab: Boot diagnostics: Disable

Don't enable any of the options if you want to avoid charges, for example, if you turned on Backup that has a charge associated with it.

After creating VM, please monitor costs (at least daily) by navigating to your subscription. If you used correct parameters for the VM you should not see any charges accrue related to it, except for the public IP address. Charges are delayed, so it will take typically several hours (after creation) before any would show up.

If you associate Public IP address with the VM, it is likely that you will be charged for this (about $3.65/month each). You can minimize the charges by dissociating it from the VM's network interface and deleting it when you are not using the VM.

To do this you would navigate to the Public IP address in the portal, click Dissociate, confirm, wait for it to complete, then click Delete, confirm. Please see screenshot:

Next time you need public IP for your VM you would simply create a new Standard Public IP address and Associate it with the VM's network interface again. Creating a new Standard Public IP typically only takes seconds to complete.

Any free Linux image should be okay to qualify, assuming it fits within the 64 GiB (P6) mandatory disk size, is fine. I just put Ubuntu Server 22.04 LTS - x64 Gen2 since that was one of several included in the pre-built marketplace offer.

You didn't ask but for Windows you would use [smalldisk] Windows Server images with P6 LRS disk.

After creating Linux VM you should expand the partition so you are using the full 64 GiB:

https://learn.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks?tabs=ubuntu#expand-a-disk-partition-and-filesystem

Please click Accept Answer and upvote if the above was helpful.

Thanks.

-TP

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.