Hello,
You have an evaluation version installed, you have to convert it to retail. This is not simplify a change of Product key
See this link : Upgrade and conversion options for Windows Server | Microsoft Learn
the section "Convert an Evaluation version to a retail version " would be the applicable section.
this needs to happen first
Darrell