az cu analyzer
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 analyzer command. Learn more about extensions.
Command group 'cu' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage Content Understanding analyzers.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| 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 analyzer copy
Command group 'cu analyzer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Copy an analyzer within or across Microsoft Foundry resources.
az cu analyzer copy --destination
--source
[--acquire-policy-token]
[--api-key]
[--api-version]
[--auth-mode {key, login}]
[--change-reference]
[--destination-resource]
[--destination-resource-group]
[--destination-subscription]
[--endpoint]
[--profile]
[--source-resource]
[--source-resource-group]
[--source-subscription]
Examples
Copy within the resource selected by the active profile.
az cu analyzer copy --source ContosoInvoice --destination ContosoInvoice_v2
Copy between resources using ARM IDs or account names.
az cu analyzer copy --source ContosoInvoice --destination ContosoInvoice --source-resource source-account --destination-resource target-account
Required Parameters
New analyzer name to create.
Analyzer to copy.
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 |
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 |
Resolve the destination resource directly from Azure.
Resource group used for destination discovery.
Subscription in which to resolve the destination resource; defaults to the active Azure CLI subscription.
Microsoft Foundry resource endpoint for Content Understanding.
CU CLI profile used to resolve endpoint and API-version defaults.
Resolve the source resource directly from Azure.
Resource group used for source discovery.
Subscription in which to resolve the source resource; defaults to the active Azure CLI subscription.
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 analyzer create
Command group 'cu analyzer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create an analyzer from a JSON schema file.
az cu analyzer create --name
--schema
[--acquire-policy-token]
[--api-key]
[--api-version]
[--auth-mode {key, login}]
[--change-reference]
[--endpoint]
[--profile]
Examples
Create a custom analyzer.
az cu analyzer create --name ContosoInvoice --schema analyzer.json --endpoint https://contoso.services.ai.azure.com/
Required Parameters
Custom analyzer ID: 1-64 ASCII letters, numbers, or underscores.
Path to a JSON analyzer schema.
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 |
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 |
Microsoft Foundry resource endpoint for Content Understanding.
CU CLI profile used to resolve endpoint and API-version defaults.
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 analyzer delete
Command group 'cu analyzer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete an analyzer.
az cu analyzer delete --name
[--acquire-policy-token]
[--api-key]
[--api-version]
[--auth-mode {key, login}]
[--change-reference]
[--endpoint]
[--profile]
[--yes]
Examples
Confirm and delete an analyzer.
az cu analyzer delete --name ContosoInvoice
Delete an analyzer without prompting.
az cu analyzer delete --name ContosoInvoice --yes
Required Parameters
Analyzer name.
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 |
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 |
Microsoft Foundry resource endpoint for Content Understanding.
CU CLI profile used to resolve endpoint and API-version defaults.
Skip 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 analyzer list
Command group 'cu analyzer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List analyzers in the Microsoft Foundry resource.
az cu analyzer list [--api-key]
[--api-version]
[--auth-mode {key, login}]
[--endpoint]
[--kind {all, custom, prebuilt}]
[--profile]
[--sort-by {analyzerId, createdAt, lastModifiedAt}]
Examples
List all analyzers by using an explicit endpoint.
az cu analyzer list --endpoint https://contoso.services.ai.azure.com/
List prebuilt analyzers using the endpoint from the active CU profile.
az cu analyzer list --kind prebuilt --output table
Select an analyzer with a JMESPath query.
az cu analyzer list --query "[?analyzerId=='prebuilt-layout']"
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Microsoft Foundry resource API key.
Content Understanding service API version.
Authentication mode.
| Property | Value |
|---|---|
| Accepted values: | key, login |
Microsoft Foundry resource endpoint for Content Understanding.
Filter analyzers by kind.
| Property | Value |
|---|---|
| Default value: | all |
| Accepted values: | all, custom, prebuilt |
CU CLI profile used to resolve endpoint and API-version defaults.
Sort analyzers by name, creation time, or modification time.
| Property | Value |
|---|---|
| Default value: | analyzerId |
| Accepted values: | analyzerId, createdAt, lastModifiedAt |
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 analyzer show
Command group 'cu analyzer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show a single analyzer definition (JSON).
az cu analyzer show --name
[--api-key]
[--api-version]
[--auth-mode {key, login}]
[--endpoint]
[--profile]
Examples
Show an analyzer.
az cu analyzer show --name prebuilt-layout --endpoint https://contoso.services.ai.azure.com/
Return only the analyzer description.
az cu analyzer show --name prebuilt-layout --query description --output tsv
Required Parameters
Analyzer name.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Microsoft Foundry resource API key.
Content Understanding service API version.
Authentication mode.
| Property | Value |
|---|---|
| Accepted values: | key, login |
Microsoft Foundry resource endpoint for Content Understanding.
CU CLI profile used to resolve endpoint and API-version defaults.
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 analyzer test
Command group 'cu analyzer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Run an analyzer over local samples.
az cu analyzer test --name
[--acquire-policy-token]
[--api-key]
[--api-version]
[--auth-mode {key, login}]
[--change-reference]
[--concurrency]
[--dry-run]
[--endpoint]
[--file]
[--force]
[--output-file]
[--pattern]
[--profile]
[--recursive]
[--source]
[--yes]
Examples
Test all PDF files under a directory.
az cu analyzer test --name ContosoInvoice --source samples --pattern "\*.pdf" --output-file report.json --yes
Required Parameters
Analyzer name.
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 |
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 test plan without service calls.
| Property | Value |
|---|---|
| Default value: | False |
Microsoft Foundry resource endpoint for Content Understanding.
Literal local file. Repeat for multiple files.
Overwrite an existing test report.
| Property | Value |
|---|---|
| Default value: | False |
Write the structured test report to a 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 |
Local source directory. Repeat for multiple directories.
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 analyzer validate
Command group 'cu analyzer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Validate a local analyzer schema.
az cu analyzer validate --schema
[--acquire-policy-token]
[--api-version]
[--change-reference]
[--spec]
[--strict]
Examples
Validate curated rules and the bundled service contract.
az cu analyzer validate --schema analyzer.json --spec --strict
Required Parameters
Path to a JSON analyzer schema.
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 service API version.
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Also validate against the bundled service contract.
| Property | Value |
|---|---|
| Default value: | False |
Treat warnings as errors.
| 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 |