Service Args
data class ServiceArgs(val allowedIps: Output<List<String>>? = null, val authenticationFailureMode: Output<String>? = null, val customerManagedKeyEnforcementEnabled: Output<Boolean>? = null, val hostingMode: Output<String>? = null, val identity: Output<ServiceIdentityArgs>? = null, val localAuthenticationEnabled: Output<Boolean>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val partitionCount: Output<Int>? = null, val publicNetworkAccessEnabled: Output<Boolean>? = null, val replicaCount: Output<Int>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ServiceArgs>
Manages a Search Service.
Example Usage
Supporting API Keys)
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.search.Service;
import com.pulumi.azure.search.ServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku("standard")
.build());
}
}
Content copied to clipboard
Using Both AzureAD And API Keys)
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.search.Service;
import com.pulumi.azure.search.ServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku("standard")
.localAuthenticationEnabled(true)
.authenticationFailureMode("http403")
.build());
}
}
Content copied to clipboard
Supporting Only AzureAD Authentication)
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.search.Service;
import com.pulumi.azure.search.ServiceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleService = new Service("exampleService", ServiceArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.sku("standard")
.localAuthenticationEnabled(false)
.build());
}
}
Content copied to clipboard
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
Content copied to clipboard
Constructors
Link copied to clipboard
fun ServiceArgs(allowedIps: Output<List<String>>? = null, authenticationFailureMode: Output<String>? = null, customerManagedKeyEnforcementEnabled: Output<Boolean>? = null, hostingMode: Output<String>? = null, identity: Output<ServiceIdentityArgs>? = null, localAuthenticationEnabled: Output<Boolean>? = null, location: Output<String>? = null, name: Output<String>? = null, partitionCount: Output<Int>? = null, publicNetworkAccessEnabled: Output<Boolean>? = null, replicaCount: Output<Int>? = null, resourceGroupName: Output<String>? = null, sku: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
Specifies the number of partitions which should be created. This field cannot be set when using a free
or basic
sku (see the Microsoft documentation). Possible values include 1
, 2
, 3
, 4
, 6
, or 12
. Defaults to 1
.
Link copied to clipboard
Specifies the number of Replica's which should be created for this Search Service. This field cannot be set when using a free
sku (see the Microsoft documentation).