You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When binding to BlobContainerClient as an input binding, you still need to provide a blob name in the input binding i.e. BlobInput("input-container/sample1.txt"
But since we are binding to a container, it doesn't make sense to have to provide a blob name in the binding; instead I would expect that you could bind to just the container like this:
This does not work today and you get the following error message:
Invalid blob path specified : 'input-container'. Blob identifiers must be in the format 'container/blob'
Note: this is different to a blob trigger which lets you bind to just the container, and it is not the same as IsBatched which also lets you bind to only a container but expects a collection binding i.e. BlobContainerClient[] which does not make sense for this scenario
Proposed Change
On the WebJobs extension side we relax the rules to allow input binding with just the container name
On the worker side we will have more checks in place to make sure customers do not bind a string/byte[] or anything other than a BlobContainerClient to a container path
The text was updated successfully, but these errors were encountered:
Assigning to @liliankasem for additional context on the change we'll be proposing to the blob extension.
liliankasem
changed the title
Binding to BlobContainerClient should not require you to provide a blob path
[SDK Binding - Blob] Binding to BlobContainerClient should not require you to provide a blob path
Feb 17, 2023
The Blob WebJobs extensions has a property called isContainerBinding for determining if the passed in input can be parsed correctly. We basically need to pass in isContainerBinding = truehere, and as of today there is no way to do this other than adding a new attribute.
When binding to
BlobContainerClient
as an input binding, you still need to provide a blob name in the input binding i.e.BlobInput("input-container/sample1.txt"
But since we are binding to a container, it doesn't make sense to have to provide a blob name in the binding; instead I would expect that you could bind to just the container like this:
This does not work today and you get the following error message:
Invalid blob path specified : 'input-container'. Blob identifiers must be in the format 'container/blob'
Proposed Change
The text was updated successfully, but these errors were encountered: