az iot adr schema registry
Note
This reference is part of the azure-iot extension for the Azure CLI (version 2.73.0 or higher). The extension will automatically install the first time you run an az iot adr schema registry command. Learn more about extensions.
Command group 'iot adr schema' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage Schema Registries.
A Schema Registry stores Schema Version content in an Azure Data Lake Storage Gen2 container. It is a separate Azure resource and does not belong to a Device Registry namespace.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az iot adr schema registry create |
Create a Schema Registry backed by Azure Data Lake Storage Gen2. |
Extension | Preview |
| az iot adr schema registry delete |
Delete a Schema Registry. |
Extension | Preview |
| az iot adr schema registry list |
List Schema Registries. |
Extension | Preview |
| az iot adr schema registry show |
Show a Schema Registry. |
Extension | Preview |
| az iot adr schema registry update |
Update writable Schema Registry properties. |
Extension | Preview |
| az iot adr schema registry wait |
Wait for a Schema Registry operation to finish. |
Extension | Preview |
az iot adr schema registry create
Command group 'iot adr schema registry' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create a Schema Registry backed by Azure Data Lake Storage Gen2.
Provide the URL of an existing container in a storage account with hierarchical namespace. When only an outbound identity is selected, the command also attaches that identity to the Schema Registry. The command does not create the container or grant storage access.
az iot adr schema registry create --container-url --storage-account-container-url
--name
--registry-namespace
--resource-group
[--acquire-policy-token]
[--change-reference]
[--desc --description]
[--display-name]
[--location]
[--no-wait]
[--omi-sa --outbound-system-assigned-mi {false, true}]
[--omi-ua --outbound-user-assigned-mi]
[--system-assigned-mi {false, true}]
[--tags]
[--user-assigned-mi]
Examples
Create a Schema Registry with a system-assigned identity
az iot adr schema registry create -n site-a -g MyRG \
--registry-namespace site-a \
--storage-account-container-url https://mystorage.blob.core.windows.net/schemas \
--system-assigned-mi
Required Parameters
URL of the existing Azure Data Lake Storage Gen2 container used to store Schema Version content.
Schema Registry name.
Tenant-unique namespace for the Schema Registry.
Name of resource group. You can configure the default group using az configure --defaults group=<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 |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Description for the Schema Registry.
Display name for the Schema Registry.
Location. Values from: az account list-locations. You can configure the default location using az configure --defaults location=<location>.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Use the Schema Registry system-assigned identity for outbound calls. Pass false on update to clear the explicit outbound identity.
| Property | Value |
|---|---|
| Parameter group: | Outbound Identity Arguments |
| Accepted values: | false, true |
User-assigned managed identity resource ID used for outbound calls.
| Property | Value |
|---|---|
| Parameter group: | Outbound Identity Arguments |
Include or remove the system-assigned managed identity.
| Property | Value |
|---|---|
| Parameter group: | Managed Identity Arguments |
| Accepted values: | false, true |
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Complete desired set of user-assigned managed identity resource IDs.
| Property | Value |
|---|---|
| Parameter group: | Managed Identity 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 iot adr schema registry delete
Command group 'iot adr schema registry' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete a Schema Registry.
az iot adr schema registry delete --name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--no-wait]
[--yes {false, true}]
Examples
Delete a Schema Registry
az iot adr schema registry delete -n site-a -g MyRG --yes
Required Parameters
Schema Registry name.
Name of resource group. You can configure the default group using az configure --defaults group=<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 |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Skip user prompts. Indicates acceptance of action. Used primarily for automation scenarios. Default: false.
| Property | Value |
|---|---|
| Accepted values: | false, true |
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 iot adr schema registry list
Command group 'iot adr schema registry' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
List Schema Registries.
az iot adr schema registry list [--resource-group]
Examples
List Schema Registries in a resource group
az iot adr schema registry list -g MyRG
List Schema Registries in the subscription
az iot adr schema registry list
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 iot adr schema registry show
Command group 'iot adr schema registry' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show a Schema Registry.
az iot adr schema registry show --name
--resource-group
Examples
Show a Schema Registry
az iot adr schema registry show -n site-a -g MyRG
Required Parameters
Schema Registry name.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
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 iot adr schema registry update
Command group 'iot adr schema registry' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update writable Schema Registry properties.
az iot adr schema registry update --name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--desc --description]
[--display-name]
[--no-wait]
[--omi-sa --outbound-system-assigned-mi {false, true}]
[--omi-ua --outbound-user-assigned-mi]
[--system-assigned-mi {false, true}]
[--tags]
[--user-assigned-mi]
Examples
Update the display name and tags
az iot adr schema registry update -n site-a -g MyRG \
--display-name "Site A" --tags environment=test
Required Parameters
Schema Registry name.
Name of resource group. You can configure the default group using az configure --defaults group=<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 |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Description for the Schema Registry.
Display name for the Schema Registry.
Do not wait for the long-running operation to finish.
| Property | Value |
|---|---|
| Default value: | False |
Use the Schema Registry system-assigned identity for outbound calls. Pass false on update to clear the explicit outbound identity.
| Property | Value |
|---|---|
| Parameter group: | Outbound Identity Arguments |
| Accepted values: | false, true |
User-assigned managed identity resource ID used for outbound calls.
| Property | Value |
|---|---|
| Parameter group: | Outbound Identity Arguments |
Include or remove the system-assigned managed identity.
| Property | Value |
|---|---|
| Parameter group: | Managed Identity Arguments |
| Accepted values: | false, true |
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Complete desired set of user-assigned managed identity resource IDs.
| Property | Value |
|---|---|
| Parameter group: | Managed Identity 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 iot adr schema registry wait
Command group 'iot adr schema registry' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Wait for a Schema Registry operation to finish.
Use after starting an operation with --no-wait. Specify a condition such as --created, --updated, --deleted, or --exists.
az iot adr schema registry wait --name
--resource-group
[--acquire-policy-token]
[--change-reference]
[--created]
[--custom]
[--deleted]
[--exists]
[--interval]
[--timeout]
[--updated]
Examples
Wait for a Schema Registry to be created
az iot adr schema registry wait -n site-a -g MyRG --created
Required Parameters
Schema Registry name.
Name of resource group. You can configure the default group using az configure --defaults group=<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 |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
Wait until created with 'provisioningState' at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the condition satisfies a custom JMESPath query. E.g. provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running'].
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
Wait until deleted.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Wait until the resource exists.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | False |
Polling interval in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 30 |
Maximum wait in seconds.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| Default value: | 3600 |
Wait until updated with provisioningState at 'Succeeded'.
| Property | Value |
|---|---|
| Parameter group: | Wait Condition Arguments |
| 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 |