microsoft/physical-ai-toolchain/environment-deployment

Claude Code and agent skill by microsoft/physical-ai-toolchain

Trust tier 4
  • vendor
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate, transfer, and consume environment-specific Azure, AKS, OSMO, ACR, and Azure ML deployment bundles. Use when: discovering deployed environment details; creating OSMO image manifests or platform values; preparing a HiL host; uploading or downloading deployment files through Azure Key Vault; or deploying with generated environment configuration.

Install

npx vskill@latest install microsoft/physical-ai-toolchain/environment-deployment

SKILL.md

The same SKILL.md was published earlier as microsoft/physical-ai-toolchain/environment-deployment.

Environment Deployment

Generate non-secret deployment details from Terraform desired state and read-only Azure, Kubernetes, and OSMO discovery. Store generated artifacts under the gitignored infrastructure/setup/generated/<environment>/ directory.

Goal

Produce a validated non-secret environment bundle or a host-bound HiL handoff whose target, ownership, transfer, and next operation are explicit. Keep discovery read-only and keep generated environment values outside tracked source.

Flow

  1. Resolve the environment, desired-state sources, available read-only tools, and requested bundle consumers.
  2. Verify target identities and generate only the required allowlisted artifacts under the gitignored environment directory.
  3. Validate hashes, immutable references, file safety, and the absence of credentials before use.
  4. Preview the selected deployment or, for HiL, publish the exact host-bound catalog to Key Vault and hand off to the local consumer.

Inputs

  • Environment name and Terraform directory
  • Existing isolated Kubernetes context when live cluster verification is available
  • Optional isolated authenticated OSMO profile for read-only service verification
  • Requested deployment consumers and explicit version overrides
  • For HiL publication, the host identity, existing backend and pool, approved service URL, protected registry configuration, Key Vault name, and optional public VPN inputs

Safety Boundaries

Follow these rules for every environment bundle:

  • Do not modify Azure resources, Kubernetes resources, OSMO configuration, or the active OSMO profile during discovery.
  • Do not run terraform apply, kubectl apply, Helm upgrade/install, OSMO update/set/delete commands, or Azure create/update/delete commands while generating a bundle.
  • Do not upload artifacts or publish credentials during read-only discovery.
  • Do not write discovered values into tracked files, documentation, examples, tests, or source defaults.
  • Do not replace instructional RFC1918 addresses or example resource shapes solely because they differ from the deployed environment.
  • Do not include Terraform state, secret values, kubeconfig contents, OSMO profiles, tokens, registry credentials, VPN keys, certificates, or absolute local paths in a bundle.
  • Use an isolated kubeconfig and explicit context. Verify the AKS resource ID before reading cluster state.
  • Ask before changing an Azure CLI subscription or OSMO profile when the requested task is discovery only.
  • Use existing protected password or token files for non-interactive login. Never request secrets through chat.

Bundle Layout

Create only the artifacts needed by the deployment:

text
infrastructure/setup/generated/<environment>/
├── deployment.json
├── osmo-platforms.yaml
├── osmo-images.json
└── azureml-instance-types.yaml

deployment.json is required. The other files are optional when the corresponding component is not deployed.

Use lowercase letters, numbers, and hyphens for <environment>. Keep artifact filenames stable because the Key Vault transfer scripts use this allowlist.

Prerequisites

Use every available discovery tool. Record unavailable tools and skipped checks in deployment.json.

ToolPurposeRequired
TerraformRead desired resources and node-pool configurationYes
Azure CLIVerify Azure identity and live resource metadataYes
jqSelect explicit non-secret fields and write JSONYes
kubectlVerify AKS nodes, labels, taints, GPU capacity, and OSMO endpointWhen AKS is reachable
osmoVerify the authenticated service and available poolsWhen an isolated profile is supplied
HelmRead the deployed OSMO image version and valuesWhen OSMO is deployed

For private resources, connect to the VPN before live Azure, AKS, Key Vault, or OSMO checks.

Generate a Bundle

This is an agent-led discovery workflow, not a static checked-in generator. The agent executes the available read-only commands below, renders files from the current Terraform and live resource data, validates the result, and reports every skipped probe. Do not reuse artifacts from another environment.

1. Establish the target

Collect or infer:

  • Environment name
  • Terraform directory, normally infrastructure/terraform
  • Isolated kubeconfig path, normally $HOME/.kube/physical-ai-toolchain/<aks-cluster>.yaml
  • Explicit Kubernetes context
  • Optional isolated OSMO profile directory
  • Optional OSMO image version when OSMO is not deployed yet

Create infrastructure/setup/generated/<environment>/. Do not create a tracked placeholder in this directory.

2. Read Terraform desired state

Run terraform output -json from the Terraform directory. Select only explicit output fields; never copy raw output or state into the bundle.

Read these values when present:

Terraform outputBundle use
resource_groupResource group name and location
key_vault_nameKey Vault bundle transfer
aks_clusterAKS name and resource ID
node_poolsGPU pool VM sizes, priority, labels, taints, and scaling settings
container_registryACR name and login server
storage_accountStorage account name
azureml_workspaceAzure ML workspace name
osmo_workload_identityOSMO workload identity ID and Entra metadata

Fail when the resource group, Key Vault, or requested AKS/ACR values are missing. Do not infer names from naming conventions when Terraform exposes them.

A pool is parked when node_pools reports should_enable_auto_scaling = false and node_count = 0. Nothing can schedule on a parked pool, so skip it in Kubernetes verification and generate no OSMO pod template, OSMO platform, or Azure ML InstanceType for it.

3. Verify Azure

Use read-only Azure CLI calls:

  1. Read the active account with az account show.
  2. Confirm its subscription matches the subscription segment of the AKS resource ID.
  3. Read the resource group with az group show.
  4. Read AKS with az aks show and compare its normalized resource ID with Terraform.
  5. Read ACR with az acr show and compare its name and login server with Terraform.
  6. Read Key Vault metadata with az keyvault show; do not enumerate or read unrelated secret values.
  7. Read osmo_workload_identity with az identity show --ids, and confirm its ID, client ID, and tenant ID match Terraform.

Stop on any identity or resource mismatch. Do not switch subscriptions silently.

4. Verify Kubernetes

When kubectl is available and AKS is reachable:

  1. Use verify_existing_aks_kubeconfig before refreshing credentials.
  2. Use connect_aks from scripts/lib/common.sh only when the user requested credential setup.
  3. Otherwise require an existing isolated kubeconfig and use verify_kube_target.
  4. Read nodes with an explicit kubeconfig and context.
  5. For each Terraform GPU pool, compare:
  • agentpool label
  • node.kubernetes.io/instance-type label
  • Terraform node labels
  • Terraform taints
  • status.allocatable["nvidia.com/gpu"]
  1. Read azureml/azureml-ingress-nginx-internal-lb and form http://<RFC1918-address> from its assigned ingress IP.

Scale-to-zero pools (autoscaling on with min_count = 0) may have no live nodes. Generate their configuration from Terraform and record live capacity as unavailable instead of omitting the pool. Parked pools are the exception and are omitted.

5. Verify OSMO

Do not run osmo login during discovery. If the caller supplies an isolated authenticated profile, set XDG_CONFIG_HOME to it and run read-only checks:

  • osmo version
  • osmo pool list --format-type json

When Helm is available, read the deployed OSMO release with the same isolated kubeconfig and context. Prefer global.osmoImageTag from deployed values for the image version. Fall back to OSMO_IMAGE_VERSION from infrastructure/setup/defaults.conf only for a new deployment.

Record whether OSMO and Helm verification succeeded. Do not copy profile data into the bundle.

6. Generate OSMO platform values

Generate osmo-platforms.yaml from node_pools.

For each GPU pool that isn't parked:

  • Create one pod template with agentpool and node.kubernetes.io/instance-type selectors.
  • Add Terraform node labels that constrain scheduling.
  • Convert each Terraform taint into a matching Exists or Equal toleration.
  • Add the nvidia.com/gpu NoSchedule toleration when the pool uses it.
  • Set requests and limits to the literal OSMO Jinja value {{USER_GPU}}.
  • Create a platform under services.configs.pools.default.platforms.
  • Use a default GPU count no greater than verified per-node allocatable capacity. Use 1 when the pool is scaled to zero and capacity cannot be verified.
  • Keep USER_CPU, USER_MEMORY, USER_STORAGE, and USER_SHM_SIZE as instructional defaults unless the user supplies workload requirements.

Use unique lowercase identifiers derived from the pool key. Preserve both braces in every OSMO Jinja expression.

7. Generate Azure ML InstanceTypes

Generate azureml-instance-types.yaml from the same pool data:

  • Always include defaultinstancetype for CPU workloads.
  • Create one GPU InstanceType per pool that isn't parked. Select the pool with agentpool: <pool key> plus its constraining Terraform labels, such as the Spot label. Don't select on accelerator: AKS sets it on running GPU nodes, and the autoscaler can't predict it for a current GPU size at zero.
  • Use gpuspot for the first spot pool and gpu for the first regular pool when those names are unambiguous; otherwise use gpu-<pool>.
  • Set the GPU limit to a value no greater than verified per-node capacity. Use 1 for scale-to-zero pools without live capacity.
  • Do not generate multi-GPU InstanceTypes without verified capacity or an explicit user requirement.

The deployment consumes this file through 02-deploy-azureml-extension.sh --instance-types-manifest.

8. Generate the immutable ACR image manifest

Generate osmo-images.json only when OSMO images are mirrored to ACR. Mirroring writes to the registry, so it isn't part of discovery. With the user's confirmation, infrastructure/setup/import-osmo-to-acr.sh imports and locks the pinned images and charts, writes this file, and records it with the registry and OSMO versions in an existing deployment.json. It stops before importing when a value already in deployment.json differs.

To describe images that are already mirrored, use this component allowlist:

  • agent
  • backend-listener
  • backend-worker
  • client
  • delayed-job-monitor
  • init-container
  • logger
  • router
  • service
  • web-ui
  • worker

For each component, read the digest for osmo/<component>:<image-version> with az acr manifest show-metadata. Confirm the repository tag has writes and deletes disabled with az acr repository show. Fail if a component, digest, or immutability setting is missing.

Write this shape:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files. Certified 21 Aug 2026.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
103
Repository forks
53
7-day trend score
23

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill CERTIFIED badge
[![vskill CERTIFIED](https://verified-skill.com/api/v1/skills/microsoft/physical-ai-toolchain/environment-deployment/badge)](https://verified-skill.com/skills/microsoft/physical-ai-toolchain/environment-deployment)

Something wrong with this skill or its page? Tell us.