I am writing a admin back end to manage our Azure search stuff and I was wondering if there is a way to use Azure Search SDK to create a new Azure Search Service on Azure portal? I don't see anything in the examples on the official Azure search site.
Asked
Active
Viewed 127 times
2 Answers
4
It is possible to programmatically create Azure Search services in a few different ways:
- Azure Search Management SDK
- PowerShell
- Management REST API
- Azure Resource Manager Templates (example)
Documentation coverage for these is somewhat patchy currently. There are samples for the REST API and .NET Fluent SDK and reference documentation for some of the above.

Bruce Johnston
- 8,344
- 3
- 32
- 42
-
There is a Java sample project too https://github.com/Azure-Samples/search-java-manage-search-service – rudin Jan 08 '19 at 02:13
-
Thanks. I added the Java SDK to the list. – Bruce Johnston Jan 11 '19 at 16:22
0
No, you can't use Azure Search SDK to create a new Search Service. This SDK is to manage data in an existing Search Service.
To create a Search Service programmatically, you will need to use Azure Search Management
library. You can read more about this here: https://learn.microsoft.com/en-us/dotnet/api/overview/azure/search?view=azure-dotnet#management-library.

Gaurav Mantri
- 128,066
- 12
- 206
- 241
-
The .NET Management SDK isn't the only way. I've listed all of them in my answer. – Bruce Johnston Jan 08 '19 at 01:05
-
@BruceJohnston Agreed. I only mentioned Management SDK because the question was about using Search .Net SDK to create (provision) a new Service. In any case, your answer is definitely more comprehensive. – Gaurav Mantri Jan 08 '19 at 01:12