你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Update-AzEmailServiceSenderUsername
在父域资源下添加新的 SenderUsername 资源,或更新现有的 SenderUsername 资源。
语法
Update-AzEmailServiceSenderUsername
-DomainName <String>
-EmailServiceName <String>
-ResourceGroupName <String>
-SenderUsername <String>
[-SubscriptionId <String>]
[-DisplayName <String>]
[-Username <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzEmailServiceSenderUsername
-DomainName <String>
-SenderUsername <String>
-EmailServiceInputObject <IEmailServiceIdentity>
[-DisplayName <String>]
[-Username <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzEmailServiceSenderUsername
-DomainName <String>
-SenderUsername <String>
-EmailServiceInputObject <IEmailServiceIdentity>
-Parameter <ISenderUsernameResource>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzEmailServiceSenderUsername
-SenderUsername <String>
-DomainInputObject <IEmailServiceIdentity>
[-DisplayName <String>]
[-Username <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzEmailServiceSenderUsername
-SenderUsername <String>
-DomainInputObject <IEmailServiceIdentity>
-Parameter <ISenderUsernameResource>
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Update-AzEmailServiceSenderUsername
-InputObject <IEmailServiceIdentity>
[-DisplayName <String>]
[-Username <String>]
[-DefaultProfile <PSObject>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
说明
在父域资源下添加新的 SenderUsername 资源,或更新现有的 SenderUsername 资源。
示例
示例 1:更新自定义域发件人用户名资源。
Update-AzEmailServiceSenderUsername -SenderUsername test -Username test -DisplayName testdisplayname -DomainName testcustomdomain2.net -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
DataLocation :
DisplayName : testdisplayname
Id : /subscriptions/653983b8-683a-427c-8c27-9e9624ce9176/resourceGroups/ContosoResourceProvider1/providers/Microsoft.Communication/emailServices/
ContosoAcsResource1/domains/testcustomdomain2.net/senderUsernames/test
Name : test
ProvisioningState : Succeeded
ResourceGroupName : ContosoResourceProvider1
SystemDataCreatedAt : 21-02-2024 09:17:38
SystemDataCreatedBy : test@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 21-02-2024 09:17:38
SystemDataLastModifiedBy : test@microsoft.com
SystemDataLastModifiedByType : User
Type : microsoft.communication/emailservices/domains/senderusernames
Username : test
使用提供的参数更新自定义发件人用户名资源。
示例 2:更新 Azure 托管域发件人用户名资源。
Update-AzEmailServiceSenderUsername -SenderUsername test -Username test -DisplayName testAzureDomaindisplayname -DomainName AzureManagedDomain -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
DataLocation :
DisplayName : testAzureDomaindisplayname
Id : /subscriptions/653983b8-683a-427c-8c27-9e9624ce9176/resourceGroups/ContosoResourceProvider1/providers/Microsoft.Communication/emailServices/
ContosoAcsResource1/domains/AzureManagedDomain/senderUsernames/test
Name : test
ProvisioningState : Succeeded
ResourceGroupName : ContosoResourceProvider1
SystemDataCreatedAt : 21-02-2024 09:34:29
SystemDataCreatedBy : test@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 21-02-2024 09:34:29
SystemDataLastModifiedBy : test@microsoft.com
SystemDataLastModifiedByType : User
Type : microsoft.communication/emailservices/domains/senderusernames
Username : test
使用提供的参数更新 Azure 托管发件人用户名资源。
参数
-Confirm
在运行 cmdlet 之前,提示你进行确认。
类型: | SwitchParameter |
别名: | cf |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DefaultProfile
DefaultProfile 参数不起作用。 如果对其他订阅执行 cmdlet,请使用 SubscriptionId 参数。
类型: | PSObject |
别名: | AzureRMContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DisplayName
senderUsername 的显示名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-DomainInputObject
标识参数
类型: | IEmailServiceIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-DomainName
域资源的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-EmailServiceInputObject
标识参数
类型: | IEmailServiceIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-EmailServiceName
EmailService 资源的名称。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-InputObject
标识参数
类型: | IEmailServiceIdentity |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Parameter
一个表示 SenderUsername 资源的类。
类型: | ISenderUsernameResource |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-ResourceGroupName
资源组的名称。 名称不区分大小写。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SenderUsername
有效的发件人用户名。
类型: | String |
Position: | Named |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-SubscriptionId
目标订阅的 ID。 该值必须是 UUID。
类型: | String |
Position: | Named |
默认值: | (Get-AzContext).Subscription.Id |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Username
发送电子邮件时要使用的发件人 senderUsername。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-WhatIf
显示 cmdlet 运行时会发生什么情况。 命令脚本未运行。
类型: | SwitchParameter |
别名: | wi |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |