[BUG] - Azure Search DataSource connection with Managed Identity #29813
Labels
Client
This issue points to a problem in the data-plane of the library.
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Search
Service
This issue points to a problem in the service.
Library name and version
Azure.Search.Documents 11.4.0-beta.8
Describe the bug
Hi!
I'm trying to create datasource connection in my search index using managed identity. I followed this guide - https://docs.microsoft.com/en-us/azure/search/search-howto-managed-identities-cosmos-db
This is the code that I'm using (CosmosDB):
but im getting the following error:
Would appreciate any assistance
Expected behavior
The API should return 200 and create data source connection using managed identity
Actual behavior
There is an error:
The request is invalid. Details: dataSource : A type named 'Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity' could not be resolved by the model. When a model is available, each type name must resolve to a valid type.
Status: 400 (Bad Request)Content:
{"error":{"code":"","message":"The request is invalid. Details: dataSource : A type named 'Microsoft.Azure.Search.SearchIndexerDataUserAssignedIdentity' could not be resolved by the model. When a model is available, each type name must resolve to a valid type."}}Headers:
Cache-Control: no-cache
Pragma: no-cache
client-request-id: 9b24fd07-fcb8-47f4-8be8-546c205a8f97
x-ms-client-request-id: 9b24fd07-fcb8-47f4-8be8-546c205a8f97
request-id: 9b24fd07-fcb8-47f4-8be8-546c205a8f97
elapsed-time: 5
Preference-Applied: REDACTED
Strict-Transport-Security: REDACTED
Date: Tue, 12 Jul 2022 14:25:54 GMT
Content-Type: application/json; charset=utf-8
Content-Language: REDACTED
Expires: -1
Content-Length: 263
Reproduction Steps
Try to create data source connection to search index using managed identity
Environment
IDE - Visual Studio 17.2.4
Windows
DotNet 6
The text was updated successfully, but these errors were encountered: