Reputation: 6299
I want do the following
My goal is goal create and delete the Azure VM, but re-use the single data disk.
How can I achieve it using ARM template?
Upvotes: 0
Views: 302
Reputation: 19225
If my understanding is right, on your scenario, you should use Azure Custom Script Extension to do this(Install Mongodb and change Mongodb data path).
You could check this question:How to change the location that MongoDB uses to store its data?.
You need write a script and test it on your VM and then use template to execute it.
Upvotes: 1
Reputation: 1
hi i think you can buy a extra disk and link it to the vm it and while removing the vm detatch it and you can attach to which ever vm you want it on later please let me know if that is what you wanted.
Upvotes: 0