Skip to content

Instantly share code, notes, and snippets.

@unixfox
Created July 31, 2023 18:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save unixfox/fc2b66f691df83f3539774f0fe9c1418 to your computer and use it in GitHub Desktop.
Save unixfox/fc2b66f691df83f3539774f0fe9c1418 to your computer and use it in GitHub Desktop.
second free linux VM under azure free tier
  1. Create a Windows VM
  2. Create a snapshot of an existing disk of a Linux VM
  3. Create a disk from this snapshot.
  4. Open the cloud shell and execute:
    $update = New-AzureRmDiskUpdateConfig -OsType <OSType>
    Update-AzureRmDisk -DiskName <diskname> -DiskUpdate $update -ResourceGroupName <rgname>
    
  5. Go to disk inside the Windows VM.
  6. Use the Swap OS function to select the new Linux disk. Then start the VM.
  7. Don't forget to remove the old Windows OS disk and the snapshot.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment