Hey there sainu
Thats a good question and thanks for using QandA platform,
Guess you can use use CLI to update the password?
az mysql flexible-server update --resource-group myresourcegroup --name mydemoserver --admin-password <new-password>
go through this similar thread hope it helps.
Kindly accept the answer if it did, thank smuch,