Skip to main content

channels

Creates, updates, deletes, gets or lists a channels resource.

Overview

Namechannels
TypeResource
Idazure.bot_service.channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringSpecifies the resource ID.
namestringSpecifies the name of the resource.
channelNamestringThe channel name. Required.
etagstringEntity Tag.
kindstringRequired. Gets or sets the Kind of the resource. Known values are: "sdk", "designer", "bot", "function", and "azurebot".
locationstringSpecifies the location of the resource.
provisioningStatestringProvisioning state of the resource.
skuobjectGets or sets the SKU of the resource.
tagsobjectContains resource tags defined as key/value pairs.
typestringSpecifies the type of the resource.
zonesarrayEntity zones.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, resource_name, channel_name, subscription_idReturns a BotService Channel registration specified by the parameters.
list_by_resource_groupselectresource_group_name, resource_name, subscription_idReturns all the Channel registrations of a particular BotService resource.
createinsertresource_group_name, resource_name, channel_name, subscription_idCreates a Channel registration for a Bot Service.
updateupdateresource_group_name, resource_name, channel_name, subscription_id, nameUpdates a Channel registration for a Bot Service.
deletedeleteresource_group_name, resource_name, channel_name, subscription_idDeletes a Channel registration from a Bot Service.
list_with_keysexecresource_group_name, resource_name, channel_name, subscription_idLists a Channel registration for a Bot Service including secrets.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
channel_namestringThe name of the Channel resource. Known values are: "AlexaChannel", "FacebookChannel", "EmailChannel", "KikChannel", "TelegramChannel", "SlackChannel", "MsTeamsChannel", "SkypeChannel", "WebChatChannel", "DirectLineChannel", "SmsChannel", "LineChannel", "DirectLineSpeechChannel", "OutlookChannel", "Omnichannel", "TelephonyChannel", "AcsChatChannel", "SearchAssistant", and "M365Extensions". Required.
resource_group_namestringThe name of the Bot resource group in the user subscription. Required.
resource_namestringThe name of the Bot resource. Required.
subscription_idstring

SELECT examples

Returns a BotService Channel registration specified by the parameters.

SELECT
id,
name,
channelName,
etag,
kind,
location,
provisioningState,
sku,
tags,
type,
zones
FROM azure.bot_service.channels
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND channel_name = '{{ channel_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a Channel registration for a Bot Service.

INSERT INTO azure.bot_service.channels (
location,
tags,
sku,
kind,
etag,
properties,
resource_group_name,
resource_name,
channel_name,
subscription_id
)
SELECT
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ kind }}',
'{{ etag }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ resource_name }}',
'{{ channel_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
etag,
kind,
location,
properties,
sku,
tags,
type,
zones
;

UPDATE examples

Updates a Channel registration for a Bot Service.

UPDATE azure.bot_service.channels
SET
name = '{{ name }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND channel_name = '{{ channel_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND name = '{{ name }}' --required
RETURNING
id,
name,
etag,
kind,
location,
properties,
sku,
tags,
type,
zones;

DELETE examples

Deletes a Channel registration from a Bot Service.

DELETE FROM azure.bot_service.channels
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_name }}' --required
AND channel_name = '{{ channel_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;

Lifecycle Methods

Lists a Channel registration for a Bot Service including secrets.

EXEC azure.bot_service.channels.list_with_keys 
@resource_group_name='{{ resource_group_name }}' --required,
@resource_name='{{ resource_name }}' --required,
@channel_name='{{ channel_name }}' --required,
@subscription_id='{{ subscription_id }}' --required
;