az workload-orchestration cluster
Note
This reference is part of the workload-orchestration extension for the Azure CLI (version 2.67.0 or higher). The extension will automatically install the first time you run an az workload-orchestration cluster command. Learn more about extensions.
Prepare an Arc-connected Kubernetes cluster for Workload Orchestration.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az workload-orchestration cluster init |
Prepare an Arc-connected Kubernetes cluster for Workload Orchestration. |
Extension | GA |
az workload-orchestration cluster init
Prepare an Arc-connected Kubernetes cluster for Workload Orchestration.
Installs all prerequisites on an Arc-connected cluster to make it ready for Workload Orchestration. Idempotent - skips components already installed. Steps performed:
- Verify cluster is Arc-connected with required features enabled
- Install Workload Orchestration Extension Dependencies
- Install Workload Orchestration Extension
- Create Custom Location (validates cluster binding if already exists).
az workload-orchestration cluster init --cluster-name
--location
--resource-group
[--acquire-policy-token]
[--change-reference]
[--custom-location-location]
[--custom-location-name]
[--custom-location-resource-group]
[--extension-dependency-version]
[--extension-name]
[--extension-version]
[--release-train]
Examples
Initialize a cluster with defaults
az workload-orchestration cluster init -c my-cluster -g my-rg -l eastus2euap
Use a specific release train
az workload-orchestration cluster init -c my-cluster -g my-rg -l eastus2euap --release-train dev
Pin a specific WO extension version
az workload-orchestration cluster init -c my-cluster -g my-rg -l eastus2euap --extension-version 2.1.28
Pin a dependency extension (partial-value shorthand)
az workload-orchestration cluster init -c my-cluster -g my-rg -l eastus2euap --extension-dependency-version iotplatform=0.7.6
Pin a dependency extension (full-value shorthand)
az workload-orchestration cluster init -c my-cluster -g my-rg -l eastus2euap --extension-dependency-version "{iotplatform:0.7.6}"
Pin dependencies from a JSON file
az workload-orchestration cluster init -c my-cluster -g my-rg -l eastus2euap --extension-dependency-version deps.json
Custom location name
az workload-orchestration cluster init -c my-cluster -g my-rg -l eastus2euap --custom-location-name my-cl
Custom location in a different resource group
az workload-orchestration cluster init -c my-cluster -g cluster-rg -l eastus2euap --custom-location-resource-group cl-rg
Custom location in a different region
az workload-orchestration cluster init -c my-cluster -g my-rg -l eastus2euap --custom-location-location westus2
Required Parameters
Name of the Arc-connected Kubernetes cluster.
Azure region for the custom location (e.g. eastus2euap).
Resource group of the Arc-connected cluster.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Azure region where the custom location will be created. Default: same as --location.
Name for the custom location. Default: {cluster-name}-cl.
Resource group where the custom location will be created. Default: same as --resource-group.
Pin dependency extension versions. Supported key: iotplatform. Example: iotplatform=0.7.6, {iotplatform:0.7.6}, deps.json. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.
Name for the WO extension resource. Default: wo-extension.
Specific WO extension version to install.
Extension release train. Default: stable.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |