This is likely an issue with your VM being unable to access the KMS activation server. Did you make any network or security changes recently?
Some troubleshooting steps you can carry out here: https://learn.microsoft.com/en-us/troubleshoot/azure/virtual-machines/troubleshoot-activation-problems