How to import data from Azure Static Web Apps in Azure Cognitive Search

luis costa 1 Reputation point
2022-09-02T22:54:18.06+00:00

I have an Azure Static Web App service deployed manually for test purpose.

I want to import the site files (I want only the HTML files) from Azure Static Web Apps in Azure Cognitive Search, but I don't know where the data is storaged and I can't create a data source to Cognitive Search.

I want to know how I can access these files to see what is in Azure Static Web Apps.

Azure AI Search
Azure AI Search
An Azure search service with built-in artificial intelligence capabilities that enrich information to help identify and explore relevant content at scale.
696 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
757 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. risolis 8,701 Reputation points
    2022-09-04T04:40:58.843+00:00

    Hello @luis costa

    Thank you for your heads up.

    I would like to provide the next article... So, please direct yourself down below:

    https://learn.microsoft.com/en-us/azure/azure-monitor/app/app-insights-overview#where-to-see-application-insights-data

    I hope you can find this useful to address your concern.

    Looking forward to your feedback,

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. ajkuma 22,086 Reputation points Microsoft Employee
    2022-09-06T20:28:35.633+00:00

    luiscosta-8050, To add additional clarity on both the services (Static WebApp and Cognitive Search) specific to your requirement.

    On Azure Cognitive Search, Built-in indexers only work with data source creation. If you would like to use the service and index without data sources, you would need to build your own indexer using the Push API (Data import and data ingestion - Azure Cognitive Search | Microsoft Learn). Otherwise, the recommendation to use a built-in indexer is to use blob storage and copy the html file to index it (Azure Blob indexer - Azure Cognitive Search | Microsoft Learn). You may keep an automated job that copies the file every certain amount of time so you would know the index is kept up to date.

    On Azure Static WebApp, the users won’t have access to the storage account. So, the users won’t have a way to interact with the storage account or access the files.

    If your application needs to perform operations on files, then Azure Web App using Bring Your Own Storage would be an option to consider, instead of Static Web App.
    This would allow your application to interact with the files as though they are part of the file system.

    --
    To benefit the community find the right answers, please do mark the post which was helpful by clicking on Accept Answer’ & ‘Up-Vote’.

    0 comments No comments