Beginner’s Tutorial: Manage Azure Storage Account Container & Blob with n8n

This beginner-friendly n8n workflow shows you how to generate AI images using OpenAI, store them in Azure Blob Storage, and manage blob containers, all with zero code.
👤 Who’s it for
This workflow is perfect for:
- Beginners learning Azure + OpenAI integration
- No-code developers experimenting with image generation
- Cloud learners who want hands-on Blob Storage use cases
- Anyone who wants to automate storing AI-generated content in the cloud
⚙️ How it works / What it does
- 🖱️ Trigger the workflow manually using the
Execute Workflow
node.
- ✏️ Use the
Edit Fields
node to input:
containerName
(e.g., demo-images
)
imageIdea
(e.g., "a robot holding a coffee cup")
- 📦 Create a new Azure Blob container (
Create container
).
- 🤖 Use an OpenAI-powered Prompt Generation Agent to craft the perfect image prompt.
- 🎨 Generate an image using OpenAI’s DALL·E model.
- ☁️ Upload the generated image to Azure Blob Storage (
Create Blob
).
- 📂 List blobs in the container (
Get many blobs
).
- 🧹 Delete any blob as needed (
Delete Blob
).
- (Optional) 🗑️ Remove the entire container (
Delete container
).
🔧 How to set up
-
🧠 Set up OpenAI
- Create an OpenAI account and get your API key.
- In n8n, go to Credentials → OpenAI and paste your key.
-
🪣 Set up Azure Blob Storage
- Log in to your Azure Portal.
- Create a Storage Account (e.g.,
mystorageaccount
).
- Go to Access Keys tab and copy:
- Storage Account Name
- Key1
- In n8n, create a new Azure Blob Storage Credential using:
- Account Name = your storage account name
- Access Key = key1 value
📝 This demo uses Access Key authentication. You can also configure Shared Access Signatures (SAS) or OAuth in production setups.
-
Run the Workflow
- Enter your image idea and container name.
- Click “Execute Workflow” to test it.
📋 Requirements
Requirement |
Description |
Azure Storage Account |
With container-level read/write access |
OpenAI API Key |
For image and prompt generation |
n8n Version |
v1.0+ recommended |
Image Credits |
OpenAI charges tokens for DALL·E image creation |
🛠️ How to customize the workflow
🧠 Adjust Prompt Generation
Update the Prompt Agent to include:
- Specific style (3D, anime, cyberpunk)
- Brand elements
- Multiple language options
📁 Organize by Date/User
Modify the containerName
to auto-include:
- Date (e.g.,
images-2025-08-20
)
- Username or session ID
📤 Send Image Output
- Add Slack, Telegram, or Email nodes to deliver the image
- Create public links using Azure’s blob permissions
🔁 Cleanup Logic
- Auto-delete blobs after X days
- Add versioning or backup logic