Rotate Azure SPN secret for every 6 months or 1 year

Hi Guys

I am trying to rotate Azure service principle evey 6 months or 1 year

I do have multiple azure landing zones linked to service endpoint to azure devops

Please help me with any reference as i want to rotate spn password evry 6 months at perticular time without any input as variable as like self rotating password i can say