Get AzureStackLogGet-AzureStackLog

개요Synopsis

시간 제한이 있는 Azure Stack 허브의 다양 한 역할에서 로그를 가져옵니다.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]

매개 변수Parameters

-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

지난 1 시간에서 시작 하는 로그를 가져옵니다.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

SAS Uri를 Blob service 하 여 로그를 다운로드 합니다.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

,,, Vm에 대 한 windowsevents 로그 복구 Off 를 수행 OffCritical Paused PausedCritical 합니다.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 허브에서 권한 있는 끝점 사용을 참조 하세요.For information on how to access and use the privileged endpoint, see Use the privileged endpoint in Azure Stack Hub.