getService

Gets information about an Active Directory Domain Service.

Supported Modes: At present this data source only supports User Forest mode and not Resource Forest mode. Read more about the different operation modes for this service.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.domainservices.DomainservicesFunctions;
import com.pulumi.azure.domainservices.inputs.GetServiceArgs;
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) {
final var example = DomainservicesFunctions.getService(GetServiceArgs.builder()
.name("example-aadds")
.resourceGroupName("example-aadds-rg")
.build());
}
}

Return

A collection of values returned by getService.

Parameters

argument

A collection of arguments for invoking getService.


suspend fun getService(name: String, resourceGroupName: String, tags: Map<String, String>? = null): GetServiceResult

Return

A collection of values returned by getService.

See also

Parameters

name

The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.

resourceGroupName

The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.

tags

A mapping of tags assigned to the resource.


suspend fun getService(argument: suspend GetServicePlainArgsBuilder.() -> Unit): GetServiceResult

Return

A collection of values returned by getService.

See also

Parameters

argument

Builder for com.pulumi.azure.domainservices.kotlin.inputs.GetServicePlainArgs.