【发布时间】:2019-08-01 09:27:16
【问题描述】:
我是 Azure 环境的新手。我已经使用 .net 核心编写了一些代码,这些代码使用 Azure 数据工厂启动 Azure 管道。从我的本地尝试时管道运行状态的状态始终为成功。我在天蓝色环境中部署了代码。当尝试从 azure 服务器启动管道时,状态总是排队。什么是排队状态以及我必须处理它。有人可以帮忙吗?我是否需要更改 azure 中的任何设置,以便管道运行成功
AuthenticationContext context = new AuthenticationContext("https://login.windows.net/" + tenantID);
ClientCredential cc = new ClientCredential(applicationId, authenticationKey);
AuthenticationResult result = context.AcquireTokenAsync("https://management.azure.com/", cc).Result;
ServiceClientCredentials cred = new TokenCredentials(result.AccessToken);
var client = new Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient(cred) { SubscriptionId = subscriptionId };
CreateRunResponse runResponse = client.Pipelines.CreateRunWithHttpMessagesAsync(resourceGroup, dataFactoryName, pipelineName).Result.Body;
string RunId = runResponse.RunId;
PipelineRun pipelineRun;
while (true)
{
pipelineRun = client.PipelineRuns.Get(resourceGroup, dataFactoryName, runResponse.RunId);
if (pipelineRun.Status == "InProgress")
System.Threading.Thread.Sleep(15000);
else
break;
}
【问题讨论】: