Azure / Azure/Batch

Environment variable support in OutputFileBlobContainerDestination.Path

Open
#130 1 comment 0 reactions 0 assignees View on GitHub
feature request
Dominant language
No language data
Stars
27
Forks
29
PR merge metrics
No merged PRs in 30d

Description

#### Feature Request Description
Currently, if a JobManagerTask is defined for a CloudJobSchedule with the key name of an EnvironmentSetting in the OutputFileBlobContainerDestination.Path, the key name is not replaced, and the path remains static. See an example below:

```
JobManagerTask = new JobManagerTask($"DATAMANAGER", string.Empty)
{
...
EnvironmentSettings = new List {
new EnvironmentSetting("CURRENT_DATE", "$(date -u +%Y%m%d)")
},
OutputFiles = new List {
new OutputFile("../*.txt",
new OutputFileDestination(new OutputFileBlobContainerDestination(
containerUrl: containerUrl,
path: $"logs/datamanager/$CURRENT_DATE")),
new OutputFileUploadOptions(OutputFileUploadCondition.TaskCompletion)
)
}
}
```

When executed, the logs are uploaded to: logs/datamanager/$CURRENT_DATE

#### Describe Preferred Solution
Support for variables defined in the EnvironmentSettings property to replace placeholders defined in OutputFileBlobContainerDestination.Path.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.