Azure Blob
This guide explains how to connect Azure Storage to the Weekerp API.
This guide explains how to connect Azure Storage to the Weekerp API.
It includes the full process of creating credentials and registering them in Weekerp.
Required information for connection
To allow Weekerp to access your images, you need to provide the following:
- account key
- account name
- container name
Getting credentials (Azure)
- Go to Azure Portal → Storage accounts → Create (create a Storage account)
- Select the created Storage account → Security + networking → Access keys → key1 → Copy (Account Key)
- Select the created Storage account → Data storage → Containers → Add container → Create (Container Name)
- Log in to Weekerp → Sources → Add Source → Microsoft Azure Storage
- Enter Account Name / Account Key / Container Name in Weekerp → Next → Enter Alias → Create
Below is the same guide shown as step-by-step screenshots.
1. In Azure Portal, search for “Storage accounts”
2. Click “Create”
3. Create a Storage account
- Enter the account name
- Click “Review + create” at the bottom
4. Click “Create” at the bottom
5. Issue an access key — search and open Storage accounts
- Search for “Storage accounts”
- Click the Storage accounts search result
6. Click the Storage account you created
7. Open Access keys
- In the left navigation, click “Security + networking”
- Click “Access keys”
8. View the Access Key
- Locate “key1”
- Click the “Show” button
9. Copy the Access Key
- Confirm the key value
- Copy it to clipboard
10. Verify the key format
A copied key looks like this:
mu1L4j9LQL4uwoai20+fFD6dE6Z0JCU0KYmgpooyuEDz/1GJWwirCzrokVXjCqRBeFuoIPXsBgTH+AStC6O0qw==
11. Create storage container — search for “Storage accounts” in Azure Portal
12. Select the Storage account
13. Open Containers
- In the left navigation, click “Data storage”
- Click “Containers”
14. Click “Add container”
15. Enter the container name and create it
- Enter the container name
- Click “Create” at the bottom
16. Verify the container name — search for “Storage accounts” in Azure Portal
17. Click the Storage Account you want to connect
18. Open Containers
- In the left navigation, click “Data storage”
- Click “Containers”
19. Confirm the target container name
20. You should have the following information ready
- Account Name (Step #6, Step #17)
- Account Key : (Step #9)
- Container Name (Step #19)
21. In Weekerp, click “Add Source” at the top-right
- Log in to Weekerp
- Click the “Source” tab
- Click “Add Source”
22. Select “Microsoft Azure Storage”
23. Enter credential information
- Enter Account Name
- Enter Account Key
- Enter Container Name
- Click “Next”
BasePath sets the root directory for origin requests.
If files are stored like below, BasePath can be set to / or /assets.
- /dog.jpg
- /assets/cat.png
Request example
cdn.weekerp.com/image/{alias}/dog.jpg
Origin request
- With BasePath set: https://static.example.com/**`assets`**/dog.jpg
- Without BasePath: https://static.example.com/dog.jpg
For more details, please refer to BasePath.
24. Enter the source alias (alias)
- Enter the alias you want to use
- Create the alias
25. Verify the created data source
Use it like this:
cdn.weekerp.com/image/weekerp-assets/dog.jpg
cdn.weekerp.com/image/weekerp-assets/dog.jpg?ai=Rotate the image to the right
cdn.weekerp.com/video/weekerp-assets/test-video.mp4
All settings are complete.
Typically, it takes 5–10 minutes to propagate the connection across all global environments.
