Home > Azure > ‘The given share name\prefix is not a valid name’ error – Azure ‘New-AzureStorageShare’ command

‘The given share name\prefix is not a valid name’ error – Azure ‘New-AzureStorageShare’ command

Other day, while I was creating a shared location in Azure using Azure Power Shell cmdlets, I got below error

The given share name/prefix ” is not a valid name for a file share of Microsoft Azure File Service

share name/prefix is not a valid name

share name/prefix is not a valid name

Reason:

  • “New-AzureStorageShare” command accepts share name only in lower case.

Fix:

  • Update the command $s = New-AzureStorageShare “telcoip” -Context $ctx

Refer this Create shared drive using azure  article on steps to share a location in Azure.

🙂

Advertisement
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: