Connect Logic Apps to Azure VM(Linux) and execute shell scripts

HAYASHI GEOVANA AYORI 21 Reputation points
2022-09-02T00:09:54.89+00:00

I want to use a logic apps to run a shell script on a Linux server in AzureVM every 10 minutes and write the execution results to an Azure storage account.

I know that the logic app has SFTP functionality, but I would like to know if it has the ability to execute commands in a virtual machine.
If so, please let me know how this can be accomplished.

Please give me advice.

237094-image.png

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
Azure Storage
Azure Storage
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Stanislav Zhelyazkov 29,306 Reputation points MVP Volunteer Moderator
    2022-09-02T07:07:00.16+00:00

    Hi,
    Logic App has built-in actions for Azure Resource Manager (ARM). You can use one of those to run ARM API calls or ARM template deployments on Azure resources:

    237110-image.png

    Specifically, you can use VM Run command API or Managed Run Command API. The latter also supports deployment via ARM Template.

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    2 people found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.