DomainService

Domain service. API Version: 2021-03-01.

Example Usage

Create Domain Service

using System.Collections.Generic;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var domainService = new AzureNative.Aad.DomainService("domainService", new()
{
DomainName = "TestDomainService.com",
DomainSecuritySettings = new AzureNative.Aad.Inputs.DomainSecuritySettingsArgs
{
NtlmV1 = "Enabled",
SyncNtlmPasswords = "Enabled",
TlsV1 = "Disabled",
},
DomainServiceName = "TestDomainService.com",
FilteredSync = "Enabled",
LdapsSettings = new AzureNative.Aad.Inputs.LdapsSettingsArgs
{
ExternalAccess = "Enabled",
Ldaps = "Enabled",
PfxCertificate = "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w...",
PfxCertificatePassword = "<pfxCertificatePassword>",
},
NotificationSettings = new AzureNative.Aad.Inputs.NotificationSettingsArgs
{
AdditionalRecipients = new[]
{
"jicha@microsoft.com",
"caalmont@microsoft.com",
},
NotifyDcAdmins = "Enabled",
NotifyGlobalAdmins = "Enabled",
},
ReplicaSets = new[]
{
new AzureNative.Aad.Inputs.ReplicaSetArgs
{
Location = "West US",
SubnetId = "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS",
},
},
ResourceGroupName = "TestResourceGroup",
});
});
package main
import (
aad "github.com/pulumi/pulumi-azure-native/sdk/go/azure/aad"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aad.NewDomainService(ctx, "domainService", &aad.DomainServiceArgs{
DomainName: pulumi.String("TestDomainService.com"),
DomainSecuritySettings: &aad.DomainSecuritySettingsArgs{
NtlmV1: pulumi.String("Enabled"),
SyncNtlmPasswords: pulumi.String("Enabled"),
TlsV1: pulumi.String("Disabled"),
},
DomainServiceName: pulumi.String("TestDomainService.com"),
FilteredSync: pulumi.String("Enabled"),
LdapsSettings: &aad.LdapsSettingsArgs{
ExternalAccess: pulumi.String("Enabled"),
Ldaps: pulumi.String("Enabled"),
PfxCertificate: pulumi.String("MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w..."),
PfxCertificatePassword: pulumi.String("<pfxCertificatePassword>"),
},
NotificationSettings: &aad.NotificationSettingsArgs{
AdditionalRecipients: pulumi.StringArray{
pulumi.String("jicha@microsoft.com"),
pulumi.String("caalmont@microsoft.com"),
},
NotifyDcAdmins: pulumi.String("Enabled"),
NotifyGlobalAdmins: pulumi.String("Enabled"),
},
ReplicaSets: []aad.ReplicaSetArgs{
{
Location: pulumi.String("West US"),
SubnetId: pulumi.String("/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS"),
},
},
ResourceGroupName: pulumi.String("TestResourceGroup"),
})
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.azurenative.aad.DomainService;
import com.pulumi.azurenative.aad.DomainServiceArgs;
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 domainService = new DomainService("domainService", DomainServiceArgs.builder()
.domainName("TestDomainService.com")
.domainSecuritySettings(Map.ofEntries(
Map.entry("ntlmV1", "Enabled"),
Map.entry("syncNtlmPasswords", "Enabled"),
Map.entry("tlsV1", "Disabled")
))
.domainServiceName("TestDomainService.com")
.filteredSync("Enabled")
.ldapsSettings(Map.ofEntries(
Map.entry("externalAccess", "Enabled"),
Map.entry("ldaps", "Enabled"),
Map.entry("pfxCertificate", "MIIDPDCCAiSgAwIBAgIQQUI9P6tq2p9OFIJa7DLNvTANBgkqhkiG9w0BAQsFADAgMR4w..."),
Map.entry("pfxCertificatePassword", "<pfxCertificatePassword>")
))
.notificationSettings(Map.ofEntries(
Map.entry("additionalRecipients",
"jicha@microsoft.com",
"caalmont@microsoft.com"),
Map.entry("notifyDcAdmins", "Enabled"),
Map.entry("notifyGlobalAdmins", "Enabled")
))
.replicaSets(Map.ofEntries(
Map.entry("location", "West US"),
Map.entry("subnetId", "/subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestNetworkResourceGroup/providers/Microsoft.Network/virtualNetworks/TestVnetWUS/subnets/TestSubnetWUS")
))
.resourceGroupName("TestResourceGroup")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:aad:DomainService TestDomainService.com /subscriptions/1639790a-76a2-4ac4-98d9-8562f5dfcb4d/resourceGroups/TestResourceGroup/providers/Microsoft.AAD/DomainServices/TestDomainService.com

Properties

Link copied to clipboard
val deploymentId: Output<String>

Deployment Id

Link copied to clipboard

Domain Configuration Type

Link copied to clipboard
val domainName: Output<String>?

The name of the Azure domain that the user would like to deploy Domain Services to.

Link copied to clipboard

DomainSecurity Settings

Link copied to clipboard
val etag: Output<String>?

Resource etag

Link copied to clipboard
val filteredSync: Output<String>?

Enabled or Disabled flag to turn on Group-based filtered sync

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Secure LDAP Settings

Link copied to clipboard
val location: Output<String>?

Resource location

Link copied to clipboard

Migration Properties

Link copied to clipboard
val name: Output<String>

Resource name

Link copied to clipboard

Notification Settings

Link copied to clipboard

the current deployment or provisioning state, which only appears in the response.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

List of ReplicaSets

Link copied to clipboard

Resource Forest Settings

Link copied to clipboard
val sku: Output<String>?

Sku Type

Link copied to clipboard
val syncOwner: Output<String>

SyncOwner ReplicaSet Id

Link copied to clipboard

The system meta data relating to this resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags

Link copied to clipboard
val tenantId: Output<String>

Azure Active Directory Tenant Id

Link copied to clipboard
val type: Output<String>

Resource type

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val version: Output<Int>

Data Model Version