你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
New-AzEmailServiceDomain
在父 EmailService 资源下添加新的域资源,或创建现有的域资源。
语法
New-AzEmailServiceDomain
-Name <String>
-EmailServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
[-Location <String>]
[-DomainManagement <String>]
[-Tag <Hashtable>]
[-UserEngagementTracking <String>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzEmailServiceDomain
-Name <String>
-EmailServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonString <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzEmailServiceDomain
-Name <String>
-EmailServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String>]
-JsonFilePath <String>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzEmailServiceDomain
-Name <String>
-EmailServiceInputObject <IEmailServiceIdentity>
[-Location <String>]
[-DomainManagement <String>]
[-Tag <Hashtable>]
[-UserEngagementTracking <String>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
New-AzEmailServiceDomain
-Name <String>
-EmailServiceInputObject <IEmailServiceIdentity>
-Parameter <IDomainResource>
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
在父 EmailService 资源下添加新的域资源,或创建现有的域资源。
示例
示例 1:创建自定义域资源。
New-AzEmailServiceDomain -Name testcustomdomain2.net -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -DomainManagement CustomerManaged
DataLocation : unitedstates
Dkim2ErrorCode :
Dkim2Status : NotStarted
DkimErrorCode :
DkimStatus : NotStarted
DmarcErrorCode :
DmarcStatus : NotStarted
DomainErrorCode :
DomainManagement : CustomerManaged
DomainStatus : NotStarted
FromSenderDomain : testcustomdomain2.net
Id : /subscriptions/653983b8-683a-427c-8c27-9e9624ce9176/resourceGroups/ContosoResourceProvider1/providers/Microsoft.Communication/emailServices/
ContosoAcsResource1/domains/testcustomdomain2.net
Location : global
MailFromSenderDomain : testcustomdomain2.net
Name : testcustomdomain2.net
ProvisioningState : Succeeded
ResourceGroupName : ContosoResourceProvider1
SpfErrorCode :
SpfStatus : NotStarted
SystemDataCreatedAt : 21-02-2024 07:30:12
SystemDataCreatedBy : test@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 21-02-2024 07:30:12
SystemDataLastModifiedBy : test@microsoft.com
SystemDataLastModifiedByType : User
Tag : {
}
Type : microsoft.communication/emailservices/domains
UserEngagementTracking : Disabled
VerificationRecord : {
"Domain": {
"type": "TXT",
"name": "testcustomdomain2.net",
"value": "ms-domain-verification=1ff18540-e0c0-422b-b956-5b4cfa13613b",
"ttl": 3600
},
"SPF": {
"type": "TXT",
"name": "testcustomdomain2.net",
"value": "v=spf1 include:spf.protection.outlook.com -all",
"ttl": 3600
},
"DKIM": {
"type": "CNAME",
"name": "selector1-azurecomm-prod-net._domainkey",
"value": "selector1-azurecomm-prod-net._domainkey.azurecomm.net",
"ttl": 3600
},
"DKIM2": {
"type": "CNAME",
"name": "selector2-azurecomm-prod-net._domainkey",
"value": "selector2-azurecomm-prod-net._domainkey.azurecomm.net",
"ttl": 3600
}
}
使用提供的参数创建 Azure 托管域资源。
示例 2:创建 Azure 托管域资源。
New-AzEmailServiceDomain -Name AzureManagedDomain -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1 -DomainManagement AzureManaged
DataLocation : unitedstates
Dkim2ErrorCode :
Dkim2Status : Verified
DkimErrorCode :
DkimStatus : Verified
DmarcErrorCode :
DmarcStatus : Verified
DomainErrorCode :
DomainManagement : AzureManaged
DomainStatus : Verified
FromSenderDomain : fb0053ef-c684-4028-81eb-a582c1330d87.azurecomm.net
Id : /subscriptions/653983b8-683a-427c-8c27-9e9624ce9176/resourceGroups/ContosoResourceProvider1/providers/Microsoft.Communication/emailServices/
ContosoAcsResource1/domains/AzureManagedDomain
Location : global
MailFromSenderDomain : fb0053ef-c684-4028-81eb-a582c1330d87.azurecomm.net
Name : AzureManagedDomain
ProvisioningState : Succeeded
ResourceGroupName : ContosoResourceProvider1
SpfErrorCode :
SpfStatus : Verified
SystemDataCreatedAt :
SystemDataCreatedBy :
SystemDataCreatedByType :
SystemDataLastModifiedAt : 21-02-2024 07:34:12
SystemDataLastModifiedBy : test@microsoft.com
SystemDataLastModifiedByType : User
Tag : {
}
Type : microsoft.communication/emailservices/domains
UserEngagementTracking : Disabled
VerificationRecord : {
}
使用提供的参数创建 Azure 托管域资源。
参数
-AsJob
以作业身份运行命令
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DomainManagement
描述如何管理域资源。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-EmailServiceInputObject
标识参数
类型: | IEmailServiceIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-EmailServiceName
EmailService 资源的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-JsonFilePath
提供给“创建”作的 Json 文件的路径
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-JsonString
提供给“创建”作的 Json 字符串
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-Location
资源所在的地理位置
类型: | String |
Position: | Named |
默认值: | "global" |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
域资源的名称。
类型: | String |
别名: | DomainName |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-NoWait
异步运行命令
类型: | SwitchParameter |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Parameter
表示域资源的类。
类型: | IDomainResource |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。 该值必须是 UUID。
类型: | String |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Tag
资源标记。
类型: | Hashtable |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-UserEngagementTracking
描述用户参与跟踪是启用还是禁用。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 cmdlet 未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |