Proper way to have packer not to delete temp disk so that it can be utilized in azure image copy


I work with a group of people that enjoy using packer in azure however it deletes the temp disk that azure image copy needs to copy to multiple subscriptions or regions.

I have tried looking up multiple ways to get this done and know that if I made the image manually as I have done in the past it would not be an issue to use image copy however other people I work with do not want to do those other steps. I have tried looking through the docs and online examples and the details are incomplete for example I tried using async_resourcegroup_delete set to false and it still deletes the resource group and temp disk can someone tell me the correct way to disable the default behavior of cleanup?

I think this is a known issue that we’ve scheduled to fix in the coming release or two.