I am trying to figure out how to best approach creating an availability set. Unfortunately, I didn't create one when I first set up my vm so I have an Ubuntu vm running with several WordPress websites and a MySQL database outside of an availability set.
From what I can tell, I need to capture my vm so I have an image of it and then create two new virtual machines based on the image so I can create an availability group for them. I have a few questions regarding this process:
- When I capture my current vm, the actual vm will be deleted, correct? If so, is there a way I can go about capturing the image without the vm being deleted?
- If the answer to the above is no, than that means I will need to create two new virtual machines based off of my image and add them to an availability group. If I have to start from scratch, would it be better for performance to create a separate vm for MySQL? I plan on having about 15 low -medium traffic websites running on my vm.
- Finally, since I have to create two virtual machines, how can I keep both of them synced? When I create a new site on one vm I don't want to have to go through the same process on the second vm.