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 answers
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
- PowerShell Linphone Configuration
- How avoid \t being converted to Tab in Powershell
- How do I get my terminal to work in VS Code? Exit Code:2, doesn't allow me to type anything
- Npm command not working in powershell but works in cmd
- Issue with path not being treated as encapsulated when calling cmd /C
- Native command throws error only when I redirect to a variable
- Logic Apps and long running Azure Function (Powershell)
- April fools - PsExec (PsTools)
- How to use nested ForEach-Object
- Batch Script-Powershell MessageBox | How do I set TopMost within PS command line of Batch?
- Execution Stuck at Get-PnPPage if function executed on Button Click
- How can I expand a column from group output?
- How to use expression in regex -replace with capturing group in powershell
- powershell where-object -cnotmatch filter unwanted lines
- How to make Visual Studio 2022 project launch Windows Terminal instead of PowerShell?
Related Questions in AZURE
- How to update to the latest external Git in Azure Web App?
- I need an azure product that executes my intensive ffmpeg command then dies, and i only get charged for the delta. Any Tips?
- Inject AsyncCollector into a service
- mutual tls authentication between app service and function app
- Azure Application Insights Not Displaying Custom Logs for Azure Functions with .NET 8
- Application settings for production deployment slot in Azure App Services
- Encountered an error (ServiceUnavailable) from host runtime on Azure Function App
- Implementing Incremental consent when using both application and delegated permissions
- Invalid format for email address in WordPress on Azure app service
- Producer Batching Service Bus Vs Kafka
- Integrating Angular External IP with ClusterIP of .NET microservices on AKS
- Difficulty creating a data pipeline with Fabric Datafactory using REST
- Azure Batch for Excel VBA
- How to authenticate only Local and Guest users in Azure AD B2C and add custom claims in token?
- Azure Scale Sets and Parallel Jobs
Related Questions in SCRIPTING
- How do I react to external program launch inside an Automator workflow?
- can anyone help me for NSIS Script I have a case where I need to check cases can be 3.3 3.42 23.5 23.56w 3.467 999.999 999.99a but not 1.b or 8..a
- How do I restart a batch file in PowerShell?
- Trouble updating a Field in Salesforce via a Python Script
- What are JCL Alternitives for Embeded Applications?
- grep expression behaving weird (unix/mac) while reading a conf file
- Why is my bash script showing [2: command not found?
- How can I modify my code to negate this error?
- Find Specified Software - Powershell
- how to change Value to something specific and not add to it?
- How can I run this Powershell function from a batch file on windows?
- How to make toggle key to switch between two seperate functions lua script(logitech)
- My quiz automatically submits when i plug in a chrome extension that involves doing an api call
- How to "make" a variable that contains another variable value?
- function not recognizable inside scriptblock in PowerShell script
Related Questions in AZURE-AUTOMATION
- Get-Service command giving me the error Cannot open Service Control Manager on computer 'xx'. This operation might require other privileges
- VS Code Azure Automation Runbook Python Packages not recognized
- Why am I getting "could not find file" errors when using Remove-Item in PowerShell?
- Issue with wg-easy VPN service and setting up auto reboot using Powershell script on Automation Accounts
- Powershell runbooks on hybrid workers can access other jobs variables if too many jobs are running at the same time
- Bad request at Azure Automation Tasks Preview
- How to deploy a "Logic App Standard" with multiple workflows via arm template
- $DebugPreference = "Continue" not working when running a powersehll runbook in azure automation account's test pane
- Azure powershell failing with error: One or more errors occurred while using Get-AzRecoveryServicesVault cmdlet
- Azure Automation Account Powershell runbook exception errors with Azure Snapshots
- PowerShell code runs considerably slower in Automation Account hybrid worker than it does directly on the hybrid worker server
- Logic app, convert run query json results to usuable / readable output (html/excelish?)to use in Sentinel comments for enrichment
- Azure: How to use custom module in State Configuration
- Powershell script with automation account and managed identity Unauthorized when sending e-mail
- How to Kill sessions running for last 5 minutes automatically in azure analysis services?
Related Questions in AZURE-SCHEDULER
- Trigger Azure Data Factory Pipeline on second Friday from end of month and on Tues, Wed and Thurs of the same week
- How to Schedule Http Post Service deployed on Azure App Service Web App from Azure
- How to run scheduled scripts using Azure WebJobs
- Create ADF schedule running from 6:00 to 20:00
- Azure Data Factory Pipeline Cost
- How to schedule runbook based on minutes in Azure automation Account
- How to put my console application dll in logic apps scheduler instead of Web jobs?
- Send Dynamic data to Azure Logic app based on fixed schedule
- Can azure logic app can run multiple HTTP request on single trigger?
- Are Azure web jobs part of Azure scheduler retirement?
- MassTransit Azure Service Bus, setting a recurring schedule
- How can I find next run times of Azure Scheduler Collection Job
- Azure Scheduler Long Running HTTP Action
- What is the best way to ensure that thousands of httprequests run on a schedule in Azure?
- Azure scheduler mechanism to send email as ErrorAction
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?
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)
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.