Azure Windows Server license not activated
Solution 1:
The server doesn't seems to be able to connect to Microsoft's KMS servers. To verify if that is the case run the following from Powershell:
Invoke-Expression "$env:windir\system32\cscript.exe $env:windir\system32\slmgr.vbs /skms kms.core.windows.net:1688"
Test-NetConnection kms.core.windows.net -Port 1688
TcpTestSucceeded must be True , if false then your VM can't reach the KMS and therefore not activate it. So test and see if your VM can reach kms.core.windows.net on port 1688.