Skip to main content

AccountNameInvalid: Invalid storage account name

The name supplied for a storage account doesn't meet Azure's naming rules. It must contain 3 to 24 characters and use only lowercase letters and digits.

What to check​

  1. Inspect the final name after Azure evaluates template expressions. Check its length and remove any uppercase letters, spaces or punctuation.
  2. When creating a new account, make sure the corrected name is also globally unique.

Official reference​

Microsoft Learn: Account name invalid