az iot ops ns device endpoint inbound add
Note
This reference is part of the azure-iot-ops extension for the Azure CLI (version 2.67.0 or higher). The extension will automatically install the first time you run an az iot ops ns device endpoint inbound add command. Learn more about extensions.
Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add inbound endpoints to devices in Device Registry namespaces.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az iot ops ns device endpoint inbound add custom |
Add a custom inbound endpoint to a device in a Device Registry namespace. |
Extension | Preview |
| az iot ops ns device endpoint inbound add media |
Add a media inbound endpoint to a device in a Device Registry namespace. |
Extension | Preview |
| az iot ops ns device endpoint inbound add onvif |
Add an ONVIF inbound endpoint to a device in a Device Registry namespace. |
Extension | Preview |
| az iot ops ns device endpoint inbound add opcua |
Add an OPC UA inbound endpoint to a device in a Device Registry namespace. |
Extension | Preview |
| az iot ops ns device endpoint inbound add rest |
Add a rest inbound endpoint to a device in a Device Registry namespace. |
Extension | Preview |
az iot ops ns device endpoint inbound add custom
Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add a custom inbound endpoint to a device in a Device Registry namespace.
Custom endpoints allow you to define your own endpoint type and configuration.
az iot ops ns device endpoint inbound add custom --address --endpoint-address
--device
--endpoint-type --type
--instance
--name
--resource-group
[--additional-config --config]
[--cert-ref --certificate-ref]
[--icr --intermediate-cert-ref]
[--key-ref]
[--pass-ref --password-ref]
[--replace {false, true}]
[--trust-list]
[--user-ref --username-ref]
[--version]
Examples
Add a basic custom endpoint to a device
az iot ops ns device endpoint inbound add custom --device mydevice --instance myInstance -g myInstanceResourceGroup --name myCustomEndpoint --endpoint-type "Custom.Type" --endpoint-address "192.168.1.100:8080"
Add a custom endpoint with authentication
az iot ops ns device endpoint inbound add custom --device mydevice --instance myInstance -g myInstanceResourceGroup --name myCustomEndpoint --endpoint-type "Custom.Type" --endpoint-address "192.168.1.100:8080" --user-ref auth-secret/username --pass-ref auth-secret/password
Add a custom endpoint with certificate authentication and a version
az iot ops ns device endpoint inbound add custom --device mydevice --instance myInstance -g myInstanceResourceGroup --name myCustomEndpoint --endpoint-type "Custom.Type" --endpoint-address "192.168.1.100:8080" --cert-ref cert-secret/certificate --version "1.0"
Add a custom endpoint with enhanced certificate authentication including private key
az iot ops ns device endpoint inbound add custom --device mydevice --instance myInstance -g myInstanceResourceGroup --name myCustomEndpoint --endpoint-type "Custom.Type" --endpoint-address "192.168.1.100:8080" --cert-ref cert-secret/certificate --key-ref cert-secret/privateKey
Add a custom endpoint with certificate authentication including intermediate certificates
az iot ops ns device endpoint inbound add custom --device mydevice --instance myInstance -g myInstanceResourceGroup --name myCustomEndpoint --endpoint-type "Custom.Type" --endpoint-address "192.168.1.100:8080" --cert-ref cert-secret/certificate --icr cert-secret/intermediateCerts
Add a custom endpoint with full certificate chain authentication
az iot ops ns device endpoint inbound add custom --device mydevice --instance myInstance -g myInstanceResourceGroup --name myCustomEndpoint --endpoint-type "Custom.Type" --endpoint-address "192.168.1.100:8080" --cert-ref cert-secret/certificate --key-ref cert-secret/privateKey --icr cert-secret/intermediateCerts
Add a custom endpoint with additional configuration
az iot ops ns device endpoint inbound add custom --device mydevice --instance myInstance -g myInstanceResourceGroup --name myCustomEndpoint --endpoint-type "Custom.Type" --endpoint-address "192.168.1.100:8080" --additional-config "{\"customSetting\": \"value\"}"
Required Parameters
Endpoint address to connect to.
Device name.
Type of the custom endpoint.
The name of the Azure IoT Operations instance.
Endpoint name.
The resource group of the Azure IoT Operations instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Additional configuration for the custom endpoint in JSON format.
Reference for the certificate used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Intermediate certificates reference for certificate authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Private key reference for certificate authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Reference for the password used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Replace the endpoint if another endpoint with the same name is present already.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
List of trusted certificates for the endpoint.
Reference for the username used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Endpoint version.
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 ops ns device endpoint inbound add media
Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add a media inbound endpoint to a device in a Device Registry namespace.
For more information on media connectors, please see https://aka.ms/aio-media-quickstart.
az iot ops ns device endpoint inbound add media --address --endpoint-address
--device
--instance
--name
--resource-group
[--pass-ref --password-ref]
[--replace {false, true}]
[--user-ref --username-ref]
[--version]
Examples
Add a basic media endpoint to a device
az iot ops ns device endpoint inbound add media --device mydevice --instance myInstance -g myInstanceResourceGroup --name myCameraEndpoint --endpoint-address "rtsp://192.168.1.100:554/stream"
Add a media endpoint with authentication
az iot ops ns device endpoint inbound add media --device mydevice --instance myInstance -g myInstanceResourceGroup --name myCameraEndpoint --endpoint-address "rtsp://192.168.1.100:554/stream" --user-ref auth-secret/username --pass-ref auth-secret/password
Required Parameters
Endpoint address to connect to.
Device name.
The name of the Azure IoT Operations instance.
Endpoint name.
The resource group of the Azure IoT Operations instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Reference for the password used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Replace the endpoint if another endpoint with the same name is present already.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Reference for the username used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Endpoint version.
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 ops ns device endpoint inbound add onvif
Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add an ONVIF inbound endpoint to a device in a Device Registry namespace.
For more information on ONVIF connectors, please see https://aka.ms/aio-onvif-quickstart.
az iot ops ns device endpoint inbound add onvif --address --endpoint-address
--device
--instance
--name
--resource-group
[--accept-invalid-certificates --aic {false, true}]
[--accept-invalid-hostnames --aih {false, true}]
[--pass-ref --password-ref]
[--replace {false, true}]
[--user-ref --username-ref]
[--version]
Examples
Add a basic ONVIF endpoint to a device
az iot ops ns device endpoint inbound add onvif --device mydevice --instance myInstance -g myInstanceResourceGroup --name myONVIFEndpoint --endpoint-address "http://192.168.1.100:8000/onvif/device_service"
Add an ONVIF endpoint with authentication
az iot ops ns device endpoint inbound add onvif --device mydevice --instance myInstance -g myInstanceResourceGroup --name myONVIFEndpoint --endpoint-address "http://192.168.1.100:8000/onvif/device_service" --user-ref auth-secret/username --pass-ref auth-secret/password
Add an ONVIF endpoint that accepts invalid hostnames and certificates
az iot ops ns device endpoint inbound add onvif --device mydevice --instance myInstance -g myInstanceResourceGroup --name myONVIFEndpoint --endpoint-address "https://192.168.1.100:8000/onvif/device_service" --accept-invalid-hostnames --accept-invalid-certificates
Required Parameters
Endpoint address to connect to.
Device name.
The name of the Azure IoT Operations instance.
Endpoint name.
The resource group of the Azure IoT Operations instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Accept invalid certificates.
| Property | Value |
|---|---|
| Parameter group: | ONVIF Configuration Arguments |
| Default value: | False |
| Accepted values: | false, true |
Accept invalid hostnames in certificates.
| Property | Value |
|---|---|
| Parameter group: | ONVIF Configuration Arguments |
| Default value: | False |
| Accepted values: | false, true |
Reference for the password used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Replace the endpoint if another endpoint with the same name is present already.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Reference for the username used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Endpoint version.
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 ops ns device endpoint inbound add opcua
Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add an OPC UA inbound endpoint to a device in a Device Registry namespace.
For more information on OPC UA connectors, please see https://aka.ms/aio-opcua-quickstart.
az iot ops ns device endpoint inbound add opcua --address --endpoint-address
--device
--instance
--name
--resource-group
[--ac --accept-certs {false, true}]
[--ad --run-asset-discovery {false, true}]
[--app --application-name]
[--keep-alive]
[--key-frame-count --kfc]
[--pass-ref --password-ref]
[--pi --publishing-interval]
[--qs --queue-size]
[--replace {false, true}]
[--sampling-interval --si]
[--sbo --session-backoff]
[--security-mode --sm {none, sign, signAndEncrypt}]
[--security-policy --sp {Aes128_Sha256_RsaOaep, Aes256_Sha256_RsaPss, Basic128Rsa15, Basic256, Basic256Sha256, None}]
[--session-keep-alive --ska]
[--session-reconnect --srp]
[--session-timeout]
[--session-tracing --str {false, true}]
[--slt --subscription-lifetime]
[--smi --subscription-max-items]
[--user-ref --username-ref]
[--version]
Examples
Add a basic OPC UA endpoint to a device
az iot ops ns device endpoint inbound add opcua --device mydevice --instance myInstance -g myInstanceResourceGroup --name myOPCUAEndpoint --endpoint-address "opc.tcp://192.168.1.100:4840"
Add an OPC UA endpoint with authentication
az iot ops ns device endpoint inbound add opcua --device mydevice --instance myInstance -g myInstanceResourceGroup --name myOPCUAEndpoint --endpoint-address "opc.tcp://192.168.1.100:4840" --user-ref auth-secret/username --pass-ref auth-secret/password
Add an OPC UA endpoint with a custom application name
az iot ops ns device endpoint inbound add opcua --device mydevice --instance myInstance -g myInstanceResourceGroup --name myOPCUAEndpoint --endpoint-address "opc.tcp://192.168.1.100:4840" --application-name "My OPC UA App"
Add an OPC UA endpoint with customized session parameters
az iot ops ns device endpoint inbound add opcua --device mydevice --instance myInstance -g myInstanceResourceGroup --name myOPCUAEndpoint --endpoint-address "opc.tcp://192.168.1.100:4840" --keep-alive 15000 --session-timeout 90000 --publishing-interval 2000 --sampling-interval 1500
Add an OPC UA endpoint with security settings and asset discovery enabled
az iot ops ns device endpoint inbound add opcua --device mydevice --instance myInstance -g myInstanceResourceGroup --name myOPCUAEndpoint --endpoint-address "opc.tcp://192.168.1.100:4840" --security-policy "Basic256Sha256" --security-mode "SignAndEncrypt" --run-asset-discovery
Required Parameters
Endpoint address to connect to.
Device name.
The name of the Azure IoT Operations instance.
Endpoint name.
The resource group of the Azure IoT Operations instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Auto accept untrusted server certificates.
| Property | Value |
|---|---|
| Parameter group: | Security Arguments |
| Default value: | False |
| Accepted values: | false, true |
Enable asset discovery after connecting to the endpoint.
| Property | Value |
|---|---|
| Parameter group: | Configuration Arguments |
| Default value: | False |
| Accepted values: | false, true |
Application name for the OPC UA client.
| Property | Value |
|---|---|
| Parameter group: | Configuration Arguments |
| Default value: | OPC UA Broker |
Keep alive time in milliseconds.
| Property | Value |
|---|---|
| Parameter group: | Configuration Arguments |
| Default value: | 10000 |
Key frame count.
| Property | Value |
|---|---|
| Parameter group: | Configuration Arguments |
| Default value: | 0 |
Reference for the password used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Publishing interval in milliseconds.
| Property | Value |
|---|---|
| Parameter group: | Configuration Arguments |
| Default value: | 1000 |
Queue size.
| Property | Value |
|---|---|
| Parameter group: | Configuration Arguments |
| Default value: | 1 |
Replace the endpoint if another endpoint with the same name is present already.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Sampling interval in milliseconds.
| Property | Value |
|---|---|
| Parameter group: | Configuration Arguments |
| Default value: | 1000 |
Session reconnect exponential backoff in milliseconds.
| Property | Value |
|---|---|
| Parameter group: | Session Arguments |
| Default value: | 10000 |
Security mode to use for the connection.
| Property | Value |
|---|---|
| Parameter group: | Security Arguments |
| Accepted values: | none, sign, signAndEncrypt |
Security policy to use for the connection.
| Property | Value |
|---|---|
| Parameter group: | Security Arguments |
| Accepted values: | Aes128_Sha256_RsaOaep, Aes256_Sha256_RsaPss, Basic128Rsa15, Basic256, Basic256Sha256, None |
Session keep alive interval in milliseconds.
| Property | Value |
|---|---|
| Parameter group: | Session Arguments |
| Default value: | 10000 |
Session reconnect period in milliseconds.
| Property | Value |
|---|---|
| Parameter group: | Session Arguments |
| Default value: | 2000 |
Session timeout in milliseconds.
| Property | Value |
|---|---|
| Parameter group: | Session Arguments |
| Default value: | 60000 |
Enable tracing headers for the session.
| Property | Value |
|---|---|
| Parameter group: | Session Arguments |
| Default value: | False |
| Accepted values: | false, true |
Subscription lifetime in milliseconds.
| Property | Value |
|---|---|
| Parameter group: | Subscription Arguments |
| Default value: | 60000 |
Maximum number of items in subscription.
| Property | Value |
|---|---|
| Parameter group: | Subscription Arguments |
| Default value: | 1000 |
Reference for the username used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Endpoint version.
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 ops ns device endpoint inbound add rest
Command group 'iot ops ns' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Add a rest inbound endpoint to a device in a Device Registry namespace.
az iot ops ns device endpoint inbound add rest --address --endpoint-address
--device
--instance
--name
--resource-group
[--cert-ref --certificate-ref]
[--icr --intermediate-cert-ref]
[--key-ref]
[--pass-ref --password-ref]
[--replace {false, true}]
[--user-ref --username-ref]
[--version]
Examples
Add a basic rest endpoint to a device
az iot ops ns device endpoint inbound add rest --device mydevice --instance myInstance -g myInstanceResourceGroup --name myEndpoint --endpoint-address "https://api.example.com/data"
Add a rest endpoint with authentication
az iot ops ns device endpoint inbound add rest --device mydevice --instance myInstance -g myInstanceResourceGroup --name myEndpoint --endpoint-address "https://api.example.com/data" --user-ref auth-secret/username --pass-ref auth-secret/password
Add a rest endpoint with certificate authentication
az iot ops ns device endpoint inbound add rest --device mydevice --instance myInstance -g myInstanceResourceGroup --name myEndpoint --endpoint-address "https://api.example.com/data" --cert-ref cert-secret/certificate
Add a rest endpoint with enhanced certificate authentication including private key
az iot ops ns device endpoint inbound add rest --device mydevice --instance myInstance -g myInstanceResourceGroup --name myEndpoint --endpoint-address "https://api.example.com/data" --cert-ref cert-secret/certificate --key-ref cert-secret/privateKey
Add a rest endpoint with certificate authentication including intermediate certificates
az iot ops ns device endpoint inbound add rest --device mydevice --instance myInstance -g myInstanceResourceGroup --name myEndpoint --endpoint-address "https://api.example.com/data" --cert-ref cert-secret/certificate --icr cert-secret/intermediateCerts
Add a rest endpoint with full certificate chain authentication
az iot ops ns device endpoint inbound add rest --device mydevice --instance myInstance -g myInstanceResourceGroup --name myEndpoint --endpoint-address "https://api.example.com/data" --cert-ref cert-secret/certificate --key-ref cert-secret/privateKey --icr cert-secret/intermediateCerts
Required Parameters
Endpoint address to connect to.
Device name.
The name of the Azure IoT Operations instance.
Endpoint name.
The resource group of the Azure IoT Operations instance.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Reference for the certificate used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Intermediate certificates reference for certificate authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Private key reference for certificate authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Reference for the password used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Replace the endpoint if another endpoint with the same name is present already.
| Property | Value |
|---|---|
| Default value: | False |
| Accepted values: | false, true |
Reference for the username used in authentication.
| Property | Value |
|---|---|
| Parameter group: | Authentication Arguments |
Endpoint version.
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 |