Skip to content

Latest commit

 

History

History
19 lines (18 loc) · 1.08 KB

File metadata and controls

19 lines (18 loc) · 1.08 KB

Basic App Setup

  1. Create a Resource Group in Azure RM
  2. Create App Service WebApp
  • Set the Python Version in application settings to 3.4
  1. Create WebJob for worker
  • Select the continuous WebJob option
  1. Take the WebJob name for #2, and put this in bot/init.py as name
  • This is used to deploy the WebJob later on
  • Upload a dummy file for now. (It must have a .exe, .py, etc. extension to upload)
  1. Create deployment credentials and configure App Service for local git deployment. Add this as a remote to your local git repo. Name this remote azure
  2. git push azure master

Advanced Resources

  1. Create Service Bus Namespace - https://azure.microsoft.com/en-us/documentation/articles/service-bus-python-how-to-use-queues/
  2. Create Service Bus Queue under the namespace
  • Check Lock Duration timer and make sure it is 30 seconds
  • Create a shared access policy named "worker" with properties send and listen
  • Make sure to update tartest/queues.py with NAMESPACE
  1. Store these keys in the App Service WebApp Application Settings with the following App Settings key: JOBS_WORKER