Good afternoon.
I just successfully uploaded my first Linux custom image and, following the directions here:
https://learn.microsoft.com/en-us/azure/virtual-machines/linux/create-upload-centos?toc=%2fazure%2fvirtual-machines%2flinux%2ftoc.json#centos-70
Was able to prep the machine and have it boot on a VM.
However, I noticed when I used "waagent -force -deprovision", it returned the hostname to "localhost.localdomain". I had expected upon being provisioned as a new machine, that it would update that to the actual name of the VM being created. Any existing Linux image I've played with in Azure, derives it's host name from it's VM name. It's a variation of CentOS7.
In digging a bit more, it appears that it might be the function of WALinuxAgent to update the hostname, but it isn't. It says it's provisioned, so if that's responsible for hostname editing, it should be doing it (but isn't).
3602-waagent.txt
Here's the log file (converted to .txt for uploading). I don't see any parameters pulled from Azure MetaData that even tells it the host name, but it's possible it's not even trying because of an error further upstream.
How can I get my custom Linux image to do that as well?
Thanks.