Hello there,
Were you asking about VMSS or an independent VM?
I'm a little bit curious about the reason why you want the Public IP of a Virtual Machine Scale Set (isn't it?) to be constantly changed.
Normally a VMSS doesn't have its own Public IP, nor each VM member in a VMSS. The Public IP you may see from within a VM of VMSS the the dynamic outbound IP handled by Azure. If your VMSS was created in such a way that each member has its own Public IP, then it is quite the same as Public IP of an independent VM per explained below.
For a Public IP resource on Azure with dynamic allocation, its value stay the same as long as it is attached to a running VM. You can either dissociate a dynamic Public IP from a running VM then attach again, or stop and start the VM itself, to force changing the value of Public IP.
The value of a given Public IP resource on Azure is not meant to be constantly changed for every time period.