Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save rossarioking/60bf09a9a7cb7263ff1c1b2b74ab0402 to your computer and use it in GitHub Desktop.
Save rossarioking/60bf09a9a7cb7263ff1c1b2b74ab0402 to your computer and use it in GitHub Desktop.
Azure_Resize VMs in the Availability Set
$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