<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Changes to the disk size can be made only when the disk is unattached or the managing virtual machine(s) are deallocated. Archives - Tech Antidote</title>
	<atom:link href="https://techantidote.com/tag/changes-to-the-disk-size-can-be-made-only-when-the-disk-is-unattached-or-the-managing-virtual-machines-are-deallocated/feed/" rel="self" type="application/rss+xml" />
	<link></link>
	<description>‎ &#124; LINUX &#124; Tech &#124; Security &#124;</description>
	<lastBuildDate>Wed, 06 Dec 2023 21:35:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.3</generator>

<image>
	<url>https://techantidote.com/wp-content/uploads/2016/02/cropped-google-plus-profile-picture-32x32.png</url>
	<title>Changes to the disk size can be made only when the disk is unattached or the managing virtual machine(s) are deallocated. Archives - Tech Antidote</title>
	<link></link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">106369530</site>	<item>
		<title>Increase OS Disk Size of an Azure Linux VM</title>
		<link>https://techantidote.com/increase-os-disk-size-of-an-azure-linux-vm/</link>
					<comments>https://techantidote.com/increase-os-disk-size-of-an-azure-linux-vm/#respond</comments>
		
		<dc:creator><![CDATA[]]></dc:creator>
		<pubDate>Wed, 06 Dec 2023 21:35:00 +0000</pubDate>
				<category><![CDATA[Cloud Computing]]></category>
		<category><![CDATA[Linux / Ubuntu]]></category>
		<category><![CDATA[azure cli]]></category>
		<category><![CDATA[Changes to the disk size can be made only when the disk is unattached or the managing virtual machine(s) are deallocated.]]></category>
		<category><![CDATA[resize os disk]]></category>
		<guid isPermaLink="false">https://techantidote.com/?p=3704</guid>

					<description><![CDATA[<p>If you try to expand the disk without stopping/de-allocating the VM, depending on disk config it may not allow your to change the size and a banner with message &#8220;Changes to the disk size can be made only when the disk is unattached or the managing virtual machine(s) are deallocated.&#8221; would be displayed. To increase &#8230; <a href="https://techantidote.com/increase-os-disk-size-of-an-azure-linux-vm/" class="more-link">Continue reading <span class="screen-reader-text">Increase OS Disk Size of an Azure Linux VM</span> <span class="meta-nav">&#8594;</span></a></p>
<p>The post <a href="https://techantidote.com/increase-os-disk-size-of-an-azure-linux-vm/">Increase OS Disk Size of an Azure Linux VM</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>If you try to expand the disk without stopping/de-allocating the VM, depending on disk config it may not allow your to change the size and a banner with message &#8220;<em>Changes to the disk size can be made only when the disk is unattached or the managing virtual machine(s) are deallocated.</em>&#8221; would be displayed. To increase the disk size of a Linux VM, you can perform the following:</p>
<p>In my environment, the VM OS disk size was smaller than 4TB and could not be resized using the online method that could be done without downtime(it requires some special configuration which I didnt really get deep into). This method will involve shutting down the VM, de-allocating the VM, increasing the disk and then bringing the disk back online. So, there would be some downtime.<br />
Another thing:</p>
<p><strong>Note</strong>: Replace text in blue with your environment specific values.</p>
<p><strong>1. Stop the VM:</strong></p>
<p>az vm stop &#8211;resource-group <span style="color: #0000ff;"><strong>Resource-Group-Name</strong></span> &#8211;name <span style="color: #0000ff;"><strong>VM-NAME</strong></span> &#8211;subscription <strong><span style="color: #0000ff;">SUBSCRIPTION-ID</span></p>
<p></strong>2. <strong>De-allocate the VM:</strong> (This may take a few minutes)</p>
<p>az vm deallocate &#8211;resource-group <span style="color: #0000ff;"><strong>Resource-Group-Name</strong></span> &#8211;name <span style="color: #0000ff;"><strong>VM-NAME</strong></span> &#8211;subscription <strong><span style="color: #0000ff;">SUBSCRIPTION-ID</span></p>
<p>3. Increase the Disk (from the UI):</strong></p>
<p>-Navigate to the VM in Azure. Click on &#8220;Disks&#8221;</p>
<p>&nbsp;</p>
<p><img fetchpriority="high" decoding="async" data-attachment-id="3705" data-permalink="https://techantidote.com/increase-os-disk-size-of-an-azure-linux-vm/1-az-disks/" data-orig-file="https://techantidote.com/wp-content/uploads/2023/12/1-az-disks.png" data-orig-size="226,475" data-comments-opened="1" data-image-title="1-az-disks" data-image-description="&lt;p&gt;Navigate to the Azure VM and click on &amp;#8220;Disks&amp;#8221;&lt;/p&gt;
" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2023/12/1-az-disks.png" class="alignnone size-full wp-image-3705" src="https://techantidote.com/wp-content/uploads/2023/12/1-az-disks.png" alt="" width="226" height="475" srcset="https://techantidote.com/wp-content/uploads/2023/12/1-az-disks.png 226w, https://techantidote.com/wp-content/uploads/2023/12/1-az-disks-143x300.png 143w" sizes="(max-width: 226px) 100vw, 226px" /></p>
<p>-Select the disk that you need to resize.</p>
<p>&nbsp;</p>
<p><img decoding="async" data-attachment-id="3706" data-permalink="https://techantidote.com/increase-os-disk-size-of-an-azure-linux-vm/2-disk/" data-orig-file="https://techantidote.com/wp-content/uploads/2023/12/2-disk.png" data-orig-size="788,191" data-comments-opened="1" data-image-title="2-disk" data-image-description="&lt;p&gt;Click on the OS Disk to be resized.&lt;/p&gt;
" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2023/12/2-disk.png" class="alignnone size-full wp-image-3706" src="https://techantidote.com/wp-content/uploads/2023/12/2-disk.png" alt="" width="788" height="191" srcset="https://techantidote.com/wp-content/uploads/2023/12/2-disk.png 788w, https://techantidote.com/wp-content/uploads/2023/12/2-disk-300x73.png 300w, https://techantidote.com/wp-content/uploads/2023/12/2-disk-768x186.png 768w" sizes="(max-width: 788px) 100vw, 788px" /></p>
<p>Click on &#8220;Size + performance&#8221; and select the disk size to which you want to increase to and then click on &#8220;Save&#8221;<br />
<img decoding="async" data-attachment-id="3707" data-permalink="https://techantidote.com/increase-os-disk-size-of-an-azure-linux-vm/3-select-disk-size/" data-orig-file="https://techantidote.com/wp-content/uploads/2023/12/3-select-disk-size.png" data-orig-size="1034,708" data-comments-opened="1" data-image-title="3-select-disk-size" data-image-description="&lt;p&gt;Click on &amp;#8220;Size + Performance&amp;#8221; and then resize the disk and save&lt;/p&gt;
" data-image-caption="" data-large-file="https://techantidote.com/wp-content/uploads/2023/12/3-select-disk-size-1024x701.png" class="alignnone size-large wp-image-3707" src="https://techantidote.com/wp-content/uploads/2023/12/3-select-disk-size-1024x701.png" alt="" width="640" height="438" srcset="https://techantidote.com/wp-content/uploads/2023/12/3-select-disk-size-1024x701.png 1024w, https://techantidote.com/wp-content/uploads/2023/12/3-select-disk-size-300x205.png 300w, https://techantidote.com/wp-content/uploads/2023/12/3-select-disk-size-768x526.png 768w, https://techantidote.com/wp-content/uploads/2023/12/3-select-disk-size.png 1034w" sizes="(max-width: 640px) 100vw, 640px" /></p>
<p><strong>4. Start the VM:</strong></p>
<p>az vm start &#8211;resource-group <span style="color: #0000ff;"><strong>Resource-Group-Name</strong></span> &#8211;name <span style="color: #0000ff;"><strong>VM-NAME</strong></span> &#8211;subscription <span style="color: #0000ff;"><strong>SUBSCRIPTION-ID</strong></span></p>
<p>My Azure VM was based on Ubuntu 20.04.x and did not need additional changes in the OS. After the VM booted backup, it did automatically expand to the new allocated size.</p>
<p><strong>Some of my thoughts on Azure Naming and resizing: </strong><br />
For some wierd reason, Azure does not make things easy for resizing disks. Ideally, you should be able to shutdown the VM and increase the disk, BUT Azure needs you to de-allocate the VM before you can make any changes to the disk. Another strange thing Azure decided to do is to label &#8220;de-allocate VM&#8221; instead of some sane label as at first it sound as if going to delete the VM and all its data when when in reality it does not.</p>
<p><strong>Sources/References:</strong><br />
https://learn.microsoft.com/en-us/azure/virtual-machines/linux/expand-disks?tabs=ubuntu</p>
<p>If you have any queries/feedback regarding this, feel free to leave a comment below and will get back to you as soon as I can.</p>
<p>The post <a href="https://techantidote.com/increase-os-disk-size-of-an-azure-linux-vm/">Increase OS Disk Size of an Azure Linux VM</a> appeared first on <a href="https://techantidote.com">Tech Antidote</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://techantidote.com/increase-os-disk-size-of-an-azure-linux-vm/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3704</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: techantidote.com @ 2026-10-25 07:37:06 by W3 Total Cache
-->