gifted-continent-21772
02/16/2025, 5:32 PMmodern-zebra-45309
02/16/2025, 6:23 PMdiskSizeGb: disk_space ? disk_space : 30,
You don't show where disk_space
comes from, but if this value is not set, it will fall back to 30.
So it looks like the "disk_space" input is not wired through correctly. For someone to help you, you'll need to show a (preferably small) complete example that shows where you're entering the desired disk size and how this value flows through your program.gifted-continent-21772
02/17/2025, 10:11 AMdiskSizeGB
not diskSizeGb
my badgifted-continent-21772
02/17/2025, 10:15 AMimport * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const resourceGroupName = "myResourceGroup";
const diskName = `${prefix}-${region}-${vmConfig.name}-osdisk-plm`;
// Retrieve the existing disk
const existingDisk = azure_native.compute.getDisk({
resourceGroupName: resourceGroupName,
diskName: diskName,
});
// Update the disk size
const updatedDisk = new azure_native.compute.Disk(diskName, {
resourceGroupName: resourceGroupName,
diskName: diskName,
diskSizeGB: 64,
}, { import: existingDisk.id });
modern-zebra-45309
02/17/2025, 10:55 AMdisk_space
set to the desired size. I suggest you run a pulumi preview
to check that this is indeed handled as an in-place update, which according to the documentation is the case (https://www.pulumi.com/registry/packages/azure-native/api-docs/compute/virtualmachine/#disksizegb_go)modern-zebra-45309
02/17/2025, 11:02 AM