title: VSTS Release Pipeline Gate Success Criteria for HTTPS Status 200
body: <p>I am trying to use the VSTS release pipeline Gate feature to test a new Azure Function after it's deployed.
  I have tried the 'Invoke Azure Function' and 'Invoke REST API' deployment gates, but can't get them to succeed.</p>
  
  <p>I would like to just call the endpoint and for the gate to succeed if it receives a simple HTTP 200 or 202 response.</p>
  
  <p>Latest effort was to put this in the 'Success criteria' field</p>
  
  <pre><code>eq(count(jsonpath('$.responses[?(@.httpStatusCode != 200)]')), 1)
  </code></pre>
  
  <p>The Processing Gate step just says 'No samples have yet arrived' and there are no logs.</p>
  
  <p>Has anyone successfully done this? Any ideas?</p>