az cu analyzer schema
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 schema command. Learn more about extensions.
Command group 'cu analyzer' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Author Content Understanding analyzer schemas.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az cu analyzer schema create |
Create a starter schema or derive one from a local document sample. |
Extension | Preview |
az cu analyzer schema create
Command group 'cu analyzer schema' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a starter schema or derive one from a local document sample.
az cu analyzer schema create [--acquire-policy-token]
[--api-key]
[--api-version]
[--auth-mode {key, login}]
[--base]
[--change-reference]
[--endpoint]
[--force]
[--from-sample]
[--from-template]
[--modality {audio, document, image, video}]
[--name]
[--output-file]
[--profile]
[--type {classification, extraction}]
Examples
Write an extraction starter schema.
az cu analyzer schema create --name ContosoInvoice --output-file analyzer.json
Derive a schema from one document sample.
az cu analyzer schema create --name ContosoInvoice --from-sample invoice.pdf --output-file analyzer.json
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 |
Base analyzer name; defaults from --modality.
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Microsoft Foundry resource endpoint for Content Understanding.
Overwrite an existing schema output file.
| Property | Value |
|---|---|
| Default value: | False |
Create an extraction schema from one local document sample.
Create an offline starter schema (the default).
| Property | Value |
|---|---|
| Default value: | False |
Modality used to choose a base analyzer.
| Property | Value |
|---|---|
| Default value: | document |
| Accepted values: | audio, document, image, video |
Custom analyzer name.
| Property | Value |
|---|---|
| Default value: | my_analyzer_v1 |
Write the schema to a file.
CU CLI profile used to resolve endpoint and API-version defaults.
Schema template style.
| Property | Value |
|---|---|
| Default value: | extraction |
| Accepted values: | classification, extraction |
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 |