Get-AzureStackLogGet-AzureStackLog

摘要Synopsis

从具有超时的 Azure Stack Hub 的各种角色获取日志。Get logs from various roles of Azure Stack Hub with timeout. 适用于多节点或单节点环境。Works for both multi-node or one node environments.

语法Syntax

Get-AzureStackLog [-FilterByRole <Object>] [-CustomerConfigurationFilePath <Object>] [-OutputPath <Object>]
 [-LocalAdminCredential <Object>] [-FilterByResourceProvider <Object>] [-InputSasUri <Object>]
 [-FilterByNode <Object>] [-OutputShareCredential <Object>] [-ToDate <Object>] [-FilterByLogType <Object>]
 [-TimeOutInMinutes <Object>] [-FromDate <Object>] [-OutputSharePath <Object>] [-OutputSasUri <Object>]
 [-PerformVMLogRecovery] [-IncludeDumpFile] [-AsJob]

parametersParameters

-FilterByRole-FilterByRole

Type: Object
Parameter Sets: (All)
Aliases:

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

-FilterByResourceProvider-FilterByResourceProvider

Type: Object
Parameter Sets: (All)
Aliases:

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

-FilterByNode-FilterByNode

Type: Object
Parameter Sets: (All)
Aliases:

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

-FilterByLogType-FilterByLogType

Type: Object
Parameter Sets: (All)
Aliases:

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

-CustomerConfigurationFilePath-CustomerConfigurationFilePath

Type: Object
Parameter Sets: (All)
Aliases:

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

-FromDate-FromDate

这将获取从上一小时开始的日志。This will get the logs starting from last hour.

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: (Get-Date).AddHours(-1)
Accept pipeline input: False
Accept wildcard characters: False

-ToDate-ToDate

这将获取截至当前日期的日志This will get the logs until the current date

Type: Object
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: (Get-Date)
Accept pipeline input: False
Accept wildcard characters: False

-InputSasUri-InputSasUri

要由其下载日志的 Blob 服务 SAS URI。Blob service SAS Uri to download the logs from.

Type: Object
Parameter Sets: (All)
Aliases:

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

-OutputPath-OutputPath

要将 zip 文件置于的根文件夹路径。Root folder path where to put the zip file.

Type: Object
Parameter Sets: (All)
Aliases:

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

-OutputSharePath-OutputSharePath

要将收集的日志移动到的共享路径。Share path where to move the collected logs.

Type: Object
Parameter Sets: (All)
Aliases:

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

-OutputShareCredential-OutputShareCredential

共享凭据。Share credential.

Type: Object
Parameter Sets: (All)
Aliases:

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

-OutputSasUri-OutputSasUri

要将收集的日志移动到的 Blob SAS URI。Blob SAS Uri where to move the collected logs.

Type: Object
Parameter Sets: (All)
Aliases:

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

-LocalAdminCredential-LocalAdminCredential

Type: Object
Parameter Sets: (All)
Aliases:

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

-TimeOutInMinutes-TimeOutInMinutes

日志收集工具超时。Timeout for log collection tool.

Type: Object
Parameter Sets: (All)
Aliases:

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

-IncludeDumpFile-IncludeDumpFile

默认禁用转储文件收集。Disable dump file collection by default.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

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

-PerformVMLogRecovery-PerformVMLogRecovery

OffOffCriticalPausedPausedCritical VM 执行 WindowsEvents 日志恢复。Perform WindowsEvents Log recovery for Off, OffCritical, Paused, PausedCritical VMs.

Type: SwitchParameter
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: False
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.