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 電子郵件服務資源的相關信息
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 |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity 參數
類型: | IEmailServiceIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
EmailService 資源的名稱。
類型: | String |
別名: | EmailServiceName |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源群組的名稱。 名稱不區分大小寫。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-SubscriptionId
目標訂用帳戶的標識碼。 此值必須是 UUID。
類型: | String[] |
Position: | Named |
預設值: | (Get-AzContext).Subscription.Id |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |