We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
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 = Azure.Search.GetService.Invoke(new Azure.Search.GetServiceInvokeArgs
{
Name = "example-search-service",
ResourceGroupName = exampleResourceGroup.Name,
});
}
}
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
}
_ = search.LookupServiceOutput(ctx, search.GetServiceOutputArgs{
Name: pulumi.String("example-search-service"),
ResourceGroupName: exampleResourceGroup.Name,
}, nil)
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 = azure.search.getServiceOutput({
name: "example-search-service",
resourceGroupName: exampleResourceGroup.name,
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_service = azure.search.get_service_output(name="example-search-service",
resource_group_name=example_resource_group.name)
Example coming soon!
Using getService
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getService(args: GetServiceArgs, opts?: InvokeOptions): Promise<GetServiceResult>
function getServiceOutput(args: GetServiceOutputArgs, opts?: InvokeOptions): Output<GetServiceResult>def get_service(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetServiceResult
def get_service_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetServiceResult]func LookupService(ctx *Context, args *LookupServiceArgs, opts ...InvokeOption) (*LookupServiceResult, error)
func LookupServiceOutput(ctx *Context, args *LookupServiceOutputArgs, opts ...InvokeOption) LookupServiceResultOutput> Note: This function is named LookupService in the Go SDK.
public static class GetService
{
public static Task<GetServiceResult> InvokeAsync(GetServiceArgs args, InvokeOptions? opts = null)
public static Output<GetServiceResult> Invoke(GetServiceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
public static Output<GetServiceResult> getService(GetServiceArgs args, InvokeOptions options)
fn::invoke:
function: azure:search/getService:getService
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- The Name of the Search Service.
- Resource
Group stringName - The name of the Resource Group where the Search Service exists.
- Name string
- The Name of the Search Service.
- Resource
Group stringName - The name of the Resource Group where the Search Service exists.
- name String
- The Name of the Search Service.
- resource
Group StringName - The name of the Resource Group where the Search Service exists.
- name string
- The Name of the Search Service.
- resource
Group stringName - The name of the Resource Group where the Search Service exists.
- name str
- The Name of the Search Service.
- resource_
group_ strname - The name of the Resource Group where the Search Service exists.
- name String
- The Name of the Search Service.
- resource
Group StringName - The name of the Resource Group where the Search Service exists.
getService Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
List<Get
Service Identity> - An
identityblock as defined below. - Name string
- The name of this Query Key.
- Partition
Count int - The number of partitions which have been created.
- Primary
Key string - The Primary Key used for Search Service Administration.
- Public
Network boolAccess Enabled - Whether or not public network access is enabled for this resource.
- Query
Keys List<GetService Query Key> - A
query_keysblock as defined below. - Replica
Count int - The number of replica's which have been created.
- Resource
Group stringName - Secondary
Key string - The Secondary Key used for Search Service Administration.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identities
[]Get
Service Identity - An
identityblock as defined below. - Name string
- The name of this Query Key.
- Partition
Count int - The number of partitions which have been created.
- Primary
Key string - The Primary Key used for Search Service Administration.
- Public
Network boolAccess Enabled - Whether or not public network access is enabled for this resource.
- Query
Keys []GetService Query Key - A
query_keysblock as defined below. - Replica
Count int - The number of replica's which have been created.
- Resource
Group stringName - Secondary
Key string - The Secondary Key used for Search Service Administration.
- id String
- The provider-assigned unique ID for this managed resource.
- identities
List<Get
Service Identity> - An
identityblock as defined below. - name String
- The name of this Query Key.
- partition
Count Integer - The number of partitions which have been created.
- primary
Key String - The Primary Key used for Search Service Administration.
- public
Network BooleanAccess Enabled - Whether or not public network access is enabled for this resource.
- query
Keys List<GetService Query Key> - A
query_keysblock as defined below. - replica
Count Integer - The number of replica's which have been created.
- resource
Group StringName - secondary
Key String - The Secondary Key used for Search Service Administration.
- id string
- The provider-assigned unique ID for this managed resource.
- identities
Get
Service Identity[] - An
identityblock as defined below. - name string
- The name of this Query Key.
- partition
Count number - The number of partitions which have been created.
- primary
Key string - The Primary Key used for Search Service Administration.
- public
Network booleanAccess Enabled - Whether or not public network access is enabled for this resource.
- query
Keys GetService Query Key[] - A
query_keysblock as defined below. - replica
Count number - The number of replica's which have been created.
- resource
Group stringName - secondary
Key string - The Secondary Key used for Search Service Administration.
- id str
- The provider-assigned unique ID for this managed resource.
- identities
Sequence[Get
Service Identity] - An
identityblock as defined below. - name str
- The name of this Query Key.
- partition_
count int - The number of partitions which have been created.
- primary_
key str - The Primary Key used for Search Service Administration.
- public_
network_ boolaccess_ enabled - Whether or not public network access is enabled for this resource.
- query_
keys Sequence[GetService Query Key] - A
query_keysblock as defined below. - replica_
count int - The number of replica's which have been created.
- resource_
group_ strname - secondary_
key str - The Secondary Key used for Search Service Administration.
- id String
- The provider-assigned unique ID for this managed resource.
- identities List<Property Map>
- An
identityblock as defined below. - name String
- The name of this Query Key.
- partition
Count Number - The number of partitions which have been created.
- primary
Key String - The Primary Key used for Search Service Administration.
- public
Network BooleanAccess Enabled - Whether or not public network access is enabled for this resource.
- query
Keys List<Property Map> - A
query_keysblock as defined below. - replica
Count Number - The number of replica's which have been created.
- resource
Group StringName - secondary
Key String - The Secondary Key used for Search Service Administration.
Supporting Types
GetServiceIdentity
- Principal
Id string - The (Client) ID of the Service Principal.
- Tenant
Id string - The ID of the Tenant the Service Principal is assigned in.
- Type string
- The Type of Managed Identity which is used for the Search Service.
- Principal
Id string - The (Client) ID of the Service Principal.
- Tenant
Id string - The ID of the Tenant the Service Principal is assigned in.
- Type string
- The Type of Managed Identity which is used for the Search Service.
- principal
Id String - The (Client) ID of the Service Principal.
- tenant
Id String - The ID of the Tenant the Service Principal is assigned in.
- type String
- The Type of Managed Identity which is used for the Search Service.
- principal
Id string - The (Client) ID of the Service Principal.
- tenant
Id string - The ID of the Tenant the Service Principal is assigned in.
- type string
- The Type of Managed Identity which is used for the Search Service.
- 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 str
- The Type of Managed Identity which is used for the Search Service.
- principal
Id String - The (Client) ID of the Service Principal.
- tenant
Id String - The ID of the Tenant the Service Principal is assigned in.
- type String
- The Type of Managed Identity which is used for the Search Service.
GetServiceQueryKey
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
published on Monday, Mar 9, 2026 by Pulumi
