Get-AzSupportTicketCommunication

サポート チケットの通信を取得します。

構文

Get-AzSupportTicketCommunication
   -SupportTicketName <String>
   [-Name <String>]
   [-Filter <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-IncludeTotalCount]
   [-Skip <UInt64>]
   [-First <UInt64>]
   [<CommonParameters>]
Get-AzSupportTicketCommunication
   [-Name <String>]
   -SupportTicketObject <PSSupportTicket>
   [-Filter <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [-IncludeTotalCount]
   [-Skip <UInt64>]
   [-First <UInt64>]
   [<CommonParameters>]

説明

サポート チケットの通信を取得します。 他のパラメーターを指定しない場合は、チケットのすべての通信が取得されます。 また、Filter パラメーターを使用して CreatedDate または CommunicationType で通信をフィルター処理することもできます。 指定できるフィルター値の例を次に示します。

シナリオ フィルター
Web 通信を取得する "CommunicationType eq 'Web'"
電話通信を取得する "CommunicationType eq '電話'"
2019 年 12 月 20 日以降に作成された通信を取得する "CreatedDate ge 2019-12-20"
2019 年 12 月 20 日以降に作成された通信を取得する "CreatedDate gt 2019-12-20"
2019 年 12 月 20 日以降に作成された Web 通信を取得します "CreatedDate gt 2019-12-20 and CommunicationType eq 'Web'"

このコマンドレットは、First パラメーターと Skip パラメーターを使用したページングをサポートしています。

また、通信名を指定して、1 つのサポート チケット通信を取得することもできます。

例 1: サポート チケットのすべての通信を取得する

Get-AzSupportTicketCommunication -SupportTicketName "test1"

Name         Sender               Subject        CreatedDate
----         ------               -------        -----------
testmessage3 user@contoso.com     test message3  2/4/2020 9:38:14 PM
testmessage2 user@contoso.com     test message2  2/4/2020 9:36:36 PM
testmessage1 user@contoso.com     test message   2/4/2020 9:35:42 PM

例 2: サポート チケットの名前で 1 つの通信を取得する

Get-AzSupportTicketCommunication -SupportTicketName "test1" -Name "testmessage1"

Name         Sender               Subject        CreatedDate
----         ------               -------        -----------
testmessage1 user@contoso.com     test message   2/4/2020 9:38:14 PM

例 3: サポート チケットの最初の 2 つの通信を取得する

Get-AzSupportTicketCommunication -SupportTicketName "test1" -First 2

Name         Sender               Subject        CreatedDate
----         ------               -------        -----------
testmessage3 user@contoso.com     test message3  2/4/2020 9:38:14 PM
testmessage2 user@contoso.com     test message2  2/4/2020 9:36:36 PM

例 4: サポート チケットの最初の 2 つの通信をスキップした後、次の 2 つの通信を取得する

Get-AzSupportTicketCommunication -SupportTicketName "test1" -Skip 2 -First 2

Name         Sender               Subject        CreatedDate
----         ------               -------        -----------
testmessage4 user@contoso.com     test message4  2/4/2020 9:38:14 PM
testmessage5 user@contoso.com     test message5  2/4/2020 9:36:36 PM

例 5: サポート チケットのすべての Web 通信を取得する

Get-AzSupportTicketCommunication -SupportTicketName "test1" -Filter "CommunicationType eq 'Web'"

Name         Sender               Subject        CreatedDate
----         ------               -------        -----------
testmessage3 user@contoso.com     test message3  2/4/2020 9:38:14 PM
testmessage2 user@contoso.com     test message2  2/4/2020 9:36:36 PM

例 6: サポート チケットの 2019 年 12 月 20 日以降に作成されたすべての通信を取得する

Get-AzSupportTicketCommunication -SupportTicketName "test1" -Filter "CreatedDate ge 2019-12-20"

Name         Sender               Subject        CreatedDate
----         ------               -------        -----------
testmessage3 user@contoso.com     test message3  2/4/2020 9:38:14 PM
testmessage2 user@contoso.com     test message2  2/4/2020 9:36:36 PM

例 7: サポート チケットの 2019 年 12 月 20 日以降に作成されたすべての Web 通信を取得する

Get-AzSupportTicketCommunication -SupportTicketName "test1" -Filter "CommunicationType eq 'Web' and CreatedDate ge 2019-12-20"

Name         Sender               Subject        CreatedDate
----         ------               -------        -----------
testmessage3 user@contoso.com     test message3  2/4/2020 9:38:14 PM
testmessage2 user@contoso.com     test message2  2/4/2020 9:36:36 PM

例 8: サポート チケット オブジェクトをパイプ処理して、サポート チケットのすべての通信を取得する

Get-AzSupportTicket -Name "test1" | Get-AzSupportTicketCommunication

Name         Sender               Subject        CreatedDate
----         ------               -------        -----------
testmessage3 user@contoso.com     test message3  2/4/2020 9:38:14 PM
testmessage2 user@contoso.com     test message2  2/4/2020 9:36:36 PM
testmessage1 user@contoso.com     test message   2/4/2020 9:35:42 PM

パラメーター

-DefaultProfile

Azure との通信のために使用される資格情報、アカウント、テナント、サブスクリプションです。

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Filter

このコマンドレットの結果に適用するフィルター。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-First

指定された数のオブジェクトのみを取得します。 取得するオブジェクトの数を入力します。

Type:UInt64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-IncludeTotalCount

データ セット内のオブジェクトの総数 (整数) と選択されたオブジェクトを報告します。 コマンドレットが合計カウントを特定できない場合は、"不明な合計数" と表示されます。整数には、合計カウント値の信頼性を示す Accuracy プロパティがあります。 Accuracy の値の範囲は 0.0 ~ 1.0 です。この場合、0.0 はコマンドレットでオブジェクトをカウントできなかったことを意味し、1.0 は数が正確であることを意味します。値が 0.0 と 1.0 の間の場合は、大きくなるにつれて信頼性が高くなることを示します。

Type:SwitchParameter
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Name

通信名。

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Skip

指定された数のオブジェクトを無視してから、残りのオブジェクトを取得します。 スキップするオブジェクトの数を入力します。

Type:UInt64
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SupportTicketName

サポート チケットの名前。

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-SupportTicketObject

サポート チケット オブジェクト。

Type:PSSupportTicket
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

入力

PSSupportTicket

出力

PSSupportTicketCommunication