azure-storage-blob-java
Manage Azure Blob Storage with Java SDK
Store and retrieve unstructured data efficiently using Azure Blob Storage. This skill provides complete Java SDK patterns for uploading, downloading, and managing blobs with proper authentication and error handling.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "azure-storage-blob-java". Upload a JSON configuration file to a container named 'configs' with blob name 'app-settings.json'
Expected outcome:
- Created BlobContainerClient for 'configs'
- Uploaded app-settings.json (2.4 KB) with content-type: application/json
- Blob URL: https://<account>.blob.core.windows.net/configs/app-settings.json
Using "azure-storage-blob-java". List all blobs in 'data/2024/' prefix and download each to local ./downloads folder
Expected outcome:
- Found 15 blobs with prefix 'data/2024/'
- Downloaded data/2024/report-q1.csv (1.2 MB)
- Downloaded data/2024/report-q2.csv (1.5 MB)
- Downloaded data/2024/summary.json (45 KB)
- Total: 15 files downloaded to ./downloads
Security Audit
SafeThis skill is pure documentation for Azure Storage Blob SDK for Java. Static analyzer detected 49 'external_commands' patterns and 1 'network' pattern, but all are FALSE POSITIVES. The backticks are markdown code block delimiters (```java, ```xml, ```bash), not shell command execution. The URL is a documentation example for environment variable configuration. No executable code, no command injection vectors, no malicious patterns detected.
Quality Score
What You Can Build
Cloud Application Developer
Build scalable applications that store user uploads, logs, or media files in Azure Blob Storage with proper authentication using DefaultAzureCredential or connection strings.
Data Engineer
Implement data lake patterns with hierarchical blob listing, metadata management, and streaming operations for large datasets.
DevOps Engineer
Automate backup and archival workflows with SAS token generation, blob copy operations, and lifecycle management.
Try These Prompts
Show me how to upload a text file to Azure Blob Storage using Java SDK with a connection string.
Create a blob container if it does not exist, then list all blobs with a specific prefix and download them to a local folder.
Generate a SAS token for a blob that allows read-only access for 24 hours, then show how to use it to download the blob without credentials.
Upload a large file using parallel upload with custom content type and metadata, handle retries on failure, and set appropriate HTTP headers for caching.
Best Practices
- Use DefaultAzureCredential for production deployments to avoid hardcoded credentials
- Set appropriate content-type and cache-control headers when uploading blobs
- Use SAS tokens with minimal permissions and short expiry times for shared access
- Implement retry policies and handle BlobStorageException for transient failures
- Use parallel upload options for files larger than 100 MB
Avoid
- Never commit connection strings or SAS tokens to source control
- Avoid using account keys in application code - prefer managed identities or SAS tokens
- Do not set SAS token expiry times longer than necessary for the use case
- Avoid downloading entire containers without pagination for large datasets
Frequently Asked Questions
What authentication methods does Azure Blob Storage SDK support?
How do I handle large file uploads efficiently?
What is the difference between BlobClient, BlobContainerClient, and BlobServiceClient?
How do I securely share blob access with external users?
Can I organize blobs in folders within a container?
How do I handle blob storage errors and retries?
Developer Details
Author
sickn33License
MIT
Repository
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-storage-blob-javaRef
main
File structure
📄 SKILL.md