Skip to main content

bots

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

Overview

Namebots
TypeResource
Idazure_extras.health_bot.bots

Fields

NameDatatypeDescription
botNametextfield from the properties object
bot_management_portal_linktextfield from the properties object
identitytextIdentity for the resource.
key_vault_propertiestextfield from the properties object
locationtextThe geo-location where the resource lives
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
skutextThe resource model definition representing SKU
subscriptionIdtextfield from the properties object
tagstextResource tags.

Methods

NameAccessible byRequired ParamsDescription
getSELECTbotName, resourceGroupName, subscriptionIdGet a HealthBot.
listSELECTsubscriptionIdReturns all the resources of a particular type belonging to a subscription.
list_by_resource_groupSELECTresourceGroupName, subscriptionIdReturns all the resources of a particular type belonging to a resource group
createINSERTbotName, resourceGroupName, subscriptionId, data__skuCreate a new Azure Health Bot.
deleteDELETEbotName, resourceGroupName, subscriptionIdDelete a HealthBot.
updateUPDATEbotName, resourceGroupName, subscriptionIdPatch a HealthBot.
regenerate_api_jwt_secretEXECbotName, resourceGroupName, subscriptionIdRegenerate the API JWT Secret of a HealthBot.

SELECT examples

Returns all the resources of a particular type belonging to a subscription.

SELECT
botName,
bot_management_portal_link,
identity,
key_vault_properties,
location,
provisioning_state,
resourceGroupName,
sku,
subscriptionId,
tags
FROM azure_extras.health_bot.vw_bots
WHERE subscriptionId = '{{ subscriptionId }}';

INSERT example

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

/*+ create */
INSERT INTO azure_extras.health_bot.bots (
botName,
resourceGroupName,
subscriptionId,
data__sku,
tags,
location,
sku,
identity,
properties
)
SELECT
'{{ botName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__sku }}',
'{{ tags }}',
'{{ location }}',
'{{ sku }}',
'{{ identity }}',
'{{ properties }}'
;

UPDATE example

Updates a bots resource.

/*+ update */
UPDATE azure_extras.health_bot.bots
SET
properties = '{{ properties }}',
tags = '{{ tags }}',
sku = '{{ sku }}',
identity = '{{ identity }}',
location = '{{ location }}'
WHERE
botName = '{{ botName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';

DELETE example

Deletes the specified bots resource.

/*+ delete */
DELETE FROM azure_extras.health_bot.bots
WHERE botName = '{{ botName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';