I haven't used azure but if you use the ansible installation method, it will install everything into an instance (whatever they are called in azure, the typical computer virtual machines).
But you need a public domain name to get let's encrypt certificates to work. So you should buy a domain name and point it at your instance first.
If you have that, the ansible install will set everything up, and run stuff inside docker for you.