Azure / Azure/azure-powershell

Allow Set-AzStorageBlobContent 'File' and 'Blob' parameter to be sent through pipeline together

Open
#11,254 15 comments 0 reactions 0 assignees View on GitHub
act-codegen-extensibility-squad customer-reported feature-request Service Attention Storage
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

## Description of the new feature
Being able to pass an object with the File and Blob properties through the pipeline to Set-AzStorageBlobContent would allow us to bypass the use of a Foreach loop to take advantage of the concurrency option of the cmdlet, as well as make it easier to upload directories and/or files with custom prefixes.

## Proposed implementation details

```PowerShell
$Example = @(
[PSCustomObject]@{
Blob = 'SomePrefix/Subdir/Test.txt'
File = 'C:\Users\TestUser\Test.txt'
}
[PSCustomObject]@{
Blob = 'SomeOtherPrefix/Subdir2/Test2.txt'
File = 'C:\Users\TestUser2\Test10.txt'
}
)

$Example | Set-AzStorageBlobContent -Container 'testcontainer'
```

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.