[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M69ARRY00ZAZDB0N7EERY8Q8":3,"skill-same:01M69ARRY00ZAZDB0N7EERY8Q8":79},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":56,"commitSha":57,"skillDirectory":58,"forksCount":59,"repositoryHtmlUrl":60,"repositoryHomepageUrl":17,"ownerHtmlUrl":61,"ownerBlogUrl":62,"ownerDescription":63,"updatedAt":64,"install":65,"resources":78},"01M69ARRY00ZAZDB0N7EERY8Q8","environment-deployment","云环境部署包生成与交付","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.","生成、传输和使用针对特定环境的 Azure、AKS、OSMO、ACR 和 Azure ML 部署包。适用场景：发现已部署环境的详细信息；创建 OSMO 镜像清单或平台参数值；准备 HiL 主机；通过 Azure Key Vault 上传或下载部署文件；或使用生成的环境配置进行部署。","microsoft\u002Fphysical-ai-toolchain","microsoft","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F6154722?v=4","01M698VYDXZ6JW5WH3CRV650R8","Microsoft","01M69ARCAV4WR03MSZSQPHZ2S8",138,"MIT",null,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fenvironment-deployment\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQNXPY1AV6BSR5VKHDMWRH","部署与发布管理","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"environment deployment","deployment","environment","use","when","manifests","values","with","host","platform","azure key vault","configuration","files","image","generated","vault","aks","generate","ml","azure","2026-11-10 10:12:30",false,"---\nname: environment-deployment\ndescription: \"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.\"\n---\n\n# Environment Deployment\n\nGenerate non-secret deployment details from Terraform desired state and read-only Azure, Kubernetes, and OSMO discovery. Store generated artifacts under the gitignored `infrastructure\u002Fsetup\u002Fgenerated\u002F\u003Cenvironment>\u002F` directory.\n\n## Goal\n\nProduce 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.\n\n## Flow\n\n1. Resolve the environment, desired-state sources, available read-only tools, and requested bundle consumers.\n2. Verify target identities and generate only the required allowlisted artifacts under the gitignored environment directory.\n3. Validate hashes, immutable references, file safety, and the absence of credentials before use.\n4. Preview the selected deployment or, for HiL, publish the exact host-bound catalog to Key Vault and hand off to the local consumer.\n\n## Inputs\n\n- Environment name and Terraform directory\n- Existing isolated Kubernetes context when live cluster verification is available\n- Optional isolated authenticated OSMO profile for read-only service verification\n- Requested deployment consumers and explicit version overrides\n- For HiL publication, the host identity, existing backend and pool, approved service URL, protected registry configuration, Key Vault name, and optional public VPN inputs\n\n## Safety Boundaries\n\nFollow these rules for every environment bundle:\n\n- Do not modify Azure resources, Kubernetes resources, OSMO configuration, or the active OSMO profile during discovery.\n- Do not run `terraform apply`, `kubectl apply`, Helm upgrade\u002Finstall, OSMO update\u002Fset\u002Fdelete commands, or Azure create\u002Fupdate\u002Fdelete commands while generating a bundle.\n- Do not upload artifacts or publish credentials during read-only discovery.\n- Do not write discovered values into tracked files, documentation, examples, tests, or source defaults.\n- Do not replace instructional RFC1918 addresses or example resource shapes solely because they differ from the deployed environment.\n- Do not include Terraform state, secret values, kubeconfig contents, OSMO profiles, tokens, registry credentials, VPN keys, certificates, or absolute local paths in a bundle.\n- Use an isolated kubeconfig and explicit context. Verify the AKS resource ID before reading cluster state.\n- Ask before changing an Azure CLI subscription or OSMO profile when the requested task is discovery only.\n- Use existing protected password or token files for non-interactive login. Never request secrets through chat.\n\n## Bundle Layout\n\nCreate only the artifacts needed by the deployment:\n\n```text\ninfrastructure\u002Fsetup\u002Fgenerated\u002F\u003Cenvironment>\u002F\n├── deployment.json\n├── osmo-platforms.yaml\n├── osmo-images.json\n└── azureml-instance-types.yaml\n```\n\n`deployment.json` is required. The other files are optional when the corresponding component is not deployed.\n\nUse lowercase letters, numbers, and hyphens for `\u003Cenvironment>`. Keep artifact filenames stable because the Key Vault transfer scripts use this allowlist.\n\n## Prerequisites\n\nUse every available discovery tool. Record unavailable tools and skipped checks in `deployment.json`.\n\n| Tool      | Purpose                                                           | Required                             |\n|-----------|-------------------------------------------------------------------|--------------------------------------|\n| Terraform | Read desired resources and node-pool configuration                | Yes                                  |\n| Azure CLI | Verify Azure identity and live resource metadata                  | Yes                                  |\n| jq        | Select explicit non-secret fields and write JSON                  | Yes                                  |\n| kubectl   | Verify AKS nodes, labels, taints, GPU capacity, and OSMO endpoint | When AKS is reachable                |\n| osmo      | Verify the authenticated service and available pools              | When an isolated profile is supplied |\n| Helm      | Read the deployed OSMO image version and values                   | When OSMO is deployed                |\n\nFor private resources, connect to the VPN before live Azure, AKS, Key Vault, or OSMO checks.\n\n## Generate a Bundle\n\nThis 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.\n\n### 1. Establish the target\n\nCollect or infer:\n\n- Environment name\n- Terraform directory, normally `infrastructure\u002Fterraform`\n- Isolated kubeconfig path, normally `$HOME\u002F.kube\u002Fphysical-ai-toolchain\u002F\u003Caks-cluster>.yaml`\n- Explicit Kubernetes context\n- Optional isolated OSMO profile directory\n- Optional OSMO image version when OSMO is not deployed yet\n\nCreate `infrastructure\u002Fsetup\u002Fgenerated\u002F\u003Cenvironment>\u002F`. Do not create a tracked placeholder in this directory.\n\n### 2. Read Terraform desired state\n\nRun `terraform output -json` from the Terraform directory. Select only explicit output fields; never copy raw output or state into the bundle.\n\nRead these values when present:\n\n| Terraform output         | Bundle use                                                        |\n|--------------------------|-------------------------------------------------------------------|\n| `resource_group`         | Resource group name and location                                  |\n| `key_vault_name`         | Key Vault bundle transfer                                         |\n| `aks_cluster`            | AKS name and resource ID                                          |\n| `node_pools`             | GPU pool VM sizes, priority, labels, taints, and scaling settings |\n| `container_registry`     | ACR name and login server                                         |\n| `storage_account`        | Storage account name                                              |\n| `azureml_workspace`      | Azure ML workspace name                                           |\n| `osmo_workload_identity` | OSMO workload identity ID and Entra metadata                      |\n\nFail when the resource group, Key Vault, or requested AKS\u002FACR values are missing. Do not infer names from naming conventions when Terraform exposes them.\n\nA 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.\n\n### 3. Verify Azure\n\nUse read-only Azure CLI calls:\n\n1. Read the active account with `az account show`.\n2. Confirm its subscription matches the subscription segment of the AKS resource ID.\n3. Read the resource group with `az group show`.\n4. Read AKS with `az aks show` and compare its normalized resource ID with Terraform.\n5. Read ACR with `az acr show` and compare its name and login server with Terraform.\n6. Read Key Vault metadata with `az keyvault show`; do not enumerate or read unrelated secret values.\n7. Read `osmo_workload_identity` with `az identity show --ids`, and confirm its ID, client ID, and tenant ID match Terraform.\n\nStop on any identity or resource mismatch. Do not switch subscriptions silently.\n\n### 4. Verify Kubernetes\n\nWhen kubectl is available and AKS is reachable:\n\n1. Use `verify_existing_aks_kubeconfig` before refreshing credentials.\n2. Use `connect_aks` from `scripts\u002Flib\u002Fcommon.sh` only when the user requested credential setup.\n3. Otherwise require an existing isolated kubeconfig and use `verify_kube_target`.\n4. Read nodes with an explicit kubeconfig and context.\n5. For each Terraform GPU pool, compare:\n   - `agentpool` label\n   - `node.kubernetes.io\u002Finstance-type` label\n   - Terraform node labels\n   - Terraform taints\n   - `status.allocatable[\"nvidia.com\u002Fgpu\"]`\n6. Read `azureml\u002Fazureml-ingress-nginx-internal-lb` and form `http:\u002F\u002F\u003CRFC1918-address>` from its assigned ingress IP.\n\nScale-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.\n\n### 5. Verify OSMO\n\nDo 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:\n\n- `osmo version`\n- `osmo pool list --format-type json`\n\nWhen 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\u002Fsetup\u002Fdefaults.conf` only for a new deployment.\n\nRecord whether OSMO and Helm verification succeeded. Do not copy profile data into the bundle.\n\n### 6. Generate OSMO platform values\n\nGenerate `osmo-platforms.yaml` from `node_pools`.\n\nFor each GPU pool that isn't parked:\n\n- Create one pod template with `agentpool` and `node.kubernetes.io\u002Finstance-type` selectors.\n- Add Terraform node labels that constrain scheduling.\n- Convert each Terraform taint into a matching `Exists` or `Equal` toleration.\n- Add the `nvidia.com\u002Fgpu` `NoSchedule` toleration when the pool uses it.\n- Set requests and limits to the literal OSMO Jinja value `{{USER_GPU}}`.\n- Create a platform under `services.configs.pools.default.platforms`.\n- 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.\n- Keep `USER_CPU`, `USER_MEMORY`, `USER_STORAGE`, and `USER_SHM_SIZE` as instructional defaults unless the user supplies workload requirements.\n\nUse unique lowercase identifiers derived from the pool key. Preserve both braces in every OSMO Jinja expression.\n\n### 7. Generate Azure ML InstanceTypes\n\nGenerate `azureml-instance-types.yaml` from the same pool data:\n\n- Always include `defaultinstancetype` for CPU workloads.\n- Create one GPU InstanceType per pool that isn't parked. Select the pool with `agentpool: \u003Cpool 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.\n- Use `gpuspot` for the first spot pool and `gpu` for the first regular pool when those names are unambiguous; otherwise use `gpu-\u003Cpool>`.\n- Set the GPU limit to a value no greater than verified per-node capacity. Use `1` for scale-to-zero pools without live capacity.\n- Do not generate multi-GPU InstanceTypes without verified capacity or an explicit user requirement.\n\nThe deployment consumes this file through `02-deploy-azureml-extension.sh --instance-types-manifest`.\n\n### 8. Generate the immutable ACR image manifest\n\nGenerate `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\u002Fsetup\u002Fimport-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.\n\nTo describe images that are already mirrored, use this component allowlist:\n\n- `agent`\n- `backend-listener`\n- `backend-worker`\n- `client`\n- `delayed-job-monitor`\n- `init-container`\n- `logger`\n- `router`\n- `service`\n- `web-ui`\n- `worker`\n\nFor each component, read the digest for `osmo\u002F\u003Ccomponent>:\u003Cimage-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.\n\nWrite this shape:\n\n```json\n{\n  \"schema_version\": 1,\n  \"registry\": \"\u003Cacr-name>\",\n  \"login_server\": \"\u003Cacr-login-server>\",\n  \"image_version\": \"\u003Cversion>\",\n  \"images\": {\n    \"\u003Ccomponent>\": {\n      \"repository\": \"osmo\u002F\u003Ccomponent>\",\n      \"digest\": \"sha256:\u003C64-lowercase-hex>\"\n    }\n  }\n}\n```\n\n### 9. Generate deployment metadata\n\nWrite `deployment.json` last. Use relative artifact filenames and SHA-256 digests. Include:\n\n```json\n{\n  \"schema_version\": 1,\n  \"environment\": \"\u003Cenvironment>\",\n  \"generated_at\": \"\u003CUTC-RFC3339>\",\n  \"subscription_id\": \"\u003Csubscription-id>\",\n  \"tenant_id\": \"\u003Ctenant-id>\",\n  \"resource_group\": \"\u003Cresource-group>\",\n  \"location\": \"\u003Cazure-region>\",\n  \"key_vault_name\": \"\u003Ckey-vault>\",\n  \"aks_cluster\": \"\u003Caks-cluster>\",\n  \"aks_resource_id\": \"\u003Caks-resource-id>\",\n  \"acr_name\": \"\u003Cacr-name-or-empty>\",\n  \"acr_login_server\": \"\u003Clogin-server-or-empty>\",\n  \"azureml_workspace\": \"\u003Cworkspace-or-empty>\",\n  \"storage_account\": \"\u003Cstorage-account-or-empty>\",\n  \"osmo_service_url\": \"\u003Cprivate-osmo-url>\",\n  \"osmo_chart_version\": \"\u003Cchart-version-or-empty>\",\n  \"osmo_image_version\": \"\u003Cimage-version-or-empty>\",\n  \"osmo_workflow_data_uri\": \"azure:\u002F\u002F\u003Cstorage-account>\u002F\u003Ccontainer>\u002Fworkflows\u002Fdata\",\n  \"osmo_workload_identity\": {\n    \"id\": \"\u003Cuser-assigned-managed-identity-resource-id>\",\n    \"principal_id\": \"\u003Cmanaged-identity-principal-id>\",\n    \"client_id\": \"\u003Cmanaged-identity-client-id>\",\n    \"tenant_id\": \"\u003Cmanaged-identity-tenant-id>\"\n  },\n  \"artifacts\": {\n    \"osmo_platforms\": {\"file\": \"osmo-platforms.yaml\", \"sha256\": \"\u003Cdigest>\"},\n    \"osmo_images\": {\"file\": \"osmo-images.json\", \"sha256\": \"\u003Cdigest>\"},\n    \"azureml_instance_types\": {\"file\": \"azureml-instance-types.yaml\", \"sha256\": \"\u003Cdigest>\"}\n  },\n  \"verification\": {\n    \"terraform\": true,\n    \"azure_cli\": true,\n    \"kubectl\": true,\n    \"helm\": true,\n    \"osmo\": true\n  }\n}\n```\n\nSet `osmo_workflow_data_uri` from the configured OSMO `workflow_data.credential.endpoint`, not a naming convention. It must match `azure:\u002F\u002F\u003Caccount>\u002F\u003Ccontainer>\u002Fworkflows\u002Fdata`. Omit optional artifact entries when their files do not exist. Set unavailable verification tools to `false`; do not claim checks that did not run.\n\n### 10. Validate\n\nBefore using or uploading the bundle:\n\n- Confirm every artifact is a regular non-symlink file.\n- Confirm `deployment.json` matches the active subscription, Terraform resource group, Key Vault, and AKS resource ID.\n- Confirm `osmo_workflow_data_uri` is the configured Azure workflow-data endpoint and `osmo_workload_identity` matches Terraform and Azure identity metadata.\n- Confirm artifact paths are relative filenames without `..`.\n- Recalculate and compare every artifact SHA-256.\n- Validate `osmo-images.json` against `verify_acr_image_manifest` when ACR is used.\n- Run `kubectl apply --dry-run=client -f` for the Azure ML InstanceTypes when kubectl is available.\n- For every OSMO pool whose node pool can reach zero nodes, confirm `osmo-platforms.yaml` gives it resource validations without `K8_` values, such as `{{K8_CPU}}`, and a pod template that selects `agentpool` when another pool shares its VM size. This applies to exported bundles too. Stop if either is missing: node-capacity rules make OSMO reject workflows for an empty pool, and an instance-type selector alone can wake the wrong pool.\n- Search the bundle for private keys, bearer tokens, password fields, Docker auth, kubeconfig client data, and absolute home-directory paths. Stop if any are found.\n- Confirm `git check-ignore infrastructure\u002Fsetup\u002Fgenerated\u002F\u003Cenvironment>\u002Fdeployment.json` succeeds.\n\n## Use the Bundle\n\nPass generated artifacts explicitly; do not copy them back into tracked `values\u002F` or `manifests\u002F` directories.\n\n| Deployment         | Generated argument                                                                                                      |\n|--------------------|-------------------------------------------------------------------------------------------------------------------------|\n| Azure ML extension | `02-deploy-azureml-extension.sh --instance-types-manifest \u003Cbundle>\u002Fazureml-instance-types.yaml`                         |\n| OSMO control plane | `03-deploy-osmo.sh --platform-values \u003Cbundle>\u002Fosmo-platforms.yaml --use-acr --image-manifest \u003Cbundle>\u002Fosmo-images.json` |\n\nRead the image version, service URL, AKS resource ID, and resource names from `deployment.json`. Run each deployment script with `--config-preview` first. Deployment scripts may change Azure or Kubernetes resources; obtain user confirmation before continuing from discovery into deployment.\n\n## Transfer a Generic Non-Secret Bundle\n\nUpload the allowlisted bundle from the trusted deployment host:\n\n```bash\ninfrastructure\u002Fsetup\u002Fupload-environment-bundle.sh --environment \u003Cenvironment> --config-preview\ninfrastructure\u002Fsetup\u002Fupload-environment-bundle.sh --environment \u003Cenvironment>\n```\n\nThe uploader requires Key Vault secret write permission. It never changes RBAC.\n\nEach UTF-8 artifact must be no larger than 24,000 bytes. Omit an optional file and its `deployment.json` artifact entry together. Existing Key Vault versions may remain, but consumers follow the current `deployment.json` allowlist.\n\nDo not run concurrent uploads for the same environment. The uploader publishes artifacts first and `deployment.json` last so consumers either receive a coherent bundle or fail its digest checks.\n\nFor a generic, non-HiL consumer, authenticate to Azure, connect to the private network or VPN, and download the bundle:\n\n```bash\ninfrastructure\u002Fsetup\u002Fdownload-environment-bundle.sh --environment \u003Cenvironment> --resource-group \u003Cresource-group> --config-preview\ninfrastructure\u002Fsetup\u002Fdownload-environment-bundle.sh --environment \u003Cenvironment> --resource-group \u003Cresource-group>\n```\n\nThe downloader requires the Key Vault Secrets User role and private endpoint connectivity when the vault is private.\n\nConfigure local clients from the protected bundle:\n\n```bash\ninfrastructure\u002Fsetup\u002Fconnect-environment.sh --environment \u003Cenvironment> --config-preview\ninfrastructure\u002Fsetup\u002Fconnect-environment.sh --environment \u003Cenvironment>\n```\n\nUse `--osmo-method dev --osmo-username \u003Cuser>` only for an explicitly approved development deployment. Use protected files with `--password-file` or `--token-file` for service authentication.\n\n`download-environment-bundle.sh` and `connect-environment.sh` remain generic non-HiL utilities. They do not retrieve or configure host-bound HiL credentials.\n\n## Prepare and Connect an Ubuntu HiL Host\n\nComplete this journey when an existing OSMO backend and pool are ready: the environment owner publishes the generic non-secret bundle separately from the host-bound protected inputs, then the Ubuntu consumer connects only its owned local K3s target with the catalog-bound artifacts.\n\n### Publish Host-Bound Inputs\n\nThe environment owner runs `infrastructure\u002Fsetup\u002F04-prepare-osmo-hil-node.sh` after verifying the existing OSMO backend and pool. Supply the generated bundle, approved service URL, existing backend and pool, protected OSMO profile, pull-only registry configuration, and token expiry. The script publishes the generic bundle and the exact host-bound catalog separately, writing the catalog last.\n\nKey Vault is the only scripted protected-artifact transfer. Before publication, the environment owner creates the exact secret resources, except the catalog that the publisher writes, and grants the Ubuntu identity data-plane access to each named inbound secret only.\n\n`infrastructure\u002Fsetup\u002Fprepare-osmo-hil-exchange.sh` creates the secrets and the pull-only registry configuration, and grants the roles when given `--assignee-object-id`; rerun it after the first publication to grant the catalog role.\n\nUse `Key Vault Secrets User` for inbound secrets and `Key Vault Secrets Officer` only for the host-specific CSR secret. Verify that the Ubuntu identity has no direct or inherited vault-wide data-plane role.\n\nKey Vault networking stays a manual environment-owner action. The publisher does not assign roles, modify Key Vault networking, or make a private vault reachable. Complete any bounded network-access window and restore private-only access before the consumer continues.\n\nThe publisher reuses the exact catalog-pinned OSMO token and token-metadata secret versions when they are valid and unexpired. `--renew-token` forces a new issuance. An absent catalog or valid expired token metadata issues a new token. Stop on a malformed or inaccessible catalog, or a token-metadata binding or digest mismatch. The publisher does not delete token versions.\n\nManual SCP is outside this repository HiL flow. An operator may use it only as an out-of-band procedure that does not invoke repository HiL publisher, VPN, or consumer scripts and does not use retired transfer arguments.\n\n### Connect the Ubuntu Consumer\n\nAfter the Ubuntu host and any required VPN are ready, run the consumer boundary:\n\n```bash\ndata-pipeline\u002Fsetup\u002Fhil\u002F02-connect-osmo-backend.sh \\\n  --environment \u003Cenvironment> \\\n  --host-name \u003Chost> \\\n  --tenant-id \u003Ctenant-id> \\\n  --subscription \u003Csubscription-id> \\\n  --vault-name \u003Cvault>\n```\n\nThe consumer retrieves the catalog and declared artifacts from Key Vault. It validates catalog structure, artifact digests, token metadata, token digest, backend binding, and expiry before any Kubernetes mutation. A Key Vault access, network, target, catalog, or integrity failure stops the run.\n\nThe consumer validates the exact catalog-bound inputs and changes only the owned local K3s target. It does not administer Azure resources, AKS, Key Vault networking or RBAC, or remote OSMO desired state. Do not use `download-environment-bundle.sh` or `connect-environment.sh` as the Ubuntu HiL path.\n\n## Success Criteria\n\n- Generated bundle files contain only the approved non-secret fields and remain under the gitignored environment directory.\n- Every available read-only target check passes or is recorded as unavailable without a false verification claim.\n- Deployment consumers receive explicit validated artifact paths instead of copied tracked values.\n- A HiL publication uses Key Vault, preserves exact catalog-pinned artifact versions, and publishes the catalog last.\n- No discovery action mutates Azure, Kubernetes, OSMO, Key Vault, or a client profile.\n\n## Stop Rules\n\n- Stop when Terraform, Azure, AKS, ACR, Key Vault, or OSMO identity does not match the selected environment.\n- Stop when a generated artifact contains a credential, private key, kubeconfig, profile, absolute home path, or unverified mutable reference.\n- Stop before deployment, publication, role assignment, network change, or credential issuance unless the caller requested that separate action and its owner prerequisites are satisfied.\n- Stop the Key Vault path on access, network, target, catalog, token, or integrity failure.\n\n## Handoff\n\nReturn the generated bundle path, validation results, unavailable checks, parked pools left out of the bundle, and the exact next preview command. Name any live Azure ML InstanceType or OSMO pool that still targets a parked pool so the operator can remove it; applying the regenerated InstanceTypes doesn't delete it. For HiL preparation, identify the trusted Key Vault publisher command, the local consumer command, and any environment-owner RBAC or network checkpoint that remains.\n","# Environment Deployment\n\nGenerate non-secret deployment details from Terraform desired state and read-only Azure, Kubernetes, and OSMO discovery. Store generated artifacts under the gitignored `infrastructure\u002Fsetup\u002Fgenerated\u002F\u003Cenvironment>\u002F` directory.\n\n## Goal\n\nProduce 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.\n\n## Flow\n\n1. Resolve the environment, desired-state sources, available read-only tools, and requested bundle consumers.\n2. Verify target identities and generate only the required allowlisted artifacts under the gitignored environment directory.\n3. Validate hashes, immutable references, file safety, and the absence of credentials before use.\n4. Preview the selected deployment or, for HiL, publish the exact host-bound catalog to Key Vault and hand off to the local consumer.\n\n## Inputs\n\n- Environment name and Terraform directory\n- Existing isolated Kubernetes context when live cluster verification is available\n- Optional isolated authenticated OSMO profile for read-only service verification\n- Requested deployment consumers and explicit version overrides\n- For HiL publication, the host identity, existing backend and pool, approved service URL, protected registry configuration, Key Vault name, and optional public VPN inputs\n\n## Safety Boundaries\n\nFollow these rules for every environment bundle:\n\n- Do not modify Azure resources, Kubernetes resources, OSMO configuration, or the active OSMO profile during discovery.\n- Do not run `terraform apply`, `kubectl apply`, Helm upgrade\u002Finstall, OSMO update\u002Fset\u002Fdelete commands, or Azure create\u002Fupdate\u002Fdelete commands while generating a bundle.\n- Do not upload artifacts or publish credentials during read-only discovery.\n- Do not write discovered values into tracked files, documentation, examples, tests, or source defaults.\n- Do not replace instructional RFC1918 addresses or example resource shapes solely because they differ from the deployed environment.\n- Do not include Terraform state, secret values, kubeconfig contents, OSMO profiles, tokens, registry credentials, VPN keys, certificates, or absolute local paths in a bundle.\n- Use an isolated kubeconfig and explicit context. Verify the AKS resource ID before reading cluster state.\n- Ask before changing an Azure CLI subscription or OSMO profile when the requested task is discovery only.\n- Use existing protected password or token files for non-interactive login. Never request secrets through chat.\n\n## Bundle Layout\n\nCreate only the artifacts needed by the deployment:\n\n```text\ninfrastructure\u002Fsetup\u002Fgenerated\u002F\u003Cenvironment>\u002F\n├── deployment.json\n├── osmo-platforms.yaml\n├── osmo-images.json\n└── azureml-instance-types.yaml\n```\n\n`deployment.json` is required. The other files are optional when the corresponding component is not deployed.\n\nUse lowercase letters, numbers, and hyphens for `\u003Cenvironment>`. Keep artifact filenames stable because the Key Vault transfer scripts use this allowlist.\n\n## Prerequisites\n\nUse every available discovery tool. Record unavailable tools and skipped checks in `deployment.json`.\n\n| Tool      | Purpose                                                           | Required                             |\n|-----------|-------------------------------------------------------------------|--------------------------------------|\n| Terraform | Read desired resources and node-pool configuration                | Yes                                  |\n| Azure CLI | Verify Azure identity and live resource metadata                  | Yes                                  |\n| jq        | Select explicit non-secret fields and write JSON                  | Yes                                  |\n| kubectl   | Verify AKS nodes, labels, taints, GPU capacity, and OSMO endpoint | When AKS is reachable                |\n| osmo      | Verify the authenticated service and available pools              | When an isolated profile is supplied |\n| Helm      | Read the deployed OSMO image version and values                   | When OSMO is deployed                |\n\nFor private resources, connect to the VPN before live Azure, AKS, Key Vault, or OSMO checks.\n\n## Generate a Bundle\n\nThis 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.\n\n### 1. Establish the target\n\nCollect or infer:\n\n- Environment name\n- Terraform directory, normally `infrastructure\u002Fterraform`\n- Isolated kubeconfig path, normally `$HOME\u002F.kube\u002Fphysical-ai-toolchain\u002F\u003Caks-cluster>.yaml`\n- Explicit Kubernetes context\n- Optional isolated OSMO profile directory\n- Optional OSMO image version when OSMO is not deployed yet\n\nCreate `infrastructure\u002Fsetup\u002Fgenerated\u002F\u003Cenvironment>\u002F`. Do not create a tracked placeholder in this directory.\n\n### 2. Read Terraform desired state\n\nRun `terraform output -json` from the Terraform directory. Select only explicit output fields; never copy raw output or state into the bundle.\n\nRead these values when present:\n\n| Terraform output         | Bundle use                                                        |\n|--------------------------|-------------------------------------------------------------------|\n| `resource_group`         | Resource group name and location                                  |\n| `key_vault_name`         | Key Vault bundle transfer                                         |\n| `aks_cluster`            | AKS name and resource ID                                          |\n| `node_pools`             | GPU pool VM sizes, priority, labels, taints, and scaling settings |\n| `container_registry`     | ACR name and login server                                         |\n| `storage_account`        | Storage account name                                              |\n| `azureml_workspace`      | Azure ML workspace name                                           |\n| `osmo_workload_identity` | OSMO workload identity ID and Entra metadata                      |\n\nFail when the resource group, Key Vault, or requested AKS\u002FACR values are missing. Do not infer names from naming conventions when Terraform exposes them.\n\nA 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.\n\n### 3. Verify Azure\n\nUse read-only Azure CLI calls:\n\n1. Read the active account with `az account show`.\n2. Confirm its subscription matches the subscription segment of the AKS resource ID.\n3. Read the resource group with `az group show`.\n4. Read AKS with `az aks show` and compare its normalized resource ID with Terraform.\n5. Read ACR with `az acr show` and compare its name and login server with Terraform.\n6. Read Key Vault metadata with `az keyvault show`; do not enumerate or read unrelated secret values.\n7. Read `osmo_workload_identity` with `az identity show --ids`, and confirm its ID, client ID, and tenant ID match Terraform.\n\nStop on any identity or resource mismatch. Do not switch subscriptions silently.\n\n### 4. Verify Kubernetes\n\nWhen kubectl is available and AKS is reachable:\n\n1. Use `verify_existing_aks_kubeconfig` before refreshing credentials.\n2. Use `connect_aks` from `scripts\u002Flib\u002Fcommon.sh` only when the user requested credential setup.\n3. Otherwise require an existing isolated kubeconfig and use `verify_kube_target`.\n4. Read nodes with an explicit kubeconfig and context.\n5. For each Terraform GPU pool, compare:\n   - `agentpool` label\n   - `node.kubernetes.io\u002Finstance-type` label\n   - Terraform node labels\n   - Terraform taints\n   - `status.allocatable[\"nvidia.com\u002Fgpu\"]`\n6. Read `azureml\u002Fazureml-ingress-nginx-internal-lb` and form `http:\u002F\u002F\u003CRFC1918-address>` from its assigned ingress IP.\n\nScale-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.\n\n### 5. Verify OSMO\n\nDo 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:\n\n- `osmo version`\n- `osmo pool list --format-type json`\n\nWhen 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\u002Fsetup\u002Fdefaults.conf` only for a new deployment.\n\nRecord whether OSMO and Helm verification succeeded. Do not copy profile data into the bundle.\n\n### 6. Generate OSMO platform values\n\nGenerate `osmo-platforms.yaml` from `node_pools`.\n\nFor each GPU pool that isn't parked:\n\n- Create one pod template with `agentpool` and `node.kubernetes.io\u002Finstance-type` selectors.\n- Add Terraform node labels that constrain scheduling.\n- Convert each Terraform taint into a matching `Exists` or `Equal` toleration.\n- Add the `nvidia.com\u002Fgpu` `NoSchedule` toleration when the pool uses it.\n- Set requests and limits to the literal OSMO Jinja value `{{USER_GPU}}`.\n- Create a platform under `services.configs.pools.default.platforms`.\n- 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.\n- Keep `USER_CPU`, `USER_MEMORY`, `USER_STORAGE`, and `USER_SHM_SIZE` as instructional defaults unless the user supplies workload requirements.\n\nUse unique lowercase identifiers derived from the pool key. Preserve both braces in every OSMO Jinja expression.\n\n### 7. Generate Azure ML InstanceTypes\n\nGenerate `azureml-instance-types.yaml` from the same pool data:\n\n- Always include `defaultinstancetype` for CPU workloads.\n- Create one GPU InstanceType per pool that isn't parked. Select the pool with `agentpool: \u003Cpool 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.\n- Use `gpuspot` for the first spot pool and `gpu` for the first regular pool when those names are unambiguous; otherwise use `gpu-\u003Cpool>`.\n- Set the GPU limit to a value no greater than verified per-node capacity. Use `1` for scale-to-zero pools without live capacity.\n- Do not generate multi-GPU InstanceTypes without verified capacity or an explicit user requirement.\n\nThe deployment consumes this file through `02-deploy-azureml-extension.sh --instance-types-manifest`.\n\n### 8. Generate the immutable ACR image manifest\n\nGenerate `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\u002Fsetup\u002Fimport-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.\n\nTo describe images that are already mirrored, use this component allowlist:\n\n- `agent`\n- `backend-listener`\n- `backend-worker`\n- `client`\n- `delayed-job-monitor`\n- `init-container`\n- `logger`\n- `router`\n- `service`\n- `web-ui`\n- `worker`\n\nFor each component, read the digest for `osmo\u002F\u003Ccomponent>:\u003Cimage-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.\n\nWrite this shape:\n\n```json\n{\n  \"schema_version\": 1,\n  \"registry\": \"\u003Cacr-name>\",\n  \"login_server\": \"\u003Cacr-login-server>\",\n  \"image_version\": \"\u003Cversion>\",\n  \"images\": {\n    \"\u003Ccomponent>\": {\n      \"repository\": \"osmo\u002F\u003Ccomponent>\",\n      \"digest\": \"sha256:\u003C64-lowercase-hex>\"\n    }\n  }\n}\n```\n\n### 9. Generate deployment metadata\n\nWrite `deployment.json` last. Use relative artifact filenames and SHA-256 digests. Include:\n\n```json\n{\n  \"schema_version\": 1,\n  \"environment\": \"\u003Cenvironment>\",\n  \"generated_at\": \"\u003CUTC-RFC3339>\",\n  \"subscription_id\": \"\u003Csubscription-id>\",\n  \"tenant_id\": \"\u003Ctenant-id>\",\n  \"resource_group\": \"\u003Cresource-group>\",\n  \"location\": \"\u003Cazure-region>\",\n  \"key_vault_name\": \"\u003Ckey-vault>\",\n  \"aks_cluster\": \"\u003Caks-cluster>\",\n  \"aks_resource_id\": \"\u003Caks-resource-id>\",\n  \"acr_name\": \"\u003Cacr-name-or-empty>\",\n  \"acr_login_server\": \"\u003Clogin-server-or-empty>\",\n  \"azureml_workspace\": \"\u003Cworkspace-or-empty>\",\n  \"storage_account\": \"\u003Cstorage-account-or-empty>\",\n  \"osmo_service_url\": \"\u003Cprivate-osmo-url>\",\n  \"osmo_chart_version\": \"\u003Cchart-version-or-empty>\",\n  \"osmo_image_version\": \"\u003Cimage-version-or-empty>\",\n  \"osmo_workflow_data_uri\": \"azure:\u002F\u002F\u003Cstorage-account>\u002F\u003Ccontainer>\u002Fworkflows\u002Fdata\",\n  \"osmo_workload_identity\": {\n    \"id\": \"\u003Cuser-assigned-managed-identity-resource-id>\",\n    \"principal_id\": \"\u003Cmanaged-identity-principal-id>\",\n    \"client_id\": \"\u003Cmanaged-identity-client-id>\",\n    \"tenant_id\": \"\u003Cmanaged-identity-tenant-id>\"\n  },\n  \"artifacts\": {\n    \"osmo_platforms\": {\"file\": \"osmo-platforms.yaml\", \"sha256\": \"\u003Cdigest>\"},\n    \"osmo_images\": {\"file\": \"osmo-images.json\", \"sha256\": \"\u003Cdigest>\"},\n    \"azureml_instance_types\": {\"file\": \"azureml-instance-types.yaml\", \"sha256\": \"\u003Cdigest>\"}\n  },\n  \"verification\": {\n    \"terraform\": true,\n    \"azure_cli\": true,\n    \"kubectl\": true,\n    \"helm\": true,\n    \"osmo\": true\n  }\n}\n```\n\nSet `osmo_workflow_data_uri` from the configured OSMO `workflow_data.credential.endpoint`, not a naming convention. It must match `azure:\u002F\u002F\u003Caccount>\u002F\u003Ccontainer>\u002Fworkflows\u002Fdata`. Omit optional artifact entries when their files do not exist. Set unavailable verification tools to `false`; do not claim checks that did not run.\n\n### 10. Validate\n\nBefore using or uploading the bundle:\n\n- Confirm every artifact is a regular non-symlink file.\n- Confirm `deployment.json` matches the active subscription, Terraform resource group, Key Vault, and AKS resource ID.\n- Confirm `osmo_workflow_data_uri` is the configured Azure workflow-data endpoint and `osmo_workload_identity` matches Terraform and Azure identity metadata.\n- Confirm artifact paths are relative filenames without `..`.\n- Recalculate and compare every artifact SHA-256.\n- Validate `osmo-images.json` against `verify_acr_image_manifest` when ACR is used.\n- Run `kubectl apply --dry-run=client -f` for the Azure ML InstanceTypes when kubectl is available.\n- For every OSMO pool whose node pool can reach zero nodes, confirm `osmo-platforms.yaml` gives it resource validations without `K8_` values, such as `{{K8_CPU}}`, and a pod template that selects `agentpool` when another pool shares its VM size. This applies to exported bundles too. Stop if either is missing: node-capacity rules make OSMO reject workflows for an empty pool, and an instance-type selector alone can wake the wrong pool.\n- Search the bundle for private keys, bearer tokens, password fields, Docker auth, kubeconfig client data, and absolute home-directory paths. Stop if any are found.\n- Confirm `git check-ignore infrastructure\u002Fsetup\u002Fgenerated\u002F\u003Cenvironment>\u002Fdeployment.json` succeeds.\n\n## Use the Bundle\n\nPass generated artifacts explicitly; do not copy them back into tracked `values\u002F` or `manifests\u002F` directories.\n\n| Deployment         | Generated argument                                                                                                      |\n|--------------------|-------------------------------------------------------------------------------------------------------------------------|\n| Azure ML extension | `02-deploy-azureml-extension.sh --instance-types-manifest \u003Cbundle>\u002Fazureml-instance-types.yaml`                         |\n| OSMO control plane | `03-deploy-osmo.sh --platform-values \u003Cbundle>\u002Fosmo-platforms.yaml --use-acr --image-manifest \u003Cbundle>\u002Fosmo-images.json` |\n\nRead the image version, service URL, AKS resource ID, and resource names from `deployment.json`. Run each deployment script with `--config-preview` first. Deployment scripts may change Azure or Kubernetes resources; obtain user confirmation before continuing from discovery into deployment.\n\n## Transfer a Generic Non-Secret Bundle\n\nUpload the allowlisted bundle from the trusted deployment host:\n\n```bash\ninfrastructure\u002Fsetup\u002Fupload-environment-bundle.sh --environment \u003Cenvironment> --config-preview\ninfrastructure\u002Fsetup\u002Fupload-environment-bundle.sh --environment \u003Cenvironment>\n```\n\nThe uploader requires Key Vault secret write permission. It never changes RBAC.\n\nEach UTF-8 artifact must be no larger than 24,000 bytes. Omit an optional file and its `deployment.json` artifact entry together. Existing Key Vault versions may remain, but consumers follow the current `deployment.json` allowlist.\n\nDo not run concurrent uploads for the same environment. The uploader publishes artifacts first and `deployment.json` last so consumers either receive a coherent bundle or fail its digest checks.\n\nFor a generic, non-HiL consumer, authenticate to Azure, connect to the private network or VPN, and download the bundle:\n\n```bash\ninfrastructure\u002Fsetup\u002Fdownload-environment-bundle.sh --environment \u003Cenvironment> --resource-group \u003Cresource-group> --config-preview\ninfrastructure\u002Fsetup\u002Fdownload-environment-bundle.sh --environment \u003Cenvironment> --resource-group \u003Cresource-group>\n```\n\nThe downloader requires the Key Vault Secrets User role and private endpoint connectivity when the vault is private.\n\nConfigure local clients from the protected bundle:\n\n```bash\ninfrastructure\u002Fsetup\u002Fconnect-environment.sh --environment \u003Cenvironment> --config-preview\ninfrastructure\u002Fsetup\u002Fconnect-environment.sh --environment \u003Cenvironment>\n```\n\nUse `--osmo-method dev --osmo-username \u003Cuser>` only for an explicitly approved development deployment. Use protected files with `--password-file` or `--token-file` for service authentication.\n\n`download-environment-bundle.sh` and `connect-environment.sh` remain generic non-HiL utilities. They do not retrieve or configure host-bound HiL credentials.\n\n## Prepare and Connect an Ubuntu HiL Host\n\nComplete this journey when an existing OSMO backend and pool are ready: the environment owner publishes the generic non-secret bundle separately from the host-bound protected inputs, then the Ubuntu consumer connects only its owned local K3s target with the catalog-bound artifacts.\n\n### Publish Host-Bound Inputs\n\nThe environment owner runs `infrastructure\u002Fsetup\u002F04-prepare-osmo-hil-node.sh` after verifying the existing OSMO backend and pool. Supply the generated bundle, approved service URL, existing backend and pool, protected OSMO profile, pull-only registry configuration, and token expiry. The script publishes the generic bundle and the exact host-bound catalog separately, writing the catalog last.\n\nKey Vault is the only scripted protected-artifact transfer. Before publication, the environment owner creates the exact secret resources, except the catalog that the publisher writes, and grants the Ubuntu identity data-plane access to each named inbound secret only.\n\n`infrastructure\u002Fsetup\u002Fprepare-osmo-hil-exchange.sh` creates the secrets and the pull-only registry configuration, and grants the roles when given `--assignee-object-id`; rerun it after the first publication to grant the catalog role.\n\nUse `Key Vault Secrets User` for inbound secrets and `Key Vault Secrets Officer` only for the host-specific CSR secret. Verify that the Ubuntu identity has no direct or inherited vault-wide data-plane role.\n\nKey Vault networking stays a manual environment-owner action. The publisher does not assign roles, modify Key Vault networking, or make a private vault reachable. Complete any bounded network-access window and restore private-only access before the consumer continues.\n\nThe publisher reuses the exact catalog-pinned OSMO token and token-metadata secret versions when they are valid and unexpired. `--renew-token` forces a new issuance. An absent catalog or valid expired token metadata issues a new token. Stop on a malformed or inaccessible catalog, or a token-metadata binding or digest mismatch. The publisher does not delete token versions.\n\nManual SCP is outside this repository HiL flow. An operator may use it only as an out-of-band procedure that does not invoke repository HiL publisher, VPN, or consumer scripts and does not use retired transfer arguments.\n\n### Connect the Ubuntu Consumer\n\nAfter the Ubuntu host and any required VPN are ready, run the consumer boundary:\n\n```bash\ndata-pipeline\u002Fsetup\u002Fhil\u002F02-connect-osmo-backend.sh \\\n  --environment \u003Cenvironment> \\\n  --host-name \u003Chost> \\\n  --tenant-id \u003Ctenant-id> \\\n  --subscription \u003Csubscription-id> \\\n  --vault-name \u003Cvault>\n```\n\nThe consumer retrieves the catalog and declared artifacts from Key Vault. It validates catalog structure, artifact digests, token metadata, token digest, backend binding, and expiry before any Kubernetes mutation. A Key Vault access, network, target, catalog, or integrity failure stops the run.\n\nThe consumer validates the exact catalog-bound inputs and changes only the owned local K3s target. It does not administer Azure resources, AKS, Key Vault networking or RBAC, or remote OSMO desired state. Do not use `download-environment-bundle.sh` or `connect-environment.sh` as the Ubuntu HiL path.\n\n## Success Criteria\n\n- Generated bundle files contain only the approved non-secret fields and remain under the gitignored environment directory.\n- Every available read-only target check passes or is recorded as unavailable without a false verification claim.\n- Deployment consumers receive explicit validated artifact paths instead of copied tracked values.\n- A HiL publication uses Key Vault, preserves exact catalog-pinned artifact versions, and publishes the catalog last.\n- No discovery action mutates Azure, Kubernetes, OSMO, Key Vault, or a client profile.\n\n## Stop Rules\n\n- Stop when Terraform, Azure, AKS, ACR, Key Vault, or OSMO identity does not match the selected environment.\n- Stop when a generated artifact contains a credential, private key, kubeconfig, profile, absolute home path, or unverified mutable reference.\n- Stop before deployment, publication, role assignment, network change, or credential issuance unless the caller requested that separate action and its owner prerequisites are satisfied.\n- Stop the Key Vault path on access, network, target, catalog, token, or integrity failure.\n\n## Handoff\n\nReturn the generated bundle path, validation results, unavailable checks, parked pools left out of the bundle, and the exact next preview command. Name any live Azure ML InstanceType or OSMO pool that still targets a parked pool so the operator can remove it; applying the regenerated InstanceTypes doesn't delete it. For HiL preparation, identify the trusted Key Vault publisher command, the local consumer command, and any environment-owner RBAC or network checkpoint that remains.\n",{"name":5,"description":7},"main","39b9db6f0c0cee5c51d548ee422fe41cd1e7ff03",".github\u002Fskills\u002Fenvironment-deployment",72,"https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain","https:\u002F\u002Fgithub.com\u002Fmicrosoft","https:\u002F\u002Fopensource.microsoft.com","Open source projects and samples from Microsoft","2026-11-14 17:25:41",{"source":9,"skillName":5,"commands":66,"prompt":76,"zipAvailable":77},[67,70,73],{"tool":68,"command":69},"npx","npx skills add microsoft\u002Fphysical-ai-toolchain --skill environment-deployment",{"tool":71,"command":72},"bunx","bunx skills add microsoft\u002Fphysical-ai-toolchain --skill environment-deployment",{"tool":74,"command":75},"pnpm","pnpm dlx skills add microsoft\u002Fphysical-ai-toolchain --skill environment-deployment","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fenvironment-deployment\u002FSKILL.md",true,[],[80,88,95,102,109,116],{"skillNo":81,"name":82,"nameZh":17,"description":83,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":87},"01M78JTQEPW7M3HRGHF4SBB2P4","submit-lerobot-training","Submit a LeRobot imitation learning training job to OSMO with configurable policy, dataset, and Azure ML logging. Use when the user runs \u002Fsubmit-lerobot-training.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsubmit-lerobot-training\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":89,"name":90,"nameZh":17,"description":91,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":87},"01M78JTMTZY0EDECA60C6C9TR3","start-dataviewer","Launch the dataviewer app with an optional dataset path, open it in the browser, and optionally run a VLM judge smoke pass. Use when the user runs \u002Fstart-dataviewer.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fstart-dataviewer\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":17,"description":98,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":87},"01M78JT7VKCVSEM8N7SR67973R","dataviewer-annotate","One-shot: launch the dataviewer with the VLM judge enabled and run the multi-step VLM-as-judge pipeline across an entire dataset. Use when the user runs \u002Fdataviewer-annotate.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fdataviewer-annotate\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":17,"description":105,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":87},"01M78JT5SY9QXT8X7KQX2A9EJ5","check-training-status","Check status, stream logs, and retrieve Azure ML metrics for a running or completed OSMO LeRobot training job. Use when the user runs \u002Fcheck-training-status.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fcheck-training-status\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":17,"description":112,"descriptionZh":17,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":87},"01M78JT2TMR9AKTKGMJ7D0HMT4","chatlog","Create and maintain structured conversation chatlogs capturing problems, solutions, and lessons learned. Use when the user runs \u002Fchatlog.","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fchatlog\u002FSKILL.md",[],[],{"skillNo":117,"name":118,"nameZh":119,"description":120,"descriptionZh":121,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":122,"categories":123,"keywords":130,"publishedAt":51},"01M69AS2WAAD5CZ9S9CBSEZ226","synthetic-data","NVIDIA Cosmos合成数据生成","Generate synthetic training data using NVIDIA Cosmos world foundation models for SDG pipelines","使用 NVIDIA Cosmos 世界基础模型为 SDG 管道生成合成训练数据。","https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002Fphysical-ai-toolchain\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsynthetic-data\u002FSKILL.md",[124,127],{"categoryNo":125,"categoryName":126,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BRZZF9D7PVFN5MXSPWWD61","AI 工程师",{"categoryNo":128,"categoryName":129,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C0NK93YXC7GERCH372ZVDF","AI 模型训练与微调",[131,132,133,134,135,48,136,137,138,139,140,141,142],"synthetic data","data","synthetic","world","NVIDIA","for","models","training","cosmos","pipelines","Training Data","foundation"]