Skip to content

search externalconnection schema add

This command allows the administrator to add a schema to a specific external connection for use in Microsoft Search.

Usage

m365 search externalconnection schema add [options]

Options

-i, --externalConnectionId <externalConnectionId>
ID of the External Connection.
-s, --schema [schema]
The schema object to be added.
-h, --help [help]
Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are options, examples, remarks, response, full. Default is full.
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text,csv,md. Default json
--verbose
Runs command with verbose logging
--debug
Runs command with debug logging

Examples

Adds a new schema to a specific external connection.

m365 search externalconnection schema add --externalConnectionId 'CliConnectionId' --schema '{"baseType":"microsoft.graph.externalItem","properties":[{"name":"ticketTitle","type":"String","isSearchable":"true","isRetrievable":"true","labels":["title"]},{"name":"priority","type":"String","isQueryable":"true","isRetrievable":"true","isSearchable":"false"},{"name":"assignee","type":"String","isRetrievable":"true"}]}'

Response

The command won't return a response on success.