If you’ve started out using Windows Server 2019 Evaluation and would like to convert it to either use KMS or AVMA you can use the commands below to accomplish this.
Convert to KMS:
DISM /online /Set-edition:ServerStandard /ProductKey:N69G4-B89J2-4G8F4-WWYCC-J464C /AcceptEula