title: How to deploy an Azure Bot
body: <p>I have created a simple Azure Bot from a Typescript template from <a href="https://github.com/microsoft/BotBuilder-Samples/tree/main/samples/typescript_nodejs/03.welcome-users" rel="nofollow noreferrer">this tutorial</a>. I have tested it in the Bot Framework Emulator and now want to deploy it to Azure. I am trying to follow the instructions <a href="https://docs.microsoft.com/en-us/azure/bot-service/bot-builder-deploy-az-cli?view=azure-bot-service-4.0&amp;tabs=csharp" rel="nofollow noreferrer">here</a>. I get as far as the step &quot;Deploy via ARM template with existing resource group&quot; (I have already created a Resource Group).</p>
  <p>So I am trying to run this command from the command line:</p>
  <pre><code>az deployment group create --resource-group &quot;&lt;name-of-resource-group&gt;&quot; --template-file &quot;&lt;path-to-template-with-preexisting-rg.json&gt;&quot; --parameters appId=&quot;&lt;app-id-from-previous-step&gt;&quot; appSecret=&quot;&lt;password-from-previous-step&gt;&quot; botId=&quot;&lt;id or bot-app-service-name&gt;&quot; newWebAppName=&quot;&lt;bot-app-service-name&gt;&quot; existingAppServicePlan=&quot;&lt;name-of-app-service-plan&gt;&quot; appServicePlanLocation=&quot;&lt;region-location-name&gt;&quot; --name &quot;&lt;bot-app-service-name&gt;&quot;
  </code></pre>
  <p>I'm getting an error: <code>az deployment: 'group' is not in the 'az deployment' command group</code>. Sure enough when I look at the help for <code>az deployment</code>, there is no <code>group</code> command. There is a <code>create</code> command, but if I remove <code>group</code> I get into a series of other errors which just seem to lead me down a rabbit hole.</p>
  <p>In my desperation, I tried installing the BotFrameworkComposer app (Linux) and to create a project from there. It gives me an error <code>Error calling npm to fetch template. Please ensure that node and npm are installed and available on your system. Full error message: Command failed with ENOENT: npm root -g --prefix</code>. So I tried opening the bot resource that I created in the Azure portal using the &quot;Open in Composer&quot; button and nothing opens. So I copied the link from the button into the browser (as it suggests) but the app doesn't open.</p>