Created
December 26, 2014 21:17
-
-
Save techbunny/59b6d0df8b5c5fa34880 to your computer and use it in GitHub Desktop.
The Imperfect Lab: VM Manageablity Tweeks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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