Make an Azure VM connection from Azure LogicApps and run the curl command.

Asked 2 years ago, Updated 2 years ago, 116 views

I want to run shell scripts that I created in Azure VM (Linux) every 10 minutes using Azure's LogicApps feature and write the results to my storage account.
If anyone wants to complete with LogicApps and knows if it can be done without other resources, please let me know.
Enter a description of the image here

Also, as a procedure I have been trying to perform so far, I have tried the following site.
https://qiita.com/shingo_kawahara/items/fffd748309fa9bb5ab57
→The main purpose of this site is to trigger LogicApps to complete everything because you have to run shell scripts regularly in the VM.
If anyone knows anything, please provide us with information.

azure

2022-09-30 19:50

1 Answers

Hello.

Why don't you run the Virtual Mchine Run Command over HTTP?
I think this is a way not to use additional services such as Functions and Automation.

If you just want to run shell scripts remotely, you don't have to connect directly like this.

https://docs.microsoft.com/ja-jp/rest/api/compute/virtual-machines/run-command?tabs=HTTP#runcommandinput

For example, if you put a script called hoge.sh on a Linux machine:

Enter a description of the image here


2022-09-30 19:50

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.