Reader small image

You're reading from  Learn Azure Administration - Second Edition

Product typeBook
Published inDec 2023
PublisherPackt
ISBN-139781837636112
Edition2nd Edition
Right arrow
Author (1)
Kamil Mrzygłód
Kamil Mrzygłód
author image
Kamil Mrzygłód

Kamil Mrzygłód is a technical lead and technology advisor, working with multiple companies on designing and implementing Azure-based systems and platforms. He's a former Microsoft Azure Microsoft Most Valuable Professional (MVP) and certified trainer, who shares his knowledge via various channels, including conference speeches and open source projects and contributions. Kamil lives in Poland with his two cats and one dog, dedicating some of his time to video games, cooking, and traveling.
Read more about Kamil Mrzygłód

Right arrow

Adding, detaching, and expanding disks

When working with infrastructure in Azure, you rarely make a one-time setup. Some resources, including Azure Virtual Machines with disks, require constant maintenance and monitoring of utilized compute and storage. It’s important to know how to perform basic maintenance operations daily so that you can then automate them if possible.

To get started with some exercises, let’s deploy a single virtual machine using the following command:

az group create -l <location> -n <resource-group-name>
az vm create -g <resource-group-name> -n <vm-name> --image Ubuntu2204 --admin-username <username> --admin-password <password>

Once the virtual machine has been created, it’ll have no data disk and a single OS disk with default parameters. Let’s try to add new data disks to it.

Adding a disk to a virtual machine

To attach a new disk to a virtual machine, we can use two paths:

    ...
lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Learn Azure Administration - Second Edition
Published in: Dec 2023Publisher: PacktISBN-13: 9781837636112

Author (1)

author image
Kamil Mrzygłód

Kamil Mrzygłód is a technical lead and technology advisor, working with multiple companies on designing and implementing Azure-based systems and platforms. He's a former Microsoft Azure Microsoft Most Valuable Professional (MVP) and certified trainer, who shares his knowledge via various channels, including conference speeches and open source projects and contributions. Kamil lives in Poland with his two cats and one dog, dedicating some of his time to video games, cooking, and traveling.
Read more about Kamil Mrzygłód