你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

PoolOperations.UploadComputeNodeBatchServiceLogsAsync 方法

定义

重载

UploadComputeNodeBatchServiceLogsAsync(String, String, String, DateTime, Nullable<DateTime>, IEnumerable<BatchClientBehavior>, CancellationToken)

从指定的计算节点上传Azure Batch服务日志文件。

UploadComputeNodeBatchServiceLogsAsync(String, String, String, ComputeNodeIdentityReference, DateTime, Nullable<DateTime>, IEnumerable<BatchClientBehavior>, CancellationToken)

从指定的计算节点上传Azure Batch服务日志文件。

UploadComputeNodeBatchServiceLogsAsync(String, String, String, DateTime, Nullable<DateTime>, IEnumerable<BatchClientBehavior>, CancellationToken)

Source:
PoolOperations.cs

从指定的计算节点上传Azure Batch服务日志文件。

public System.Threading.Tasks.Task<Microsoft.Azure.Batch.UploadBatchServiceLogsResult> UploadComputeNodeBatchServiceLogsAsync (string poolId, string computeNodeId, string containerUrl, DateTime startTime, DateTime? endTime = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.UploadComputeNodeBatchServiceLogsAsync : string * string * string * DateTime * Nullable<DateTime> * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.UploadBatchServiceLogsResult>
Public Function UploadComputeNodeBatchServiceLogsAsync (poolId As String, computeNodeId As String, containerUrl As String, startTime As DateTime, Optional endTime As Nullable(Of DateTime) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of UploadBatchServiceLogsResult)

参数

poolId
String

包含计算节点的池的 ID。

computeNodeId
String

计算节点的 ID。

containerUrl
String

Azure Blob 存储中要向其上传 Batch 服务日志文件的容器的 URL, () 。 如果不使用托管标识,URL 必须包含共享访问签名 (SAS) 向容器授予写入权限。

startTime
DateTime

上传 Batch 服务日志文件的时间范围的开始时间范围 () 。 将上传时间范围内包含日志消息的任何日志文件。 这意味着操作检索的日志数可能会超过请求的日志数,因为始终上传整个日志文件。

endTime
Nullable<DateTime>

上传 Batch 服务日志文件的时间范围的结束时间 () 。 将上传时间范围内包含日志消息的任何日志文件。 这意味着操作检索的日志数可能会超过请求的日志数,因为始终上传整个日志文件。 如果省略此值,则默认值为当前时间。

additionalBehaviors
IEnumerable<BatchClientBehavior>

应用于 之后的 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors

cancellationToken
CancellationToken

一个 CancellationToken ,用于控制异步操作的生存期。

返回

表示异步操作的 Task

注解

这是用于在遇到错误并希望升级到Azure 支持时自动从节点收集Azure Batch服务日志文件。 应与 Azure 支持 共享Azure Batch服务日志文件,以帮助调试 Batch 服务的问题。

适用于

UploadComputeNodeBatchServiceLogsAsync(String, String, String, ComputeNodeIdentityReference, DateTime, Nullable<DateTime>, IEnumerable<BatchClientBehavior>, CancellationToken)

Source:
PoolOperations.cs

从指定的计算节点上传Azure Batch服务日志文件。

public System.Threading.Tasks.Task<Microsoft.Azure.Batch.UploadBatchServiceLogsResult> UploadComputeNodeBatchServiceLogsAsync (string poolId, string computeNodeId, string containerUrl, Microsoft.Azure.Batch.ComputeNodeIdentityReference identityReference, DateTime startTime, DateTime? endTime = default, System.Collections.Generic.IEnumerable<Microsoft.Azure.Batch.BatchClientBehavior> additionalBehaviors = default, System.Threading.CancellationToken cancellationToken = default);
member this.UploadComputeNodeBatchServiceLogsAsync : string * string * string * Microsoft.Azure.Batch.ComputeNodeIdentityReference * DateTime * Nullable<DateTime> * seq<Microsoft.Azure.Batch.BatchClientBehavior> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Batch.UploadBatchServiceLogsResult>
Public Function UploadComputeNodeBatchServiceLogsAsync (poolId As String, computeNodeId As String, containerUrl As String, identityReference As ComputeNodeIdentityReference, startTime As DateTime, Optional endTime As Nullable(Of DateTime) = Nothing, Optional additionalBehaviors As IEnumerable(Of BatchClientBehavior) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of UploadBatchServiceLogsResult)

参数

poolId
String

包含计算节点的池的 ID。

computeNodeId
String

计算节点的 ID。

containerUrl
String

Azure Blob 存储中要向其上传 Batch 服务日志文件的容器的 URL, () 。 如果不使用托管标识,URL 必须包含共享访问签名 (SAS) 向容器授予写入权限。

identityReference
ComputeNodeIdentityReference

用于写入容器的托管标识。

startTime
DateTime

上传 Batch 服务日志文件的时间范围的开始时间范围 () 。 将上传时间范围内包含日志消息的任何日志文件。 这意味着操作检索的日志数可能会超过请求的日志数,因为始终上传整个日志文件。

endTime
Nullable<DateTime>

上传 Batch 服务日志文件的时间范围的结束时间 () 。 将上传时间范围内包含日志消息的任何日志文件。 这意味着操作检索的日志数可能会超过请求的日志数,因为始终上传整个日志文件。 如果省略此值,则默认值为当前时间。

additionalBehaviors
IEnumerable<BatchClientBehavior>

应用于 之后的 Batch 服务请求的实例集合BatchClientBehaviorCustomBehaviors

cancellationToken
CancellationToken

一个 CancellationToken ,用于控制异步操作的生存期。

返回

表示异步操作的 Task

注解

这是用于在遇到错误并希望升级到Azure 支持时自动从节点收集Azure Batch服务日志文件。 应与 Azure 支持 共享Azure Batch服务日志文件,以帮助调试 Batch 服务的问题。

适用于