i have just successfully setup proxmox mail gateway 6 on AWS and works a treat so im thinkig azure must be similar...
docs helped me a lot -
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmg_package_repositories
1. i used a standard debian buster ami and upgrade
apt-get dist-upgrade && reboot
2. sudo into root user and set a password!
sudo su && passwd root
3. remove the 127.0.1.1 from hosts (not needed on azure it seems?)
nano /etc/hosts
4. include the proxmox repo in apt from the docs - STEP 3.5.3 FROM DOCS BUT USE BUSTER INSTEAD OF BULLSEYE!
5. get the keys for the repo
wget http://download.proxmox.com/debian/proxmox-ve-release-6.x.gpg -O /etc/apt/trusted.gpg.d/proxmox-ve-release-6.x.gpg;
6. update repo
apt update
7. dist-upgrade the os to install the ifupdown module and reboot
apt dist-upgrade && reboot
8. then install as a linux container and not a standard install - STEP 3.4 FROM DOCS -
apt install proxmox-mailgateway-container
9. goto the webpanel
https://IPOFSERVER:8006
and use
root
and the password you set during step 2