none
Is it possible to query Azure Storage for file names with specific content types? RRS feed

  • Question

  • Hi all,

    Is it possible to query Azure Storage for file names with specific content types please?  I would like to get a list of all files which have been assigned an incorrect content type so they can be bulk updated.  Is there perhaps any example code I could run using powershell pls?

    Thanks,

    Sunday, September 8, 2019 8:38 PM

All replies

  • As I understand you are trying to get list of Files storage in and content type in Azure Storage am I correct?

    Blobs to be searchable by blob name, container name, blob type, blob’s content type. However this a bit old article, you can refer to the suggestion mentioned in this link.

    1. This article shows how to use Azure Search to index documents (such as PDFs, Microsoft Office documents, and several other common formats) stored in Azure Blob storage. First, it explains the basics of setting up and configuring a blob indexer. Then, it offers a deeper exploration of behaviors and scenarios you are likely to encounter. Content type-specific metadata properties and more

     Searching Blob storage with Azure Search

    2. Change the content type of multiple types in Azure blob storage(PowerShell)

    Chanel 9: How to change the content type of Microsoft Azure blob storage

    Additional information: Please have a look at the List directories in a container question. It discusses in detail how the hierarchy of containers, directories and files work together in Azure Storage Blob accounts.

    Hope this helps!

    Kindly let us know if the above helps or you need further assistance on this issue.
    ------------------------------------------------------------------------------------------
    <o:p></o:p>

    Do click on "Mark as Answer" and Upvote on the post that helps you, this can be beneficial to other community members.

    Monday, September 9, 2019 9:42 AM
    Moderator
  • Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Tuesday, September 10, 2019 5:10 AM
    Moderator
  • @TRX123456 Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Monday, September 23, 2019 8:43 AM
    Moderator
  • Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Thursday, September 26, 2019 5:35 AM
    Moderator
  • @TRX123456 Just checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same, which might be beneficial to other community members reading this thread. And, if you have any further query do let us know.
    Friday, September 27, 2019 9:14 AM
    Moderator