Hi @BM
Thanks for reaching Microsoft Q&A.
I would say what you are looking for is here. In this case you can set the Container instance "Never" to get restarted.
Hope this helps. Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.