1. Packages
  2. Azure Classic
  3. API Docs
  4. search
  5. Service

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Manages a Search Service.

    Example Usage

    using Pulumi;
    using Azure = Pulumi.Azure;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
            {
                Location = "West Europe",
            });
            var exampleService = new Azure.Search.Service("exampleService", new Azure.Search.ServiceArgs
            {
                ResourceGroupName = exampleResourceGroup.Name,
                Location = exampleResourceGroup.Location,
                Sku = "standard",
            });
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v4/go/azure/search"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = search.NewService(ctx, "exampleService", &search.ServiceArgs{
    			ResourceGroupName: exampleResourceGroup.Name,
    			Location:          exampleResourceGroup.Location,
    			Sku:               pulumi.String("standard"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
    const exampleService = new azure.search.Service("exampleService", {
        resourceGroupName: exampleResourceGroup.name,
        location: exampleResourceGroup.location,
        sku: "standard",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
    example_service = azure.search.Service("exampleService",
        resource_group_name=example_resource_group.name,
        location=example_resource_group.location,
        sku="standard")
    

    Example coming soon!

    Create Service Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                args: ServiceArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                resource_group_name: Optional[str] = None,
                sku: Optional[str] = None,
                allowed_ips: Optional[Sequence[str]] = None,
                identity: Optional[ServiceIdentityArgs] = None,
                location: Optional[str] = None,
                name: Optional[str] = None,
                partition_count: Optional[int] = None,
                public_network_access_enabled: Optional[bool] = None,
                replica_count: Optional[int] = None,
                tags: Optional[Mapping[str, str]] = None)
    func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: azure:search:Service
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleserviceResourceResourceFromSearchservice = new Azure.Search.Service("exampleserviceResourceResourceFromSearchservice", new()
    {
        ResourceGroupName = "string",
        Sku = "string",
        AllowedIps = new[]
        {
            "string",
        },
        Identity = new Azure.Search.Inputs.ServiceIdentityArgs
        {
            Type = "string",
            PrincipalId = "string",
            TenantId = "string",
        },
        Location = "string",
        Name = "string",
        PartitionCount = 0,
        PublicNetworkAccessEnabled = false,
        ReplicaCount = 0,
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := search.NewService(ctx, "exampleserviceResourceResourceFromSearchservice", &search.ServiceArgs{
    	ResourceGroupName: pulumi.String("string"),
    	Sku:               pulumi.String("string"),
    	AllowedIps: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	Identity: &search.ServiceIdentityArgs{
    		Type:        pulumi.String("string"),
    		PrincipalId: pulumi.String("string"),
    		TenantId:    pulumi.String("string"),
    	},
    	Location:                   pulumi.String("string"),
    	Name:                       pulumi.String("string"),
    	PartitionCount:             pulumi.Int(0),
    	PublicNetworkAccessEnabled: pulumi.Bool(false),
    	ReplicaCount:               pulumi.Int(0),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var exampleserviceResourceResourceFromSearchservice = new com.pulumi.azure.search.Service("exampleserviceResourceResourceFromSearchservice", com.pulumi.azure.search.ServiceArgs.builder()
        .resourceGroupName("string")
        .sku("string")
        .allowedIps("string")
        .identity(ServiceIdentityArgs.builder()
            .type("string")
            .principalId("string")
            .tenantId("string")
            .build())
        .location("string")
        .name("string")
        .partitionCount(0)
        .publicNetworkAccessEnabled(false)
        .replicaCount(0)
        .tags(Map.of("string", "string"))
        .build());
    
    exampleservice_resource_resource_from_searchservice = azure.search.Service("exampleserviceResourceResourceFromSearchservice",
        resource_group_name="string",
        sku="string",
        allowed_ips=["string"],
        identity={
            "type": "string",
            "principal_id": "string",
            "tenant_id": "string",
        },
        location="string",
        name="string",
        partition_count=0,
        public_network_access_enabled=False,
        replica_count=0,
        tags={
            "string": "string",
        })
    
    const exampleserviceResourceResourceFromSearchservice = new azure.search.Service("exampleserviceResourceResourceFromSearchservice", {
        resourceGroupName: "string",
        sku: "string",
        allowedIps: ["string"],
        identity: {
            type: "string",
            principalId: "string",
            tenantId: "string",
        },
        location: "string",
        name: "string",
        partitionCount: 0,
        publicNetworkAccessEnabled: false,
        replicaCount: 0,
        tags: {
            string: "string",
        },
    });
    
    type: azure:search:Service
    properties:
        allowedIps:
            - string
        identity:
            principalId: string
            tenantId: string
            type: string
        location: string
        name: string
        partitionCount: 0
        publicNetworkAccessEnabled: false
        replicaCount: 0
        resourceGroupName: string
        sku: string
        tags:
            string: string
    

    Service Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Service resource accepts the following input properties:

    ResourceGroupName string
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    Sku string
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    AllowedIps List<string>
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    Identity ServiceIdentity
    An identity block as defined below.
    Location string
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    Name string
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    PartitionCount int
    The number of partitions which should be created.
    PublicNetworkAccessEnabled bool
    Whether or not public network access is allowed for this resource. Defaults to true.
    ReplicaCount int
    The number of replica's which should be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Search Service.
    ResourceGroupName string
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    Sku string
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    AllowedIps []string
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    Identity ServiceIdentityArgs
    An identity block as defined below.
    Location string
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    Name string
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    PartitionCount int
    The number of partitions which should be created.
    PublicNetworkAccessEnabled bool
    Whether or not public network access is allowed for this resource. Defaults to true.
    ReplicaCount int
    The number of replica's which should be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Search Service.
    resourceGroupName String
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    sku String
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    allowedIps List<String>
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    identity ServiceIdentity
    An identity block as defined below.
    location String
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    name String
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    partitionCount Integer
    The number of partitions which should be created.
    publicNetworkAccessEnabled Boolean
    Whether or not public network access is allowed for this resource. Defaults to true.
    replicaCount Integer
    The number of replica's which should be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Search Service.
    resourceGroupName string
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    sku string
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    allowedIps string[]
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    identity ServiceIdentity
    An identity block as defined below.
    location string
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    name string
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    partitionCount number
    The number of partitions which should be created.
    publicNetworkAccessEnabled boolean
    Whether or not public network access is allowed for this resource. Defaults to true.
    replicaCount number
    The number of replica's which should be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Search Service.
    resource_group_name str
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    sku str
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    allowed_ips Sequence[str]
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    identity ServiceIdentityArgs
    An identity block as defined below.
    location str
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    name str
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    partition_count int
    The number of partitions which should be created.
    public_network_access_enabled bool
    Whether or not public network access is allowed for this resource. Defaults to true.
    replica_count int
    The number of replica's which should be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Search Service.
    resourceGroupName String
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    sku String
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    allowedIps List<String>
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    identity Property Map
    An identity block as defined below.
    location String
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    name String
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    partitionCount Number
    The number of partitions which should be created.
    publicNetworkAccessEnabled Boolean
    Whether or not public network access is allowed for this resource. Defaults to true.
    replicaCount Number
    The number of replica's which should be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Search Service.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    PrimaryKey string
    The Primary Key used for Search Service Administration.
    QueryKeys List<ServiceQueryKey>
    A query_keys block as defined below.
    SecondaryKey string
    The Secondary Key used for Search Service Administration.
    Id string
    The provider-assigned unique ID for this managed resource.
    PrimaryKey string
    The Primary Key used for Search Service Administration.
    QueryKeys []ServiceQueryKey
    A query_keys block as defined below.
    SecondaryKey string
    The Secondary Key used for Search Service Administration.
    id String
    The provider-assigned unique ID for this managed resource.
    primaryKey String
    The Primary Key used for Search Service Administration.
    queryKeys List<ServiceQueryKey>
    A query_keys block as defined below.
    secondaryKey String
    The Secondary Key used for Search Service Administration.
    id string
    The provider-assigned unique ID for this managed resource.
    primaryKey string
    The Primary Key used for Search Service Administration.
    queryKeys ServiceQueryKey[]
    A query_keys block as defined below.
    secondaryKey string
    The Secondary Key used for Search Service Administration.
    id str
    The provider-assigned unique ID for this managed resource.
    primary_key str
    The Primary Key used for Search Service Administration.
    query_keys Sequence[ServiceQueryKey]
    A query_keys block as defined below.
    secondary_key str
    The Secondary Key used for Search Service Administration.
    id String
    The provider-assigned unique ID for this managed resource.
    primaryKey String
    The Primary Key used for Search Service Administration.
    queryKeys List<Property Map>
    A query_keys block as defined below.
    secondaryKey String
    The Secondary Key used for Search Service Administration.

    Look up Existing Service Resource

    Get an existing Service resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServiceState, opts?: CustomResourceOptions): Service
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allowed_ips: Optional[Sequence[str]] = None,
            identity: Optional[ServiceIdentityArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            partition_count: Optional[int] = None,
            primary_key: Optional[str] = None,
            public_network_access_enabled: Optional[bool] = None,
            query_keys: Optional[Sequence[ServiceQueryKeyArgs]] = None,
            replica_count: Optional[int] = None,
            resource_group_name: Optional[str] = None,
            secondary_key: Optional[str] = None,
            sku: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None) -> Service
    func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
    public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
    public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)
    resources:  _:    type: azure:search:Service    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AllowedIps List<string>
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    Identity ServiceIdentity
    An identity block as defined below.
    Location string
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    Name string
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    PartitionCount int
    The number of partitions which should be created.
    PrimaryKey string
    The Primary Key used for Search Service Administration.
    PublicNetworkAccessEnabled bool
    Whether or not public network access is allowed for this resource. Defaults to true.
    QueryKeys List<ServiceQueryKey>
    A query_keys block as defined below.
    ReplicaCount int
    The number of replica's which should be created.
    ResourceGroupName string
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    SecondaryKey string
    The Secondary Key used for Search Service Administration.
    Sku string
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Search Service.
    AllowedIps []string
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    Identity ServiceIdentityArgs
    An identity block as defined below.
    Location string
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    Name string
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    PartitionCount int
    The number of partitions which should be created.
    PrimaryKey string
    The Primary Key used for Search Service Administration.
    PublicNetworkAccessEnabled bool
    Whether or not public network access is allowed for this resource. Defaults to true.
    QueryKeys []ServiceQueryKeyArgs
    A query_keys block as defined below.
    ReplicaCount int
    The number of replica's which should be created.
    ResourceGroupName string
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    SecondaryKey string
    The Secondary Key used for Search Service Administration.
    Sku string
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    Tags map[string]string
    A mapping of tags which should be assigned to the Search Service.
    allowedIps List<String>
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    identity ServiceIdentity
    An identity block as defined below.
    location String
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    name String
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    partitionCount Integer
    The number of partitions which should be created.
    primaryKey String
    The Primary Key used for Search Service Administration.
    publicNetworkAccessEnabled Boolean
    Whether or not public network access is allowed for this resource. Defaults to true.
    queryKeys List<ServiceQueryKey>
    A query_keys block as defined below.
    replicaCount Integer
    The number of replica's which should be created.
    resourceGroupName String
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    secondaryKey String
    The Secondary Key used for Search Service Administration.
    sku String
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Search Service.
    allowedIps string[]
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    identity ServiceIdentity
    An identity block as defined below.
    location string
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    name string
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    partitionCount number
    The number of partitions which should be created.
    primaryKey string
    The Primary Key used for Search Service Administration.
    publicNetworkAccessEnabled boolean
    Whether or not public network access is allowed for this resource. Defaults to true.
    queryKeys ServiceQueryKey[]
    A query_keys block as defined below.
    replicaCount number
    The number of replica's which should be created.
    resourceGroupName string
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    secondaryKey string
    The Secondary Key used for Search Service Administration.
    sku string
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Search Service.
    allowed_ips Sequence[str]
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    identity ServiceIdentityArgs
    An identity block as defined below.
    location str
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    name str
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    partition_count int
    The number of partitions which should be created.
    primary_key str
    The Primary Key used for Search Service Administration.
    public_network_access_enabled bool
    Whether or not public network access is allowed for this resource. Defaults to true.
    query_keys Sequence[ServiceQueryKeyArgs]
    A query_keys block as defined below.
    replica_count int
    The number of replica's which should be created.
    resource_group_name str
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    secondary_key str
    The Secondary Key used for Search Service Administration.
    sku str
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Search Service.
    allowedIps List<String>
    A list of IPv4 addresses or CIDRs that are allowed access to the search service endpoint.
    identity Property Map
    An identity block as defined below.
    location String
    The Azure Region where the Search Service should exist. Changing this forces a new Search Service to be created.
    name String
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    partitionCount Number
    The number of partitions which should be created.
    primaryKey String
    The Primary Key used for Search Service Administration.
    publicNetworkAccessEnabled Boolean
    Whether or not public network access is allowed for this resource. Defaults to true.
    queryKeys List<Property Map>
    A query_keys block as defined below.
    replicaCount Number
    The number of replica's which should be created.
    resourceGroupName String
    The name of the Resource Group where the Search Service should exist. Changing this forces a new Search Service to be created.
    secondaryKey String
    The Secondary Key used for Search Service Administration.
    sku String
    The SKU which should be used for this Search Service. Possible values are basic, free, standard, standard2, standard3, storage_optimized_l1 and storage_optimized_l2. Changing this forces a new Search Service to be created.
    tags Map<String>
    A mapping of tags which should be assigned to the Search Service.

    Supporting Types

    ServiceIdentity, ServiceIdentityArgs

    Type string
    The Type of Identity which should be used for the Search Service. At this time the only possible value is SystemAssigned.
    PrincipalId string
    The (Client) ID of the Service Principal.
    TenantId string
    The ID of the Tenant the Service Principal is assigned in.
    Type string
    The Type of Identity which should be used for the Search Service. At this time the only possible value is SystemAssigned.
    PrincipalId string
    The (Client) ID of the Service Principal.
    TenantId string
    The ID of the Tenant the Service Principal is assigned in.
    type String
    The Type of Identity which should be used for the Search Service. At this time the only possible value is SystemAssigned.
    principalId String
    The (Client) ID of the Service Principal.
    tenantId String
    The ID of the Tenant the Service Principal is assigned in.
    type string
    The Type of Identity which should be used for the Search Service. At this time the only possible value is SystemAssigned.
    principalId string
    The (Client) ID of the Service Principal.
    tenantId string
    The ID of the Tenant the Service Principal is assigned in.
    type str
    The Type of Identity which should be used for the Search Service. At this time the only possible value is SystemAssigned.
    principal_id str
    The (Client) ID of the Service Principal.
    tenant_id str
    The ID of the Tenant the Service Principal is assigned in.
    type String
    The Type of Identity which should be used for the Search Service. At this time the only possible value is SystemAssigned.
    principalId String
    The (Client) ID of the Service Principal.
    tenantId String
    The ID of the Tenant the Service Principal is assigned in.

    ServiceQueryKey, ServiceQueryKeyArgs

    Key string
    The value of this Query Key.
    Name string
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    Key string
    The value of this Query Key.
    Name string
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    key String
    The value of this Query Key.
    name String
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    key string
    The value of this Query Key.
    name string
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    key str
    The value of this Query Key.
    name str
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.
    key String
    The value of this Query Key.
    name String
    The Name which should be used for this Search Service. Changing this forces a new Search Service to be created.

    Import

    Search Services can be imported using the resource id, e.g.

     $ pulumi import azure:search/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Search/searchServices/service1
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.