Microsoft。通信 メールサービス/ドメイン/送信者ユーザー名 2026-03-18

Bicep リソース定義

emailServices/domains/senderUsernames リソースの種類は、次をターゲットとする操作と共にデプロイできます。

  • Resource groups - リソースグループのデプロイコマンド

各 API バージョンで変更されたプロパティの一覧については、変更ログの参照してください。

使用例

Bicep のサンプル

Communication Email Services ドメインの送信者ユーザー名を展開する基本的な例。

param resourceName string = 'acctest0001'
param location string = 'westeurope'

resource emailService 'Microsoft.Communication/emailServices@2023-04-01-preview' = {
  name: resourceName
  location: 'global'
  properties: {
    dataLocation: 'United States'
  }
}

resource domain 'Microsoft.Communication/emailServices/domains@2023-04-01-preview' = {
  name: 'example.com'
  location: 'global'
  parent: emailService
  properties: {
    domainManagement: 'CustomerManaged'
    userEngagementTracking: 'Disabled'
  }
}

resource senderUsername 'Microsoft.Communication/emailServices/domains/senderUsernames@2023-04-01-preview' = {
  name: 'TestSenderUserName'
  parent: domain
  properties: {
    displayName: 'TestDisplayName'
    username: 'TestSenderUserName'
  }
}

Azure 検証済みモジュール

次の Azure 検証済みモジュール を使用して、このリソースの種類をデプロイできます。

Module 説明
メール通信サービス - ドメイン - 送信者ユーザー名 AVM子モジュール メール通信サービス - ドメイン - 送信者ユーザー名

リソースの形式

Microsoft.Communication/emailServices/domains/senderUsernames リソースを作成するには、次の Bicep をテンプレートに追加します。

resource symbolicname 'Microsoft.Communication/emailServices/domains/senderUsernames@2026-03-18' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    displayName: 'string'
    username: 'string'
  }
}

プロパティ値

Microsoft.Communication/emailServices/domains/senderUsernames

名前 説明 価値
名前 リソース名 string

制約:
最小長 = 1
最大長 = 253 (必須)
親 Bicep では、子リソースの親リソースを指定できます。 このプロパティを追加する必要があるのは、子リソースが親リソースの外部で宣言されている場合のみです。

詳細については、Child resource outside parent resourceをご覧ください。
タイプのリソースのシンボリック名: emailServices/domains
プロパティ SenderUsername リソースのプロパティ。 SenderUsernameProperties

SenderUsernameProperties

名前 説明 価値
ディスプレイ名 senderUsername の表示名。 文字列
ユーザー名 電子メールを送信するときに使用する sender senderUsername。 string (必須)

ARM テンプレート リソース定義

emailServices/domains/senderUsernames リソースの種類は、次をターゲットとする操作と共にデプロイできます。

使用例

リソースの形式

Microsoft.Communication/emailServices/domains/senderUsernames リソースを作成するには、テンプレートに次の JSON を追加します。

{
  "type": "Microsoft.Communication/emailServices/domains/senderUsernames",
  "apiVersion": "2026-03-18",
  "name": "string",
  "properties": {
    "displayName": "string",
    "username": "string"
  }
}

プロパティ値

Microsoft.Communication/emailServices/domains/senderUsernames

名前 説明 価値
apiVersion API のバージョン '2026-03-18'
名前 リソース名 string

制約:
最小長 = 1
最大長 = 253 (必須)
プロパティ SenderUsername リソースのプロパティ。 SenderUsernameProperties
型 リソースの種類 'Microsoft.Communication/emailServices/domains/senderUsernames'

SenderUsernameProperties

名前 説明 価値
ディスプレイ名 senderUsername の表示名。 文字列
ユーザー名 電子メールを送信するときに使用する sender senderUsername。 string (必須)

Terraform (AzAPI プロバイダー) リソース定義

emailServices/domains/senderUsernames リソースの種類は、次をターゲットとする操作と共にデプロイできます。

  • リソースグループ 各APIバージョンの変更プロパティ一覧については、 変更ログをご覧ください。

使用例

Terraformサンプル

Communication Email Services ドメインの送信者ユーザー名を展開する基本的な例。

terraform {
  required_providers {
    azapi = {
      source = "Azure/azapi"
    }
  }
}

provider "azapi" {
  skip_provider_registration = false
}

variable "resource_name" {
  type    = string
  default = "acctest0001"
}

variable "location" {
  type    = string
  default = "westeurope"
}

resource "azapi_resource" "resourceGroup" {
  type     = "Microsoft.Resources/resourceGroups@2020-06-01"
  name     = var.resource_name
  location = var.location
}

resource "azapi_resource" "emailService" {
  type      = "Microsoft.Communication/emailServices@2023-04-01-preview"
  parent_id = azapi_resource.resourceGroup.id
  name      = var.resource_name
  location  = "global"
  body = {
    properties = {
      dataLocation = "United States"
    }
  }
  schema_validation_enabled = false
  response_export_values    = ["*"]
}

resource "azapi_resource" "domain" {
  type      = "Microsoft.Communication/emailServices/domains@2023-04-01-preview"
  name      = "example.com"
  location  = "global"
  parent_id = azapi_resource.emailService.id
  tags = {
    env = "Test"
  }
  body = {
    properties = {
      domainManagement       = "CustomerManaged"
      userEngagementTracking = "Disabled"
    }
  }
}

resource "azapi_resource" "senderUsername" {
  type      = "Microsoft.Communication/emailServices/domains/senderUsernames@2023-04-01-preview"
  name      = "TestSenderUserName"
  parent_id = azapi_resource.domain.id
  body = {
    properties = {
      displayName = "TestDisplayName"
      username    = "TestSenderUserName"
    }
  }
}

リソースの形式

Microsoft.Communication/emailServices/domains/senderUsernames リソースを作成するには、次の Terraform をテンプレートに追加します。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Communication/emailServices/domains/senderUsernames@2026-03-18"
  name = "string"
  parent_id = "string"
  body = {
    properties = {
      displayName = "string"
      username = "string"
    }
  }
}

プロパティ値

Microsoft.Communication/emailServices/domains/senderUsernames

名前 説明 価値
名前 リソース名 string

制約:
最小長 = 1
最大長 = 253 (必須)
parent_id このリソースの親であるリソースの ID。 タイプのリソースの ID: emailServices/domains
プロパティ SenderUsername リソースのプロパティ。 SenderUsernameProperties
型 リソースの種類 「Microsoft.Communication/emailServices/domains/senderUsernames@2026-03-18」

SenderUsernameProperties

名前 説明 価値
ディスプレイ名 senderUsername の表示名。 文字列
ユーザー名 電子メールを送信するときに使用する sender senderUsername。 string (必須)