Share via


SearchService Constructors

Definition

Overloads

SearchService()

Initializes a new instance of the SearchService class.

SearchService(String, String, String, String, IDictionary<String, String>, Nullable<Int32>, Nullable<Int32>, Nullable<HostingMode>, Nullable<PublicNetworkAccess>, Nullable<SearchServiceStatus>, String, Nullable<ProvisioningState>, NetworkRuleSet, IList<PrivateEndpointConnection>, IList<SharedPrivateLinkResource>, Sku, Identity)

Initializes a new instance of the SearchService class.

SearchService()

Initializes a new instance of the SearchService class.

public SearchService ();
Public Sub New ()

Applies to

SearchService(String, String, String, String, IDictionary<String, String>, Nullable<Int32>, Nullable<Int32>, Nullable<HostingMode>, Nullable<PublicNetworkAccess>, Nullable<SearchServiceStatus>, String, Nullable<ProvisioningState>, NetworkRuleSet, IList<PrivateEndpointConnection>, IList<SharedPrivateLinkResource>, Sku, Identity)

Initializes a new instance of the SearchService class.

public SearchService (string location, string id = default, string name = default, string type = default, System.Collections.Generic.IDictionary<string,string> tags = default, int? replicaCount = default, int? partitionCount = default, Microsoft.Azure.Management.Search.Models.HostingMode? hostingMode = default, Microsoft.Azure.Management.Search.Models.PublicNetworkAccess? publicNetworkAccess = default, Microsoft.Azure.Management.Search.Models.SearchServiceStatus? status = default, string statusDetails = default, Microsoft.Azure.Management.Search.Models.ProvisioningState? provisioningState = default, Microsoft.Azure.Management.Search.Models.NetworkRuleSet networkRuleSet = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Search.Models.PrivateEndpointConnection> privateEndpointConnections = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Search.Models.SharedPrivateLinkResource> sharedPrivateLinkResources = default, Microsoft.Azure.Management.Search.Models.Sku sku = default, Microsoft.Azure.Management.Search.Models.Identity identity = default);
new Microsoft.Azure.Management.Search.Models.SearchService : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Nullable<int> * Nullable<int> * Nullable<Microsoft.Azure.Management.Search.Models.HostingMode> * Nullable<Microsoft.Azure.Management.Search.Models.PublicNetworkAccess> * Nullable<Microsoft.Azure.Management.Search.Models.SearchServiceStatus> * string * Nullable<Microsoft.Azure.Management.Search.Models.ProvisioningState> * Microsoft.Azure.Management.Search.Models.NetworkRuleSet * System.Collections.Generic.IList<Microsoft.Azure.Management.Search.Models.PrivateEndpointConnection> * System.Collections.Generic.IList<Microsoft.Azure.Management.Search.Models.SharedPrivateLinkResource> * Microsoft.Azure.Management.Search.Models.Sku * Microsoft.Azure.Management.Search.Models.Identity -> Microsoft.Azure.Management.Search.Models.SearchService
Public Sub New (location As String, Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional replicaCount As Nullable(Of Integer) = Nothing, Optional partitionCount As Nullable(Of Integer) = Nothing, Optional hostingMode As Nullable(Of HostingMode) = Nothing, Optional publicNetworkAccess As Nullable(Of PublicNetworkAccess) = Nothing, Optional status As Nullable(Of SearchServiceStatus) = Nothing, Optional statusDetails As String = Nothing, Optional provisioningState As Nullable(Of ProvisioningState) = Nothing, Optional networkRuleSet As NetworkRuleSet = Nothing, Optional privateEndpointConnections As IList(Of PrivateEndpointConnection) = Nothing, Optional sharedPrivateLinkResources As IList(Of SharedPrivateLinkResource) = Nothing, Optional sku As Sku = Nothing, Optional identity As Identity = Nothing)

Parameters

location
String

The geo-location where the resource lives

id
String

Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.

tags
IDictionary<String,String>

Resource tags.

replicaCount
Nullable<Int32>

The number of replicas in the search service. If specified, it must be a value between 1 and 12 inclusive for standard SKUs or between 1 and 3 inclusive for basic SKU.

partitionCount
Nullable<Int32>

The number of partitions in the search service; if specified, it can be 1, 2, 3, 4, 6, or 12. Values greater than 1 are only valid for standard SKUs. For 'standard3' services with hostingMode set to 'highDensity', the allowed values are between 1 and 3.

hostingMode
Nullable<HostingMode>

Applicable only for the standard3 SKU. You can set this property to enable up to 3 high density partitions that allow up to 1000 indexes, which is much higher than the maximum indexes allowed for any other SKU. For the standard3 SKU, the value is either 'default' or 'highDensity'. For all other SKUs, this value must be 'default'. Possible values include: 'default', 'highDensity'

publicNetworkAccess
Nullable<PublicNetworkAccess>

This value can be set to 'enabled' to avoid breaking changes on existing customer resources and templates. If set to 'disabled', traffic over public interface is not allowed, and private endpoint connections would be the exclusive access method. Possible values include: 'enabled', 'disabled'

status
Nullable<SearchServiceStatus>

The status of the search service. Possible values include: 'running': The search service is running and no provisioning operations are underway. 'provisioning': The search service is being provisioned or scaled up or down. 'deleting': The search service is being deleted. 'degraded': The search service is degraded. This can occur when the underlying search units are not healthy. The search service is most likely operational, but performance might be slow and some requests might be dropped. 'disabled': The search service is disabled. In this state, the service will reject all API requests. 'error': The search service is in an error state. If your service is in the degraded, disabled, or error states, it means the Azure Cognitive Search team is actively investigating the underlying issue. Dedicated services in these states are still chargeable based on the number of search units provisioned. Possible values include: 'running', 'provisioning', 'deleting', 'degraded', 'disabled', 'error'

statusDetails
String

The details of the search service status.

provisioningState
Nullable<ProvisioningState>

The state of the last provisioning operation performed on the search service. Provisioning is an intermediate state that occurs while service capacity is being established. After capacity is set up, provisioningState changes to either 'succeeded' or 'failed'. Client applications can poll provisioning status (the recommended polling interval is from 30 seconds to one minute) by using the Get Search Service operation to see when an operation is completed. If you are using the free service, this value tends to come back as 'succeeded' directly in the call to Create search service. This is because the free service uses capacity that is already set up. Possible values include: 'succeeded', 'provisioning', 'failed'

networkRuleSet
NetworkRuleSet

Network specific rules that determine how the Azure Cognitive Search service may be reached.

privateEndpointConnections
IList<PrivateEndpointConnection>

The list of private endpoint connections to the Azure Cognitive Search service.

sharedPrivateLinkResources
IList<SharedPrivateLinkResource>

The list of shared private link resources managed by the Azure Cognitive Search service.

sku
Sku

The SKU of the Search Service, which determines price tier and capacity limits. This property is required when creating a new Search Service.

identity
Identity

The identity of the resource.

Applies to