Home > database >  How to automatically run a powershell script in azure?
How to automatically run a powershell script in azure?

Time:10-02

I am moving data into an azure storage account from Azure's rest api. I do the following in powershell using a combination of invoke rest and azure powershell cmdlets. I essentially have a small script that does:

  1. Get Access Token
  2. Get Data
  3. Put Data into storage account blob

What you do I need to do to get this to run on a schedule in azure, and have it automatically move data into a storage account? I was able to get the script to run myself, but the question is about getting it to run without me having to be present.

CodePudding user response:

I'm no Azure expert but I think what you're looking for is Azure Automation. You might want to check out this link as a reference but ymmv as I'm not entirely sure how much it applies to your use case.

CodePudding user response:

PowerShell Runbook within an Azure automation account can either be executed on a schedule or via webhook.

  • Related