title: Stop container instances group when one of the containers is terminated
body: <p>I am creating a container group with a container that runs E2E on a website. How can I stop the entire group when one of the containers have stop running? (in this case the E2E tests)</p>
  
  <p>I am creating this through a pipeline and I need to stop the front end container one the test are done.</p>
  
  <pre><code>apiVersion: 2018-10-01
  location: northeurope
  name: e2e-uat
  properties:
    containers:
      # name of the instance in Azure.
      - name: e2etestcafe
        properties:
          image: registry.azurecr.io/e2e/e2etestcafe:latest
          resources:
            requests:
              cpu: 1
              memoryInGb: 3
      - name: customerportal
        properties:
          image: registry.azurecr.io/e2e/customerportal:latest
          resources:
            requests:
              cpu: 1
              memoryInGb: 1
          ports:
            - port: 80
    osType: Linux
    restartPolicy: never
  tags: null
  type: Microsoft.ContainerInstance/containerGroups
  </code></pre>