getService

Gets information about an Active Directory Domain Service.

Note: 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

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.domainservices.getService({
name: "example-aadds",
resourceGroupName: "example-aadds-rg",
});
import pulumi
import pulumi_azure as azure
example = azure.domainservices.get_service(name="example-aadds",
resource_group_name="example-aadds-rg")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.DomainServices.GetService.Invoke(new()
{
Name = "example-aadds",
ResourceGroupName = "example-aadds-rg",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/domainservices"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := domainservices.LookupService(ctx, &domainservices.LookupServiceArgs{
Name: "example-aadds",
ResourceGroupName: "example-aadds-rg",
}, nil)
if err != nil {
return err
}
return nil
})
}
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());
}
}
variables:
example:
fn::invoke:
function: azure:domainservices:getService
arguments:
name: example-aadds
resourceGroupName: example-aadds-rg

API Providers

This data source uses the following Azure API Providers:

  • Microsoft.AAD: 2021-05-01

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.

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.

See also


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

Return

A collection of values returned by getService.

Parameters

argument

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

See also