liveBook · Manning

Storage account

As explained in Snowflake Data Engineering

An Azure storage account is a top-level resource that provides access to Azure Storage services and their data containers.

An Azure storage account is a top-level resource that provides access to Azure Storage services and their data containers. In a Snowflake pipeline, it holds files in a container that an external stage can access through a storage integration. section 3.1.1 section 5.2

Prepare a storage account for cloud-file ingestion by:

  • Creating or selecting an Azure resource group. section 5.2
  • Creating a uniquely named Storage account within that resource group. section 5.2
  • Creating a container, such as speedyservicefiles or orderfiles. section 3.1.1 section 5.2
  • Uploading a small set of sample JSON files before adding more files for continuous ingestion. section 5.2

Restaurant order files

A restaurant uses the Azure storage account bakeryorders001 and the orderfiles container. Snowflake restricts the integration to the container path azure://bakeryorders001.blob.core.windows.net/orderfiles/. section 3.1.1

use role ACCOUNTADMIN;
create storage integration BISTRO_INTEGRATION
  type = external_stage
  storage_provider = 'AZURE'
  enabled = true
  azure_tenant_id = '1234abcd-xxx-56efgh78'
  storage_allowed_locations = 
    ('azure://bakeryorders001.blob.core.windows.net/orderfiles/');

Use the Snowflake command to register the Azure storage account and restrict access to a specific container location. section 3.1.1

describe storage integration BISTRO_INTEGRATION;

Inspect the resulting storage integration to verify its Azure provider, tenant, and allowed storage location. section 3.1.1

How Snowflake Data Engineering covers it

How deep it goes
Explains resource creation, container setup, naming constraints, uploads, and integration inputs.
Examples
Uses bakeryorders001/orderfiles and speedyorders001/speedyservicefiles with sample JSON order files.
What it assumes
Assumes Azure account access, Azure administrative privileges for consent, and Snowflake integration privileges.
What you can do after
Operate/configure Azure resources and connect a container to Snowflake through a storage integration.
How it connects
Connects Azure Blob Storage, storage containers, storage integrations, external stages, and Snowflake.

Also explained in

Compare how 4 books explain storage account →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Snowflake Data Engineering. The section links point to the parts of the book it draws on.