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

ComputeBatchModelFactory.UploadBatchServiceLogsContent Method

Definition

Initializes a new instance of UploadBatchServiceLogsContent.

public static Azure.Compute.Batch.UploadBatchServiceLogsContent UploadBatchServiceLogsContent (string containerUrl = default, DateTimeOffset startTime = default, DateTimeOffset? endTime = default, Azure.Compute.Batch.BatchNodeIdentityReference identityReference = default);
static member UploadBatchServiceLogsContent : string * DateTimeOffset * Nullable<DateTimeOffset> * Azure.Compute.Batch.BatchNodeIdentityReference -> Azure.Compute.Batch.UploadBatchServiceLogsContent
Public Shared Function UploadBatchServiceLogsContent (Optional containerUrl As String = Nothing, Optional startTime As DateTimeOffset = Nothing, Optional endTime As Nullable(Of DateTimeOffset) = Nothing, Optional identityReference As BatchNodeIdentityReference = Nothing) As UploadBatchServiceLogsContent

Parameters

containerUrl
String

The URL of the container within Azure Blob Storage to which to upload the Batch Service log file(s). If a user assigned managed identity is not being used, the URL must include a Shared Access Signature (SAS) granting write permissions to the container. The SAS duration must allow enough time for the upload to finish. The start time for SAS is optional and recommended to not be specified.

startTime
DateTimeOffset

The start of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested.

endTime
Nullable<DateTimeOffset>

The end of the time range from which to upload Batch Service log file(s). Any log file containing a log message in the time range will be uploaded. This means that the operation might retrieve more logs than have been requested since the entire log file is always uploaded, but the operation should not retrieve fewer logs than have been requested. If omitted, the default is to upload all logs available after the startTime.

identityReference
BatchNodeIdentityReference

The reference to the user assigned identity to use to access Azure Blob Storage specified by containerUrl. The identity must have write access to the Azure Blob Storage container.

Returns

A new UploadBatchServiceLogsContent instance for mocking.

Applies to