Skip to content

[aks-preview] subcommand to provision foundry and deploy openclaw#9637

Draft
HDYA wants to merge 5 commits intoAzure:mainfrom
HDYA:chuhua/aks-preview-openclaw
Draft

[aks-preview] subcommand to provision foundry and deploy openclaw#9637
HDYA wants to merge 5 commits intoAzure:mainfrom
HDYA:chuhua/aks-preview-openclaw

Conversation

@HDYA
Copy link
Member

@HDYA HDYA commented Feb 26, 2026


This checklist is used to make sure that common guidelines for a pull request are followed.

Related command

az aks openclaw deploy
az aks openclaw delete
az aks openclaw show

Description

Add az aks openclaw subcommand group to deploy and manage OpenClaw on AKS clusters with integrated Azure AI Foundry provisioning.

New commands:

Command Description
az aks openclaw deploy Provisions Azure AI Foundry resources (or uses existing ones), deploys the openclaw-kubernetes Helm chart with LiteLLM proxy, and configures the web UI on an AKS cluster.
az aks openclaw delete Uninstalls the OpenClaw Helm release from the cluster and optionally deletes the auto-provisioned AIServices account.
az aks openclaw show Shows OpenClaw deployment status including pod health and model configuration.

Key features:

  • Auto-provisioning mode (default): Creates a new AIServices account and deploys the specified model (defaults to gpt-5.1-chat) with configurable capacity.
  • BYO by resource ID: Uses an existing AIServices account via --ai-foundry-resource-id, auto-discovers model deployments.
  • BYO by endpoint: Uses a raw endpoint and API key via --ai-foundry-endpoint and --ai-foundry-api-key.
  • Deploys the openclaw-kubernetes Helm chart from oci://ghcr.io/feiskyer/openclaw-kubernetes/openclaw with auto-generated LiteLLM configuration.
  • Creates an Azure File StorageClass for persistent storage.
  • Patches the API format from openai-responses to openai-completions for compatibility.

Files changed (9 files, +1075 lines):

  • _help.py — Help text for the 3 new commands
  • _params.py — Parameter definitions (resource group, cluster name, AI Foundry options, model config, namespace)
  • commands.py — Command group registration
  • custom.py — CLI entry point functions
  • openclaw/__init__.py — Package init
  • openclaw/_consts.py — Constants (Helm chart URL, default model/version/capacity, API versions)
  • openclaw/_helpers.py — Helper utilities (kubeconfig management, Helm operations, kubectl wrappers, values generation)
  • openclaw/deploy.py — Core deployment logic (AI Foundry provisioning, BYO resolution, deploy/delete/show orchestration)
  • tests/latest/test_openclaw.py — Unit tests

General Guidelines

  • Have you run azdev style <YOUR_EXT> locally? (pip install azdev required)
  • Have you run python test_index.py -q locally? (pip install wheel==0.30.0 required)
  • My extension version conforms to the Extension version schema

For new extensions:

About Extension Publish

There is a pipeline to automatically build, upload and publish extension wheels.
Once your pull request is merged into main branch, a new pull request will be created to update index.json automatically.
You only need to update the version information in file setup.py and historical information in file HISTORY.rst in your PR but do not modify index.json.

Similar code found with 1 license type

@azure-client-tools-bot-prd
Copy link

Validation for Breaking Change Starting...

Thanks for your contribution!

@azure-client-tools-bot-prd
Copy link

Hi @HDYA,
Please write the description of changes which can be perceived by customers into HISTORY.rst.
If you want to release a new extension version, please update the version in setup.py as well.

@yonzhan
Copy link
Collaborator

yonzhan commented Feb 26, 2026

Thank you for your contribution! We will review the pull request and get back to you soon.

@github-actions
Copy link
Contributor

The git hooks are available for azure-cli and azure-cli-extensions repos. They could help you run required checks before creating the PR.

Please sync the latest code with latest dev branch (for azure-cli) or main branch (for azure-cli-extensions).
After that please run the following commands to enable git hooks:

pip install azdev --upgrade
azdev setup -c <your azure-cli repo path> -r <your azure-cli-extensions repo path>

@github-actions
Copy link
Contributor

CodeGen Tools Feedback Collection

Thank you for using our CodeGen tool. We value your feedback, and we would like to know how we can improve our product. Please take a few minutes to fill our codegen survey

@github-actions
Copy link
Contributor

Hi @HDYA

Release Suggestions

Module: aks-preview

  • Please log updates into to src/aks-preview/HISTORY.rst
  • Update VERSION to 19.0.0b23 in src/aks-preview/setup.py

Notes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AKS Auto-Assign Auto assign by bot

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants