blob: 13cf897e9179c6d0283b1f03890a4b4d4cb102af [file] [log] [blame]
.. Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
.. Unless required by applicable law or agreed to in writing,
software distributed under the License is distributed on an
KIND, either express or implied. See the License for the
specific language governing permissions and limitations
under the License.
Azure Blob Storage Transfer Operator
The Blob service stores text and binary data as objects in the cloud.
The Blob service offers the following three resources: the storage account, containers, and blobs.
Within your storage account, containers provide a way to organize sets of blobs.
For more information about the service visit `Azure Blob Storage API documentation <>`_.
Before you begin
Before using Blob Storage within Airflow you need to authenticate your account with Token, Login and Password.
Please follow Azure
`instructions <>`_
to do it.
TOKEN should be added to the Connection in Airflow in JSON format, Login and Password as plain text.
You can check `how to do such connection <>`_.
See following example.
Set values for these fields:
.. code-block::
Connection Id: wasb_default
Login: Storage Account Name
Password: KEY1
Extra: {"sas_token": "TOKEN"}
.. _howto/operator:AzureBlobStorageToGCSOperator:
Transfer Data from Blob Storage to Google Cloud Storage
Operator transfers data from Azure Blob Storage to specified bucket in Google Cloud Storage
To get information about jobs within a Azure Blob Storage use:
Example usage:
.. exampleinclude:: /../../airflow/providers/microsoft/azure/example_dags/
:language: python
:start-after: [START how_to_azure_blob_to_gcs]
:end-before: [END how_to_azure_blob_to_gcs]