Then, you will need to collect the OS disk info that you want to resize. Use the command below to output the OS disk details.Get-AzureVM -ServiceName "<Cloud Service Name>" -Name "<VM Name>" | Get-AzureOSDiskFor example:Get-AzureVM -ServiceName MnDemoVM2 -Name "MnDemoVM2" | ...
AzureRmVM -ResourceGroupName $resourceGroup -Name $vmName Stop-AzureRmVM -ResourceGroupName $resourceGroup -Name $vmName -Force $vm.StorageProfile.OsDisk.DiskSizeGB = 1023 Update-AzureRmVM -ResourceGroupName $resourceGroup -VM $vm Start-AzureRmVM -ResourceGroupName $resourceG...
Azure上VM的OS盘的大小在创建时是固定的。Windows是127G,Linux是30G。如果需要批量创建的VM的OS Disk有更大的容量。可以考虑用下面的方法实现。 1 创建一台有Data-disk的CentOS VM,对其进行客户化,安装软件,挂载磁盘 2 扩大OS Disk的容量 3在VM内resize OS Disk的容量 4 把这台VM捕获成Azure的Image 5 通过...
If you have an Azure VM that was created using the Azure Resource Manager (ARM) stack you can now easily resize the OS or the data disk within the Azure Portal. Of course, you can also use PowerShell but way too easy using the GUI. 1. Navigate to the Virtual ...
访问 https://aka.ms/azure-resizevm 详细了解重设 VM 大小的策略。 InvalidParameter 请求的 VM 大小 {0} 不可用于当前区域。 可用于当前区域的大小为: {1}。 访问 https://aka.ms/azure-regions 详细了解每个区域可用的 VM 大小。 InvalidParameter 请求的 VM 大小 {0} 不可用于当前区域。 访问 https:...
$linuxvm = Get-AzureVM -ServiceName shawnzhaidemocloud -Name shzhailinuxdemo 1. 2. 设置数据磁盘信息并获取当前虚拟机存储账号信息并通过该信息创建数据磁盘, function create-datadiskbaseuri { Param ( [Parameter(Mandatory=$true)] [string] $prefix, ...
5, 根据第三步中获取到的diskname执行磁盘扩容命令 PS C:\Users\jia.xiaolei> Update-AzureDisk -DiskName $vmDataDisk.DiskName -Label resizedata -ResizedSizeInGB 128 注:Label可以自定义,128为您想要对磁盘扩容后的大小,根据您的需求而定 6, 到Azure Portal上将扩容后的数据磁盘附加回原虚拟机 ...
Use diskpart / disk management to resize the partition to a size smaller than the current Shutdown the VM Delete the VM -or- detach the disk if it’s not the OS disk In the Windows Azure portal, delete the disk (retain the data!) do that the lease Windows Azure has on it is...
2. Temporary Disk –Navigate to VM –Click Size Settings. –Choose different VM Size –Click Resize 3. Data Disk –Navigate Disks Settings. –Click +Add data disk After operation, connect to VM, use command 'df -h' to check result....
从专用磁盘创建 VM Create a VM from a specialized VHD disk(从专用 VHD 磁盘创建 VM) 若要创建通用化映像,则需运行 Sysprep。 有关详细信息,请参阅如何使用 Sysprep:简介。 并非每个安装在基于 Windows 的计算机上的角色或应用程序都支持通用化映像。 因此,在使用此过程之前,请确保 Sysprep 支持该计算机的角色...