azure_storage
azure_storage · Azure Database for PostgreSQL extension for importing from and exporting to Azure Storage blobs from SQL.
Overview
| ID | Extension | Package | Version | Category | License | Language |
|---|---|---|---|---|---|---|
| 100962 | azure_storage | azure_storage | 1.9 | ETL | Unknown | C |
PostgreSQL · 12, 13, 14, 15, 16, 17, 18
Usage
Sources:
- Azure Storage extension overview
- Azure Storage extension configuration
- Azure Storage function reference
azure_storage is a Microsoft-managed extension for moving data between Azure Database for PostgreSQL Flexible Server and Azure Blob Storage with SQL. It supports listing, importing, and exporting blobs; it is not a portable extension for self-managed PostgreSQL.
Core Workflow
First allow the extension and load its library through the Flexible Server configuration described by Microsoft, then restart when required and create it in every database that will use it. Microsoft recommends managed identity instead of Shared Key authentication.
The role that registers accounts must be a member of azure_storage_admin. Other roles need an explicit azure_storage.account_user_add grant before using storage functions. The managed identity also needs appropriate Azure data-plane permissions, such as Blob Data Reader for reads or Blob Data Contributor for writes.
Main Objects
azure_storage.account_add,azure_storage.account_remove, andazure_storage.account_listmanage storage-account registrations.azure_storage.account_user_addandazure_storage.account_user_removemanage database-role access.azure_storage.blob_listlists objects;azure_storage.blob_getimports rows;azure_storage.blob_putexports rows.azure_storage.options_csv_get,azure_storage.options_tsv,azure_storage.options_binary, andazure_storage.options_parquetbuild decoder options.
Caveats
Format and compression can be inferred from a blob suffix or supplied explicitly. Supported formats include CSV, TSV, text-like files, PostgreSQL binary, and Parquet; supported compression depends on the encoder. Account keys are sensitive credentials, so prefer managed identity and rotate any Shared Keys. Network access, container existence, role allowlists, and Azure IAM are all separate prerequisites. Loading the library and changing server-level settings can require a restart.