Thanks @Cold-Egg , I replaced the domainsetup.sh script instead of recreate the VM.
Another issue, the certbot does not get certificate (dns records are correctly set). Any idea what is wrong?
just tried to create VM instance using the Azure image. After sign in, I get:
juraj@myhost:~$ cat /opt/domainsetup.sh
500: Internal Server Error
here the image spec from the ARM template:
"imageReference": {
"publisher": "litespeed_technologies"...