ServiceTrustArgs

data class ServiceTrustArgs(val domainServiceId: Output<String>? = null, val name: Output<String>? = null, val password: Output<String>? = null, val trustedDomainDnsIps: Output<List<String>>? = null, val trustedDomainFqdn: Output<String>? = null) : ConvertibleToJava<ServiceTrustArgs>

Manages a Active Directory Domain Service Trust.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.domainservices.getService({
name: "example-ds",
resourceGroupName: "example-rg",
});
const exampleServiceTrust = new azure.domainservices.ServiceTrust("example", {
name: "example-trust",
domainServiceId: example.then(example => example.id),
trustedDomainFqdn: "example.com",
trustedDomainDnsIps: [
"10.1.0.3",
"10.1.0.4",
],
password: "Password123",
});
import pulumi
import pulumi_azure as azure
example = azure.domainservices.get_service(name="example-ds",
resource_group_name="example-rg")
example_service_trust = azure.domainservices.ServiceTrust("example",
name="example-trust",
domain_service_id=example.id,
trusted_domain_fqdn="example.com",
trusted_domain_dns_ips=[
"10.1.0.3",
"10.1.0.4",
],
password="Password123")
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-ds",
ResourceGroupName = "example-rg",
});
var exampleServiceTrust = new Azure.DomainServices.ServiceTrust("example", new()
{
Name = "example-trust",
DomainServiceId = example.Apply(getServiceResult => getServiceResult.Id),
TrustedDomainFqdn = "example.com",
TrustedDomainDnsIps = new[]
{
"10.1.0.3",
"10.1.0.4",
},
Password = "Password123",
});
});
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 {
example, err := domainservices.LookupService(ctx, &domainservices.LookupServiceArgs{
Name: "example-ds",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
_, err = domainservices.NewServiceTrust(ctx, "example", &domainservices.ServiceTrustArgs{
Name: pulumi.String("example-trust"),
DomainServiceId: pulumi.String(example.Id),
TrustedDomainFqdn: pulumi.String("example.com"),
TrustedDomainDnsIps: pulumi.StringArray{
pulumi.String("10.1.0.3"),
pulumi.String("10.1.0.4"),
},
Password: pulumi.String("Password123"),
})
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 com.pulumi.azure.domainservices.ServiceTrust;
import com.pulumi.azure.domainservices.ServiceTrustArgs;
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-ds")
.resourceGroupName("example-rg")
.build());
var exampleServiceTrust = new ServiceTrust("exampleServiceTrust", ServiceTrustArgs.builder()
.name("example-trust")
.domainServiceId(example.id())
.trustedDomainFqdn("example.com")
.trustedDomainDnsIps(
"10.1.0.3",
"10.1.0.4")
.password("Password123")
.build());
}
}
resources:
exampleServiceTrust:
type: azure:domainservices:ServiceTrust
name: example
properties:
name: example-trust
domainServiceId: ${example.id}
trustedDomainFqdn: example.com
trustedDomainDnsIps:
- 10.1.0.3
- 10.1.0.4
password: Password123
variables:
example:
fn::invoke:
function: azure:domainservices:getService
arguments:
name: example-ds
resourceGroupName: example-rg

API Providers

This resource uses the following Azure API Providers:

  • Microsoft.AAD: 2021-05-01

Import

Active Directory Domain Service Trusts can be imported using the resource id, e.g.

$ pulumi import azure:domainservices/serviceTrust:ServiceTrust example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/resGroup1/providers/Microsoft.AAD/domainServices/DomainService1/trusts/trust1

Constructors

Link copied to clipboard
constructor(domainServiceId: Output<String>? = null, name: Output<String>? = null, password: Output<String>? = null, trustedDomainDnsIps: Output<List<String>>? = null, trustedDomainFqdn: Output<String>? = null)

Properties

Link copied to clipboard
val domainServiceId: Output<String>? = null

The ID of the Active Directory Domain Service. Changing this forces a new Active Directory Domain Service Trust to be created.

Link copied to clipboard
val name: Output<String>? = null

The name which should be used for this Active Directory Domain Service Trust. Changing this forces a new Active Directory Domain Service Trust to be created.

Link copied to clipboard
val password: Output<String>? = null

The password of the inbound trust set in the on-premise Active Directory Domain Service.

Link copied to clipboard
val trustedDomainDnsIps: Output<List<String>>? = null

Specifies a list of DNS IPs that are used to resolve the on-premise Active Directory Domain Service.

Link copied to clipboard
val trustedDomainFqdn: Output<String>? = null

The FQDN of the on-premise Active Directory Domain Service.

Functions

Link copied to clipboard
open override fun toJava(): ServiceTrustArgs