How to build VHDs

October 8, 2020 ยท View on GitHub

Windows VHD

To build the Windows VHD

  1. Enter our dev container

    make dev
    
  2. Set the following environment varibles

    CLIENT_IDAzure service princicle ID
    CLIENT_SECRETAzure service principle secret
    TENANT_IDAzure tennant ID
    AZURE_RESOURCE_GROUP_NAMEResource group name to use / create
    AZURE_LOCATIONAzure region to use
    AZURE_VM_SIZEVM size packer will use (Standard_D4s_v3 is recommended)
    CONTAINER_RUNTIMEContainer runtime VHD will be generated for (Docker or Containerd)
    WINDOWS_SERVER_VERSIONWindows Server OS version vHD will be generated for (2019 or 2004)
  3. Run packer

    make run-packer-windows
    

Once complete, packer will output a URI to the VHD it created.

Linux VHD

TODO