[英]Is it possible for an Azure Function App in C# to execute a command line application?
I'm looking to create a Function App in C# with a timer trigger which will occasionally (eg once per day) manipulate our Salesforce environment.我希望在 C# 中创建一个带有计时器触发器的函数应用程序,该触发器偶尔会(例如每天一次)操纵我们的 Salesforce 环境。 Specific tasks may (will) include:
具体任务可能(将)包括:
I'm hoping to do this without reinventing too many wheels.我希望在不重新发明太多轮子的情况下做到这一点。 As Sfdx Cli should be able to do these tasks from the command line, I'm wondering whether/how I can manipulate Sfdx from an Azure C# scheduled function app.
由于 Sfdx Cli 应该能够从命令行执行这些任务,我想知道是否/如何从 Azure C# 计划函数应用程序操作 Sfdx。
What you can do is dockerize the function and then deploy it.你可以做的是对函数进行 dockerize,然后部署它。
This will help you to run the console app in the function.这将帮助您在函数中运行控制台应用程序。
Also, you will get all the desired functionality of the function while the dockerization will help you run console app on it.此外,您将获得该功能的所有所需功能,而 dockerization 将帮助您在其上运行控制台应用程序。
You have to bundle the console app with the function app.您必须将控制台应用程序与函数应用程序捆绑在一起。
refer the following documentation on deploying using docker.请参阅以下有关使用 docker 进行部署的文档。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.