Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
| 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
You can’t perform that action at this time.