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

请求“支持网桥服务”,以上传用于标记的诊断日志。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

parametersParameters

-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.