Hi everyone, I’m running into a strange issue when using environment variables for Azure Storage credentials in n8n (running on a Kubernetes pod).
I’m setting the storage account name and key as environment variables on the pod:
N8N_CI_AZURE_USERNAME=<account-name>
N8N_CI_AZURE_STORAGE_KEY=<account-key>
Then in n8n, within the Azure Storage Shared Key API credential, I’m referencing them like this:
-
Account:
{{ $env.N8N_CI_AZURE_USERNAME }} -
Key:
{{ $env.N8N_CI_AZURE_STORAGE_KEY }}
However, when I try to select a container in the Azure > Get Blob node, I get this error:
Could not load list
ERR_INVALID_URL - Invalid URL
If I replace the Account field with the actual fixed account name (not the env variable) but still use the env variable for the Key, everything works normally.
So it seems like using an env variable specifically for the Account field breaks the URL formation.
Has anyone seen this before?
Is this a limitation, a parsing bug, or am I missing something about how env vars resolve inside credentials?
Information on your n8n setup
- n8n version: 1.114.4
- Running n8n via (Docker, npm, n8n cloud, desktop app): docker

