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

Preview

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

--account

Foundry account name.

--endpoint

Microsoft Foundry resource endpoint.

--out

Output Bicep model file.

--resource-group

Resource group containing the Foundry account.

--selection

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--api-version

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.

--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--deploy

Deploy selected models before writing the model file.

Property Value
Default value: True
--use-key

Use an account key for the data-plane request.

Property Value
Default value: False
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az cu infra _postprovision-v1

Preview

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False

az cu infra generate

Preview

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.

--acquire-policy-token

Acquiring an Azure Policy token automatically for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--api-version

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.

--assign-roles

Whether to configure RBAC role assignments; omit to use interactive or default behavior.

Property Value
Accepted values: false, true
--change-reference

The related change reference ID for this resource operation.

Property Value
Parameter group: Global Policy Arguments
--environment -e

Azd environment name.

--force

Overwrite an existing generated template.

Property Value
Default value: False
--foundry-endpoint

Existing Microsoft Foundry resource endpoint.

--foundry-prefix

Prefix for a new Microsoft Foundry resource name.

--location -l

Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.

--models

Comma-separated model names, 'recommended', or 'none'.

--output-dir -d

Directory where the azd template is generated.

Property Value
Default value: provision
Global Parameters
--debug

Increase logging verbosity to show all debug logs.

Property Value
Default value: False
--help -h

Show this help message and exit.

--only-show-errors

Only show errors, suppressing warnings.

Property Value
Default value: False
--output -o

Output format.

Property Value
Default value: json
Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
--query

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose

Increase logging verbosity. Use --debug for full debug logs.

Property Value
Default value: False