Skip to main content

bot_connections

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

Overview

Namebot_connections
TypeResource
Idazure.bot_service.bot_connections

Fields

NameDatatypeDescription
idstringSpecifies the resource ID.
namestringSpecifies the name of the resource.
etagstringEntity Tag.
kindstringIndicates the type of bot service
locationstringSpecifies the location of the resource.
propertiesobjectProperties for a Connection Setting Item
skuobjectThe SKU of the cognitive services account.
tagsobjectContains resource tags defined as key/value pairs.
typestringSpecifies the type of the resource.
zonesarrayEntity zones

Methods

NameAccessible byRequired ParamsDescription
getSELECTconnectionName, resourceGroupName, resourceName, subscriptionIdGet a Connection Setting registration for a Bot Service
list_by_bot_serviceSELECTresourceGroupName, resourceName, subscriptionIdReturns all the Connection Settings registered to a particular BotService resource
list_with_secretsSELECTconnectionName, resourceGroupName, resourceName, subscriptionIdGet a Connection Setting registration for a Bot Service
createINSERTconnectionName, resourceGroupName, resourceName, subscriptionIdRegister a new Auth Connection for a Bot Service
deleteDELETEconnectionName, resourceGroupName, resourceName, subscriptionIdDeletes a Connection Setting registration for a Bot Service
updateUPDATEconnectionName, resourceGroupName, resourceName, subscriptionIdUpdates a Connection Setting registration for a Bot Service

SELECT examples

Returns all the Connection Settings registered to a particular BotService resource

SELECT
id,
name,
etag,
kind,
location,
properties,
sku,
tags,
type,
zones
FROM azure.bot_service.bot_connections
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new bot_connections resource.

/*+ create */
INSERT INTO azure.bot_service.bot_connections (
connectionName,
resourceGroupName,
resourceName,
subscriptionId,
location,
tags,
sku,
kind,
etag,
properties
)
SELECT
'{{ connectionName }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ location }}',
'{{ tags }}',
'{{ sku }}',
'{{ kind }}',
'{{ etag }}',
'{{ properties }}'
;

UPDATE example

Updates a bot_connections resource.

/*+ update */
UPDATE azure.bot_service.bot_connections
SET
location = '{{ location }}',
tags = '{{ tags }}',
sku = '{{ sku }}',
kind = '{{ kind }}',
etag = '{{ etag }}',
properties = '{{ properties }}'
WHERE
connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified bot_connections resource.

/*+ delete */
DELETE FROM azure.bot_service.bot_connections
WHERE connectionName = '{{ connectionName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';