I'm sorry for bringing this topic up again, but since it helped me out with the same exact problem already, I felt like I don't need to make a whole new post for it. So thanks for that already!
At least for me, this "z-probe configuration as a microswitch instead of a z-probe" was generated by the RRF configuration tool, and as I pretty much just got my board and didn't have a clue about how everything works, I absolute didn't suspect this tool to be the culprit here.
The thing is, when you use the configuration tool, you have a few options for how the Z-probe is going to work, just like you have different modes to set with M558. But I couldn't see the direct connection between the modes and the options presented there.
Since I have a NPN inductive sensor that outputs either 1 or 0 and since I basically used it as a "microswitch" in Marlin, on the Z endstop pins, I felt like setting it up as a "Switch" as the tool calls it would be the best idea. Turns out, the generated homez.g and homeall.g are both setup as if it was an actual switch, using G1 to home instead of G30.
I don't know how much influence you guys have on the RRF config tool, but I think as a new Duet user it is a very handy tool to use and it should be cleared up somehow what the "Switch" option does, or an actual "inductive/capacitive probe" option should be added as well to make it clear.
Just my 2 cents as a Duet newbie. Aside from that, this board is absolutely fantastic!