Can I change the Temporary drive letter of the virtual machine?

Yes, the drive letter can be changed after removing the Page files from the temporary drive. Once a new drive letter is designated, the page file can be set on this new drive and Azure retains this VM setting for every subsequent reboot or VM movement.

Now one can use the drive letter D for other data drives for their application requirements.