Remove-AzBatchComputeNode
풀에서 컴퓨팅 노드를 제거합니다.
Syntax
Remove-AzBatchComputeNode
[-PoolId] <String>
[-Ids] <String[]>
[-DeallocationOption <ComputeNodeDeallocationOption>]
[-ResizeTimeout <TimeSpan>]
[-Force]
-BatchContext <BatchAccountContext>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzBatchComputeNode
[[-ComputeNode] <PSComputeNode>]
[-DeallocationOption <ComputeNodeDeallocationOption>]
[-ResizeTimeout <TimeSpan>]
[-Force]
-BatchContext <BatchAccountContext>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Remove-AzBatchComputeNode cmdlet은 풀에서 Azure Batch 컴퓨팅 노드를 제거합니다.
예제
예제 1: 컴퓨팅 노드 제거
Remove-AzBatchComputeNode -PoolId "Pool07" -Ids "tvm-2316545714_1-20150725t213220z" -DeallocationOption Terminate -ResizeTimeout ([TimeSpan]::FromMinutes(10)) -BatchContext $Context
이 명령은 ID Pool07이 있는 풀에서 지정된 ID가 있는 컴퓨팅 노드를 제거합니다. 이 명령은 종결 할당 취소 옵션을 지정합니다. 크기 조정 제한 시간은 10분입니다.
예제 2: 파이프라인을 사용하여 컴퓨팅 노드 제거
Get-AzBatchComputeNode -PoolId "Pool07" -Id "tvm-2316545714_1-20150725t213220z" -BatchContext $Context | Remove-AzBatchComputeNode -Force -BatchContext $Context
이 명령은 Get-AzBatchComputeNode cmdlet을 사용하여 ID Pool07이 있는 풀에서 지정된 ID를 가진 컴퓨팅 노드를 가져옵니다. 이 명령은 파이프라인을 사용하여 해당 노드를 현재 cmdlet에 전달합니다. 현재 cmdlet은 컴퓨팅 노드를 제거합니다. 이 명령은 Force 매개 변수를 지정합니다. 따라서 이 명령은 확인 메시지를 표시하지 않습니다.
예제 3: 여러 노드 제거
Remove-AzBatchComputeNode -PoolId "Pool07" @("tvm-1783593343_28-20151117t214257z","tvm-1783593343_29-20151117t214257z") -Force -BatchContext $Context
이 명령은 ID Pool07이 있는 풀에서 두 개의 컴퓨팅 노드를 제거합니다. 이 명령은 확인 메시지를 표시하지 않습니다.
매개 변수
-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 |
-ComputeNode
이 cmdlet에서 제거하는 컴퓨팅 노드를 나타내는 PSComputeNode 개체를 지정합니다.
Type: | PSComputeNode |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Confirm
cmdlet을 실행하기 전에 확인 메시지가 표시됩니다.
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-DeallocationOption
이 cmdlet이 시작하는 제거 작업에 대한 할당 취소 옵션을 지정합니다. 기본값은 Requeue입니다.
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 |
-Force
사용자 확인을 요청하지 않고 명령을 강제 실행합니다.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Ids
이 cmdlet이 풀에서 제거하는 컴퓨팅 노드의 ID 배열을 지정합니다.
Type: | String[] |
Aliases: | Id |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PoolId
이 cmdlet에서 제거하는 컴퓨팅 노드를 포함하는 풀의 ID를 지정합니다.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResizeTimeout
풀에서 컴퓨팅 노드를 제거할 제한 시간 간격을 지정합니다. 기본값은 10분입니다. 최소값은 5분입니다.
Type: | Nullable<T>[TimeSpan] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WhatIf
cmdlet이 실행될 경우 결과 동작을 표시합니다. cmdlet이 실행되지 않습니다.
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | False |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |