Enable-AzBatchComputeNodeScheduling

지정된 컴퓨팅 노드에서 작업 예약을 사용하도록 설정합니다.

Syntax

Enable-AzBatchComputeNodeScheduling
      [-PoolId] <String>
      [-Id] <String>
      -BatchContext <BatchAccountContext>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]
Enable-AzBatchComputeNodeScheduling
      [[-ComputeNode] <PSComputeNode>]
      -BatchContext <BatchAccountContext>
      [-DefaultProfile <IAzureContextContainer>]
      [<CommonParameters>]

Description

Enable-AzBatchComputeNodeScheduling cmdlet을 사용하면 지정된 컴퓨팅 노드에서 작업 일정을 예약할 수 있습니다. 컴퓨팅 노드는 특정 애플리케이션 워크로드 전용 Azure 가상 머신입니다.

예제

예제 1: 컴퓨팅 노드에서 작업 예약 사용

$Context = Get-AzBatchAccountKey -AccountName "contosobatchaccount"
Enable-AzBatchComputeNodeScheduling  -PoolId "myPool" -Id "tvm-1783593343_34-20151117t222514z" -BatchContext $Context

이러한 명령은 컴퓨팅 노드 tvm-1783593343_34-20151117t222514z에서 작업 예약을 사용하도록 설정합니다. 이를 위해 예제의 첫 번째 명령은 일괄 처리 계정 contosobatchaccount에 대한 계정 키를 포함하는 개체 참조를 만듭니다. 이 개체 참조는 $context 변수에 저장됩니다. 그런 다음 두 번째 명령은 이 개체 참조 및 Enable-AzBatchComputeNodeScheduling cmdlet을 사용하여 myPool 풀에 연결하고 tvm-1783593343_34-20151117t2222514z에서 작업 예약을 사용하도록 설정합니다.

예제 2: 풀의 컴퓨팅 노드에서 작업 예약 사용

$Context = Get-AzBatchAccountKey -AccountName "contosobatchaccount"
Get-AzBatchComputeNode -PoolId "Pool06"  -BatchContext $Context | Enable-AzBatchComputeNodeScheduling  -BatchContext $Context

이러한 명령을 사용하면 풀 Pool06에 있는 모든 컴퓨팅 노드에서 작업을 예약할 수 있습니다. 이 작업을 수행하기 위해 예제의 첫 번째 명령은 일괄 처리 계정 contosobatchaccount에 대한 계정 키를 포함하는 개체 참조를 만듭니다. 이 개체 참조는 $context 변수에 저장됩니다. 그런 다음 예제의 두 번째 명령은 이 개체 참조 및 Get-AzBatchComputeNode 를 사용하여 Pool06에 있는 모든 컴퓨팅 노드의 컬렉션을 반환합니다. 그런 다음, 해당 컬렉션을 Enable-AzBatchComputeNodeScheduling cmdlet으로 파이프하여 컬렉션의 각 컴퓨팅 노드에서 작업을 예약할 수 있습니다.

매개 변수

-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

작업 예약이 사용되는 컴퓨팅 노드에 대한 개체 참조를 지정합니다. 이 개체 참조는 Get-AzBatchComputeNode cmdlet을 사용하고 반환된 컴퓨팅 노드 개체를 변수에 저장하여 만듭니다.

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

입력

PSComputeNode

BatchAccountContext

출력

Void