Start-AzBatchPoolResize
풀 크기를 조정하기 시작합니다.
Syntax
Start-AzBatchPoolResize
[-Id] <String>
[-TargetDedicatedComputeNodes <Int32>]
[-TargetLowPriorityComputeNodes <Int32>]
[-ResizeTimeout <TimeSpan>]
[-ComputeNodeDeallocationOption <ComputeNodeDeallocationOption>]
-BatchContext <BatchAccountContext>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Start-AzBatchPoolResize cmdlet은 풀에서 Azure Batch 크기 조정 작업을 시작합니다.
예제
예제 1: 풀 크기를 12개 노드로 조정
Start-AzBatchPoolResize -Id "ContosoPool06" -TargetDedicatedComputeNodes 12 -BatchContext $Context
이 명령은 ID ContosoPool06이 있는 풀에서 크기 조정 작업을 시작합니다. 작업의 대상은 12개의 전용 컴퓨팅 노드입니다. Get-AzBatchAccountKey cmdlet을 사용하여 $Context 변수에 컨텍스트를 할당합니다.
예제 2: 할당 취소 옵션을 사용하여 풀 크기 조정
Get-AzBatchPool -Id "ContosoPool06" -BatchContext $Context | Start-AzBatchPoolResize -TargetDedicatedComputeNodes 5 -ResizeTimeout ([TimeSpan]::FromHours(1)) -ComputeNodeDeallocationOption ([Microsoft.Azure.Batch.Common.ComputeNodeDeallocationOption]::Terminate) -BatchContext $Context
이 cmdlet은 풀의 크기를 5개의 전용 컴퓨팅 노드로 조정합니다. 이 명령은 Get-AzBatchPool cmdlet을 사용하여 ID ContosoPool06이 있는 풀을 가져옵니다. 이 명령은 파이프라인 연산자를 사용하여 해당 풀 개체를 현재 cmdlet에 전달합니다. 이 명령은 풀에서 크기 조정 작업을 시작합니다. 대상은 5개의 전용 컴퓨팅 노드입니다. 이 명령은 1시간의 제한 시간을 지정합니다. 이 명령은 Terminate의 할당 취소 옵션을 지정합니다.
매개 변수
-BatchContext
이 cmdlet이 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 |
-ComputeNodeDeallocationOption
이 cmdlet이 시작하는 크기 조정 작업에 대한 할당 취소 옵션을 지정합니다.
Type: | Nullable<T>[ComputeNodeDeallocationOption] |
Accepted values: | Requeue, Terminate, TaskCompletion, RetainedData |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
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 |
-Id
이 cmdlet의 크기가 조정되는 풀의 ID를 지정합니다.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-ResizeTimeout
크기 조정 작업의 제한 시간을 지정합니다. 이 시간까지 풀이 대상 크기에 도달하지 않으면 크기 조정 작업이 중지됩니다.
Type: | Nullable<T>[TimeSpan] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetDedicatedComputeNodes
대상 전용 컴퓨팅 노드 수입니다.
Type: | Nullable<T>[Int32] |
Aliases: | TargetDedicated |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TargetLowPriorityComputeNodes
우선 순위가 낮은 대상 컴퓨팅 노드의 수입니다.
Type: | Nullable<T>[Int32] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
입력
출력
관련 링크
Azure PowerShell
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기