Get-AzBatchTaskCount
지정된 작업의 작업 수를 가져옵니다.
Syntax
Get-AzBatchTaskCount
[-JobId] <String>
-BatchContext <BatchAccountContext>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzBatchTaskCount
[[-Job] <PSCloudJob>]
-BatchContext <BatchAccountContext>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzBatchTaskCount cmdlet은 Batch 작업에 대한 Azure Batch 작업 수를 가져옵니다. JobId 매개 변수 또는 Job 매개 변수로 작업을 지정합니다. 작업 수는 활성, 실행 또는 완료된 작업 상태별 태스크 수와 성공 또는 실패한 태스크 수를 제공합니다. 준비 상태의 작업은 실행 중으로 계산됩니다. validationStatus가 유효성 검사되지 않은 경우 Batch 서비스는 작업 목록 API에 보고된 작업 상태에 대한 상태 수를 검사 수 없습니다. 작업에 200,000개 이상의 태스크가 포함된 경우 validationStatus는 유효성 검사되지 않을 수 있습니다.
예제
예제 1: ID별 작업 수 가져오기
Get-AzBatchTaskCount -JobId "Job01" -BatchContext $Context
Active : 1
Completed : 0
Failed : 0
Running : 1
Succeeded : 5
ValidationStatus : Validated
이 명령은 Job01 작업에 대한 작업 수를 가져옵니다. Get-AzBatchAccountKey cmdlet을 사용하여 $Context 변수에 컨텍스트를 할당합니다.
매개 변수
-BatchContext
Batch 서비스와 상호 작용할 때 사용할 BatchAccountContext 인스턴스입니다. Get-AzBatchAccount cmdlet을 사용하여 BatchAccountContext를 가져오는 경우 Batch 서비스와 상호 작용할 때 Microsoft Entra 인증이 사용됩니다. 대신 공유 키 인증을 사용하려면 Get-AzBatchAccountKey cmdlet을 사용하여 액세스 키가 채워진 BatchAccountContext 개체를 가져옵니다. 공유 키 인증을 사용하는 경우 기본 액세스 키가 기본적으로 사용됩니다. 사용할 키를 변경하려면 BatchAccountContext.KeyInUse 속성을 설정합니다.
Type: | BatchAccountContext |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-DefaultProfile
Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.
Type: | IAzureContextContainer |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Job
이 cmdlet에서 가져오는 작업이 포함된 작업을 지정합니다. PSCloudJob 개체를 가져오려면 Get-AzBatchJob cmdlet을 사용합니다.
Type: | PSCloudJob |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-JobId
작업 수를 가져올 작업의 ID입니다.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
입력
출력
관련 링크
Azure PowerShell
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기