Ventura docs for M2 Macs in this comment: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd?permalink_comment_id=4555340#gistcomment-4555340
Old Monterey docs in this old revision: https://gist.github.com/henrik242/65d26a7deca30bdb9828e183809690bd/32c410e3a1de73539c76fa13ea5486569c4e0c5d
Solution for Sonoma: https://gist.github.com/sghiassy/a3927405cf4ffe81242f4ecb01c382ac
Ok so I tried to update straight from 13.7 to 15 in software update but it failed then update showed up Sonoma (14.7)
so I made sure my hosts were set blocking the usual suspects
went into my router (lynksis) and opened up parental controls found my mac in devices and blocked access to the same as hosts file.
then just updated to sonoma took a while but at went ok mac is working as normal no MDM or difference to previous.
Now the update to 15 has showed up in update so I've now installed the update to 15 no issues at all no MDM pop ups everything seems to be working as it should , Hosts file remains unchanged still blocking as it should.
TLDR; I just made sure my hosts file and router was blocking deviceenrollment.apple.com, mdmenrollment.apple.com, iprofiles.apple.com and just updated as normal. 13 - 14 - 15
thanks.