Skip to content

Commit de0b756

Browse files
authored
Release 'live' 4-19-19 (#1442)
1 parent 2113591 commit de0b756

File tree

4 files changed

+197
-179
lines changed

4 files changed

+197
-179
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
To publish your local JavaScript bot back to Azure, you must first manually create a single zipped file containing all files used to locally build and run your bot. This includes all npm libraries downloaded into your `node_modules` folder. When creating this zip file _make sure that the root directory you use is the same directory where your index.js file resides_.
2+
3+
Once a zip file containing all of your bot's source code has been created, open a command prompt window and run the following _Az cli_ command.
4+
5+
This step might take a while.
6+
7+
```cmd
8+
az webapp deployment source config-zip --resource-group <resource-group-name> --name <bot-resource-name> --src <directory-path>
9+
```
10+
11+
| Option | Description |
12+
|:---|:---|
13+
| --resource-group | Name of resource group in Azure. |
14+
| --name | The resource name of the bot in Azure. |
15+
| --src | The full directory path to upload your zipped bot code from. For example `c:\my-local-repository\this-app-folder\my-zipped-code.zip` |
16+
17+
Once this completes successfully, your bot is deployed in Azure.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Publish your local bot to Azure. This step might take a while.
22

33
```cmd
4-
az bot publish --name <bot-resource-name> --proj-name "<project-file-name>" --resource-group <resource-group-name> --code-dir <directory-path> --verbose --version v4
4+
az bot publish --name <bot-resource-name> --proj-file-path "<project-file-name>" --resource-group <resource-group-name> --code-dir <directory-path> --verbose --version v4
55
```
66

77
| Option | Description |
88
|:---|:---|
99
| --name | The resource name of the bot in Azure. |
10-
| --proj-name | For C#, use the startup project file name (without the .csproj) that needs to be published. For example: `EnterpriseBot`. For Node.js, use the main entry point for the bot. For example, `index.js`. |
10+
| --proj-file-path | For C#, use the startup project file name (without the .csproj) that needs to be published. For example: `EnterpriseBot`. For Node.js, use the main entry point for the bot. For example, `index.js`. |
1111
| --resource-group | Name of resource group. |
1212
| --code-dir | The directory to upload bot code from. |
1313

14-
Once this completes with a "Deployment successful!" message, your bot is deployed in Azure.
14+
Once this completes with a "Deployment successful!" message, your bot is deployed in Azure.

0 commit comments

Comments
 (0)