A bout of partisanship has tainted Anzac Day after sacked Turnbull minister Stuart Robert seemingly linked the negative gearing tax write-off to the commemoration, prompting Labor to accuse him of playing politics with military sacrifice.

Mr Robert, a former veterans' affairs minister, asserted on Twitter that "there are more defence force personnel who use negative gearing than surgeons, judges, anaesthetists and psychiatrists combined".

He issued an apology and deleted the original tweet three hours later: "Apologies for negative gearing tweet, It was intended for yesterday with the images I posted. I didn't even think to re-read it before post."