How do I create custom Azure images smaller than 30GB with Packer + Terraform?
问题 I want to create custom images that are 4GB for cost-saving purposes on a side project. I've been able set the size for the Azure-provided Ubuntu 18.04 base image in Terraform successfully using the following: resource "azurerm_managed_disk" "example-disk" { ... create_option = "FromImage" disk_size_gb = "4" } resource "azurerm_virtual_machine" "example" { ... vm_size = "Standard_B1s" storage_image_reference { publisher = "Canonical" offer = "UbuntuServer" sku = "18.04-LTS" version = "latest"