Add Azure Storage Files connector and trigger samples - #159
Merged
Conversation
…n and automation scripts
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
niveathika
approved these changes
Aug 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Purpose
The
ballerinax/azure.storage.filesconnector and its file listener have no usage samples in the connector catalog underintegrator-default-profile/connectors/. This PR adds them so the Azure Files connector and trigger are represented alongside the other connector samples.Goals
Provide two minimal, self-contained samples that show the two ways the Azure Files connector is used:
Approach
Two new packages, both following the existing connector-sample conventions in this repo (same file skeleton,
org = "wso2",distribution = "2201.13.1",[build-options] sticky = true, kebab-casetitle):integrator-default-profile/connectors/azure.storage.files_connector_sampleconfig.bal—accountName,accountKey,shareNameasconfigurablevalues.connections.bal— afinal files:Clientbuilt from those values.automation.bal— uploads a local file to/reports/q1-report.pdfand verifies it exists viahasFile, withon failerror logging.integrator-default-profile/connectors/azure.storage.files_trigger_sampleconfig.bal— the same threeconfigurablevalues.main.bal— afiles:Listeneron the share (5s polling) with aservice /incomingwhoseonFileJsonremote function logs the payload;@files:FunctionConfigdeletes the file after successful processing and moves it to/failedon error.No credentials are committed — all auth values are
configurable, andConfig.tomlis gitignored.User stories
As a developer evaluating WSO2 Integrator, I want a runnable reference for the Azure Files connector and trigger so I can see the client setup, auth shape, and listener/
FunctionConfigsemantics without reading the connector API docs end to end.Release note
Added Azure Storage Files connector and trigger samples to the connector sample catalog.
Documentation
N/A — connector samples in this directory are not separately documented; they are surfaced through the connector catalog.
Training
N/A
Certification
N/A — adding samples has no impact on certification exams.
Marketing
N/A
Automation tests
Security checks
accountName,accountKeyandshareNameare allconfigurablewith no defaults, and each package's.gitignoreexcludesConfig.toml.Samples
The two packages added by this PR are themselves the samples. Neither is registered in
.github/workflows/projects.json, so no Docker image is built or pushed for them — matching how every other connector sample in this directory is handled.Related PRs
wso2/docs-integrator#617
Migrations (if applicable)
N/A
Test environment
distribution = "2201.13.1".Learning
Modelled the package layout and file split on the existing connector samples in this directory (e.g.
github_connector_sample), and the listener's@files:FunctionConfigpost-processing options (afterProcess,afterError.moveTo) on theballerinax/azure.storage.filesconnector API.