0

I need to call a bash script on an Azure Linux VM from an azure function app, and I need it to use the compute on that VM and not my resource plan for my function app.

I know I can perform remote execution via Azure CLI, but I can't seem to wrap my mind around calling it from an interval triggered Function App.

thanks in advance

NoCarrier
  • 2,558
  • 4
  • 33
  • 44
  • Since you want to run a script on Azure Linux VM, why do you not use Custom Script Extension: https://learn.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-linux – Jim Xu Jul 14 '20 at 03:34
  • @JimXu Can CSE be called from an azure function app? – NoCarrier Jul 14 '20 at 16:53
  • Please refer to the sample : https://github.com/Azure-Samples/compute-dotnet-manage-virtual-machine-using-vm-extensions/blob/b5f7a637a089b8a7cfdbe9abe2a46e4eef9f7caa/Program.cs#L167 – Jim Xu Jul 15 '20 at 01:27

0 Answers0