{
 "kind": "api",
 "slug": "azure-blob-storage",
 "path": "apis/azure-blob-storage/",
 "name": "Azure Blob Storage",
 "logo": "https://agentgid.com/media/avatars/azure.png",
 "maker": "Microsoft",
 "density": "full",
 "crumbs": [
  [
   "APIs",
   "apis/"
  ],
  [
   "File storage and media CDN",
   "apis/storage/"
  ]
 ],
 "lead": "Store and serve files on Microsoft Azure.",
 "chips": [
  {
   "label": "File storage and media CDN",
   "path": "apis/storage/"
  },
  {
   "label": "Official MCP server"
  }
 ],
 "primary": {
  "label": "Copy prompt for your agent",
  "copy": "Store user uploads in Azure Blob Storage with @azure/storage-blob 12.34.0 and DefaultAzureCredential on the server (account name from AZURE_STORAGE_ACCOUNT_NAME); for browser uploads, have the server hand out short-lived user delegation SAS links; never ship the account key or connection string to the browser."
 },
 "links": [
  {
   "label": "Website",
   "href": "https://azure.microsoft.com/en-us/products/storage/blobs"
  },
  {
   "label": "Pricing",
   "href": "https://azure.microsoft.com/en-us/pricing/details/storage/blobs/"
  },
  {
   "label": "GitHub",
   "href": "https://github.com/Azure/azure-sdk-for-js"
  }
 ],
 "track": "Outages, price changes and new versions on your dashboard",
 "verdicts": [
  {
   "key": "price",
   "label": "Price",
   "value": "Paid",
   "status": "info",
   "sub": "from $0.004 per 10,000",
   "quote": null,
   "note": "No free tier on the pricing page. As reported on the official pricing page, checked Oct 10, 2026.",
   "src": "https://azure.microsoft.com/en-us/pricing/details/storage/blobs/"
  },
  {
   "key": "commercial",
   "label": "Commercial use",
   "value": "With conditions",
   "status": "cond",
   "sub": null,
   "quote": "\"license\":\"MIT\"",
   "note": "Allowed as a paying Azure customer under Microsoft's terms; the client libraries are MIT.",
   "src": "https://registry.npmjs.org/@azure/storage-blob/latest"
  },
  {
   "key": "key",
   "label": "Key & sign-up",
   "value": "API key, server only",
   "status": "info",
   "sub": "Env var AZURE_STORAGE_ACCOUNT_NAME (quickstart, passwordless) or AZURE_STORAGE_CONNECTION_STRING (key-based)",
   "quote": "Microsoft recommends using Microsoft Entra ID with managed identities to authorize requests to Azure Storage.",
   "note": "Microsoft Entra ID (OAuth 2.0 token via DefaultAzureCredential, recommended), shared access signatures (SAS), or the account key (Shared Key).",
   "src": "https://learn.microsoft.com/en-us/rest/api/storageservices/put-blob"
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Official MCP server",
   "status": "yes",
   "sub": "SDK",
   "quote": "For example, you can use GitHub Copilot agent mode with the Azure MCP Server to list Azure storage accounts or run KQL queries on Azure databases.",
   "note": " Our agent check: 4 of 6 (Nov 13, 2026).",
   "src": "https://learn.microsoft.com/en-us/azure/developer/azure-mcp-server/overview"
  }
 ],
 "vfoot": "Checked against the maker's official pages, pricing on Oct 10, 2026.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What Azure Blob Storage does",
   "parts": [
    {
     "t": "prose",
     "text": "Azure Blob Storage is Microsoft's online storage for files of any kind, such as photos, videos, documents and backups. Your app saves a file once and gets a web address for it, then reads it back or lets people download it. You pay each month for the space used and for each read and write, with cheaper tiers for files you rarely open."
    },
    {
     "t": "list",
     "items": [
      "Azure Blob Storage is one of 24 APIs in the File storage and media CDN category on AgentGid.",
      "It is not among the 16 that can be started for free.",
      "It ships an official MCP server, like 4 others here.",
      "Its official SDK is the 1st most downloaded in the category (42.6M a week)."
     ],
     "muted": true
    },
    {
     "t": "h3",
     "text": "What people build with it"
    },
    {
     "t": "uses",
     "items": [
      {
       "title": "Photos and documents users upload",
       "text": "Keep profile pictures, attachments and PDFs your users upload, and show them on your pages straight from storage.",
       "idea": false
      },
      {
       "title": "Backups and long-term archives",
       "text": "Keep database dumps and old records cheaply, moving them to the cool, cold or archive tier as they age.",
       "idea": false
      },
      {
       "title": "Video and audio for your site",
       "text": "Store course videos, podcasts or music files and stream them to visitors.",
       "idea": false
      },
      {
       "title": "A simple website without a server",
       "text": "Put the HTML, CSS, scripts and images of a landing page into storage and let Azure serve it as a website.",
       "idea": false
      },
      {
       "title": "List what is stored",
       "text": "Show an admin page with every file in a folder-like container, for example all invoices of one customer.",
       "idea": false
      },
      {
       "title": "Files an AI assistant reads later",
       "text": "Keep the documents a support bot should know about in one container, so a search service can index them.",
       "idea": true
      }
     ]
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "Azure Blob Storage popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "42.5M",
       "l": "SDK downloads a week",
       "d": "+22.2% on the 4-week average",
       "up": true
      },
      {
       "n": "148",
       "l": "public agent repos use its SDK"
      },
      {
       "n": "2,301",
       "l": "GitHub stars, Azure/azure-sdk-for-js"
      }
     ]
    },
    {
     "t": "small",
     "text": "SDK downloads from npm and PyPI, weekly. Numbers as of Nov 17, 2026."
    }
   ]
  },
  {
   "id": "pricing",
   "nav": "Pricing and limits",
   "h2": "Pricing",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Free tier",
       "v": "None"
      },
      {
       "l": "Cheapest plan",
       "v": "No monthly plan"
      },
      {
       "l": "Usage price",
       "v": "LRS, East US, first 50 TB: Hot $0.0208/GB-month, Cool $0.0152, Cold $0.0036, Archive $0.00099; Hot writes $0.05 and reads $0.004 per 10,000"
      },
      {
       "l": "Plans",
       "v": "Prices vary by region and redundancy; figures are from Microsoft's retail prices API (prices.azure.com) because the pricing page renders prices client-side."
      }
     ]
    },
    {
     "t": "h3",
     "text": "What one action costs"
    },
    {
     "t": "table",
     "head": [
      "Action",
      "Price"
     ],
     "num": true,
     "rows": [
      [
       "1 GB stored for a month, hot tier, LRS, East US (first 50 TB)",
       "$0.0208"
      ],
      [
       "1 GB stored for a month, cool tier, LRS, East US",
       "$0.0152"
      ],
      [
       "1 GB stored for a month, cold tier, LRS, East US",
       "$0.0036"
      ],
      [
       "1 GB stored for a month, archive tier, LRS, East US",
       "$0.00099"
      ],
      [
       "10,000 writes (uploads), hot tier, LRS, East US",
       "$0.05"
      ],
      [
       "10,000 reads, hot tier, East US",
       "$0.004"
      ]
     ]
    },
    {
     "t": "small",
     "text": "As reported on the official pricing page, checked Oct 10, 2026. Prices change: confirm before you buy.",
     "link": "azure.microsoft.com/en-us/pricing/details/storage/blobs",
     "href": "https://azure.microsoft.com/en-us/pricing/details/storage/blobs/"
    }
   ]
  },
  {
   "id": "limits",
   "nav": null,
   "spy_as": "pricing",
   "h2": "Limits",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Standard GPv2 account in East US and other listed regions",
       "v": "40,000 requests per second by default",
       "src": "https://learn.microsoft.com/en-us/azure/storage/common/scalability-targets-standard-account"
      },
      {
       "l": "Standard GPv2 account in other regions",
       "v": "20,000 requests per second by default",
       "src": "https://learn.microsoft.com/en-us/azure/storage/common/scalability-targets-standard-account"
      },
      {
       "l": "Any",
       "v": "Containers and blobs per account are not limited",
       "src": "https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blobs-introduction"
      }
     ]
    },
    {
     "t": "small",
     "text": "From the official docs.",
     "link": "learn.microsoft.com/en-us/azure/storage/common/scalability-targets-standard-account",
     "href": "https://learn.microsoft.com/en-us/azure/storage/common/scalability-targets-standard-account"
    }
   ]
  },
  {
   "id": "access",
   "nav": "Access and terms",
   "h2": "Key and access",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "How it signs in",
       "v": "Microsoft Entra ID (OAuth 2.0 token via DefaultAzureCredential, recommended), shared access signatures (SAS), or the account key (Shared Key)."
      },
      {
       "l": "Environment variable",
       "v": "AZURE_STORAGE_ACCOUNT_NAME (quickstart, passwordless) or AZURE_STORAGE_CONNECTION_STRING (key-based)",
       "code": true
      },
      {
       "l": "Safe in browser code",
       "v": "No, keep it on your server",
       "status": "no"
      },
      {
       "l": "Card at sign-up",
       "v": "Not stated on the pages we read"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Steps only a person can do"
    },
    {
     "t": "list",
     "items": [
      "Create an Azure account and subscription, then a storage account (pick region and redundancy). Put the account name in .env as AZURE_STORAGE_ACCOUNT_NAME.",
      "Assign the Storage Blob Data Contributor role to your user (for local work) and to the app's managed identity (in production). Use DefaultAzureCredential; no key in code.",
      "Sign in locally with the Azure CLI. Run the app; DefaultAzureCredential picks up the az login session."
     ]
    }
   ]
  },
  {
   "id": "terms",
   "nav": null,
   "spy_as": "access",
   "h2": "Commercial use and your data",
   "parts": [
    {
     "t": "prose",
     "text": "A paid Microsoft Azure service under the Azure terms, fine for commercial apps. The official client libraries are open source under the MIT license."
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In a paid app",
       "v": "With conditions",
       "status": "cond",
       "sub": "Allowed as a paying Azure customer under Microsoft's terms; the client libraries are MIT.",
       "quote": "\"license\":\"MIT\"",
       "src": "https://registry.npmjs.org/@azure/storage-blob/latest"
      },
      {
       "l": "inside-app-bundle",
       "v": "With conditions",
       "status": "cond",
       "sub": "Shipping the MIT client library in your app is allowed with its license notice; keys and connection strings must not ship in it.",
       "quote": "\"license\":\"MIT\"",
       "src": "https://registry.npmjs.org/@azure/storage-blob/latest"
      },
      {
       "l": "Where data is stored",
       "v": "You pick the primary region; LRS keeps copies in one datacenter there, other options add zones or a second region.",
       "quote": "Whether your data is replicated from a primary region to a second, geographically distant region, to protect against regional disasters (geo-replication).",
       "src": "https://learn.microsoft.com/en-us/azure/storage/common/storage-redundancy"
      }
     ]
    }
   ]
  },
  {
   "id": "errors",
   "nav": null,
   "spy_as": "access",
   "h2": "Errors to handle",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "403 AuthenticationFailed",
       "v": "The request's signature or token is wrong.",
       "sub": "Check the key, SAS or token, and the clock on your machine; prefer DefaultAzureCredential."
      },
      {
       "l": "404 ContainerNotFound / BlobNotFound",
       "v": "The container or file does not exist under that name.",
       "sub": "Check the lowercase container name and the blob path; create the container first."
      },
      {
       "l": "409 ContainerAlreadyExists",
       "v": "You tried to create a container that is already there.",
       "sub": "Use createIfNotExists, or ignore this error."
      },
      {
       "l": "503 ServerBusy",
       "v": "The account is over its request, ingress or egress limit, or the server is busy.",
       "sub": "Retry with exponential backoff; spread load or request higher limits."
      },
      {
       "l": "500 OperationTimedOut",
       "v": "The operation did not finish in time and may or may not have succeeded.",
       "sub": "Check the current state of the blob before retrying."
      }
     ]
    }
   ]
  },
  {
   "id": "agent",
   "nav": "For agents",
   "h2": "Use it from an agent",
   "parts": [
    {
     "t": "rows",
     "rows": [
      {
       "l": "Our agent check",
       "v": "4 of 6: llms.txt no, OpenAPI no, SDK yes, MCP yes, status page yes, AI assistants allowed yes",
       "sub": "Checked Nov 13, 2026."
      },
      {
       "l": "MCP server",
       "v": "Azure MCP Server (npm @azure/mcp; latest tag 4.0.0-beta.6 on 2026-11-10)",
       "sub": "NPM : @azure/mcp"
      },
      {
       "l": "npm",
       "v": "npm install @azure/storage-blob",
       "code": true
      },
      {
       "l": "PyPI",
       "v": "pip install azure-storage-blob",
       "code": true
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "Azure Blob Storage",
       "me": true,
       "facts": [
        "from $0.004 per 10,000",
        "No free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Backblaze B2 Cloud Storage",
       "why": "Pick Backblaze B2 for S3-compatible file and backup storage outside the Azure ecosystem.",
       "path": "apis/backblaze-b2/",
       "facts": [
        "from $0.004 per 10,000",
        "Free tier",
        "Official MCP"
       ]
      },
      {
       "name": "Cloudinary",
       "why": "Pick Cloudinary when your files are mostly images and videos that need resizing and optimized delivery.",
       "path": "apis/cloudinary/",
       "facts": [
        "Free plan",
        "Free tier"
       ]
      },
      {
       "name": "UploadThing",
       "why": "Pick UploadThing when you mainly want ready-made file uploads with server-side auth for a web app.",
       "path": "apis/uploadthing/",
       "facts": [
        "from $0.08 per GB over",
        "Free tier"
       ]
      }
     ],
     "more": "All file storage and media cdn APIs",
     "more_path": "apis/storage/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "prompt",
     "text": "Store user uploads in Azure Blob Storage with @azure/storage-blob 12.34.0 and DefaultAzureCredential on the server (account name from AZURE_STORAGE_ACCOUNT_NAME); for browser uploads, have the server hand out short-lived user delegation SAS links; never ship the account key or connection string to the browser."
    },
    {
     "t": "steps",
     "items": [
      {
       "text": "Install the Azure Storage package and Azure Identity for sign-in without keys.",
       "code": "npm install @azure/storage-blob\nnpm install @azure/identity",
       "src": "https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-nodejs"
      },
      {
       "text": "Give your Microsoft Entra account the Storage Blob Data Contributor role on the storage account, then sign in locally with az login.",
       "code": "az login",
       "src": "https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-nodejs"
      },
      {
       "text": "Connect with DefaultAzureCredential and the account name from AZURE_STORAGE_ACCOUNT_NAME, then create a container and upload.",
       "code": "const blobServiceClient = new BlobServiceClient(\n  `https://${accountName}.blob.core.windows.net`,\n  new DefaultAzureCredential()\n);",
       "src": "https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-nodejs"
      }
     ]
    },
    {
     "t": "h3",
     "text": "First request"
    },
    {
     "t": "tabs",
     "label": "First request",
     "items": [
      {
       "tab": "Request",
       "code": "PUT https://myaccount.blob.core.windows.net/mycontainer/myblockblob HTTP/1.1\nx-ms-version: 2015-02-21\nx-ms-date: <date>\nContent-Type: text/plain; charset=UTF-8\nx-ms-blob-type: BlockBlob\nAuthorization: SharedKey myaccount:YhuFJjN4fAR8/AmBrqBz7MG2uFinQ4rkh4dscbj598g=\nContent-Length: 11\n\nhello world",
       "intro": "From the Put Blob reference, trimmed (metadata and expiry headers removed); the SharedKey value is Microsoft's sample."
      },
      {
       "tab": "Response",
       "code": "HTTP/1.1 201 Created\nContent-MD5: sQqNsWTgdUEFt6mb5y4/5Q==\nx-ms-content-crc64: 77uWZTolTHU\nDate: <date>\nETag: \"0x8CB171BA9E94B0B\"\nLast-Modified: <date>\nServer: Windows-Azure-Blob/1.0 Microsoft-HTTPAPI/2.0"
      }
     ]
    },
    {
     "t": "h3",
     "text": "Mistakes to avoid"
    },
    {
     "t": "mistakes",
     "items": [
      {
       "dont": "Putting AZURE_STORAGE_CONNECTION_STRING (it contains the account key) into front-end code or a public repo.",
       "fix": "Use DefaultAzureCredential on the server; give browsers only short-lived user delegation SAS links.",
       "why": "The key opens every file in the account."
      },
      {
       "dont": "Signing SAS links with the account key (service or account SAS) by default.",
       "fix": "Use a user delegation SAS, signed with Microsoft Entra credentials.",
       "why": "Microsoft recommends it because it does not depend on the account key."
      },
      {
       "dont": "Container names with capital letters or underscores, like UserUploads or user_uploads.",
       "fix": "Use 3-63 lowercase letters, numbers and single dashes, like user-uploads.",
       "why": "Container names become part of the address and must be valid DNS names."
      },
      {
       "dont": "Treating an authorization error right after granting the role as a broken setup.",
       "fix": "Wait a minute or two (rarely up to eight) after assigning Storage Blob Data Contributor, then retry.",
       "why": "Role assignments take time to spread through Azure."
      },
      {
       "dont": "Moving fresh files straight to the archive tier and reading them the next day.",
       "fix": "Keep files that are read often in hot; use archive only for data kept 180+ days and rarely read.",
       "why": "Archive is offline (hours to read back) and early moves or deletes are charged."
      }
     ]
    }
   ]
  },
  {
   "id": "faq",
   "nav": "Questions",
   "h2": "Questions",
   "parts": [
    {
     "t": "faq",
     "items": [
      {
       "q": "Is there a free tier?",
       "a": "No permanent free tier is stated on the pricing page; new Azure accounts get a $200 credit for 30 days.",
       "evidence": {
        "url": "https://azure.microsoft.com/en-us/pricing/details/storage/blobs/",
        "quote": "Get free cloud services and a $200 credit to explore Azure for 30 days."
       }
      },
      {
       "q": "Can visitors open a file by its link?",
       "a": "Only if you allow it. Anonymous access is off by default; use short-lived signed links (SAS) or a static website instead.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview",
        "quote": "A shared access signature (SAS) provides secure delegated access to resources in your storage account."
       }
      },
      {
       "q": "Can I host a website in it?",
       "a": "Yes, static sites only (HTML, CSS, JavaScript, images); files go into a container named $web.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-static-website",
        "quote": "Add your website's files to the $web container to make them accessible through the static website's primary endpoint."
       }
      },
      {
       "q": "Where are my files kept?",
       "a": "With the cheapest redundancy (LRS) in one datacenter in the region you choose; other options copy across zones or regions.",
       "evidence": {
        "url": "https://learn.microsoft.com/en-us/azure/storage/common/storage-redundancy",
        "quote": "Locally redundant storage (LRS) replicates the data within your storage accounts to a single physical datacenter located in the primary region of your choice."
       }
      }
     ]
    }
   ]
  }
 ],
 "glance": [
  [
   "Maker",
   "Microsoft"
  ],
  [
   "Category",
   "File storage and media CDN"
  ],
  [
   "Price",
   "from $0.004 per 10,000"
  ],
  [
   "Official SDK",
   "npm @azure/storage-blob, PyPI azure-storage-blob"
  ],
  [
   "Latest SDK",
   "12.34.0 on npm"
  ],
  [
   "Agent check",
   "4 of 6"
  ],
  [
   "Pricing checked",
   "Oct 10, 2026"
  ]
 ],
 "good": [
  "You need an Azure account and a subscription; new accounts get a $200 credit for 30 days.",
  "Anyone with the account key can read and change all your files. Keep it on the server, or better, sign in with Microsoft Entra instead of keys.",
  "Cheaper tiers have minimum stay times (cool 30, cold 90, archive 180 days); deleting or moving earlier costs a penalty."
 ],
 "checked_line": "Read by AgentGid from 27 official pages, card checked Nov 10, 2026; usage numbers update daily."
}