Freigeben über


Get-AzCommunicationServiceSmtpUsername

Rufen Sie eine SmtpUsernameResource ab.

Syntax

Get-AzCommunicationServiceSmtpUsername
   -CommunicationServiceName <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzCommunicationServiceSmtpUsername
   -CommunicationServiceName <String>
   -ResourceGroupName <String>
   -SmtpUsername <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzCommunicationServiceSmtpUsername
   -SmtpUsername <String>
   -CommunicationServiceInputObject <ICommunicationServiceSmtpUsernameIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzCommunicationServiceSmtpUsername
   -InputObject <ICommunicationServiceSmtpUsernameIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Beschreibung

Rufen Sie eine SmtpUsernameResource ab.

Beispiele

Beispiel 1: Auflisten vorhandener SMTP-Benutzernamen für eine Communication Service-Ressource

Get-AzCommunicationServiceSmtpUsername -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1

EntraApplicationId           : aaaa1111-bbbb-2222-3333-aaaa1111abcd
Id                           : /subscriptions/11112222-3333-4444-5555-666677778888/resourcegroups/ContosoResourceProvider1/providers/microsoft.communicati
                               on/communicationservices/ContosoAcsResource1/SmtpUsernames/ContosoSmtpUsernameResource1
Name                         : ContosoSmtpUsernameResource1
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
TenantId                     : 72f988bf-86f1-41af-91ab-2d7cd011db47
Type                         : communicationservices/smtpusernames
Username                     : ContosoUsername1
 
EntraApplicationId           : 1e1e1d1a-1111-1111-1111-11ad111bf111
Id                           : /subscriptions/11112222-3333-4444-5555-666677778888/resourcegroups/ContosoResourceProvider1/providers/microsoft.communicati
                               on/communicationservices/ContosoAcsResource1/SmtpUsernames/ContosoSmtpUsernameResource2
Name                         : ContosoSmtpUsernameResource2
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
TenantId                     : aaaa1111-bbbb-2222-3333-aaaa11112222
Type                         : communicationservices/smtpusernames
Username                     : ContosoUsername2

Gibt eine Liste aller SMTP-Benutzernamen-Ressourcen unter der angegebenen Communication Services-Ressource zurück.

Beispiel 2: Abrufen der Informationen, wenn eine einzelne SMTP-Benutzernamenressource vorhanden ist

Get-AzCommunicationServiceSmtpUsername -CommunicationServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1

EntraApplicationId           : 1e1e1d1a-1111-1111-1111-11ad111bf111
Id                           : /subscriptions/11112222-3333-4444-5555-666677778888/resourcegroups/ContosoResourceProvider1/pro
                               viders/microsoft.communication/communicationservices/ContosoAcsResource1/SmtpUsernames/ContosoSmtpUsernameResource1
Name                         : ContosoSmtpUsernameResource1
ResourceGroupName            : ContosoResourceProvider1
SystemDataCreatedAt          :
SystemDataCreatedBy          :
SystemDataCreatedByType      :
SystemDataLastModifiedAt     :
SystemDataLastModifiedBy     :
SystemDataLastModifiedByType :
TenantId                     : aaaa1111-bbbb-2222-3333-aaaa11112222
Type                         : communicationservices/smtpusernames
Username                     : ContosoUsername1

Gibt Informationen zurück, ob eine einzelne SMTP-Benutzernamenressource vorhanden ist.

Parameter

-CommunicationServiceInputObject

Identity-Parameter

Typ:ICommunicationServiceSmtpUsernameIdentity
Position:Named
Standardwert:None
Erforderlich:True
Pipelineeingabe akzeptieren:True
Platzhalterzeichen akzeptieren:False

-CommunicationServiceName

Der Name der CommunicationService-Ressource.

Typ:String
Position:Named
Standardwert:None
Erforderlich:True
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

-DefaultProfile

Der Parameter DefaultProfile ist nicht funktionsfähig. Verwenden Sie den Parameter "SubscriptionId", wenn sie verfügbar ist, wenn Sie das Cmdlet für ein anderes Abonnement ausführen.

Typ:PSObject
Aliase:AzureRMContext, AzureCredential
Position:Named
Standardwert:None
Erforderlich:False
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

-InputObject

Identity-Parameter

Typ:ICommunicationServiceSmtpUsernameIdentity
Position:Named
Standardwert:None
Erforderlich:True
Pipelineeingabe akzeptieren:True
Platzhalterzeichen akzeptieren:False

-ResourceGroupName

Der Name der Ressourcengruppe. Bei dem Namen wird die Groß-/Kleinschreibung nicht beachtet.

Typ:String
Position:Named
Standardwert:None
Erforderlich:True
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

-SmtpUsername

Der Name der SmtpUsernameResource.

Typ:String
Position:Named
Standardwert:None
Erforderlich:True
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

-SubscriptionId

Die ID des Zielabonnements. Der Wert muss eine UUID sein.

Typ:String[]
Position:Named
Standardwert:(Get-AzContext).Subscription.Id
Erforderlich:False
Pipelineeingabe akzeptieren:False
Platzhalterzeichen akzeptieren:False

Eingaben

ICommunicationServiceSmtpUsernameIdentity

Ausgaben

ISmtpUsernameResource