Skip to main content

bots

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

Overview

Namebots
TypeResource
Idazure.bot_service.bots

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringSpecifies the resource ID.
namestringSpecifies the name of the resource.
allSettingsobjectContains resource all settings defined as key/value pairs.
appPasswordHintstringThe hint (e.g. keyVault secret resourceId) on how to fetch the app secret.
cmekEncryptionStatusstringThe CMK encryption status.
cmekKeyVaultUrlstringThe CMK Url.
configuredChannelsarrayCollection of channels for which the bot is configured.
descriptionstringThe description of the bot.
developerAppInsightKeystringThe Application Insights key.
developerAppInsightsApiKeystringThe Application Insights Api Key.
developerAppInsightsApplicationIdstringThe Application Insights App Id.
disableLocalAuthbooleanOpt-out of local authentication and ensure only MSI and AAD can be used exclusively for authentication.
displayNamestringThe Name of the bot. Required.
enabledChannelsarrayCollection of channels for which the bot is enabled.
endpointstringThe bot's endpoint. Required.
endpointVersionstringThe bot's endpoint version.
etagstringEntity Tag.
iconUrlstringThe Icon Url of the bot.
isCmekEnabledbooleanWhether Cmek is enabled.
isDeveloperAppInsightsApiKeySetbooleanWhether the bot is developerAppInsightsApiKey set.
isStreamingSupportedbooleanWhether the bot is streaming supported.
kindstringRequired. Gets or sets the Kind of the resource. Known values are: "sdk", "designer", "bot", "function", and "azurebot".
locationstringSpecifies the location of the resource.
luisAppIdsarrayCollection of LUIS App Ids.
luisKeystringThe LUIS Key.
manifestUrlstringThe bot's manifest url.
migrationTokenstringToken used to migrate non Azure bot to azure subscription.
msaAppIdstringMicrosoft App Id for the bot. Required.
msaAppMSIResourceIdstringMicrosoft App Managed Identity Resource Id for the bot.
msaAppTenantIdstringMicrosoft App Tenant Id for the bot.
msaAppTypestringMicrosoft App Type for the bot. Known values are: "UserAssignedMSI", "SingleTenant", and "MultiTenant".
openWithHintstringThe hint to browser (e.g. protocol handler) on how to open the bot for authoring.
parametersobjectContains resource parameters defined as key/value pairs.
privateEndpointConnectionsarrayList of Private Endpoint Connections configured for the bot.
provisioningStatestringProvisioning state of the resource.
publicNetworkAccessstringWhether the bot is in an isolated network. Known values are: "Enabled" and "Disabled".
publishingCredentialsstringPublishing credentials of the resource.
schemaTransformationVersionstringThe channel schema transformation version for the bot.
skuobjectGets or sets the SKU of the resource.
storageResourceIdstringThe storage resourceId for the bot.
tagsobjectContains resource tags defined as key/value pairs.
tenantIdstringThe Tenant Id for the bot.
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, subscription_idReturns a BotService specified by the parameters.
list_by_resource_groupselectresource_group_name, subscription_idReturns all the resources of a particular type belonging to a resource group.
listselectsubscription_idReturns all the resources of a particular type belonging to a subscription.
get_check_name_availabilityselectCheck whether a bot name is available.
createinsertresource_group_name, resource_name, subscription_idCreates a Bot Service. Bot Service is a resource group wide resource type.
updateupdateresource_group_name, resource_name, subscription_id, nameUpdates a Bot Service.
deletedeleteresource_group_name, resource_name, subscription_idDeletes a Bot Service from the resource group.

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
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 specified by the parameters.

SELECT
id,
name,
allSettings,
appPasswordHint,
cmekEncryptionStatus,
cmekKeyVaultUrl,
configuredChannels,
description,
developerAppInsightKey,
developerAppInsightsApiKey,
developerAppInsightsApplicationId,
disableLocalAuth,
displayName,
enabledChannels,
endpoint,
endpointVersion,
etag,
iconUrl,
isCmekEnabled,
isDeveloperAppInsightsApiKeySet,
isStreamingSupported,
kind,
location,
luisAppIds,
luisKey,
manifestUrl,
migrationToken,
msaAppId,
msaAppMSIResourceId,
msaAppTenantId,
msaAppType,
openWithHint,
parameters,
privateEndpointConnections,
provisioningState,
publicNetworkAccess,
publishingCredentials,
schemaTransformationVersion,
sku,
storageResourceId,
tags,
tenantId,
type,
zones
FROM azure.bot_service.bots
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND resource_name = '{{ resource_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Creates a Bot Service. Bot Service is a resource group wide resource type.

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

UPDATE examples

Updates a Bot Service.

UPDATE azure.bot_service.bots
SET
name = '{{ name }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND resource_name = '{{ resource_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 Bot Service from the resource group.

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