CloudJobExtensions.GetOutputStorageContainerUrl Method

Definition

Overloads

GetOutputStorageContainerUrl(CloudJob, CloudStorageAccount)

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, CloudStorageAccount, 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, CloudStorageAccount)

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, Microsoft.WindowsAzure.Storage.CloudStorageAccount storageAccount);
static member GetOutputStorageContainerUrl : Microsoft.Azure.Batch.CloudJob * Microsoft.WindowsAzure.Storage.CloudStorageAccount -> string
<Extension()>
Public Function GetOutputStorageContainerUrl (job As CloudJob, storageAccount As CloudStorageAccount) As String

Parameters

job
CloudJob

The job for which to create the container.

storageAccount
Microsoft.WindowsAzure.Storage.CloudStorageAccount

The storage account linked to the Azure Batch 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.

GetOutputStorageContainerUrl(CloudJob, CloudStorageAccount, 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.

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

Parameters

job
CloudJob

The job for which to create the container.

storageAccount
Microsoft.WindowsAzure.Storage.CloudStorageAccount

The storage account linked to the Azure Batch 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