@@ -617,7 +617,7 @@ public void run(
617
617
@BlobTrigger (
618
618
name = " content" ,
619
619
path = " images/{name}" ,
620
- connection = " MyStorage " ) BlobClient blob,
620
+ connection = " AzureWebJobsStorage " ) BlobClient blob,
621
621
@BindingName (" name" ) String file,
622
622
ExecutionContext ctx)
623
623
{
@@ -631,14 +631,32 @@ public void run(
631
631
@BlobTrigger (
632
632
name = " content" ,
633
633
path = " images/{name}" ,
634
- connection = " MyStorage " ) BlobContainerClient container,
634
+ connection = " AzureWebJobsStorage " ) BlobContainerClient container,
635
635
ExecutionContext ctx)
636
636
{
637
637
container. listBlobs()
638
638
.forEach(b - > ctx. getLogger(). info(b. getName()));
639
639
}
640
640
```
641
641
642
+ ** Note:** Only one SDK type can be used at a time at the moment.
643
+ ``` java
644
+ @FunctionName (" checkAgainstInputBlob" )
645
+ public void run(
646
+ @BlobInput (
647
+ name = " inputBlob" ,
648
+ path = " inputContainer/input.txt" ) BlobClient inputBlob,
649
+ @BlobTrigger (
650
+ name = " content" ,
651
+ path = " images/{name}" ,
652
+ connection = " AzureWebJobsStorage"
653
+ dataType = " string" ) String triggerBlob,
654
+ ExecutionContext ctx)
655
+ {
656
+ ctx. getLogger(). info(" Size = " + inputBlob. getProperties(). getBlobSize());
657
+ }
658
+ ```
659
+
642
660
* ` dataType ` on ** @BlobTrigger ** is ** ignored** when you bind to an SDK-type.
643
661
* ` connection ` can be a connection string ** or** an identity-based prefix – both work with SDK-types.
644
662
@@ -681,6 +699,7 @@ This is the **first** SDK-type preview. We plan to:
681
699
682
700
Give it a try in a test function app and tell us how much faster your blob processing becomes!
683
701
702
+ ::: zone-end
684
703
685
704
## host.json properties
686
705
0 commit comments