Hello Joshua Igoni
When a container gets in Terminated state, it usually means it was killed.
To create an alert you should first enable logging and events collected with Azure Monitor Log Analytics Workspace and then, use the following query to create a log based alert:
ContainerEvent_CL
| where Message contains "Killing" | where TimeGenerated > ago(5m) | project TimeGenerated,ContainerGroup_s,Message
This will query when a container gets "Killing" and based on the query results you can set the alert.
Hopefully this is what you are looking for! If you have additional questions, please let us know in the comments.
If this has been helpful, please take a moment to accept answers as this helps increase visibility of this question for other members of the Microsoft Q&A community. Thank you for helping to improve Microsoft Q&A!