Immutable solution version
Azure container and account names have strict lowercase rules
Complete solution
Slugify container names to lowercase with single dashes before creation, and validate length.
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.
Context: 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.
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 1 · 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>