我有2个Azure函数-Powershell。一个将恢复PowerBI嵌入式容量,另一个将暂停它。
然后我有1个Azure函数-一旦PowerBI Embedded Capacity运行,C#就必须运行。
因此,我需要一个执行以下操作的Orchestrator函数:
我一直在研究此代码,但我想只有当您所有的函数都是C#并且在同一Function App中时,此函数才有效。因为我有C#和Powershell,所以我有2个功能应用程序。
[FunctionName("E1_HelloSequence")]
public static async Task<List<string>> Run(
[OrchestrationTrigger] IDurableOrchestrationContext context)
{
var outputs = new List<string>();
outputs.Add(await context.CallActivityAsync<string>("E1_SayHello", "Tokyo"));
outputs.Add(await context.CallActivityAsync<string>("E1_SayHello", "Seattle"));
outputs.Add(await context.CallActivityAsync<string>("E1_SayHello_DirectInput", "London"));
// returns ["Hello Tokyo!", "Hello Seattle!", "Hello London!"]
return outputs;
}
任何线索?
Durable Functions当前支持以下语言: