Scheduling Python Scripts using Azure Function App and Task Scheduler — Part 1

  1. Deploying it to Azure VM using window’s task scheduler
  2. Deploying it to Azure using Azure Function App

Deploying Python Scripts to Azure VM using window’s Task Scheduler

  • To create a task, search for “Task Scheduler” in windows search box.
  • Click on “Task Scheduler” and select “Task scheduler Library” to see the list of scheduled tasks.
  • To create a new task, click on “Create Task” in the right menu. Under ‘General’ tab, add name for you task and check ‘Run with highest privileges’ and click ‘OK’
  • Under ‘Triggers’ tab, create a new trigger by clicking ‘New’ and select ‘Begin the task on a schedule’. Select start time and settings as per the requirement. If you want to repeat the task after certain interval, go to ‘Advanced settings’ and select duration and time. Click ‘OK’
  • Under ‘Action’ tab, create a new action by clicking on ‘New’ button. Select ‘Action’ as ‘start a program’. Under ‘Program/script’, add the path to python executable. To get the path for python executable, open cmd prompt and type ‘where python’.
  • Under ‘Program/script’, add the python executable path. Add the file name under ‘Arguments’ and file path under ‘Start in’. Click ‘OK’ to continue.
  • Again press ‘OK’ and your script is scheduled to run at the given date and time.

--

--

--

Data Scientist | Computer Science Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Introducing: Premium Profiles on Boss Agent

Divi Plugin Highlight: Divi Dashboard Welcome https://t.co/7cTn8bi1JG #WordPress #wp #wpthemes

How Bukalapak Cuts down Its Feature Testing Time Process (And Cost!)

Mocking In Unit Tests

Attaching Debugger To Swagger Server Python Running In Docker Container With VS Code

API Economy: The Digital Value Chain

Implementing Relationships in MongoDB

Infrastructure as Code using AWS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Pranjali Parnerkar

Pranjali Parnerkar

Data Scientist | Computer Science Engineer

More from Medium

Pandas library in Python

How to code python loop: quick python concepts

Python OOPS Concepts(Types Of Variables)

python live data tracing similar to wireshark