Reviews the current pull request with an Azure OpenAI reasoning deployment and posts inline
findings back to the PR. Add one task step to a Build Validation pipeline — no engine repository
resource, no template extends.
What it does
On a PR build the task runs five stages in-process:
Computes the PR diff (base = HEAD^1).
Skips if this HEAD was already reviewed (SHA dedup).
Grep-resolves connected neighbour files for extra context.
Sends the diff + changed files + connected files + the resolved rule set to Azure OpenAI.
Posts findings as inline PR threads and sets a PR status (failed on any CRITICAL).
It is a clean no-op on non-PR builds. Repo-specific rules live in <repo>/.ai-review/
(rules.yaml + REVIEW_RULES.md); a repo with no overlay still gets the stack-neutral security
floor.
Create an Azure OpenAI PR Review service connection (endpoint URL + API key) and grant the Build
Service Contribute to pull requests on the repo. See the repository README for full setup.