az cu
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 command. Learn more about extensions.
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage and use Azure Content Understanding.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az cu analyze |
Process local files or HTTPS URLs and return analyzer results. |
Extension | Preview |
| az cu analyzer |
Manage Content Understanding analyzers. |
Extension | Preview |
| az cu analyzer copy |
Copy an analyzer within or across Microsoft Foundry resources. |
Extension | Preview |
| az cu analyzer create |
Create an analyzer from a JSON schema file. |
Extension | Preview |
| az cu analyzer delete |
Delete an analyzer. |
Extension | Preview |
| az cu analyzer list |
List analyzers in the Microsoft Foundry resource. |
Extension | Preview |
| az cu analyzer schema |
Author Content Understanding analyzer schemas. |
Extension | Preview |
| az cu analyzer schema create |
Create a starter schema or derive one from a local document sample. |
Extension | Preview |
| az cu analyzer show |
Show a single analyzer definition (JSON). |
Extension | Preview |
| az cu analyzer test |
Run an analyzer over local samples. |
Extension | Preview |
| az cu analyzer validate |
Validate a local analyzer schema. |
Extension | Preview |
| az cu defaults |
Manage Content Understanding model-deployment defaults. |
Extension | Preview |
| az cu defaults set |
Configure Content Understanding defaults that map models to deployments. |
Extension | Preview |
| az cu defaults show |
Show Content Understanding defaults that map models to deployments. |
Extension | Preview |
| az cu doctor |
Verify a Microsoft Foundry resource connection and Content Understanding defaults. |
Extension | Preview |
| az cu env-var |
Inspect recognized CU environment-variable names safely. |
Extension | Preview |
| az cu env-var list |
List recognized environment variables that are currently set. |
Extension | Preview |
| az cu infra |
Generate infrastructure-as-code for Content Understanding. |
Extension | Preview |
| 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 profile |
Manage CU profiles stored atomically in Azure CLI configuration. |
Extension | Preview |
| az cu profile copy |
Copy a CU CLI profile to a new name. |
Extension | Preview |
| az cu profile create |
Create an empty named CU CLI profile without activating it. |
Extension | Preview |
| az cu profile delete |
Delete an inactive named CU CLI profile. |
Extension | Preview |
| az cu profile get |
Print one saved CU CLI profile value. |
Extension | Preview |
| az cu profile list |
List saved CU CLI profiles and identify the active CU CLI profile. |
Extension | Preview |
| az cu profile rename |
Rename a CU CLI profile while preserving its values and active state. |
Extension | Preview |
| az cu profile set |
Set one saved CU CLI profile value. |
Extension | Preview |
| az cu profile set-active |
Select the active CU CLI profile. |
Extension | Preview |
| az cu profile show |
Show the effective CU CLI profile with secrets redacted. |
Extension | Preview |
| az cu profile sync-defaults |
Refresh a profile's model mappings from Content Understanding defaults. |
Extension | Preview |
| az cu profile unset |
Remove one explicitly saved CU CLI profile value. |
Extension | Preview |
az cu analyze
Command group 'cu' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Process local files or HTTPS URLs and return analyzer results.
az cu analyze [--acquire-policy-token]
[--analyzer]
[--api-key]
[--api-version]
[--auth-mode {key, login}]
[--change-reference]
[--concurrency]
[--dry-run]
[--endpoint]
[--file]
[--inline]
[--llm-input]
[--on-existing {error, reanalyze, skip}]
[--output-dir]
[--output-file]
[--pattern]
[--profile]
[--recursive]
[--report-file]
[--source]
[--url]
[--usage]
[--yes]
Examples
Analyze an invoice with an explicit analyzer and endpoint.
az cu analyze --file invoice.pdf --analyzer prebuilt-invoice --endpoint https://contoso.services.ai.azure.com/
Analyze a file using defaults from the active CU profile.
az cu analyze --file invoice.pdf
Select extracted fields using JMESPath.
az cu analyze --file invoice.pdf --query "contents[0].fields"
Analyze an HTTPS or Azure Blob SAS URL.
az cu analyze --url "https://storage.example/container/invoice.pdf?<sas>" --analyzer prebuilt-invoice
Analyze a directory recursively and write results under one directory.
az cu analyze --source documents --recursive --output-dir results --analyzer prebuilt-document --yes
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 |
Analyzer name; defaults to the configured default analyzer.
Microsoft Foundry resource API key.
Content Understanding service API version.
Authentication mode.
| Property | Value |
|---|---|
| Accepted values: | key, login |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Concurrent analysis jobs.
| Property | Value |
|---|---|
| Default value: | 4 |
Display the local execution plan without service calls or writes.
| Property | Value |
|---|---|
| Default value: | False |
Microsoft Foundry resource endpoint for Content Understanding.
Literal local file. Repeat for multiple files.
Use preview synchronous analysis.
| Property | Value |
|---|---|
| Default value: | False |
Return the analyzer result formatted as generative AI model input.
| Property | Value |
|---|---|
| Default value: | False |
How to handle existing result files.
| Property | Value |
|---|---|
| Accepted values: | error, reanalyze, skip |
Write results under this directory, preserving source-relative paths.
Write the primary payload for one selected file.
Python fnmatch pattern applied to every --source.
CU CLI profile used to resolve endpoint and API-version defaults.
Recurse into selected directories.
| Property | Value |
|---|---|
| Default value: | False |
Write a standalone JSON status report.
Local source directory. Repeat for multiple directories.
HTTPS or Azure Blob SAS URL. Repeat for multiple URLs.
Include service usage details.
| Property | Value |
|---|---|
| Default value: | False |
Skip discovery confirmation.
| 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 doctor
Command group 'cu' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Verify a Microsoft Foundry resource connection and Content Understanding defaults.
az cu doctor [--acquire-policy-token]
[--api-key]
[--api-version]
[--auth-mode {key, login}]
[--change-reference]
[--endpoint]
[--fix-defaults]
[--profile]
Examples
Check the active profile and resource defaults.
az cu doctor --output table
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 |
Override the configured API key.
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.
Authentication mode; defaults to the selected CU CLI profile.
| Property | Value |
|---|---|
| Accepted values: | key, login |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Override the configured Microsoft Foundry resource endpoint.
Configure Content Understanding defaults from profile model mappings.
| Property | Value |
|---|---|
| Default value: | False |
Named CU CLI profile to use.
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 |