LocalFilesystemToWasbOperator

Microsoft Azure

Uploads a file to Azure Blob Storage.

View on GitHub

Last Updated: Oct. 23, 2022

Access Instructions

Install the Microsoft Azure provider package into your Airflow environment.

Import the module into your DAG file and instantiate it with your desired params.

Parameters

file_pathRequiredPath to the file to load. (templated)
container_nameRequiredName of the container. (templated)
blob_nameRequiredName of the blob. (templated)
wasb_conn_idReference to the wasb connection.
create_containerAttempt to create the target container prior to uploading the blob. This is useful if the target container may not exist yet. Defaults to False.
load_optionsOptional keyword arguments that WasbHook.load_file() takes.

Documentation

Uploads a file to Azure Blob Storage.

Was this page helpful?