Azure Search Service - Import from SQL Server on Azure VM failing ('Data source payload should specify at least one of datasource name and type)

一个人想着一个人 提交于 2019-12-24 06:58:16

问题


I'm attempting to add a new data source from a SQL Server on Azure VM for a search service and indexer I'm creating through the Azure web portal. It's my understanding that I can create an index, import this data, then create an indexer to regularly push data to the index. I'm adding the connection string for our SQL Server and getting a successful message when clicking "Test Connection". The tables show up in a drop-down list, and I select one.

When I click "OK" on creating the new data source, a popup comes up that says "Sampling Data Source..." then an "Error detecting index schema from data source: 'Data source payload should specify at least one of datasource name and type'".

I've tried Googling this error, and I can't find anything on it and not sure how to fix it so I can proceed.


回答1:


This looks like a bug in Azure Search portal support for SQL Server data sources. We'll investigate. In the meantime, you can create your datasource programmatically as shown in Connecting Azure SQL Database to Azure Search.



来源:https://stackoverflow.com/questions/44830211/azure-search-service-import-from-sql-server-on-azure-vm-failing-data-source

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!