Update-AzEmailServiceSenderUsername
Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.
Syntax
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>]
Description
Add a new SenderUsername resource under the parent Domains resource or update an existing SenderUsername resource.
Examples
Example 1: Updates custom domain sender username resource.
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
Updates custom sender username resource with provided parameters.
Example 2: Updates azure managed domain sender username resource.
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
Updates azure managed sender username resource with provided parameters.
Parameters
-Confirm
Prompts you for confirmation before running the cmdlet.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DefaultProfile
The DefaultProfile parameter is not functional. Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DisplayName
The display name for the senderUsername.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DomainInputObject
Identity Parameter
Type: | IEmailServiceIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DomainName
The name of the Domains resource.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-EmailServiceInputObject
Identity Parameter
Type: | IEmailServiceIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-EmailServiceName
The name of the EmailService resource.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-InputObject
Identity Parameter
Type: | IEmailServiceIdentity |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Parameter
A class representing a SenderUsername resource.
Type: | ISenderUsernameResource |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group. The name is case insensitive.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SenderUsername
The valid sender Username.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The ID of the target subscription. The value must be an UUID.
Type: | String |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Username
A sender senderUsername to be used when sending emails.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
Shows what would happen if the cmdlet runs. The cmdlet is not run.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Inputs
Outputs
Azure PowerShell