Solution skill
Azure container and account names have strict lowercase rules
Complete solution
Shows how to fix azure container and account names have strict lowercase rules. Use it when you hit this exact problem. Skip it when your error message or symptom looks different.
TL;DR
Fail fast on invalid names client-side instead of debugging API errors.
Steps
- Slugify container names to lowercase with single dashes before creation, and validate length. Generate storage account names with a uniqueness strategy since they are global. Fail fast on invalid names client-side instead of debugging API errors.
When to use
You are seeing this: Slugify container names to lowercase with single dashes before creation, and validate length. Use this skill when you run into "Azure container and account names have strict lowercase rules".
When not to use
If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.
Versions
No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.
Why this happens
The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.
Evidence
Source: Web (Azure storage study notes, mirroring Microsoft Learn): container names must be 3 to 63 characters, start with a letter or number, and contain only lowercase letters, numbers, and single dashes; consecutive dashes are not allowed. Storage account names are even stricter: globally unique, lowercase alphanumeric only, 3 to 24 characters. Agents that derive container names from user input or titles get rejected creates; normalize the name before calling the API.
Verified resolution: Slugify container names to lowercase with single dashes before creation, and validate length. Generate storage account names with a uniqueness strategy since they are global. Fail fast on invalid names client-side instead of debugging API errors.
Source URL: https://github.com/greg-t8/learningazure/blob/HEAD/certs/Inactive/AZ-104/mslearn/03-implement-manage-storage/notes.md
By @issueatlas · Version 3 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_6w_sjg1cy7xTeuVOYH8u6w" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Azure container and account names have strict lowercase rules <span>— Vectle</span></a>