Skip to content

AI Gateway CLI 1.0.0b20

Choose a tag to compare

@paulyuk paulyuk released this 30 Oct 23:44
· 238 commits to main since this release
3d2974a

Quickstart | CLI Command Reference | AI Gateway Documentation

Highlights

  • Default Premium SKU on az aigateway create: az aigateway create now defaults --sku to Premium to match the live Microsoft.ApiManagement/aigateways resource provider requirement (--sku Consumption|Premium remains configurable on create and update).
  • Model aliases with priority & weighted routing (az aigateway model-alias): Added az aigateway model-alias (create, show, list, update, delete) to route a stable alias name (--routing-name) across multiple backend models with explicit priority and weight failover/load-balancing settings.
  • Non-destructive model & gateway policy updates (model policy & policy): Updating token limits, content safety, or cost limits preserves sibling policies on the model or workspace instead of overwriting them, and falls back gracefully when live GET responses omit ETag.
  • Gateway-wide default policies (az aigateway policy): Added az aigateway policy (set, set-token-limit, set-content-safety, set-cost-limit, show / list, remove) to configure default token, content-safety, and cost limits across the gateway's default workspace, plus az aigateway model policy set-cost-limit for per-model spending limits.
  • Application Insights telemetry exporters (az aigateway telemetry-exporter): Added az aigateway telemetry-exporter (create, show, list, update, delete, wait) to manage gateway telemetry exporters.
  • API key & MCP updates:
    • Added az aigateway api-key update (--display-name, --state) to rename or toggle keys without regenerating secrets, and fixed api-key create when live RP responses omit properties.state.
    • Added az aigateway mcp update --versions and non-destructive --endpoints merge so updating MCP versions or endpoints preserves existing fields.
  • Live 2025-09-01-preview wire compatibility:
    • Added client-side provider filtering for az aigateway model list --model-provider and az aigateway model-provider sync.
    • Restored root api-version query parameter on nextLink pagination URLs when omitted by the service.
    • Added Azure Resource Graph fallback for subscription-level az aigateway list when the RP returns 400 MissingLocation.

Install or Upgrade

Bash (macOS / Linux)

curl -fsSL https://aka.ms/aigateway-cli-install | bash
az aigateway version

PowerShell (Windows / macOS / Linux)

irm https://aka.ms/aigateway-cli-install-ps | iex
az aigateway version

Documentation

Release Asset & Checksum

  • Wheel: aigateway-1.0.0b20-py3-none-any.whl
  • SHA-256: 5ead91ed79836cc14162ef5354e38bcfc1d2a468560f2fb5560cbe9b98c5a9f4