Joining an AD as DC with the samba-tool (complete with the new Ubuntu 22.04 Server):
To disable cloud-init's network configuration capabilities, write a file
/etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
network: {config: disabled}