C# - Azure Bot - Zip Deployment failed with newest CLI version

Sagar 6 Reputation points
2020-07-06T13:37:39.997+00:00

Hi,

I am trying to deploy an echo bot using the steps from the below documentation:

https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-tutorial-basic-deploy?view=azure-bot-service-4.0&tabs=csharp

  1. I created the bot using the template ( Bot Framework v4 - .NET Core 3.1)
  2. I have updated to the latest Azure CLI (2.8.0)
    11446-azure-cliversion.png
  3. I was trying to deploy via ARM template with existing Resource Group
  4. I created/retrieved the necessary IIS/Kudu files
  5. I zipped the code directory manually and used the below command to deploy (Got "Zip deployment failed" error)

az webapp deployment source config-zip --resource-group "<resource-group-name>" --name "<name-of-web-app>" --src "<project-zip-path>"

11471-mmo-deployment-log.png

In a related issue on Github, the suggestion was to update to the latest CLI version and try the deployment (Link for reference) - https://github.com/Azure/azure-cli/issues/11261

Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
747 questions
Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
2,371 questions
{count} vote

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,961 Reputation points Microsoft Employee
    2020-07-13T17:22:07.613+00:00

    @Sagar-1442 There is no restriction with respect to what files are added but i think kudu assumes all files are ready to run without installing any dependencies. With respect to how to create a zip file there are some guidelines that are outlined. Here are the same as mentioned in the document

    Before zipping your project files, make sure that you are in the bot's project folder.

    For C# bots, it is the folder that has the .csproj file.

    Within the project folder, make sure you select all the files and folders before running the command to create the zip file. This will create a single zip file within the project folder. If your root folder location is incorrect, the bot will fail to run in the Azure portal.

    Could you please verify if all files are selected within the .csproj folder and then zipped?

    0 comments No comments