Get-AzEmailServiceDomain
取得網域資源及其屬性。
語法
Get-AzEmailServiceDomain
-EmailServiceName <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzEmailServiceDomain
-EmailServiceName <String>
-Name <String>
-ResourceGroupName <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzEmailServiceDomain
-Name <String>
-EmailServiceInputObject <IEmailServiceIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzEmailServiceDomain
-InputObject <IEmailServiceIdentity>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
取得網域資源及其屬性。
範例
範例 1:列出訂用帳戶的現有電子郵件服務網域
Get-AzEmailServiceDomain -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
Location Name SystemDataCreatedAt SystemDataCreatedBy SystemDataCreatedByType SystemDataLastModifiedAt SystemDataLastM
odifiedBy
-------- ---- ------------------- ------------------- ----------------------- ------------------------ ---------------
global AzureManagedDomain 08-12-2023 05:34:31 test@microsoft.com User 28-01-2024 13:58:25 test@microsoft.com
global customdomain.net 07-02-2024 06:11:24 test@microsoft.com User 14-02-2024 06:25:26 test@microsoft.com
傳回該電子郵件服務下所有網域資源的清單。
範例 2:取得指定 Azure 電子郵件服務資源的相關信息
Get-AzEmailServiceDomain -Name AzureManagedDomain -EmailServiceName ContosoAcsResource1 -ResourceGroupName ContosoResourceProvider1
DataLocation : unitedstates
Dkim2ErrorCode :
Dkim2Status : Verified
DkimErrorCode :
DkimStatus : Verified
DmarcErrorCode :
DmarcStatus : Verified
DomainErrorCode :
DomainManagement : AzureManaged
DomainStatus : Verified
FromSenderDomain : a3d08608-7f9d-4d33-9c79-8b635d9220ab.azurecomm.net
Id : /subscriptions/653983b8-683a-427c-8c27-9e9624ce9176/resourceGroups/ContosoResourceProvider1/providers
/Microsoft.Communication/emailServices/ContosoAcsResource1/domains/AzureManaged
Domain
Location : global
MailFromSenderDomain : a3d08608-7f9d-4d33-9c79-8b635d9220ab.azurecomm.net
Name : AzureManagedDomain
ProvisioningState : Succeeded
ResourceGroupName : ContosoResourceProvider1
SpfErrorCode :
SpfStatus : Verified
SystemDataCreatedAt : 08-12-2023 05:34:31
SystemDataCreatedBy : test@microsoft.com
SystemDataCreatedByType : User
SystemDataLastModifiedAt : 28-01-2024 13:58:25
SystemDataLastModifiedBy : test@microsoft.com
SystemDataLastModifiedByType : User
Tag : {
"ExampleKey1": "ExampleValue1"
}
Type : microsoft.communication/emailservices/domains
UserEngagementTracking : Disabled
VerificationRecord : {
}
如果找到一個相符的參數,則傳回網域資源的相關信息。
參數
-DefaultProfile
DefaultProfile 參數無法運作。 如果針對不同的訂用帳戶執行 Cmdlet,請使用 SubscriptionId 參數。
類型: | PSObject |
別名: | AzureRMContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-EmailServiceInputObject
Identity 參數
類型: | IEmailServiceIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-EmailServiceName
EmailService 資源的名稱。
類型: | String |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-InputObject
Identity 參數
類型: | IEmailServiceIdentity |
Position: | Named |
預設值: | None |
必要: | True |
接受管線輸入: | True |
接受萬用字元: | False |
-Name
Domains 資源的名稱。
類型: | String |
別名: | DomainName |
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 |