az bot
Manage Microsoft Azure Bot Service.
Commands
Name | Description | Type | Status |
---|---|---|---|
az bot authsetting |
Manage OAuth connection settings on a bot. |
Core | GA |
az bot authsetting create |
Create an OAuth connection setting on a bot. |
Core | GA |
az bot authsetting delete |
Delete an OAuth connection setting on a bot. |
Core | GA |
az bot authsetting list |
Show all OAuth connection settings on a bot. |
Core | GA |
az bot authsetting list-providers |
List details for all service providers available for creating OAuth connection settings. |
Core | GA |
az bot authsetting show |
Show details of an OAuth connection setting on a bot. |
Core | GA |
az bot create |
Create a new v4 SDK bot. |
Core | GA |
az bot delete |
Delete an existing bot. |
Core | GA |
az bot directline |
Manage the Directline Channel on a bot. |
Core | Preview |
az bot directline create |
Create the DirectLine Channel on a bot with only v3 protocol enabled. |
Core | Preview |
az bot directline delete |
Delete the Directline Channel on a bot. |
Core | Preview |
az bot directline show |
Get details of the Directline Channel on a bot. |
Core | Preview |
az bot directline update |
Update the DirectLine Channel on a bot with only v3 protocol enabled. |
Core | Preview |
az bot download |
Download an existing bot. |
Core | Preview |
az bot email |
Manage the email Channel on a bot. |
Core | Preview |
az bot email create |
Create the Email Channel on a bot. |
Core | Preview |
az bot email delete |
Delete the email Channel on a bot. |
Core | Preview |
az bot email show |
Get details of the email Channel on a bot. |
Core | Preview |
az bot facebook |
Manage the Facebook Channel on a bot. |
Core | Preview |
az bot facebook create |
Create the Facebook Channel on a bot. |
Core | Preview |
az bot facebook delete |
Delete the Facebook Channel on a bot. |
Core | Preview |
az bot facebook show |
Get details of the Facebook Channel on a bot. |
Core | Preview |
az bot kik |
Manage the Kik Channel on a bot. |
Core | Preview |
az bot kik create |
Create the Kik Channel on a bot. |
Core | Preview |
az bot kik delete |
Delete the Kik Channel on a bot. |
Core | Preview |
az bot kik show |
Get details of the Kik Channel on a bot. |
Core | Preview |
az bot msteams |
Manage the Microsoft Teams Channel on a bot. |
Core | Preview |
az bot msteams create |
Create the Microsoft Teams Channel on a bot. |
Core | Preview |
az bot msteams delete |
Delete the Microsoft Teams Channel on a bot. |
Core | Preview |
az bot msteams show |
Get details of the Microsoft Teams Channel on a bot. |
Core | Preview |
az bot prepare-deploy |
Add scripts/config files for publishing with |
Core | GA |
az bot prepare-publish |
(Maintenance mode) Add scripts to your local source code directory to be able to publish back using |
Core | Preview |
az bot publish |
Publish to a bot's associated app service. |
Core | Preview |
az bot show |
Get an existing bot. |
Core | GA |
az bot skype |
Manage the Skype Channel on a bot. |
Core | Preview |
az bot skype create |
Create the Skype Channel on a bot. |
Core | Preview |
az bot skype delete |
Delete the Skype Channel on a bot. |
Core | Preview |
az bot skype show |
Get details of the Skype Channel on a bot. |
Core | Preview |
az bot slack |
Manage the Slack Channel on a bot. |
Core | Preview |
az bot slack create |
Create the Slack Channel on a bot. |
Core | Preview |
az bot slack delete |
Delete the Slack Channel on a bot. |
Core | Preview |
az bot slack show |
Get details of the Slack Channel on a bot. |
Core | Preview |
az bot sms |
Manage the SMS Channel on a bot. |
Core | Preview |
az bot sms create |
Create the SMS Channel on a bot. |
Core | Preview |
az bot sms delete |
Delete the SMS Channel on a bot. |
Core | Preview |
az bot sms show |
Get details of the SMS Channel on a bot. |
Core | Preview |
az bot telegram |
Manage the Telegram Channel on a bot. |
Core | Preview |
az bot telegram create |
Create the Telegram Channel on a bot. |
Core | Preview |
az bot telegram delete |
Delete the Telegram Channel on a bot. |
Core | Preview |
az bot telegram show |
Get details of the Telegram Channel on a bot. |
Core | Preview |
az bot update |
Update an existing bot. |
Core | GA |
az bot webchat |
Manage the Webchat Channel on a bot. |
Core | GA |
az bot webchat show |
Get details of the Webchat Channel on a bot. |
Core | GA |
az bot create
Create a new v4 SDK bot.
az bot create --app-type
--appid
--name
--resource-group
[--cmk]
[--description]
[--display-name]
[--endpoint]
[--location]
[--msi-resource-id]
[--sku {F0, S1}]
[--tags]
[--tenant-id]
Required Parameters
Microsoft App Type for the bot. Possible values include: "UserAssignedMSI", "SingleTenant", "MultiTenant".
The Microsoft account ID (MSA ID) to be used with the bot.
The resource name of the bot. Bot name must be between 4 and 42 characters in length. Bot name can only have the following characters -, a - z, A - Z, 0 - 9, and _.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The key vault key url to enable Customer Managed Keys encryption.
The description of the bot.
The display name of the bot. If not specified, defaults to the name of the bot.
The messaging endpoint of the bot.
Location. Values from: az account list-locations
. You can configure the default location using az configure --defaults location=<location>
.
Microsoft App Managed Identity Resource Id for the bot.
The Sku of the bot.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Microsoft App Tenant Id for the bot.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az bot delete
Delete an existing bot.
az bot delete --name
--resource-group
Required Parameters
The resource name of the bot. Bot name must be between 4 and 42 characters in length. Bot name can only have the following characters -, a - z, A - Z, 0 - 9, and _.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az bot download
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Download an existing bot.
The source code is downloaded from the web app associated with the bot. You can then make changes to it and publish it back to your app.
az bot download --name
--resource-group
[--save-path]
Required Parameters
The resource name of the bot. Bot name must be between 4 and 42 characters in length. Bot name can only have the following characters -, a - z, A - Z, 0 - 9, and _.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The directory to download bot code to.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az bot prepare-deploy
Add scripts/config files for publishing with az webapp deployment
.
Add scripts or configuration files to the root of your local source code directory to be able to publish using az webapp deployment
. When your code is deployed to your App Service, the generated scripts or configuration files should be appear in D:\home\site\wwwroot on App Service's Kudu web page.
az bot prepare-deploy --lang {Csharp, Javascript, Typescript}
[--code-dir]
[--proj-file-path]
Examples
Prepare to use `az webapp` to deploy a Javascript bot by fetching a Node.js IIS web.config file.
az bot prepare-deploy --lang Javascript --code-dir "MyBotCode"
Prepare to use `az webapp` to deploy a Csharp bot by creating a .deployment file.
az bot prepare-deploy --lang Csharp --code-dir "." --proj-file-path "MyBot.csproj"
Required Parameters
The language or runtime of the bot.
Optional Parameters
The directory to place the generated deployment files in. Defaults to the current directory the command is called from.
The path to the .csproj file relative to --code-dir.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az bot prepare-publish
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
(Maintenance mode) Add scripts to your local source code directory to be able to publish back using az bot publish
for v3 SDK bots.
az bot prepare-publish --name
--proj-file-path
--resource-group
--sln-name
[--code-dir]
[--version {v3, v4}]
Required Parameters
The resource name of the bot. Bot name must be between 4 and 42 characters in length. Bot name can only have the following characters -, a - z, A - Z, 0 - 9, and _.
Path to the start up project file name. (E.g. "./EchoBotWithCounter.csproj") Required only for C#.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name of the start up solution file name. Required only for C#.
Optional Parameters
The directory to download deployment scripts to.
The Microsoft Bot Builder SDK version to be used in the bot template that will be created.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az bot publish
This command is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Publish to a bot's associated app service.
Publish your source code to your bot's associated app service. This is DEPRECATED for v4 bots and no longer recommended for publishing v4 bots to Azure. Instead use az bot prepare-deploy
and az webapp deployment
to deploy your v4 bot. For more information see https://aka.ms/deploy-your-bot.
az bot publish --name
--resource-group
[--code-dir]
[--keep-node-modules {false, true}]
[--proj-file-path]
[--timeout]
[--version]
Examples
Publish source code to your Azure App, from within the bot code folder
az bot publish -n botName -g MyResourceGroup
Required Parameters
The resource name of the bot. Bot name must be between 4 and 42 characters in length. Bot name can only have the following characters -, a - z, A - Z, 0 - 9, and _.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
The directory to upload bot code from.
Keep node_modules folder and do not run npm install
on the App Service. This can greatly speed up publish commands for Node.js SDK bots.
Path to the start up project file name. (E.g. "./EchoBotWithCounter.csproj").
Configurable timeout in seconds for checking the status of deployment.
The Microsoft Bot Builder SDK version of the bot.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az bot show
Get an existing bot.
Get information about an existing bot. To get the information needed to connect to the bot, use the --msbot flag with the command.
az bot show --name
--resource-group
[--msbot {false, true}]
Examples
Get the information needed to connect to an existing bot on Azure
az bot show -n botName -g MyResourceGroup --msbot
Required Parameters
The resource name of the bot. Bot name must be between 4 and 42 characters in length. Bot name can only have the following characters -, a - z, A - Z, 0 - 9, and _.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Show the output as JSON compatible with a .bot file.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.
az bot update
Update an existing bot.
az bot update --name
--resource-group
[--ai-api-key]
[--ai-app-id]
[--ai-key]
[--cmk]
[--cmk-off]
[--description]
[--display-name]
[--endpoint]
[--icon-url]
[--sku {F0, S1}]
[--tags]
Examples
Update description on a bot
az bot update -n botName -g MyResourceGroup --endpoint "https://bing.com/api/messages" --display-name "Hello World"
Required Parameters
The resource name of the bot. Bot name must be between 4 and 42 characters in length. Bot name can only have the following characters -, a - z, A - Z, 0 - 9, and _.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Optional Parameters
Azure Application Insights API Key used to read bot analytics data. Provide a key if you want to view analytics about your bot in the Analytics blade.
Azure Application Insights Application ID used to read bot analytics data. Provide an Id if you want to view analytics about your bot in the Analytics blade.
Azure Application Insights Key used to write bot analytics data. Provide a key if you want to receive bot analytics.
The key vault key url to enable Customer Managed Keys encryption.
Set encryption to Microsoft-Managed Keys.
The bot's new description.
The bot's new display name.
The new endpoint of the bot. Must start with "https://".
Icon URL for bot avatar. Accepts PNG files with file size limit of 30KB.
The Sku of the bot.
Space-separated tags: key[=value] [key[=value] ...]. Use "" to clear existing tags.
Global Parameters
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity. Use --debug for full debug logs.