Today in this article, we will cover below aspects,
Issue Description
Azure cloud operations using .NET gives the below error,
Azure.RequestFailedException :’The specified resource name contains invalid characters.’
Status: 400 (The specifed resource name contains invalid characters.)
ErrorCode: InvalidResourceName
Resolution
The issue might surfaced when you are dealing with the Azure Storage account or Blob operations on the data like upload or download of the data.
You might get this issue due to some other reason as well.
I was able to resolve the issue by following the Naming conventions which need to be used for Azure Storage Container Names and Blob Names.
- name must be lowercase.
- names must be > 3 character and < 63 characters.
- names must only contain letters, numbers, and if needed (-) character is allowed.
By following the above guidelines I was able to create a new container and was able to upload or download blog storage and was able to resolve the issue successfully.
References:
That’s all! Happy coding!
Does this help you fix your issue?
Do you have any better solutions or suggestions? Please sound off your comments below.
Please bookmark this page and share it with your friends. Please Subscribe to the blog to receive notifications on freshly published(2024) best practices and guidelines for software design and development.
Incredibly! Searched more than 2 hours all over for a fix of this issue. Thanks man!!!
Hey Adrain – Awesome. Glad it helped you!