You can use this in your WIndow template Blueprint YAML:
- Under 'inputs' section; if you want to give user ability to request multiple disk in the same request:-
disks:
type: array
minItems: 0
maxItems: 10
items:
type: object
properties:
size:
type: integer
title: Size (GB)
minSize: 1
maxSize: 9000 #Max Partation size
- Under 'Properties' section:
storage:
constraints:
- tag: Storage:${input.storageType}
- For Initializing & formating RAW disk >>> It's recommended to use guest script to do disk initialization & formatting, by creating subscription at 'compute.power.on' stage to call Cloudbase-init script to this task.
Original Message:
Sent: Jun 06, 2024 07:48 AM
From: antonioaraujo
Subject: On how to set Windows VM boot disk size in a cloud template and how to resize it.
Dear all,
I hope you are fine.
A basic cloud template is used to deploy a Windows VM and allows user to set boot disk capacity as shown in the image below:

Let's suppose that the Windows image used in cloud template has a 80GB disk and a user requested a VM with 100 GB for boot disk.
Once the deployment is completed, we can use Disk management to see that disk 0 has 100 GB but there are two partitions, one with 80 GB (which comes from the original Windows image) and the second one with 20 GB as shown below:

Is there a cloud template parameter or configuration that can be used to extend the 80GB partition to use the 20GB unallocated during deployment?
Best regards
Antonio