1. Packages
  2. Azure Classic
  3. API Docs
  4. domainservices
  5. Service

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v4.42.0 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    Import

    Domain Services can be imported using the resource ID, together with the Replica Set ID that you wish to designate as the initial replica set, e.g.

     $ pulumi import azure:domainservices/service:Service example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.AAD/domainServices/instance1/initialReplicaSetId/00000000-0000-0000-0000-000000000000
    

    Example Usage

    Example coming soon!

    Example coming soon!

    Example coming soon!

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    import * as azuread from "@pulumi/azuread";
    
    const deployResourceGroup = new azure.core.ResourceGroup("deployResourceGroup", {location: "West Europe"});
    const deployVirtualNetwork = new azure.network.VirtualNetwork("deployVirtualNetwork", {
        location: deployResourceGroup.location,
        resourceGroupName: deployResourceGroup.name,
        addressSpaces: ["10.0.1.0/16"],
    });
    const deploySubnet = new azure.network.Subnet("deploySubnet", {
        resourceGroupName: deployResourceGroup.name,
        virtualNetworkName: deployVirtualNetwork.name,
        addressPrefixes: ["10.0.1.0/24"],
    });
    const deployNetworkSecurityGroup = new azure.network.NetworkSecurityGroup("deployNetworkSecurityGroup", {
        location: deployResourceGroup.location,
        resourceGroupName: deployResourceGroup.name,
        securityRules: [
            {
                name: "AllowSyncWithAzureAD",
                priority: 101,
                direction: "Inbound",
                access: "Allow",
                protocol: "Tcp",
                sourcePortRange: "*",
                destinationPortRange: "443",
                sourceAddressPrefix: "AzureActiveDirectoryDomainServices",
                destinationAddressPrefix: "*",
            },
            {
                name: "AllowRD",
                priority: 201,
                direction: "Inbound",
                access: "Allow",
                protocol: "Tcp",
                sourcePortRange: "*",
                destinationPortRange: "3389",
                sourceAddressPrefix: "CorpNetSaw",
                destinationAddressPrefix: "*",
            },
            {
                name: "AllowPSRemoting",
                priority: 301,
                direction: "Inbound",
                access: "Allow",
                protocol: "Tcp",
                sourcePortRange: "*",
                destinationPortRange: "5986",
                sourceAddressPrefix: "AzureActiveDirectoryDomainServices",
                destinationAddressPrefix: "*",
            },
            {
                name: "AllowLDAPS",
                priority: 401,
                direction: "Inbound",
                access: "Allow",
                protocol: "Tcp",
                sourcePortRange: "*",
                destinationPortRange: "636",
                sourceAddressPrefix: "*",
                destinationAddressPrefix: "*",
            },
        ],
    });
    const deploySubnetNetworkSecurityGroupAssociation = new azure.network.SubnetNetworkSecurityGroupAssociation("deploySubnetNetworkSecurityGroupAssociation", {
        subnetId: deploySubnet.id,
        networkSecurityGroupId: deployNetworkSecurityGroup.id,
    });
    const dcAdmins = new azuread.Group("dcAdmins", {
        displayName: "AAD DC Administrators",
        securityEnabled: true,
    });
    const adminUser = new azuread.User("adminUser", {
        userPrincipalName: `dc-admin@$hashicorp-example.net`,
        displayName: "DC Administrator",
        password: "Pa55w0Rd!!1",
    });
    const adminGroupMember = new azuread.GroupMember("adminGroupMember", {
        groupObjectId: dcAdmins.objectId,
        memberObjectId: adminUser.objectId,
    });
    const exampleServicePrincipal = new azuread.ServicePrincipal("exampleServicePrincipal", {applicationId: "2565bd9d-da50-47d4-8b85-4c97f669dc36"});
    // published app for domain services
    const aadds = new azure.core.ResourceGroup("aadds", {location: "westeurope"});
    const exampleService = new azure.domainservices.Service("exampleService", {
        location: aadds.location,
        resourceGroupName: aadds.name,
        domainName: "widgetslogin.net",
        sku: "Enterprise",
        filteredSyncEnabled: false,
        initialReplicaSet: {
            subnetId: deploySubnet.id,
        },
        notifications: {
            additionalRecipients: [
                "notifyA@example.net",
                "notifyB@example.org",
            ],
            notifyDcAdmins: true,
            notifyGlobalAdmins: true,
        },
        security: {
            syncKerberosPasswords: true,
            syncNtlmPasswords: true,
            syncOnPremPasswords: true,
        },
        tags: {
            Environment: "prod",
        },
    }, {
        dependsOn: [
            exampleServicePrincipal,
            deploySubnetNetworkSecurityGroupAssociation,
        ],
    });
    

    Example coming soon!

    Example coming soon!

    Create Service Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Service(name: string, args: ServiceArgs, opts?: CustomResourceOptions);
    @overload
    def Service(resource_name: str,
                args: ServiceArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def Service(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                domain_name: Optional[str] = None,
                initial_replica_set: Optional[ServiceInitialReplicaSetArgs] = None,
                resource_group_name: Optional[str] = None,
                sku: Optional[str] = None,
                filtered_sync_enabled: Optional[bool] = None,
                location: Optional[str] = None,
                name: Optional[str] = None,
                notifications: Optional[ServiceNotificationsArgs] = None,
                secure_ldap: Optional[ServiceSecureLdapArgs] = None,
                security: Optional[ServiceSecurityArgs] = None,
                tags: Optional[Mapping[str, str]] = None)
    func NewService(ctx *Context, name string, args ServiceArgs, opts ...ResourceOption) (*Service, error)
    public Service(string name, ServiceArgs args, CustomResourceOptions? opts = null)
    public Service(String name, ServiceArgs args)
    public Service(String name, ServiceArgs args, CustomResourceOptions options)
    
    type: azure:domainservices:Service
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var exampleserviceResourceResourceFromDomainservicesservice = new Azure.DomainServices.Service("exampleserviceResourceResourceFromDomainservicesservice", new()
    {
        DomainName = "string",
        InitialReplicaSet = new Azure.DomainServices.Inputs.ServiceInitialReplicaSetArgs
        {
            SubnetId = "string",
            DomainControllerIpAddresses = new[]
            {
                "string",
            },
            ExternalAccessIpAddress = "string",
            Id = "string",
            Location = "string",
            ServiceStatus = "string",
        },
        ResourceGroupName = "string",
        Sku = "string",
        FilteredSyncEnabled = false,
        Location = "string",
        Name = "string",
        Notifications = new Azure.DomainServices.Inputs.ServiceNotificationsArgs
        {
            AdditionalRecipients = new[]
            {
                "string",
            },
            NotifyDcAdmins = false,
            NotifyGlobalAdmins = false,
        },
        SecureLdap = new Azure.DomainServices.Inputs.ServiceSecureLdapArgs
        {
            Enabled = false,
            PfxCertificate = "string",
            PfxCertificatePassword = "string",
            CertificateExpiry = "string",
            CertificateThumbprint = "string",
            ExternalAccessEnabled = false,
            PublicCertificate = "string",
        },
        Security = new Azure.DomainServices.Inputs.ServiceSecurityArgs
        {
            NtlmV1Enabled = false,
            SyncKerberosPasswords = false,
            SyncNtlmPasswords = false,
            SyncOnPremPasswords = false,
            TlsV1Enabled = false,
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := domainservices.NewService(ctx, "exampleserviceResourceResourceFromDomainservicesservice", &domainservices.ServiceArgs{
    	DomainName: pulumi.String("string"),
    	InitialReplicaSet: &domainservices.ServiceInitialReplicaSetArgs{
    		SubnetId: pulumi.String("string"),
    		DomainControllerIpAddresses: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		ExternalAccessIpAddress: pulumi.String("string"),
    		Id:                      pulumi.String("string"),
    		Location:                pulumi.String("string"),
    		ServiceStatus:           pulumi.String("string"),
    	},
    	ResourceGroupName:   pulumi.String("string"),
    	Sku:                 pulumi.String("string"),
    	FilteredSyncEnabled: pulumi.Bool(false),
    	Location:            pulumi.String("string"),
    	Name:                pulumi.String("string"),
    	Notifications: &domainservices.ServiceNotificationsArgs{
    		AdditionalRecipients: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    		NotifyDcAdmins:     pulumi.Bool(false),
    		NotifyGlobalAdmins: pulumi.Bool(false),
    	},
    	SecureLdap: &domainservices.ServiceSecureLdapArgs{
    		Enabled:                pulumi.Bool(false),
    		PfxCertificate:         pulumi.String("string"),
    		PfxCertificatePassword: pulumi.String("string"),
    		CertificateExpiry:      pulumi.String("string"),
    		CertificateThumbprint:  pulumi.String("string"),
    		ExternalAccessEnabled:  pulumi.Bool(false),
    		PublicCertificate:      pulumi.String("string"),
    	},
    	Security: &domainservices.ServiceSecurityArgs{
    		NtlmV1Enabled:         pulumi.Bool(false),
    		SyncKerberosPasswords: pulumi.Bool(false),
    		SyncNtlmPasswords:     pulumi.Bool(false),
    		SyncOnPremPasswords:   pulumi.Bool(false),
    		TlsV1Enabled:          pulumi.Bool(false),
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var exampleserviceResourceResourceFromDomainservicesservice = new com.pulumi.azure.domainservices.Service("exampleserviceResourceResourceFromDomainservicesservice", com.pulumi.azure.domainservices.ServiceArgs.builder()
        .domainName("string")
        .initialReplicaSet(ServiceInitialReplicaSetArgs.builder()
            .subnetId("string")
            .domainControllerIpAddresses("string")
            .externalAccessIpAddress("string")
            .id("string")
            .location("string")
            .serviceStatus("string")
            .build())
        .resourceGroupName("string")
        .sku("string")
        .filteredSyncEnabled(false)
        .location("string")
        .name("string")
        .notifications(ServiceNotificationsArgs.builder()
            .additionalRecipients("string")
            .notifyDcAdmins(false)
            .notifyGlobalAdmins(false)
            .build())
        .secureLdap(ServiceSecureLdapArgs.builder()
            .enabled(false)
            .pfxCertificate("string")
            .pfxCertificatePassword("string")
            .certificateExpiry("string")
            .certificateThumbprint("string")
            .externalAccessEnabled(false)
            .publicCertificate("string")
            .build())
        .security(ServiceSecurityArgs.builder()
            .ntlmV1Enabled(false)
            .syncKerberosPasswords(false)
            .syncNtlmPasswords(false)
            .syncOnPremPasswords(false)
            .tlsV1Enabled(false)
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    exampleservice_resource_resource_from_domainservicesservice = azure.domainservices.Service("exampleserviceResourceResourceFromDomainservicesservice",
        domain_name="string",
        initial_replica_set={
            "subnet_id": "string",
            "domain_controller_ip_addresses": ["string"],
            "external_access_ip_address": "string",
            "id": "string",
            "location": "string",
            "service_status": "string",
        },
        resource_group_name="string",
        sku="string",
        filtered_sync_enabled=False,
        location="string",
        name="string",
        notifications={
            "additional_recipients": ["string"],
            "notify_dc_admins": False,
            "notify_global_admins": False,
        },
        secure_ldap={
            "enabled": False,
            "pfx_certificate": "string",
            "pfx_certificate_password": "string",
            "certificate_expiry": "string",
            "certificate_thumbprint": "string",
            "external_access_enabled": False,
            "public_certificate": "string",
        },
        security={
            "ntlm_v1_enabled": False,
            "sync_kerberos_passwords": False,
            "sync_ntlm_passwords": False,
            "sync_on_prem_passwords": False,
            "tls_v1_enabled": False,
        },
        tags={
            "string": "string",
        })
    
    const exampleserviceResourceResourceFromDomainservicesservice = new azure.domainservices.Service("exampleserviceResourceResourceFromDomainservicesservice", {
        domainName: "string",
        initialReplicaSet: {
            subnetId: "string",
            domainControllerIpAddresses: ["string"],
            externalAccessIpAddress: "string",
            id: "string",
            location: "string",
            serviceStatus: "string",
        },
        resourceGroupName: "string",
        sku: "string",
        filteredSyncEnabled: false,
        location: "string",
        name: "string",
        notifications: {
            additionalRecipients: ["string"],
            notifyDcAdmins: false,
            notifyGlobalAdmins: false,
        },
        secureLdap: {
            enabled: false,
            pfxCertificate: "string",
            pfxCertificatePassword: "string",
            certificateExpiry: "string",
            certificateThumbprint: "string",
            externalAccessEnabled: false,
            publicCertificate: "string",
        },
        security: {
            ntlmV1Enabled: false,
            syncKerberosPasswords: false,
            syncNtlmPasswords: false,
            syncOnPremPasswords: false,
            tlsV1Enabled: false,
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure:domainservices:Service
    properties:
        domainName: string
        filteredSyncEnabled: false
        initialReplicaSet:
            domainControllerIpAddresses:
                - string
            externalAccessIpAddress: string
            id: string
            location: string
            serviceStatus: string
            subnetId: string
        location: string
        name: string
        notifications:
            additionalRecipients:
                - string
            notifyDcAdmins: false
            notifyGlobalAdmins: false
        resourceGroupName: string
        secureLdap:
            certificateExpiry: string
            certificateThumbprint: string
            enabled: false
            externalAccessEnabled: false
            pfxCertificate: string
            pfxCertificatePassword: string
            publicCertificate: string
        security:
            ntlmV1Enabled: false
            syncKerberosPasswords: false
            syncNtlmPasswords: false
            syncOnPremPasswords: false
            tlsV1Enabled: false
        sku: string
        tags:
            string: string
    

    Service Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Service resource accepts the following input properties:

    DomainName string
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    InitialReplicaSet ServiceInitialReplicaSet
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    ResourceGroupName string
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    Sku string
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    FilteredSyncEnabled bool
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    Location string
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    Name string
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    Notifications ServiceNotifications
    A notifications block as defined below.
    SecureLdap ServiceSecureLdap
    A secure_ldap block as defined below.
    Security ServiceSecurity
    A security block as defined below.
    Tags Dictionary<string, string>
    A mapping of tags assigned to the resource.
    DomainName string
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    InitialReplicaSet ServiceInitialReplicaSetArgs
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    ResourceGroupName string
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    Sku string
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    FilteredSyncEnabled bool
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    Location string
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    Name string
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    Notifications ServiceNotificationsArgs
    A notifications block as defined below.
    SecureLdap ServiceSecureLdapArgs
    A secure_ldap block as defined below.
    Security ServiceSecurityArgs
    A security block as defined below.
    Tags map[string]string
    A mapping of tags assigned to the resource.
    domainName String
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    initialReplicaSet ServiceInitialReplicaSet
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    resourceGroupName String
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    sku String
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    filteredSyncEnabled Boolean
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    location String
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    name String
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    notifications ServiceNotifications
    A notifications block as defined below.
    secureLdap ServiceSecureLdap
    A secure_ldap block as defined below.
    security ServiceSecurity
    A security block as defined below.
    tags Map<String,String>
    A mapping of tags assigned to the resource.
    domainName string
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    initialReplicaSet ServiceInitialReplicaSet
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    resourceGroupName string
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    sku string
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    filteredSyncEnabled boolean
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    location string
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    name string
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    notifications ServiceNotifications
    A notifications block as defined below.
    secureLdap ServiceSecureLdap
    A secure_ldap block as defined below.
    security ServiceSecurity
    A security block as defined below.
    tags {[key: string]: string}
    A mapping of tags assigned to the resource.
    domain_name str
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    initial_replica_set ServiceInitialReplicaSetArgs
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    resource_group_name str
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    sku str
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    filtered_sync_enabled bool
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    location str
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    name str
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    notifications ServiceNotificationsArgs
    A notifications block as defined below.
    secure_ldap ServiceSecureLdapArgs
    A secure_ldap block as defined below.
    security ServiceSecurityArgs
    A security block as defined below.
    tags Mapping[str, str]
    A mapping of tags assigned to the resource.
    domainName String
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    initialReplicaSet Property Map
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    resourceGroupName String
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    sku String
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    filteredSyncEnabled Boolean
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    location String
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    name String
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    notifications Property Map
    A notifications block as defined below.
    secureLdap Property Map
    A secure_ldap block as defined below.
    security Property Map
    A security block as defined below.
    tags Map<String>
    A mapping of tags assigned to the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Service resource produces the following output properties:

    DeploymentId string
    A unique ID for the managed domain deployment.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    The Azure resource ID for the domain service.
    SyncOwner string
    TenantId string
    Version int
    DeploymentId string
    A unique ID for the managed domain deployment.
    Id string
    The provider-assigned unique ID for this managed resource.
    ResourceId string
    The Azure resource ID for the domain service.
    SyncOwner string
    TenantId string
    Version int
    deploymentId String
    A unique ID for the managed domain deployment.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    The Azure resource ID for the domain service.
    syncOwner String
    tenantId String
    version Integer
    deploymentId string
    A unique ID for the managed domain deployment.
    id string
    The provider-assigned unique ID for this managed resource.
    resourceId string
    The Azure resource ID for the domain service.
    syncOwner string
    tenantId string
    version number
    deployment_id str
    A unique ID for the managed domain deployment.
    id str
    The provider-assigned unique ID for this managed resource.
    resource_id str
    The Azure resource ID for the domain service.
    sync_owner str
    tenant_id str
    version int
    deploymentId String
    A unique ID for the managed domain deployment.
    id String
    The provider-assigned unique ID for this managed resource.
    resourceId String
    The Azure resource ID for the domain service.
    syncOwner String
    tenantId String
    version Number

    Look up Existing Service Resource

    Get an existing Service resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServiceState, opts?: CustomResourceOptions): Service
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            deployment_id: Optional[str] = None,
            domain_name: Optional[str] = None,
            filtered_sync_enabled: Optional[bool] = None,
            initial_replica_set: Optional[ServiceInitialReplicaSetArgs] = None,
            location: Optional[str] = None,
            name: Optional[str] = None,
            notifications: Optional[ServiceNotificationsArgs] = None,
            resource_group_name: Optional[str] = None,
            resource_id: Optional[str] = None,
            secure_ldap: Optional[ServiceSecureLdapArgs] = None,
            security: Optional[ServiceSecurityArgs] = None,
            sku: Optional[str] = None,
            sync_owner: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            tenant_id: Optional[str] = None,
            version: Optional[int] = None) -> Service
    func GetService(ctx *Context, name string, id IDInput, state *ServiceState, opts ...ResourceOption) (*Service, error)
    public static Service Get(string name, Input<string> id, ServiceState? state, CustomResourceOptions? opts = null)
    public static Service get(String name, Output<String> id, ServiceState state, CustomResourceOptions options)
    resources:  _:    type: azure:domainservices:Service    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DeploymentId string
    A unique ID for the managed domain deployment.
    DomainName string
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    FilteredSyncEnabled bool
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    InitialReplicaSet ServiceInitialReplicaSet
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    Location string
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    Name string
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    Notifications ServiceNotifications
    A notifications block as defined below.
    ResourceGroupName string
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    ResourceId string
    The Azure resource ID for the domain service.
    SecureLdap ServiceSecureLdap
    A secure_ldap block as defined below.
    Security ServiceSecurity
    A security block as defined below.
    Sku string
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    SyncOwner string
    Tags Dictionary<string, string>
    A mapping of tags assigned to the resource.
    TenantId string
    Version int
    DeploymentId string
    A unique ID for the managed domain deployment.
    DomainName string
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    FilteredSyncEnabled bool
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    InitialReplicaSet ServiceInitialReplicaSetArgs
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    Location string
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    Name string
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    Notifications ServiceNotificationsArgs
    A notifications block as defined below.
    ResourceGroupName string
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    ResourceId string
    The Azure resource ID for the domain service.
    SecureLdap ServiceSecureLdapArgs
    A secure_ldap block as defined below.
    Security ServiceSecurityArgs
    A security block as defined below.
    Sku string
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    SyncOwner string
    Tags map[string]string
    A mapping of tags assigned to the resource.
    TenantId string
    Version int
    deploymentId String
    A unique ID for the managed domain deployment.
    domainName String
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    filteredSyncEnabled Boolean
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    initialReplicaSet ServiceInitialReplicaSet
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    location String
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    name String
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    notifications ServiceNotifications
    A notifications block as defined below.
    resourceGroupName String
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    resourceId String
    The Azure resource ID for the domain service.
    secureLdap ServiceSecureLdap
    A secure_ldap block as defined below.
    security ServiceSecurity
    A security block as defined below.
    sku String
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    syncOwner String
    tags Map<String,String>
    A mapping of tags assigned to the resource.
    tenantId String
    version Integer
    deploymentId string
    A unique ID for the managed domain deployment.
    domainName string
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    filteredSyncEnabled boolean
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    initialReplicaSet ServiceInitialReplicaSet
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    location string
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    name string
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    notifications ServiceNotifications
    A notifications block as defined below.
    resourceGroupName string
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    resourceId string
    The Azure resource ID for the domain service.
    secureLdap ServiceSecureLdap
    A secure_ldap block as defined below.
    security ServiceSecurity
    A security block as defined below.
    sku string
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    syncOwner string
    tags {[key: string]: string}
    A mapping of tags assigned to the resource.
    tenantId string
    version number
    deployment_id str
    A unique ID for the managed domain deployment.
    domain_name str
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    filtered_sync_enabled bool
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    initial_replica_set ServiceInitialReplicaSetArgs
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    location str
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    name str
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    notifications ServiceNotificationsArgs
    A notifications block as defined below.
    resource_group_name str
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    resource_id str
    The Azure resource ID for the domain service.
    secure_ldap ServiceSecureLdapArgs
    A secure_ldap block as defined below.
    security ServiceSecurityArgs
    A security block as defined below.
    sku str
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    sync_owner str
    tags Mapping[str, str]
    A mapping of tags assigned to the resource.
    tenant_id str
    version int
    deploymentId String
    A unique ID for the managed domain deployment.
    domainName String
    The Active Directory domain to use. See official documentation for constraints and recommendations.
    filteredSyncEnabled Boolean
    Whether to enable group-based filtered sync (also called scoped synchronisation). Defaults to false.
    initialReplicaSet Property Map
    An initial_replica_set block as defined below. The initial replica set inherits the same location as the Domain Service resource.
    location String
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    name String
    The display name for your managed Active Directory Domain Service resource. Changing this forces a new resource to be created.
    notifications Property Map
    A notifications block as defined below.
    resourceGroupName String
    The name of the Resource Group in which the Domain Service should exist. Changing this forces a new resource to be created.
    resourceId String
    The Azure resource ID for the domain service.
    secureLdap Property Map
    A secure_ldap block as defined below.
    security Property Map
    A security block as defined below.
    sku String
    The SKU to use when provisioning the Domain Service resource. One of Standard, Enterprise or Premium.
    syncOwner String
    tags Map<String>
    A mapping of tags assigned to the resource.
    tenantId String
    version Number

    Supporting Types

    ServiceInitialReplicaSet, ServiceInitialReplicaSetArgs

    SubnetId string
    The ID of the subnet in which to place the initial replica set.
    DomainControllerIpAddresses List<string>
    A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
    ExternalAccessIpAddress string
    The publicly routable IP address for the domain controllers in the initial replica set.
    Id string
    The ID of the Domain Service.
    Location string
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    ServiceStatus string
    The current service status for the initial replica set.
    SubnetId string
    The ID of the subnet in which to place the initial replica set.
    DomainControllerIpAddresses []string
    A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
    ExternalAccessIpAddress string
    The publicly routable IP address for the domain controllers in the initial replica set.
    Id string
    The ID of the Domain Service.
    Location string
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    ServiceStatus string
    The current service status for the initial replica set.
    subnetId String
    The ID of the subnet in which to place the initial replica set.
    domainControllerIpAddresses List<String>
    A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
    externalAccessIpAddress String
    The publicly routable IP address for the domain controllers in the initial replica set.
    id String
    The ID of the Domain Service.
    location String
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    serviceStatus String
    The current service status for the initial replica set.
    subnetId string
    The ID of the subnet in which to place the initial replica set.
    domainControllerIpAddresses string[]
    A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
    externalAccessIpAddress string
    The publicly routable IP address for the domain controllers in the initial replica set.
    id string
    The ID of the Domain Service.
    location string
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    serviceStatus string
    The current service status for the initial replica set.
    subnet_id str
    The ID of the subnet in which to place the initial replica set.
    domain_controller_ip_addresses Sequence[str]
    A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
    external_access_ip_address str
    The publicly routable IP address for the domain controllers in the initial replica set.
    id str
    The ID of the Domain Service.
    location str
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    service_status str
    The current service status for the initial replica set.
    subnetId String
    The ID of the subnet in which to place the initial replica set.
    domainControllerIpAddresses List<String>
    A list of subnet IP addresses for the domain controllers in the initial replica set, typically two.
    externalAccessIpAddress String
    The publicly routable IP address for the domain controllers in the initial replica set.
    id String
    The ID of the Domain Service.
    location String
    The Azure location where the Domain Service exists. Changing this forces a new resource to be created.
    serviceStatus String
    The current service status for the initial replica set.

    ServiceNotifications, ServiceNotificationsArgs

    AdditionalRecipients List<string>
    A list of additional email addresses to notify when there are alerts in the managed domain.
    NotifyDcAdmins bool
    Whether to notify members of the AAD DC Administrators group when there are alerts in the managed domain.
    NotifyGlobalAdmins bool
    Whether to notify all Global Administrators when there are alerts in the managed domain.
    AdditionalRecipients []string
    A list of additional email addresses to notify when there are alerts in the managed domain.
    NotifyDcAdmins bool
    Whether to notify members of the AAD DC Administrators group when there are alerts in the managed domain.
    NotifyGlobalAdmins bool
    Whether to notify all Global Administrators when there are alerts in the managed domain.
    additionalRecipients List<String>
    A list of additional email addresses to notify when there are alerts in the managed domain.
    notifyDcAdmins Boolean
    Whether to notify members of the AAD DC Administrators group when there are alerts in the managed domain.
    notifyGlobalAdmins Boolean
    Whether to notify all Global Administrators when there are alerts in the managed domain.
    additionalRecipients string[]
    A list of additional email addresses to notify when there are alerts in the managed domain.
    notifyDcAdmins boolean
    Whether to notify members of the AAD DC Administrators group when there are alerts in the managed domain.
    notifyGlobalAdmins boolean
    Whether to notify all Global Administrators when there are alerts in the managed domain.
    additional_recipients Sequence[str]
    A list of additional email addresses to notify when there are alerts in the managed domain.
    notify_dc_admins bool
    Whether to notify members of the AAD DC Administrators group when there are alerts in the managed domain.
    notify_global_admins bool
    Whether to notify all Global Administrators when there are alerts in the managed domain.
    additionalRecipients List<String>
    A list of additional email addresses to notify when there are alerts in the managed domain.
    notifyDcAdmins Boolean
    Whether to notify members of the AAD DC Administrators group when there are alerts in the managed domain.
    notifyGlobalAdmins Boolean
    Whether to notify all Global Administrators when there are alerts in the managed domain.

    ServiceSecureLdap, ServiceSecureLdapArgs

    Enabled bool
    Whether to enable secure LDAP for the managed domain. Defaults to false. For more information, please see official documentation on enabling LDAPS, paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks.
    PfxCertificate string
    The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file).
    PfxCertificatePassword string
    The password to use for decrypting the PKCS#12 bundle (PFX file).
    CertificateExpiry string
    CertificateThumbprint string
    ExternalAccessEnabled bool
    Whether to enable external access to LDAPS over the Internet. Defaults to false.
    PublicCertificate string
    Enabled bool
    Whether to enable secure LDAP for the managed domain. Defaults to false. For more information, please see official documentation on enabling LDAPS, paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks.
    PfxCertificate string
    The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file).
    PfxCertificatePassword string
    The password to use for decrypting the PKCS#12 bundle (PFX file).
    CertificateExpiry string
    CertificateThumbprint string
    ExternalAccessEnabled bool
    Whether to enable external access to LDAPS over the Internet. Defaults to false.
    PublicCertificate string
    enabled Boolean
    Whether to enable secure LDAP for the managed domain. Defaults to false. For more information, please see official documentation on enabling LDAPS, paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks.
    pfxCertificate String
    The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file).
    pfxCertificatePassword String
    The password to use for decrypting the PKCS#12 bundle (PFX file).
    certificateExpiry String
    certificateThumbprint String
    externalAccessEnabled Boolean
    Whether to enable external access to LDAPS over the Internet. Defaults to false.
    publicCertificate String
    enabled boolean
    Whether to enable secure LDAP for the managed domain. Defaults to false. For more information, please see official documentation on enabling LDAPS, paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks.
    pfxCertificate string
    The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file).
    pfxCertificatePassword string
    The password to use for decrypting the PKCS#12 bundle (PFX file).
    certificateExpiry string
    certificateThumbprint string
    externalAccessEnabled boolean
    Whether to enable external access to LDAPS over the Internet. Defaults to false.
    publicCertificate string
    enabled bool
    Whether to enable secure LDAP for the managed domain. Defaults to false. For more information, please see official documentation on enabling LDAPS, paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks.
    pfx_certificate str
    The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file).
    pfx_certificate_password str
    The password to use for decrypting the PKCS#12 bundle (PFX file).
    certificate_expiry str
    certificate_thumbprint str
    external_access_enabled bool
    Whether to enable external access to LDAPS over the Internet. Defaults to false.
    public_certificate str
    enabled Boolean
    Whether to enable secure LDAP for the managed domain. Defaults to false. For more information, please see official documentation on enabling LDAPS, paying particular attention to the section on network security to avoid unnecessarily exposing your service to Internet-borne bruteforce attacks.
    pfxCertificate String
    The certificate/private key to use for LDAPS, as a base64-encoded TripleDES-SHA1 encrypted PKCS#12 bundle (PFX file).
    pfxCertificatePassword String
    The password to use for decrypting the PKCS#12 bundle (PFX file).
    certificateExpiry String
    certificateThumbprint String
    externalAccessEnabled Boolean
    Whether to enable external access to LDAPS over the Internet. Defaults to false.
    publicCertificate String

    ServiceSecurity, ServiceSecurityArgs

    NtlmV1Enabled bool
    Whether to enable legacy NTLM v1 support. Defaults to false.
    SyncKerberosPasswords bool
    Whether to synchronize Kerberos password hashes to the managed domain. Defaults to false.
    SyncNtlmPasswords bool
    Whether to synchronize NTLM password hashes to the managed domain. Defaults to false.
    SyncOnPremPasswords bool
    Whether to synchronize on-premises password hashes to the managed domain. Defaults to false.
    TlsV1Enabled bool
    Whether to enable legacy TLS v1 support. Defaults to false.
    NtlmV1Enabled bool
    Whether to enable legacy NTLM v1 support. Defaults to false.
    SyncKerberosPasswords bool
    Whether to synchronize Kerberos password hashes to the managed domain. Defaults to false.
    SyncNtlmPasswords bool
    Whether to synchronize NTLM password hashes to the managed domain. Defaults to false.
    SyncOnPremPasswords bool
    Whether to synchronize on-premises password hashes to the managed domain. Defaults to false.
    TlsV1Enabled bool
    Whether to enable legacy TLS v1 support. Defaults to false.
    ntlmV1Enabled Boolean
    Whether to enable legacy NTLM v1 support. Defaults to false.
    syncKerberosPasswords Boolean
    Whether to synchronize Kerberos password hashes to the managed domain. Defaults to false.
    syncNtlmPasswords Boolean
    Whether to synchronize NTLM password hashes to the managed domain. Defaults to false.
    syncOnPremPasswords Boolean
    Whether to synchronize on-premises password hashes to the managed domain. Defaults to false.
    tlsV1Enabled Boolean
    Whether to enable legacy TLS v1 support. Defaults to false.
    ntlmV1Enabled boolean
    Whether to enable legacy NTLM v1 support. Defaults to false.
    syncKerberosPasswords boolean
    Whether to synchronize Kerberos password hashes to the managed domain. Defaults to false.
    syncNtlmPasswords boolean
    Whether to synchronize NTLM password hashes to the managed domain. Defaults to false.
    syncOnPremPasswords boolean
    Whether to synchronize on-premises password hashes to the managed domain. Defaults to false.
    tlsV1Enabled boolean
    Whether to enable legacy TLS v1 support. Defaults to false.
    ntlm_v1_enabled bool
    Whether to enable legacy NTLM v1 support. Defaults to false.
    sync_kerberos_passwords bool
    Whether to synchronize Kerberos password hashes to the managed domain. Defaults to false.
    sync_ntlm_passwords bool
    Whether to synchronize NTLM password hashes to the managed domain. Defaults to false.
    sync_on_prem_passwords bool
    Whether to synchronize on-premises password hashes to the managed domain. Defaults to false.
    tls_v1_enabled bool
    Whether to enable legacy TLS v1 support. Defaults to false.
    ntlmV1Enabled Boolean
    Whether to enable legacy NTLM v1 support. Defaults to false.
    syncKerberosPasswords Boolean
    Whether to synchronize Kerberos password hashes to the managed domain. Defaults to false.
    syncNtlmPasswords Boolean
    Whether to synchronize NTLM password hashes to the managed domain. Defaults to false.
    syncOnPremPasswords Boolean
    Whether to synchronize on-premises password hashes to the managed domain. Defaults to false.
    tlsV1Enabled Boolean
    Whether to enable legacy TLS v1 support. Defaults to false.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v4.42.0 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.