Search code examples
azureazure-service-fabricazure-vm-scale-set

How can I modify disk partition in Azure VM Scale Set with Service Fabric


Using either PowerShell or ARM template is it possible to partition the drive. Currently, my scale sets have 29.5 GB in C drive and around 127 in the temporary storage drive D. Can I configure it to have around 60-70 in C drive?


Solution

  • Modifying your ARM template like this should do the trick:

    "storageProfile": {
       "osDisk": {                
          "managedDisk": {
             ...
          },
          "diskSizeGB": 70
        }
    }
    

    You use the storageProfile section inside virtualMachineProfile to specify the OS disk size.