- Lab
- A Cloud Guru
Use PowerShell to Resize an Azure Virtual Machine in an Availability Set
Your company's finance department explains that the cost of Azure virtual machines (VMs) is over budget. You must find an easy solution to decrease the cost of Azure VMs in your subscription. Using only PowerShell, how do you identify the VMs with low CPU utilization and change their size?
Path Info
Table of Contents
-
Challenge
Start Cloud Shell
- Click the Cloud Shell icon (
>_
) in the upper right. - Click PowerShell.
- Select No storage account required.
- Select the lab provided subscription.
- Click Apply.
- Click the Cloud Shell icon (
-
Challenge
Get the VM Size and CPU Metrics
-
Find the current size of the VMs.
-
Get the VM subscription name.
-
Check VM CPU metrics.
-
-
Challenge
Resize VMs in Availability Set
-
Check which VMs are available to resize within the VM hardware cluster.
-
Perform the PowerShell commands to resize the VM(s).
-
What's a lab?
Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.
Provided environment for hands-on practice
We will provide the credentials and environment necessary for you to practice right within your browser.
Guided walkthrough
Follow along with the author’s guided walkthrough and build something new in your provided environment!
Did you know?
On average, you retain 75% more of your learning if you get time for practice.