Skip to content

Instantly share code, notes, and snippets.

@techbunny
Created December 26, 2014 21:17
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 techbunny/59b6d0df8b5c5fa34880 to your computer and use it in GitHub Desktop.
Save techbunny/59b6d0df8b5c5fa34880 to your computer and use it in GitHub Desktop.
The Imperfect Lab: VM Manageablity Tweeks
# To add VMs to Availability Sets
Get-AzureVM -ServiceName "<cloudservicename>" -Name "<servername>"
| Set-AzureAvailabilitySet -AvailabilitySetName "<AVSetName>"
| Update-AzureVM
# To availability sets that exist in your subscription
(Get-AzureService).servicename
| foreach {Get-AzureVM -ServiceName $_ }
| select name,AvailabilitySetName
# Change from Full GUI to Server Core
Remove-WindowsFeature -name User-Interfaces-Infra
Restart-Computer -Force
# Change from Full GUI to MinShell
Remove-WindowsFeature -name Server-GUI-Shell
Restart-Computer -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment