az cu infra
Note
This reference is part of the content-understanding extension for the Azure CLI (version 2.75.0 or higher). The extension will automatically install the first time you run an az cu infra command. Learn more about extensions.
Command group 'cu' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Generate infrastructure-as-code for Content Understanding.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az cu infra _models |
Configure model deployments for a generated infrastructure project. |
Extension | Preview |
| az cu infra _postprovision-v1 |
Complete generated-project setup after azd provisioning. |
Extension | Preview |
| az cu infra generate |
Generate an azd/Bicep project for Content Understanding. |
Extension | Preview |
az cu infra _models
Command group 'cu infra' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Configure model deployments for a generated infrastructure project.
az cu infra _models --account
--endpoint
--out
--resource-group
--selection
[--acquire-policy-token]
[--api-version]
[--change-reference]
[--deploy]
[--use-key]
Required Parameters
Foundry account name.
Microsoft Foundry resource endpoint.
Output Bicep model file.
Resource group containing the Foundry account.
Prompt, recommended, none, or comma-separated model selectors.
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 |
Content Understanding API version. Known versions: 2025-11-01 (GA) and 2026-06-01-preview (preview); any YYYY-MM-DD-preview version is also accepted.
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Deploy selected models before writing the model file.
| Property | Value |
|---|---|
| Default value: | True |
Use an account key for the data-plane request.
| Property | Value |
|---|---|
| Default value: | False |
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 |
az cu infra _postprovision-v1
Command group 'cu infra' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Complete generated-project setup after azd provisioning.
az cu infra _postprovision-v1 [--acquire-policy-token]
[--change-reference]
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 |
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 |
az cu infra generate
Command group 'cu infra' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Generate an azd/Bicep project for Content Understanding.
Writes a self-contained project and returns a structured summary. This command does not provision resources or run azd. On a terminal it prompts only for choices not supplied as arguments.
az cu infra generate [--acquire-policy-token]
[--api-version]
[--assign-roles {false, true}]
[--change-reference]
[--environment]
[--force]
[--foundry-endpoint]
[--foundry-prefix]
[--location]
[--models]
[--output-dir]
Examples
Interactively generate a project.
az cu infra generate
Generate a project for a new resource without role assignments.
az cu infra generate --location eastus2 --models recommended --assign-roles false --output-dir provision
Generate a project targeting an existing Foundry resource.
az cu infra generate --foundry-endpoint https://contoso.services.ai.azure.com/ --models none
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 |
Content Understanding API version. Known versions: 2025-11-01 (GA) and 2026-06-01-preview (preview); any YYYY-MM-DD-preview version is also accepted.
Whether to configure RBAC role assignments; omit to use interactive or default behavior.
| Property | Value |
|---|---|
| Accepted values: | false, true |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Azd environment name.
Overwrite an existing generated template.
| Property | Value |
|---|---|
| Default value: | False |
Existing Microsoft Foundry resource endpoint.
Prefix for a new Microsoft Foundry resource name.
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Comma-separated model names, 'recommended', or 'none'.
Directory where the azd template is generated.
| Property | Value |
|---|---|
| Default value: | provision |
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 |