Skip to content

Commit 72e1122

Browse files
Merging changes synced from https://github.com/MicrosoftDocs/bot-docs-pr (branch live)
2 parents 0a7311c + 2eca77b commit 72e1122

File tree

2 files changed

+2
-97
lines changed

2 files changed

+2
-97
lines changed

.openpublishing.publish.config.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@
5858
"docset_prebuild": [
5959
"_dependentPackages/ECMA2Yaml/tools/Run.ps1",
6060
"_dependentPackages/CommonPlugins/tools/SplitTOC.ps1",
61-
"_dependentPackages/CommonPlugins/tools/JoinTOC.ps1",
6261
"_dependentPackages/CommonPlugins/tools/DiffFolder.ps1"
6362
]
6463
},
@@ -150,4 +149,4 @@
150149
"SplitTOC": [
151150
"dotnet/api/toc.yml"
152151
]
153-
}
152+
}
Lines changed: 1 addition & 95 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,3 @@
11
---
2-
title: Publish a Bot Service from source control or Visual Studio | Microsoft Docs
3-
description: Learn how to publish a Bot Service bot once from Visual Studio or continuously from source control.
4-
author: RobStand
5-
ms.author: kamrani
6-
manager: kamrani
7-
ms.topic: article
8-
ms.service: bot-service
9-
ms.subservice: abs
10-
ms.date: 12/13/2017
2+
redirect_url: /bot-framework/bot-builder-deploy-az-cli
113
---
12-
13-
# Publish a bot to Bot Service
14-
15-
After you update your C# bot source code, you can publish it into a running bot in Bot Service using Visual Studio. You can also publish either C# or Node.js bot source code written in any integrated development environment (IDE) automatically each time you check a source file into a source control service.
16-
17-
18-
## Publish a bot on App Service plan from the online code editor
19-
20-
If you have not configured continuous deployment, you can modify your source files in the online code editor. To deploy your modified source, follow these steps.
21-
22-
4. Click the Open Console icon.
23-
![Console Icon](~/media/azure-bot-service-console-icon.png)
24-
2. In the Console window, type **build.cmd**, and press the enter key.
25-
26-
27-
## Publish C# bot on App Service plan from Visual Studio
28-
29-
To set up publishing from Visual Studio using the `.PublishSettings` file, perform the following steps:
30-
31-
1. In the Azure Portal, click your Bot Service, click the **BUILD** tab, and click **Download zip file**.
32-
1. [!INCLUDE [download keys snippet](~/includes/snippet-abs-key-download.md)]
33-
3. Extract the contents of the downloaded zip file to a local folder.
34-
4. In Explorer, find the Visual Studio Solution (.sln) file for your bot, and double-click it.
35-
4. In Visual Studio, click **View**, and click **Solution Explorer**.
36-
5. In the Solution Explorer pane, right-click your project, and click **Publish...** The Publish window opens.
37-
6. In the Publish window, click **Create new profile**, click **Import profile**, and click **OK**.
38-
7. Navigate to your project folder, navigate to the **PostDeployScripts** folder, select the file that ends in `.PublishSettings`, and click **Open**.
39-
40-
You have now configured publishing for this project. To publish your local source code to Bot Service, right-click your project, click **Publish...**, and click the **Publish** button.
41-
42-
## Set up continuous deployment
43-
44-
By default, Bot Service enables you to develop your bot directly in the browser using the Azure editor, without any need for a local editor or source control. However, Azure editor does not allow you to manage files within your application (e.g., add files, rename files, or delete files). If you want the ability to manage files within your application, you can set up continuous deployment and use the integrated development environment (IDE) and source control system of your choice (e.g., Visual Studio Team, GitHub, Bitbucket). With continuous deployment configured, any code changes that you commit to source control will automatically be deployed to Azure. After you configure continuous deployment, you can [debug your bot locally](bot-service-debug-bot.md).
45-
46-
> [!NOTE]
47-
> If you enable continuous deployment for your bot, you must check in code changes to your source control service. If you want to edit your code in Azure editor once again,
48-
> you must [disable continuous deployment](#disable-continuous-deployment).
49-
50-
You can enable continuous deployment for your bot app by completing the following steps.
51-
52-
## Set up continuous deployment for a bot on an App Service plan
53-
54-
This section describes how to enable continuous deployment for a bot that you created using Bot Service that has an App Service hosting plan.
55-
56-
1. Within the Azure Portal, find your Azure bot, click the **BUILD** tab and find the **Continuous deployment from source control** section.
57-
2. For Visual Studio Online or GitHub, provide an access token issued to you on those web sites. Your source will be pulled from Azure into your source repository.
58-
3. For other source control systems, select **other** and follow the steps that appear.
59-
3. Click **Enable**.
60-
61-
### Create an empty repository and download bot source code
62-
63-
Follow these steps if you want to use a source control service *other than* Visual Studio Online or Github. Visual Studio Online and Github will pull the source code for your bot from Azure, so users of those two services can skip these steps.
64-
65-
3. For a bot on an App Service plan, find your bot page on Azure, click the **BUILD** tab, find the **Download source code** section, and click **Download zip file**.
66-
1. [!INCLUDE [download keys snippet](~/includes/snippet-abs-key-download.md)]
67-
1. Create an empty repository within one of the source control systems that Azure supports.
68-
69-
![Source control system](~/media/continuous-integration-sourcecontrolsystem.png)
70-
71-
3. Extract the contents of the downloaded zip file to the local folder where you are planning to sync your deployment source.
72-
4. Click **Configure** and follow the steps that appear.
73-
74-
## Set up continuous deployment for a bot on a Consumption plan
75-
76-
Choose the deployment source for your bot and connect your repository.
77-
78-
1. Within the Azure Poral, in your Azure bot, click the **SETTINGS** tab and click **Configure** to expand the **Continuous deployment** section.
79-
2. Follow the steps and click the checkbox to confirm you're ready.
80-
3. Click **Configure**, select the deployment source that corresponds to the source control system where you previously created the empty repository, and complete the steps to connect it.
81-
82-
83-
## Disable continuous deployment
84-
85-
When you disable continuous deployment, your source control service continues functioning, but changes you check in are not automatically published to Azure. To disable continuous deployment, perform the following steps:
86-
87-
1. If your bot has an App Service hosting plan, within the Azure Portal, find your Azure bot, click the **BUILD** tab and find the **Continuous deployment from source control** section, *or...*
88-
2. if your bot has a Consumption plan, click the **Settings** tab, expand the **Continuous deployment** section, and click **Configure**.
89-
3. In the **Deployments** pane, select the source control service where continuous deployment is enabled, and click **Disconnect**.
90-
91-
92-
## Additional resources
93-
94-
To learn how to debug your bot locally after you have configured continuous deployment, see
95-
[Debug a Bot Service bot](bot-service-debug-bot.md).
96-
97-
This article has highlighted the specific continuous deployment features of Bot Service. For information about continuous deployment as it relates to Azure App Services, see <a href="https://azure.microsoft.com/en-us/documentation/articles/app-service-continuous-deployment/" target="_blank">Continuous Deployment to Azure App Service</a>.

0 commit comments

Comments
 (0)