다음을 통해 공유


Reset-AzBatchComputeNode

지정된 컴퓨팅 노드에 운영 체제를 다시 설치합니다.

Syntax

Reset-AzBatchComputeNode
     [-PoolId] <String>
     [-Id] <String>
     [-ReimageOption <ComputeNodeReimageOption>]
     -BatchContext <BatchAccountContext>
     [-DefaultProfile <IAzureContextContainer>]
     [<CommonParameters>]
Reset-AzBatchComputeNode
     [[-ComputeNode] <PSComputeNode>]
     [-ReimageOption <ComputeNodeReimageOption>]
     -BatchContext <BatchAccountContext>
     [-DefaultProfile <IAzureContextContainer>]
     [<CommonParameters>]

Description

Reset-AzBatchComputeNode cmdlet은 지정된 컴퓨팅 노드에 운영 체제를 다시 설치합니다.

예제

예제 1: 노드 이미지 다시 설치

Reset-AzBatchComputeNode -PoolId "MyPool" -Id "tvm-3257026573_2-20150813t200938z" -BatchContext $Context

이 명령은 MyPool이라는 풀에서 ID가 "tvm-3257026573_2-20150813t200938z"인 컴퓨팅 노드를 이미지로 다시 설치합니다. Get-AzBatchAccountKey cmdlet을 사용하여 $Context 변수에 컨텍스트를 할당합니다.

예제 2: 풀의 모든 노드 이미지 다시 설치

Get-AzBatchComputeNode -PoolId "MyPool" -BatchContext $Context | Reset-AzBatchComputeNode -BatchContext $Context

이 명령은 MyPool이라는 풀의 모든 컴퓨팅 노드를 이미지로 다시 설치합니다.

매개 변수

-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

이미지로 다시 설치할 컴퓨팅 노드를 나타내는 PSComputeNode 개체를 지정합니다.

Type:PSComputeNode
Position:0
Default value:None
Required:False
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

-Id

이미지로 다시 설치할 컴퓨팅 노드의 ID를 지정합니다.

Type:String
Position:1
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-PoolId

컴퓨팅 노드를 포함하는 풀의 ID를 지정합니다.

Type:String
Position:0
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-ReimageOption

노드를 이미지로 다시 설치할 시기와 현재 실행 중인 작업으로 수행할 작업을 지정합니다. 기본값은 Requeue입니다.

Type:Nullable<T>[ComputeNodeReimageOption]
Accepted values:Requeue, Terminate, TaskCompletion, RetainedData
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

입력

PSComputeNode

BatchAccountContext

출력

Void