Skip to content

Remove jq dependency from AI Gateway postprovision script - #35

Merged
Paul Yuknewicz (paulyuk) merged 2 commits into
mainfrom
fix/remove-jq-script-dep
Nov 2, 2026
Merged

Paul Yuknewicz (paulyuk) merged 2 commits into
mainfrom
fix/remove-jq-script-dep

Conversation

@paulyuk

Copy link
Copy Markdown
Member

Problem

infra/scripts/configure-ai-gateway.sh required jq to parse Application Insights OTLP endpoints and build telemetry exporter JSON payloads, which can fail on fresh macOS or minimal Linux environments where jq is not preinstalled.

Solution

  • infra/scripts/configure-ai-gateway.sh: Replace all jq calls with az rest --query -o tsv, awk/sed, and escaped JSON heredocs.
  • tests/test-apim-lifecycle.sh: Assert that configure-ai-gateway.sh and manage-ai-gateway-lifecycle.sh do not depend on jq.

Canonical DX

# Deploy the Python sample on macOS/Linux without requiring jq
azd up

Validation

  • bash tests/test-apim-lifecycle.sh
  • bash tests/test-ai-gateway-model-registration.sh

Paul Yuknewicz and others added 2 commits November 2, 2026 07:44
- Replace jq invocations in configure-ai-gateway.sh with az rest --query -o tsv, awk/sed, and heredoc JSON bodies
- Add regression assertions in tests/test-apim-lifecycle.sh ensuring shell hooks do not require jq

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4448b1aa-1ea5-4c5f-af63-7ec98b7acb9e
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 4448b1aa-1ea5-4c5f-af63-7ec98b7acb9e
@paulyuk
Paul Yuknewicz (paulyuk) merged commit 4ac8281 into main Nov 2, 2026
2 checks passed
@paulyuk
Paul Yuknewicz (paulyuk) deleted the fix/remove-jq-script-dep branch November 2, 2026 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant