Creating resources with ARM template for Python echobot fails
Github issues for C# /JS / Java/ Python should be used for bugs and feature requests. Use Stack Overflow for general "how-to" questions.
Sample information
- Sample type: \samples\python
- Sample language: python
- Sample name: 02.echo-bot / possibly all python samples
Describe the bug
Following the deployment docs, when creating resources with ARM template (MultiTenant // new resource group // python // sample echobot) fails, with message:
unrecognized template parameter 'appType'. Allowed parameters: appId, appSecret, botId, botSku, groupLocation, groupName, newAppServicePlanLocation, newAppServicePlanName, newAppServicePlanSku, newWebAppName
The command that triggers the error is:
az deployment sub create --template-file "<path>" --location <bot-region> --parameters appType="MultiTenant" appId="<app-id>" appSecret="<password>" botId="<bot-id>" botSku=<tier> newAppServicePlanName="<plan-name>" newWebAppName="<service-name>" groupName="<group-name>" groupLocation="<group-region>" newAppServicePlanLocation="<plan-region>" --name "<deployment-name>"
To Reproduce
Steps to reproduce the behavior:
- Copy python/samples/02.echobot to a work directory.
-
pip install -r requirements.txt - Follow the Deploy Your Bot to Azure docs.
- In the create resources with ARM template section, run the command relative to new resources // multitenancy (the others might be broken as well, I don't know).
- Watch error in console.
Expected behavior
Resources should be created without displaying any error.
Additional context
Indeed, all Python samples use a 2015 schema, which does not have appType, causing the command to fail. I copied over the whole template-with-new-rg.json file from Node samples, which uses schema from 2019-04-01, and the command succeded.
This is indeed an incomplete handling of those ARM templates changes across the 4 SDK's. In the coming days, we will be updating all ARM templates to a new set of templates, and all 4 repos, and the associated doc should match. Sorry for the confusion. I'll leave this issue open for tracking until that work is done.