Send-AzureStackDiagnosticLogSend-AzureStackDiagnosticLog

概要Synopsis

將 Azure Stack Hub 診斷記錄傳送至 Microsoft。Sends Azure Stack Hub diagnostic logs to Microsoft.

語法Syntax

Send-AzureStackDiagnosticLog [[-FromDate] <Object>] [[-FilterByResourceProvider] <Object>]
 [[-FilterByRole] <Object>] [[-ToDate] <Object>] [-AsJob]

描述Description

對 Support Bridge Service 提出上傳診斷記錄以加上戳記的要求。Makes a request to Support Bridge Service to upload diagnostic logs for stamp.

範例Examples

範例 1Example 1

下列範例會將過去 4 小時的記錄傳送至 Microsoft。The example below sends last 4 hour logs to Microsoft.

PS  C:\> Send-AzureStackDiagnosticLog

範例 2Example 2

下列範例會將過去 4 小時的支援服務和 WAS 記錄傳送至 Microsoft。The example below sends last 4 hour Support Service and WAS logs to Microsoft.

PS  C:\> Send-AzureStackDiagnosticLog -FilterByRole SupportBridgeController,WAS

參數Parameters

-FilterByRole-FilterByRole

選擇性。Optional. 依基礎結構角色類型篩選。Filter by Infrastructure Role type.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FilterByResourceProvider-FilterByResourceProvider

選擇性。Optional. 依加值資源提供者類型篩選。Filter by Value-add resource provider type.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FromDate-FromDate

選擇性。Optional. 要收集的記錄所使用的開始時間。Start time to use for logs to collect.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ToDate-ToDate

選擇性。Optional. 要收集的記錄所使用的結束時間。End time to use for logs to collect.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-AsJob-AsJob

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

後續步驟Next steps

若要了解如何存取和使用具有特殊權限的端點,請參閱使用 Azure Stack Hub 中具有特殊權限的端點For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.