The Developer tier requires 8 GB of memory by default and cannot be altered in the Developer tier deployment executable file. The CPU count can be increased to 4 by adding "cpu": "4".
If deploying DSC, additional 16 GB is required.
If deploying Server Management, additional 16 GB is required.