az iot central export
Note
This reference is part of the azure-iot extension for the Azure CLI (version 2.46.0 or higher). The extension will automatically install the first time you run an az iot central export 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 configure IoT Central data exports.
Commands
Name | Description | Type | Status |
---|---|---|---|
az iot central export create |
Create an export for an IoT Central application. |
Extension | Preview |
az iot central export delete |
Delete an export for an IoT Central application. |
Extension | Preview |
az iot central export destination |
Manage and configure IoT Central export destinations. |
Extension | Preview |
az iot central export destination create |
Create an export destination for an IoT Central application. |
Extension | Preview |
az iot central export destination delete |
Delete an export destination for an IoT Central application. |
Extension | Preview |
az iot central export destination list |
Get the full list of export destinations for an IoT Central application. |
Extension | Preview |
az iot central export destination show |
Get an export destination details. |
Extension | Preview |
az iot central export destination update |
Update an export destination for an IoT Central application. |
Extension | Preview |
az iot central export list |
Get the full list of exports for an IoT Central application. |
Extension | Preview |
az iot central export show |
Get an export details. |
Extension | Preview |
az iot central export update |
Update an export for an IoT Central application. |
Extension | Preview |
az iot central export create
Command group 'iot central export' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Create an export for an IoT Central application.
az iot central export create --app-id
--destinations
--display-name
--export-id
--source {deviceConnectivity, deviceLifecycle, deviceTemplateLifecycle, properties, telemetry}
[--api-version {2022-06-30-preview}]
[--central-api-uri]
[--en]
[--enabled {false, true}]
[--filter]
[--token]
Examples
Create an export with filter, enrichments, destinations
az iot central export create --app-id {appid} --export-id {exportid} --enabled {enabled} --display-name {displayname} --source {source} --filter "SELECT * FROM devices WHERE $displayName != "abc" AND $id = "a"" --enrichments '{
"simulated": {
"path": "$simulated"
}
}' --destinations '[
{
"id": "{destinationid}",
"transform": "{ ApplicationId: .applicationId, Component: .component, DeviceName: .device.name }"
}
]'
Required Parameters
The App ID of the IoT Central app you want to manage. You can find the App ID in the "About" page for your application under the help menu.
The list of destinations with transform.
The data export display name.
Unique identifier for the export.
The data export source.
Optional Parameters
Argument 'api_version' has been deprecated and will be removed in a future release.
The API version for the requested operation.
The IoT Central DNS suffix associated with your application.
The data export enrichment.
The enabled status for data export, True or False.
IoT Central Query Language based filter, more details from: aka.ms/iotcquery.
If you'd prefer to submit your request without authenticating against the Azure CLI, you can specify a valid user token to authenticate your request. You must specify the type of key as part of the request. Learn more at https://aka.ms/iotcentraldocsapi.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az iot central export delete
Command group 'iot central export' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Delete an export for an IoT Central application.
az iot central export delete --app-id
--export-id
[--api-version {2022-06-30-preview}]
[--central-api-uri]
[--token]
Examples
Delete an export
az iot central export delete --app-id {appid} --export-id {exportid}
Required Parameters
The App ID of the IoT Central app you want to manage. You can find the App ID in the "About" page for your application under the help menu.
Unique identifier for the export.
Optional Parameters
Argument 'api_version' has been deprecated and will be removed in a future release.
The API version for the requested operation.
The IoT Central DNS suffix associated with your application.
If you'd prefer to submit your request without authenticating against the Azure CLI, you can specify a valid user token to authenticate your request. You must specify the type of key as part of the request. Learn more at https://aka.ms/iotcentraldocsapi.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az iot central export list
Command group 'iot central export' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get the full list of exports for an IoT Central application.
az iot central export list --app-id
[--api-version {2022-06-30-preview}]
[--central-api-uri]
[--token]
Examples
List all exports in an application
az iot central export list --app-id {appid}
Required Parameters
The App ID of the IoT Central app you want to manage. You can find the App ID in the "About" page for your application under the help menu.
Optional Parameters
Argument 'api_version' has been deprecated and will be removed in a future release.
The API version for the requested operation.
The IoT Central DNS suffix associated with your application.
If you'd prefer to submit your request without authenticating against the Azure CLI, you can specify a valid user token to authenticate your request. You must specify the type of key as part of the request. Learn more at https://aka.ms/iotcentraldocsapi.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az iot central export show
Command group 'iot central export' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Get an export details.
az iot central export show --app-id
--export-id
[--api-version {2022-06-30-preview}]
[--central-api-uri]
[--token]
Examples
Get an export details
az iot central export show --app-id {appid} --export-id {exportid}
Required Parameters
The App ID of the IoT Central app you want to manage. You can find the App ID in the "About" page for your application under the help menu.
Unique identifier for the export.
Optional Parameters
Argument 'api_version' has been deprecated and will be removed in a future release.
The API version for the requested operation.
The IoT Central DNS suffix associated with your application.
If you'd prefer to submit your request without authenticating against the Azure CLI, you can specify a valid user token to authenticate your request. You must specify the type of key as part of the request. Learn more at https://aka.ms/iotcentraldocsapi.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.
az iot central export update
Command group 'iot central export' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update an export for an IoT Central application.
Source is immutable once an export is created.
az iot central export update --app-id
--content
--export-id
[--api-version {2022-06-30-preview}]
[--central-api-uri]
[--token]
Examples
Update an export from file
az iot central export update --app-id {appid} --export-id {exportid} --content './filepath/payload.json'
Update an export's display name and enable export from json payload
az iot central export update --app-id {appid} --export-id {exportid} --content "{'displayName': 'Updated Export Name', 'enabled': true}"
Required Parameters
The App ID of the IoT Central app you want to manage. You can find the App ID in the "About" page for your application under the help menu.
The partial export definition. Provide path to JSON file or raw stringified JSON. [File Path Example:./path/to/file.json] [Example of stringified JSON:{Export Data JSON}]. The request body must contain partial content of Export.
Unique identifier for the export.
Optional Parameters
Argument 'api_version' has been deprecated and will be removed in a future release.
The API version for the requested operation.
The IoT Central DNS suffix associated with your application.
If you'd prefer to submit your request without authenticating against the Azure CLI, you can specify a valid user token to authenticate your request. You must specify the type of key as part of the request. Learn more at https://aka.ms/iotcentraldocsapi.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
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.