1. Packages
  2. Azure Native
  3. API Docs
  4. communication
  5. SmtpUsername
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

azure-native.communication.SmtpUsername

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi

The object describing the smtp username resource.

Uses Azure REST API version 2024-09-01-preview.

Example Usage

CreateOrUpdate SmtpUsername resource

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;

return await Deployment.RunAsync(() => 
{
    var smtpUsername = new AzureNative.Communication.SmtpUsername("smtpUsername", new()
    {
        CommunicationServiceName = "contosoACSService",
        EntraApplicationId = "aaaa1111-bbbb-2222-3333-aaaa111122bb",
        ResourceGroupName = "contosoResourceGroup",
        SmtpUsername = "smtpusername1",
        TenantId = "aaaa1111-bbbb-2222-3333-aaaa11112222",
        Username = "newuser1@contoso.com",
    });

});
Copy
package main

import (
	communication "github.com/pulumi/pulumi-azure-native-sdk/communication/v3"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := communication.NewSmtpUsername(ctx, "smtpUsername", &communication.SmtpUsernameArgs{
			CommunicationServiceName: pulumi.String("contosoACSService"),
			EntraApplicationId:       pulumi.String("aaaa1111-bbbb-2222-3333-aaaa111122bb"),
			ResourceGroupName:        pulumi.String("contosoResourceGroup"),
			SmtpUsername:             pulumi.String("smtpusername1"),
			TenantId:                 pulumi.String("aaaa1111-bbbb-2222-3333-aaaa11112222"),
			Username:                 pulumi.String("newuser1@contoso.com"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.communication.SmtpUsername;
import com.pulumi.azurenative.communication.SmtpUsernameArgs;
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 smtpUsername = new SmtpUsername("smtpUsername", SmtpUsernameArgs.builder()
            .communicationServiceName("contosoACSService")
            .entraApplicationId("aaaa1111-bbbb-2222-3333-aaaa111122bb")
            .resourceGroupName("contosoResourceGroup")
            .smtpUsername("smtpusername1")
            .tenantId("aaaa1111-bbbb-2222-3333-aaaa11112222")
            .username("newuser1@contoso.com")
            .build());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";

const smtpUsername = new azure_native.communication.SmtpUsername("smtpUsername", {
    communicationServiceName: "contosoACSService",
    entraApplicationId: "aaaa1111-bbbb-2222-3333-aaaa111122bb",
    resourceGroupName: "contosoResourceGroup",
    smtpUsername: "smtpusername1",
    tenantId: "aaaa1111-bbbb-2222-3333-aaaa11112222",
    username: "newuser1@contoso.com",
});
Copy
import pulumi
import pulumi_azure_native as azure_native

smtp_username = azure_native.communication.SmtpUsername("smtpUsername",
    communication_service_name="contosoACSService",
    entra_application_id="aaaa1111-bbbb-2222-3333-aaaa111122bb",
    resource_group_name="contosoResourceGroup",
    smtp_username="smtpusername1",
    tenant_id="aaaa1111-bbbb-2222-3333-aaaa11112222",
    username="newuser1@contoso.com")
Copy
resources:
  smtpUsername:
    type: azure-native:communication:SmtpUsername
    properties:
      communicationServiceName: contosoACSService
      entraApplicationId: aaaa1111-bbbb-2222-3333-aaaa111122bb
      resourceGroupName: contosoResourceGroup
      smtpUsername: smtpusername1
      tenantId: aaaa1111-bbbb-2222-3333-aaaa11112222
      username: newuser1@contoso.com
Copy

Create SmtpUsername Resource

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

Constructor syntax

new SmtpUsername(name: string, args: SmtpUsernameArgs, opts?: CustomResourceOptions);
@overload
def SmtpUsername(resource_name: str,
                 args: SmtpUsernameArgs,
                 opts: Optional[ResourceOptions] = None)

@overload
def SmtpUsername(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 communication_service_name: Optional[str] = None,
                 entra_application_id: Optional[str] = None,
                 resource_group_name: Optional[str] = None,
                 tenant_id: Optional[str] = None,
                 username: Optional[str] = None,
                 smtp_username: Optional[str] = None)
func NewSmtpUsername(ctx *Context, name string, args SmtpUsernameArgs, opts ...ResourceOption) (*SmtpUsername, error)
public SmtpUsername(string name, SmtpUsernameArgs args, CustomResourceOptions? opts = null)
public SmtpUsername(String name, SmtpUsernameArgs args)
public SmtpUsername(String name, SmtpUsernameArgs args, CustomResourceOptions options)
type: azure-native:communication:SmtpUsername
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. SmtpUsernameArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. SmtpUsernameArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. SmtpUsernameArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. SmtpUsernameArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. SmtpUsernameArgs
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 smtpUsernameResource = new AzureNative.Communication.SmtpUsername("smtpUsernameResource", new()
{
    CommunicationServiceName = "string",
    EntraApplicationId = "string",
    ResourceGroupName = "string",
    TenantId = "string",
    Username = "string",
    SmtpUsername = "string",
});
Copy
example, err := communication.NewSmtpUsername(ctx, "smtpUsernameResource", &communication.SmtpUsernameArgs{
	CommunicationServiceName: pulumi.String("string"),
	EntraApplicationId:       pulumi.String("string"),
	ResourceGroupName:        pulumi.String("string"),
	TenantId:                 pulumi.String("string"),
	Username:                 pulumi.String("string"),
	SmtpUsername:             pulumi.String("string"),
})
Copy
var smtpUsernameResource = new SmtpUsername("smtpUsernameResource", SmtpUsernameArgs.builder()
    .communicationServiceName("string")
    .entraApplicationId("string")
    .resourceGroupName("string")
    .tenantId("string")
    .username("string")
    .smtpUsername("string")
    .build());
Copy
smtp_username_resource = azure_native.communication.SmtpUsername("smtpUsernameResource",
    communication_service_name="string",
    entra_application_id="string",
    resource_group_name="string",
    tenant_id="string",
    username="string",
    smtp_username="string")
Copy
const smtpUsernameResource = new azure_native.communication.SmtpUsername("smtpUsernameResource", {
    communicationServiceName: "string",
    entraApplicationId: "string",
    resourceGroupName: "string",
    tenantId: "string",
    username: "string",
    smtpUsername: "string",
});
Copy
type: azure-native:communication:SmtpUsername
properties:
    communicationServiceName: string
    entraApplicationId: string
    resourceGroupName: string
    smtpUsername: string
    tenantId: string
    username: string
Copy

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

CommunicationServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the CommunicationService resource.
EntraApplicationId This property is required. string
The application Id for the linked Entra Application.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
TenantId This property is required. string
The tenant of the linked Entra Application.
Username This property is required. string
The SMTP username. Could be free form or in the email address format.
SmtpUsername Changes to this property will trigger replacement. string
The name of the SmtpUsernameResource.
CommunicationServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the CommunicationService resource.
EntraApplicationId This property is required. string
The application Id for the linked Entra Application.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
TenantId This property is required. string
The tenant of the linked Entra Application.
Username This property is required. string
The SMTP username. Could be free form or in the email address format.
SmtpUsername Changes to this property will trigger replacement. string
The name of the SmtpUsernameResource.
communicationServiceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the CommunicationService resource.
entraApplicationId This property is required. String
The application Id for the linked Entra Application.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
tenantId This property is required. String
The tenant of the linked Entra Application.
username This property is required. String
The SMTP username. Could be free form or in the email address format.
smtpUsername Changes to this property will trigger replacement. String
The name of the SmtpUsernameResource.
communicationServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the CommunicationService resource.
entraApplicationId This property is required. string
The application Id for the linked Entra Application.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
tenantId This property is required. string
The tenant of the linked Entra Application.
username This property is required. string
The SMTP username. Could be free form or in the email address format.
smtpUsername Changes to this property will trigger replacement. string
The name of the SmtpUsernameResource.
communication_service_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the CommunicationService resource.
entra_application_id This property is required. str
The application Id for the linked Entra Application.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
tenant_id This property is required. str
The tenant of the linked Entra Application.
username This property is required. str
The SMTP username. Could be free form or in the email address format.
smtp_username Changes to this property will trigger replacement. str
The name of the SmtpUsernameResource.
communicationServiceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the CommunicationService resource.
entraApplicationId This property is required. String
The application Id for the linked Entra Application.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
tenantId This property is required. String
The tenant of the linked Entra Application.
username This property is required. String
The SMTP username. Could be free form or in the email address format.
smtpUsername Changes to this property will trigger replacement. String
The name of the SmtpUsernameResource.

Outputs

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

AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
SystemData Pulumi.AzureNative.Communication.Outputs.SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
AzureApiVersion string
The Azure API version of the resource.
Id string
The provider-assigned unique ID for this managed resource.
Name string
The name of the resource
SystemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
Type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion string
The Azure API version of the resource.
id string
The provider-assigned unique ID for this managed resource.
name string
The name of the resource
systemData SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type string
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azure_api_version str
The Azure API version of the resource.
id str
The provider-assigned unique ID for this managed resource.
name str
The name of the resource
system_data SystemDataResponse
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type str
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
azureApiVersion String
The Azure API version of the resource.
id String
The provider-assigned unique ID for this managed resource.
name String
The name of the resource
systemData Property Map
Azure Resource Manager metadata containing createdBy and modifiedBy information.
type String
The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Supporting Types

SystemDataResponse
, SystemDataResponseArgs

CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
CreatedAt string
The timestamp of resource creation (UTC).
CreatedBy string
The identity that created the resource.
CreatedByType string
The type of identity that created the resource.
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
The identity that last modified the resource.
LastModifiedByType string
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.
createdAt string
The timestamp of resource creation (UTC).
createdBy string
The identity that created the resource.
createdByType string
The type of identity that created the resource.
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
The identity that last modified the resource.
lastModifiedByType string
The type of identity that last modified the resource.
created_at str
The timestamp of resource creation (UTC).
created_by str
The identity that created the resource.
created_by_type str
The type of identity that created the resource.
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
The identity that last modified the resource.
last_modified_by_type str
The type of identity that last modified the resource.
createdAt String
The timestamp of resource creation (UTC).
createdBy String
The identity that created the resource.
createdByType String
The type of identity that created the resource.
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
The identity that last modified the resource.
lastModifiedByType String
The type of identity that last modified the resource.

Import

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

$ pulumi import azure-native:communication:SmtpUsername smtpusername1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Communication/communicationServices/{communicationServiceName}/smtpUsernames/{smtpUsername} 
Copy

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

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.2.0 published on Monday, Apr 14, 2025 by Pulumi