You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/search/search-howto-managed-identities-data-sources.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -100,8 +100,10 @@ For more information, see [Create a search service with a system-assigned manage
100
100
101
101
### [**REST API**](#tab/rest-sys)
102
102
103
+
Use [Services - Create Or Update (REST API)](/rest/api/searchmanagement/services/create-or-update#searchcreateorupdateservicewithidentity) to formulate the request.
104
+
103
105
```http
104
-
PUT https://management.azure.com/subscriptions/[subscription ID]/resourceGroups/[name of resource group]/providers/Microsoft.Search/searchServices/[name of search service]?api-version=2025-05-01 HTTP/1.1
106
+
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice?api-version=2025-05-01 HTTP/1.1
105
107
{
106
108
"location": "[region]",
107
109
"sku": {
@@ -118,15 +120,13 @@ PUT https://management.azure.com/subscriptions/[subscription ID]/resourceGroups/
118
120
}
119
121
```
120
122
121
-
For more information, see [Services - Create Or Update (REST API)](/rest/api/searchmanagement/services/create-or-update#searchcreateorupdateservicewithidentity).
123
+
The response includes a confirmation and an object identifier for the system-assigned managed identity.
122
124
123
125
---
124
126
125
127
## Create a user-assigned managed identity
126
128
127
-
A user-assigned managed identity is an Azure resource that can be scoped to subscriptions, resource groups, or resource types.
128
-
129
-
You can create multiple user-assigned managed identities if you want more granularity in role assignments. For example, you might want separate identities for different applications and scenarios.
129
+
A user-assigned managed identity is an Azure resource that can be scoped to subscriptions, resource groups, or resource types. You can create multiple user-assigned managed identities for more granularity in role assignments. For example, you might want separate identities for different applications and scenarios.
130
130
131
131
The steps are as follows:
132
132
@@ -169,7 +169,7 @@ Instead of the Azure portal, you can use the Search Management REST APIs to assi
169
169
1. Use [Services - Update (REST API)](/rest/api/searchmanagement/services/update?view=rest-searchmanagement-2025-05-01&preserve-view=true#identity) to formulate the request.
170
170
171
171
```http
172
-
PUT https://management.azure.com/subscriptions/[subscription ID]/resourceGroups/[name of resource group]/providers/Microsoft.Search/searchServices/[name of search service]?api-version=2025-05-01 HTTP/1.1
172
+
PUT https://management.azure.com/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Search/searchServices/mysearchservice?api-version=2025-05-01 HTTP/1.1
0 commit comments