Created
August 30, 2023 20:26
-
-
Save rossarioking/60bf09a9a7cb7263ff1c1b2b74ab0402 to your computer and use it in GitHub Desktop.
Azure_Resize VMs in the Availability Set
This file contains hidden or 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
$vm = Get-AzVM -ResourceGroupName <RESOURCE_GROUP_NAME> -VMName labVM0 | |
$vm.HardwareProfile.VmSize = "Standard_B1s" | |
Update-AzVM -VM $vm -ResourceGroupName <RESOURCE_GROUP_NAME> | |
\\\To view results of the change, enter Get-AzVM. We should see VMSize for labVM0 changed to Standard_B1s. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment