Share via

Azure cli directory create error

Fruthy 1 Reputation point
2022-05-06T14:17:52.35+00:00

So, I need to create a directory for setting up a mongodb peering connection and when I run this command in the cli this error comes up:

az storage directory create --name [foldername] --share-name [sharename] --account-name [accname] --account-key [acc key]

I know it has to do with the key since it has characters in it that cause the error, but without the key it will give a permission error.

199741-error.jpg

Azure Key Vault
Azure Key Vault

An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.


1 answer

Sort by: Most helpful
  1. Alfredo Revilla - Upwork Top Talent | IAM SWE SWA 27,551 Reputation points Moderator
    2022-06-15T00:50:42.5+00:00

    Hello @Fruthy , the error states the resource name contains invalid characters. Resource group names can only include alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed characters.

    For more information about naming please take a look to Naming rules and restrictions for Azure resources.

    Let us know if this answer was helpful to you or if you need additional assistance. If it was helpful, please remember to accept it so that others in the community with similar questions can more easily find a solution.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.