Replace windows SQL server and preserve data with terraform on GCP

I have a terraform script that launches GCP instances, but I can only do it using linux.

I need to replace a windows SQL server and preserve the data. Are there any tutorials out there on how to do that? At minimum I need to know how to launch a server using a windows SQL server instance using terraform on GCP. Thanks in advance!