A developer proposes several names for new containers in an existing storage account. Some of the portal create operations fail validation.
| Proposed container name |
|---|
| Product-Images |
| product--images |
| -productimages |
| pi |
| product-images-2024 |
| Media_Files |
Complete the sentence about the container names in the exhibit.
The only name in the list that is valid is . The name Media_Files is rejected because .
- Blank 1: product-images-2024 (correct answer)
This name uses only lowercase letters, numbers and single hyphens. It starts with a letter and is between 3 and 63 characters long. Product-Images contains uppercase letters, product--images has two consecutive dashes, -productimages starts with a hyphen, and pi is shorter than three characters.
- Blank 2: it contains an uppercase letter and an underscore (correct answer)
Media_Files contains uppercase letters and an underscore, and neither is allowed in a container name. The name is 11 characters long and starts with a letter, so the other rules are met.
A container name forms part of the container's URI, so it must be a valid DNS-style name. The name can be 3 to 63 characters long and can use only lowercase letters, numbers and hyphens. It must begin with a letter or a number and cannot contain consecutive hyphens. The name must also be unique within the storage account.
- Configure Azure Blob Storage: Create blob containersMicrosoft Learn
- Introduction to Blob (object) Storage - Azure StorageMicrosoft Learn