nerdexam
Microsoft

AZ-204 · Question #636

You manage an Azure Storage account named storage1. You plan to load 1 million blobs into storage1. You must assign key-value pairs to blobs so that both keys and their values are automatically indexe

The correct answer is A. az storage blob tag set. az storage blob tag set Set tags on a blob or specific blob version, but not snapshot. Set-AzStorageBlobTag The Set-AzStorageBlobTag command is used to assign key-value pairs (tags) to blobs in Azure Blob Storage. These tags are automatically indexed and searchable, allowing you

Submitted by paula_co· Mar 30, 2026Develop for Azure storage

Question

You manage an Azure Storage account named storage1. You plan to load 1 million blobs into storage1. You must assign key-value pairs to blobs so that both keys and their values are automatically indexed and searchable by using the built-in services of storage1. You need to run the command to assign key-value pairs. Which command should you run?

Options

  • Aaz storage blob tag set
  • Caz storage blob directory metadata update
  • DNew-AzStorageBlobQueryConfig

How the community answered

(40 responses)
  • A
    78% (31)
  • C
    8% (3)
  • D
    15% (6)

Explanation

  • az storage blob tag set Set tags on a blob or specific blob version, but not snapshot. * Set-AzStorageBlobTag The Set-AzStorageBlobTag command is used to assign key-value pairs (tags) to blobs in Azure Blob Storage. These tags are automatically indexed and searchable, allowing you to manage and search blobs based on their assigned metadata using the built-in indexing services in Azure * az storage blob directory metadata update * az storage blob service-properties update * New-AzStorageBlobQueryConfig * az storage blob service-properties update az storage blob service-properties update updates service-level properties for the blob service (such as CORS rules or logging), but does not assign key-value pairs to individual blobs. * Set-AzStorageBlobContent Set-AzStorageBlobContent uploads a blob to a storage container, but it is not used to set tags or key-value pairs. * Update -AzStorageBobServiceProperty Update -AzStorageBobServiceProperty is used to update service-level properties, not blob- specific metadata or tags. https://learn.microsoft.com/en-us/azure/storage/blobs/storage-blob-index-how-to https://learn.microsoft.com/en-us/cli/azure/storage/blob/tag

Topics

#Azure Blob Storage#blob tags#blob index#az CLI

Community Discussion

No community discussion yet for this question.

Full AZ-204 Practice