1. Packages
  2. Azure Classic
  3. API Docs
  4. communication
  5. EmailServiceDomainSenderUsername

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

azure.communication.EmailServiceDomainSenderUsername

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Manages an Email Communication Service Domain Sender Username.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleEmailService = new azure.communication.EmailService("example", {
        name: "example-emailcommunicationservice",
        resourceGroupName: example.name,
        dataLocation: "United States",
    });
    const exampleEmailServiceDomain = new azure.communication.EmailServiceDomain("example", {
        name: "AzureManagedDomain",
        emailServiceId: exampleEmailService.id,
        domainManagement: "AzureManaged",
    });
    const exampleEmailServiceDomainSenderUsername = new azure.communication.EmailServiceDomainSenderUsername("example", {
        name: "example-su",
        emailServiceDomainId: exampleEmailServiceDomain.id,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_email_service = azure.communication.EmailService("example",
        name="example-emailcommunicationservice",
        resource_group_name=example.name,
        data_location="United States")
    example_email_service_domain = azure.communication.EmailServiceDomain("example",
        name="AzureManagedDomain",
        email_service_id=example_email_service.id,
        domain_management="AzureManaged")
    example_email_service_domain_sender_username = azure.communication.EmailServiceDomainSenderUsername("example",
        name="example-su",
        email_service_domain_id=example_email_service_domain.id)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/communication"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleEmailService, err := communication.NewEmailService(ctx, "example", &communication.EmailServiceArgs{
    			Name:              pulumi.String("example-emailcommunicationservice"),
    			ResourceGroupName: example.Name,
    			DataLocation:      pulumi.String("United States"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleEmailServiceDomain, err := communication.NewEmailServiceDomain(ctx, "example", &communication.EmailServiceDomainArgs{
    			Name:             pulumi.String("AzureManagedDomain"),
    			EmailServiceId:   exampleEmailService.ID(),
    			DomainManagement: pulumi.String("AzureManaged"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = communication.NewEmailServiceDomainSenderUsername(ctx, "example", &communication.EmailServiceDomainSenderUsernameArgs{
    			Name:                 pulumi.String("example-su"),
    			EmailServiceDomainId: exampleEmailServiceDomain.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleEmailService = new Azure.Communication.EmailService("example", new()
        {
            Name = "example-emailcommunicationservice",
            ResourceGroupName = example.Name,
            DataLocation = "United States",
        });
    
        var exampleEmailServiceDomain = new Azure.Communication.EmailServiceDomain("example", new()
        {
            Name = "AzureManagedDomain",
            EmailServiceId = exampleEmailService.Id,
            DomainManagement = "AzureManaged",
        });
    
        var exampleEmailServiceDomainSenderUsername = new Azure.Communication.EmailServiceDomainSenderUsername("example", new()
        {
            Name = "example-su",
            EmailServiceDomainId = exampleEmailServiceDomain.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.azure.core.ResourceGroup;
    import com.pulumi.azure.core.ResourceGroupArgs;
    import com.pulumi.azure.communication.EmailService;
    import com.pulumi.azure.communication.EmailServiceArgs;
    import com.pulumi.azure.communication.EmailServiceDomain;
    import com.pulumi.azure.communication.EmailServiceDomainArgs;
    import com.pulumi.azure.communication.EmailServiceDomainSenderUsername;
    import com.pulumi.azure.communication.EmailServiceDomainSenderUsernameArgs;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleEmailService = new EmailService("exampleEmailService", EmailServiceArgs.builder()
                .name("example-emailcommunicationservice")
                .resourceGroupName(example.name())
                .dataLocation("United States")
                .build());
    
            var exampleEmailServiceDomain = new EmailServiceDomain("exampleEmailServiceDomain", EmailServiceDomainArgs.builder()
                .name("AzureManagedDomain")
                .emailServiceId(exampleEmailService.id())
                .domainManagement("AzureManaged")
                .build());
    
            var exampleEmailServiceDomainSenderUsername = new EmailServiceDomainSenderUsername("exampleEmailServiceDomainSenderUsername", EmailServiceDomainSenderUsernameArgs.builder()
                .name("example-su")
                .emailServiceDomainId(exampleEmailServiceDomain.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleEmailService:
        type: azure:communication:EmailService
        name: example
        properties:
          name: example-emailcommunicationservice
          resourceGroupName: ${example.name}
          dataLocation: United States
      exampleEmailServiceDomain:
        type: azure:communication:EmailServiceDomain
        name: example
        properties:
          name: AzureManagedDomain
          emailServiceId: ${exampleEmailService.id}
          domainManagement: AzureManaged
      exampleEmailServiceDomainSenderUsername:
        type: azure:communication:EmailServiceDomainSenderUsername
        name: example
        properties:
          name: example-su
          emailServiceDomainId: ${exampleEmailServiceDomain.id}
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.Communication - 2023-03-31

    Create EmailServiceDomainSenderUsername Resource

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

    Constructor syntax

    new EmailServiceDomainSenderUsername(name: string, args: EmailServiceDomainSenderUsernameArgs, opts?: CustomResourceOptions);
    @overload
    def EmailServiceDomainSenderUsername(resource_name: str,
                                         args: EmailServiceDomainSenderUsernameArgs,
                                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def EmailServiceDomainSenderUsername(resource_name: str,
                                         opts: Optional[ResourceOptions] = None,
                                         email_service_domain_id: Optional[str] = None,
                                         display_name: Optional[str] = None,
                                         name: Optional[str] = None)
    func NewEmailServiceDomainSenderUsername(ctx *Context, name string, args EmailServiceDomainSenderUsernameArgs, opts ...ResourceOption) (*EmailServiceDomainSenderUsername, error)
    public EmailServiceDomainSenderUsername(string name, EmailServiceDomainSenderUsernameArgs args, CustomResourceOptions? opts = null)
    public EmailServiceDomainSenderUsername(String name, EmailServiceDomainSenderUsernameArgs args)
    public EmailServiceDomainSenderUsername(String name, EmailServiceDomainSenderUsernameArgs args, CustomResourceOptions options)
    
    type: azure:communication:EmailServiceDomainSenderUsername
    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 EmailServiceDomainSenderUsernameArgs
    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 EmailServiceDomainSenderUsernameArgs
    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 EmailServiceDomainSenderUsernameArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EmailServiceDomainSenderUsernameArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EmailServiceDomainSenderUsernameArgs
    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 emailServiceDomainSenderUsernameResource = new Azure.Communication.EmailServiceDomainSenderUsername("emailServiceDomainSenderUsernameResource", new()
    {
        EmailServiceDomainId = "string",
        DisplayName = "string",
        Name = "string",
    });
    
    example, err := communication.NewEmailServiceDomainSenderUsername(ctx, "emailServiceDomainSenderUsernameResource", &communication.EmailServiceDomainSenderUsernameArgs{
    	EmailServiceDomainId: pulumi.String("string"),
    	DisplayName:          pulumi.String("string"),
    	Name:                 pulumi.String("string"),
    })
    
    var emailServiceDomainSenderUsernameResource = new EmailServiceDomainSenderUsername("emailServiceDomainSenderUsernameResource", EmailServiceDomainSenderUsernameArgs.builder()
        .emailServiceDomainId("string")
        .displayName("string")
        .name("string")
        .build());
    
    email_service_domain_sender_username_resource = azure.communication.EmailServiceDomainSenderUsername("emailServiceDomainSenderUsernameResource",
        email_service_domain_id="string",
        display_name="string",
        name="string")
    
    const emailServiceDomainSenderUsernameResource = new azure.communication.EmailServiceDomainSenderUsername("emailServiceDomainSenderUsernameResource", {
        emailServiceDomainId: "string",
        displayName: "string",
        name: "string",
    });
    
    type: azure:communication:EmailServiceDomainSenderUsername
    properties:
        displayName: string
        emailServiceDomainId: string
        name: string
    

    EmailServiceDomainSenderUsername 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 EmailServiceDomainSenderUsername resource accepts the following input properties:

    EmailServiceDomainId string
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    DisplayName string
    The display name for the Email Communication Service Domain Sender Username resource.
    Name string
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    EmailServiceDomainId string
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    DisplayName string
    The display name for the Email Communication Service Domain Sender Username resource.
    Name string
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    emailServiceDomainId String
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    displayName String
    The display name for the Email Communication Service Domain Sender Username resource.
    name String
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    emailServiceDomainId string
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    displayName string
    The display name for the Email Communication Service Domain Sender Username resource.
    name string
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    email_service_domain_id str
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    display_name str
    The display name for the Email Communication Service Domain Sender Username resource.
    name str
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    emailServiceDomainId String
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    displayName String
    The display name for the Email Communication Service Domain Sender Username resource.
    name String
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing EmailServiceDomainSenderUsername Resource

    Get an existing EmailServiceDomainSenderUsername 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?: EmailServiceDomainSenderUsernameState, opts?: CustomResourceOptions): EmailServiceDomainSenderUsername
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            display_name: Optional[str] = None,
            email_service_domain_id: Optional[str] = None,
            name: Optional[str] = None) -> EmailServiceDomainSenderUsername
    func GetEmailServiceDomainSenderUsername(ctx *Context, name string, id IDInput, state *EmailServiceDomainSenderUsernameState, opts ...ResourceOption) (*EmailServiceDomainSenderUsername, error)
    public static EmailServiceDomainSenderUsername Get(string name, Input<string> id, EmailServiceDomainSenderUsernameState? state, CustomResourceOptions? opts = null)
    public static EmailServiceDomainSenderUsername get(String name, Output<String> id, EmailServiceDomainSenderUsernameState state, CustomResourceOptions options)
    resources:  _:    type: azure:communication:EmailServiceDomainSenderUsername    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:
    DisplayName string
    The display name for the Email Communication Service Domain Sender Username resource.
    EmailServiceDomainId string
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    Name string
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    DisplayName string
    The display name for the Email Communication Service Domain Sender Username resource.
    EmailServiceDomainId string
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    Name string
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    displayName String
    The display name for the Email Communication Service Domain Sender Username resource.
    emailServiceDomainId String
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    name String
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    displayName string
    The display name for the Email Communication Service Domain Sender Username resource.
    emailServiceDomainId string
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    name string
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    display_name str
    The display name for the Email Communication Service Domain Sender Username resource.
    email_service_domain_id str
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    name str
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.
    displayName String
    The display name for the Email Communication Service Domain Sender Username resource.
    emailServiceDomainId String
    The ID of the Email Communication Service Domain resource. Changing this forces a new resource to be created.
    name String
    The name of the Email Communication Service Domain Sender Username resource. Changing this forces a new resource to be created.

    Import

    Communication Service Domain Sender Usernames can be imported using the resource id, e.g.

    $ pulumi import azure:communication/emailServiceDomainSenderUsername:EmailServiceDomainSenderUsername example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Communication/emailServices/service1/domains/domain1/senderUsernames/username1
    

    To learn more about importing existing cloud resources, see Importing resources.

    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.

    Azure v6.25.0 published on Wednesday, Aug 13, 2025 by Pulumi