@atykhyy thank you that worked for VMSS!
I also had some VMs without scale sets, fixed those with:
az vm availability-set list -g <resourcegroup> --query "[].virtualMachines[].id" --output tsv | az vm run-command invoke --scripts "echo FallbackDNS=168.63.129.16 >> /etc/systemd/resolved.conf; systemctl restart systemd-resolved.service" --command-id RunShellScript --ids @-
@atykhyy thank you that worked for VMSS!
I also had some VMs without scale sets, fixed those with:
az vm availability-set list -g <resourcegroup> --query "[].virtualMach ines[]. id" --output tsv | az vm run-command invoke --scripts "echo FallbackDNS= 168.63. 129.16 >> /etc/systemd/ resolved. conf; systemctl restart systemd- resolved. service" --command-id RunShellScript --ids @-