Azure Blob Storage
Overview
Azure Blob Storage (ABS) is a scalable, fully managed, and highly reliable object storage solution offered by Microsoft Azure, designed to store and access data from anywhere in the world. It provides a secure and cost-effective way to store data, including common storage formats such as CSV and Parquet. Rill supports connecting to and reading from Azure Blob Storage using the following Resource URI syntax:
azure://<account>.blob.core.windows.net/<container>/path/file.csv
Authentication Methods
To connect to Azure Blob Storage, you can choose from five authentication options:
- Storage Account Key (recommended for cloud deployment)
- Connection String (alternative for cloud deployment)
- Shared Access Signature (SAS) Token (most secure, fine-grained control)
- Public (for publicly accessible containers - no authentication required)
- Azure CLI authentication (local development only - not recommended for production)
When you add data from Azure Blob Storage through the Rill UI, you'll see three authentication options:
-
Storage Account Key, Connection String, or SAS Token: The process follows two steps:
- Configure Authentication - Set up your Azure connector with credentials
- Configure Data Model - Define which container and objects to ingest The UI will automatically create both the connector file and model file for you.
-
Public: For publicly accessible containers, you skip the connector creation step and go directly to:
- Configure Data Model - Define which container and objects to ingest The UI will only create the model file (no connector file is needed).
Azure CLI authentication is only available through manual configuration. See Method 5: Azure CLI Authentication for setup instructions.
Method 1: Storage Account Key (Recommended)
Storage Account Key credentials provide reliable authentication for Azure Blob Storage. This method works for both local development and Rill Cloud deployments.
Using the UI
- Click Add Data in your Rill project
- Select Azure Blob Storage as the data model type
- In the authentication step:
- Choose Storage Account Key
- Enter your Storage Account name
- Enter your Storage Account Key
- In the data model configuration step, enter your SQL query
- Click Create to finalize
After the model YAML is generated, you can add additional model settings directly to the file.
Manual Configuration
If you prefer to configure manually:
Step 1: Create connector configuration
Create connectors/azure.yaml:
type: connector
driver: azure
azure_storage_account: rilltest
azure_storage_key: "{{ .env.AZURE_STORAGE_KEY }}"
Step 2: Add credentials to .env
AZURE_STORAGE_KEY=your_storage_account_key
Follow the Azure Documentation to retrieve your storage account keys. Then, create your first model.
Method 2: Connection String
Connection String provides an alternative authentication method for Azure Blob Storage.
Using the UI
- Click Add Data in your Rill project
- Select Azure Blob Storage as the data model type
- In the authentication step:
- Choose Connection String
- Enter your Connection String
- In the data model configuration step, enter your SQL query
- Click Create to finalize
After the model YAML is generated, you can add additional model settings directly to the file.
Manual Configuration
Step 1: Create connector configuration
Create connectors/azure_conn.yaml:
type: connector
driver: azure
azure_storage_connection_string: "{{ .env.AZURE_STORAGE_CONNECTION_STRING }}"
Step 2: Add credentials to .env
AZURE_STORAGE_CONNECTION_STRING=your_connection_string
Follow the Azure Documentation to retrieve your connection string. Then, create your first model.
Method 3: Shared Access Signature (SAS) Token
SAS tokens provide fine-grained access control with specific permissions and expiration times for secure access to your storage resources.
Using the UI
- Click Add Data in your Rill project
- Select Azure Blob Storage as the data model type
- In the authentication step:
- Choose SAS Token
- Enter your Storage Account name
- Enter your SAS Token
- In the data model configuration step, enter your SQL query
- Click Create to finalize
After the model YAML is generated, you can add additional model settings directly to the file.
Manual Configuration
Step 1: Create connector configuration
Create connectors/azure.yaml:
type: connector
driver: azure
azure_storage_account: rilltest
azure_storage_sas_token: "{{ .env.AZURE_STORAGE_SAS_TOKEN }}"
Step 2: Add credentials to .env
AZURE_STORAGE_SAS_TOKEN=your_sas_token
Follow the Azure Documentation to create your Azure SAS token. Then, create your first model.
Method 4: Public Containers
For publicly accessible Azure Blob Storage containers, you don't need to create a connector. Simply use the Azure URI directly in your model configuration.