How to build VHDs
October 8, 2020 ยท View on GitHub
Windows VHD
To build the Windows VHD
-
Enter our dev container
make dev -
Set the following environment varibles
CLIENT_ID Azure service princicle ID CLIENT_SECRET Azure service principle secret TENANT_ID Azure tennant ID AZURE_RESOURCE_GROUP_NAME Resource group name to use / create AZURE_LOCATION Azure region to use AZURE_VM_SIZE VM size packer will use (Standard_D4s_v3 is recommended) CONTAINER_RUNTIME Container runtime VHD will be generated for (Docker or Containerd) WINDOWS_SERVER_VERSION Windows Server OS version vHD will be generated for (2019 or 2004) -
Run packer
make run-packer-windows
Once complete, packer will output a URI to the VHD it created.
Linux VHD
TODO