다음을 통해 공유


Get-AzEmailService

EmailService 및 해당 속성을 가져옵니다.

구문

Get-AzEmailService
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzEmailService
   -Name <String>
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzEmailService
   -ResourceGroupName <String>
   [-SubscriptionId <String[]>]
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]
Get-AzEmailService
   -InputObject <IEmailServiceIdentity>
   [-DefaultProfile <PSObject>]
   [<CommonParameters>]

Description

EmailService 및 해당 속성을 가져옵니다.

예제

예제 1: 구독에 대한 기존 전자 메일 서비스 나열

Get-AzCommunicationService -SubscriptionId 73fc3592-3cef-4300-5e19-8d18b65ce0e8

Location Name                                         SystemDataCreatedAt SystemDataCreatedBy         SystemDataCreated
                                                                                                      ByType
-------- ----                                         ------------------- -------------------         -----------------
global   ContosoResource1                             06-12-2021 20:19:45 test@microsoft.com        User
global   ContosoResource2                             06-12-2021 20:22:48 test@microsoft.com        User

해당 구독 아래의 모든 ACS 리소스 목록을 반환합니다.

예제 2: 지정된 Azure Email Services 리소스에 대한 정보 가져오기

Get-AzEmailService -Name ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1

DataLocation                 : unitedstates
Id                           : /subscriptions/653983b8-683a-427c-8c27-9e9624ce9176/resourceGroups/ContosoResourceProvider1/providers
                               /Microsoft.Communication/emailServices/ContosoAcsResource1
Location                     : global
Name                         : ContosoAcsResource1
ProvisioningState            : Succeeded
ResourceGroupName            : ContosoResourceProvider1
SystemDataCreatedAt          : 08-12-2023 05:24:48
SystemDataCreatedBy          : test@microsoft.com
SystemDataCreatedByType      : User
SystemDataLastModifiedAt     : 12-02-2024 10:35:26
SystemDataLastModifiedBy     : test@microsoft.com
SystemDataLastModifiedByType : User
Tag                          : {
                                 "ExampleKey1": "UpdatedTagValue"
                               }
Type                         : microsoft.communication/emailservices

제공된 매개 변수가 일치하는 경우 ACS 리소스에 대한 정보를 반환합니다.

매개 변수

-DefaultProfile

DefaultProfile 매개 변수가 작동하지 않습니다. 다른 구독에 대해 cmdlet을 실행하는 경우 사용 가능한 경우 SubscriptionId 매개 변수를 사용합니다.

형식:PSObject
별칭:AzureRMContext, AzureCredential
Position:Named
Default value:None
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-InputObject

ID 매개 변수

형식:IEmailServiceIdentity
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:True
와일드카드 문자 허용:False

-Name

EmailService 리소스의 이름입니다.

형식:String
별칭:EmailServiceName
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-ResourceGroupName

리소스 그룹의 이름입니다. 이름은 대/소문자를 구분하지 않습니다.

형식:String
Position:Named
Default value:None
필수:True
파이프라인 입력 허용:False
와일드카드 문자 허용:False

-SubscriptionId

대상 구독의 ID입니다. 값은 UUID여야 합니다.

형식:String[]
Position:Named
Default value:(Get-AzContext).Subscription.Id
필수:False
파이프라인 입력 허용:False
와일드카드 문자 허용:False

입력

출력