I have a PowerShell script that i want to run every 6 hours as a task scheduler on Azure. But the concern is that I don't want any Virtual machine for that. So is there any way so that it can be done without the creation of any virtual machine?
Running PowerShell Script in Azure as a task scheduler without creating any virtual machine
4.2k Views Asked by Sandeep Anand At
2
There are 2 best solutions below
0
anirudhgarg
On
For PowerShell currently Azure Automation is the preferred service as it is experimental currently in Functions.
https://learn.microsoft.com/en-us/azure/azure-functions/supported-languages
Experimental support for PowerShell is limited to version 4.0 because that is what's installed on the VMs that Function apps run on. If you want to run PowerShell scripts, consider Azure Automation.
Related Questions in POWERSHELL
- How to ignore warning errors?
- Data execution plan ended with error on DB restore
- Powershell Split a file name
- PowerShell EWS Save as for e-mails
- Run SQL Server Update Statement With Powershell
- using a global variable in multiple functions powershell
- Heisenberg was here: Aliases for PowerShell parameters only appear in cmdlet help when you do NOT document the cmdlet
- PowerShell Script to add newuser
- Why is PowerShell "not recognized" when installing Chocolatey?
- Enumerate a PSCustomObject as key/value pairs
- Unable to start program outside Windows folder
- Ask for creds only if some specified
- PowerShell 3 Parameters
- i can't ping a computer but remoting into it works (powershell enter-pssession)
- Feeding Variables in new-aduser -path option in powershell
Related Questions in AZURE
- Why does Azure Auto-Scale scale go lower then minimum amount of instances?
- Data execution plan ended with error on DB restore
- Why does Azure CloudConfigurationManager.GetSetting return null
- Do I need other roles than Worker Role for a web site and service layer in Azure?
- Azure Web App PATH Variable Modification
- Azure Data Factory: LinkedService for AzureSql in failed state
- How To Update a Web Application In Azure and Keep The App Up the whole time
- Using Azure MobileServices library with my own LAN WebApi
- ionCube loader error on Azure IIS
- App crash (if closed) after click on notification
- How to get sql data bases instances in azure using java api
- I want to create file in azure share using python PUT requests but getting error signature not correct including headers
- Enabling OPTIONS method on Azure Cloud Service (to enable CORS)
- Redirecting subdomain to directory on Azure
- Kaltura account settings error
Related Questions in SCRIPTING
- Using arrow keys to rotate an object
- bash functions returns "command not found"
- Calling javascript file from html file doesn't work at all
- Detecting corrupt characters in UTF-8 encoded text file
- Can I automate auto-app installation on my Android device?
- iMacros website form dropdown menu
- How to use multiple classes in multiple files in scripts?
- mIRC: Check if INI-file has a key
- Cannot open: c:\users\...\temp\package.cab when running Process.Start
- Using Gawk and Printf in a Bash script
- How can I edit a binary file under Windows by scripting
- interpreting a script through F#
- NET USE command to connect to a shared folder on local LAN
- Script to get List of logged in users
- find the lines where sequence/sorting is broken in linux
Related Questions in AZURE-AUTOMATION
- Azure Automation
- Passing Custom Objects between Azure runbooks
- Azure DSC Configuration from Runbooks
- Completion of device setup for Azure StorSimple Virtual Device Fails in Automation Runbooks
- Get-AzureRmAppServicePlan and Get-AzureRmWebApp return exceptions in Runbook
- Cannot run remote session on Azure Automation hybrid worker
- Should the Register-AzureRmAutomationDscNode cmdlet function identically to the Azure portal functionality?
- Azure Automation DSC Node not pulling the newest module
- Q: How to export the Azure Service Log to the local storage of the VMs?
- Azure AD authentication without app registration
- Azure Rotate Storage Keys and Update ADF Linked Service
- Starting Azure Vm in parallel with runbook throws InvalidOperationException
- Auto scale on azure app service command throwing ["UnsupportedMetric"] error
- Azure Automation. PSMetric to integer
- How to add an api key to the Credentials of Azure Automation Account?
Related Questions in AZURE-SCHEDULER
- How to check number of jobs remaining in job collection of Azure scheculer
- Deployment Slot for Azure Scheduler and Azure logic Apps
- Windows Azure Scheduler Job Completed Unexpectedly
- Trigger Azure Data Factory Pipeline on second Friday from end of month and on Tues, Wed and Thurs of the same week
- Azure Scheduler Long Running HTTP Action
- Call asmx web service from Windows Azure Scheduler
- Azure Update Scheduled Job API - Malformed Job Object
- How to create recurring weekly job in Azure Scheduler programmatically
- In Azure Scheduler, how to programmatically create recurring monthly job?
- Running PowerShell Script in Azure as a task scheduler without creating any virtual machine
- Running an exe file on premises from azure scheduler?
- User Scheduled Jobs in Azure
- How to genrate excel file on azure storage using c# console application?
- How do I use a bearer authorization token in a Azure Scheduler job?
- Create webjobs programmatically in Azure
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is many choices you could do this in Azure.
1.As Gaurav Mantri said, you could use Azure Automation, you could create a runbook and schedule it starting at a specified time. More information please refer to this link.
2.Use Azure Function App. You could create a
TimerTrigger - PowerShell, like below:More information please refer to this link.
Note: Azure automation and function app all provide
FREE UNITS (PER MONTH).Hope it helps.