Microsoft.Communication communicationServices/smtpUsernames

Bicep resource definition

The communicationServices/smtpUsernames resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Communication/communicationServices/smtpUsernames resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Communication/communicationServices/smtpUsernames@2026-03-18' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    entraApplicationId: 'string'
    tenantId: 'string'
    username: 'string'
  }
}

Property Values

Microsoft.Communication/communicationServices/smtpUsernames

Name Description Value
name The resource name string

Constraints:
Min length = 1
Max length = 253
Pattern = ^[a-zA-Z0-9-]+$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: communicationServices
properties The properties of a SmtpUsername resource. SmtpUsernameProperties

SmtpUsernameProperties

Name Description Value
entraApplicationId The application Id for the linked Entra Application. string (required)
tenantId The tenant of the linked Entra Application. string (required)
username The SMTP username. Could be free form or in the email address format. string (required)

ARM template resource definition

The communicationServices/smtpUsernames resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.Communication/communicationServices/smtpUsernames resource, add the following JSON to your template.

{
  "type": "Microsoft.Communication/communicationServices/smtpUsernames",
  "apiVersion": "2026-03-18",
  "name": "string",
  "properties": {
    "entraApplicationId": "string",
    "tenantId": "string",
    "username": "string"
  }
}

Property Values

Microsoft.Communication/communicationServices/smtpUsernames

Name Description Value
apiVersion The api version '2026-03-18'
name The resource name string

Constraints:
Min length = 1
Max length = 253
Pattern = ^[a-zA-Z0-9-]+$ (required)
properties The properties of a SmtpUsername resource. SmtpUsernameProperties
type The resource type 'Microsoft.Communication/communicationServices/smtpUsernames'

SmtpUsernameProperties

Name Description Value
entraApplicationId The application Id for the linked Entra Application. string (required)
tenantId The tenant of the linked Entra Application. string (required)
username The SMTP username. Could be free form or in the email address format. string (required)

Terraform (AzAPI provider) resource definition

The communicationServices/smtpUsernames resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Communication/communicationServices/smtpUsernames resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Communication/communicationServices/smtpUsernames@2026-03-18"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      entraApplicationId = "string"
      tenantId = "string"
      username = "string"
    }
  }
}

Property Values

Microsoft.Communication/communicationServices/smtpUsernames

Name Description Value
name The resource name string

Constraints:
Min length = 1
Max length = 253
Pattern = ^[a-zA-Z0-9-]+$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: communicationServices
properties The properties of a SmtpUsername resource. SmtpUsernameProperties
type The resource type "Microsoft.Communication/communicationServices/smtpUsernames@2026-03-18"

SmtpUsernameProperties

Name Description Value
entraApplicationId The application Id for the linked Entra Application. string (required)
tenantId The tenant of the linked Entra Application. string (required)
username The SMTP username. Could be free form or in the email address format. string (required)