How can one programmatically determine if a container name is invalid per the rules?
Valid naming for a Container in Azure Blob Storage.
Valid naming for a Container in Azure Blob Storage.
In my WebAPI i used the following:
if (container.Length < 3 ||
container.Length > 63 ||
!Regex.IsMatch(container, @"^[a-z0-9]+(-[a-z0-9]+)*$"))
throw new HttpResponseException(Request.CreateResponse(
HttpStatusCode.BadRequest, "Invalid Request!"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With