Udostępnij za pośrednictwem


CloudJobExtensions.GetOutputStorageContainerUrl Method

Definition

Overloads

GetOutputStorageContainerUrl(CloudJob, BlobServiceClient)

Gets the URL, including a Shared Access Signature (SAS) that permits writing, for the job's output storage container in Azure blob storage. This URL is suitable for passing to tasks so they can use the JobOutputStorage(Uri) or TaskOutputStorage(Uri, String) constructors that take a Uri.

GetOutputStorageContainerUrl(CloudJob, BlobServiceClient, TimeSpan)

Gets the URL, including a Shared Access Signature (SAS) that permits writing, for the job's output storage container in Azure blob storage. This URL is suitable for passing to tasks so they can use the JobOutputStorage(Uri) or TaskOutputStorage(Uri, String) constructors that take a Uri.

GetOutputStorageContainerUrl(CloudJob, BlobServiceClient)

Source:
CloudJobExtensions.cs

Gets the URL, including a Shared Access Signature (SAS) that permits writing, for the job's output storage container in Azure blob storage. This URL is suitable for passing to tasks so they can use the JobOutputStorage(Uri) or TaskOutputStorage(Uri, String) constructors that take a Uri.

public static string GetOutputStorageContainerUrl (this Microsoft.Azure.Batch.CloudJob job, Azure.Storage.Blobs.BlobServiceClient blobClient);
static member GetOutputStorageContainerUrl : Microsoft.Azure.Batch.CloudJob * Azure.Storage.Blobs.BlobServiceClient -> string
<Extension()>
Public Function GetOutputStorageContainerUrl (job As CloudJob, blobClient As BlobServiceClient) As String

Parameters

job
CloudJob

The job for which to create the container.

blobClient
BlobServiceClient

The blob service client linked to the Azure Batch storage account.

Returns

The URL, including SAS, of the job output container.

Remarks

The SAS expires after 7 days. This default is chosen to match the maximum time that tasks can remain active.

Applies to

GetOutputStorageContainerUrl(CloudJob, BlobServiceClient, TimeSpan)

Source:
CloudJobExtensions.cs

Gets the URL, including a Shared Access Signature (SAS) that permits writing, for the job's output storage container in Azure blob storage. This URL is suitable for passing to tasks so they can use the JobOutputStorage(Uri) or TaskOutputStorage(Uri, String) constructors that take a Uri.

public static string GetOutputStorageContainerUrl (this Microsoft.Azure.Batch.CloudJob job, Azure.Storage.Blobs.BlobServiceClient blobClient, TimeSpan expiryTime);
static member GetOutputStorageContainerUrl : Microsoft.Azure.Batch.CloudJob * Azure.Storage.Blobs.BlobServiceClient * TimeSpan -> string
<Extension()>
Public Function GetOutputStorageContainerUrl (job As CloudJob, blobClient As BlobServiceClient, expiryTime As TimeSpan) As String

Parameters

job
CloudJob

The job for which to create the container.

blobClient
BlobServiceClient

The blob service client linked to the Azure Batch storage account.

expiryTime
TimeSpan

The duration for which the SAS is valid. This should be long enough to allow all tasks of the job to be created and run to completion, including leeway for errors and retries.

Returns

The URL, including SAS, of the job output container.

Applies to