Remove-AzBatchNodeFile
태스크 또는 컴퓨팅 노드에 대한 노드 파일을 삭제합니다.
Syntax
Remove-AzBatchNodeFile
-JobId <String>
-TaskId <String>
-Path <String>
[-Force]
[-Recursive]
-BatchContext <BatchAccountContext>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzBatchNodeFile
[-PoolId] <String>
[-ComputeNodeId] <String>
-Path <String>
[-Force]
[-Recursive]
-BatchContext <BatchAccountContext>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Remove-AzBatchNodeFile
[[-InputObject] <PSNodeFile>]
[-Force]
[-Recursive]
-BatchContext <BatchAccountContext>
[-DefaultProfile <IAzureContextContainer>]
[-WhatIf]
[-Confirm]
[<CommonParameters>]
Description
Remove-AzBatchNodeFile cmdlet은 태스크 또는 컴퓨팅 노드에 대한 Azure Batch 노드 파일을 삭제합니다.
예제
예제 1: 작업과 연결된 파일 삭제
Remove-AzBatchNodeFile -JobId "Job-000001" -TaskId "Task26" -Path "wd\testFile.txt" -BatchContext $Context
이 명령은 wd\testFile.txt 명명된 노드 파일을 삭제합니다. 이 파일은 작업 작업-000001 아래에 ID Task26이 있는 작업과 연결됩니다.
예제 2: 컴퓨팅 노드에서 파일 삭제
Remove-AzBatchNodeFile -PoolId "Pool07" -ComputeNodeId "tvm-2316545714_1-20150725t213220z" -Path "startup\testFile.txt" -BatchContext $Context
이 명령은 ID Pool07이 있는 풀의 지정된 컴퓨팅 노드에서 startup\testFile.txt 명명된 노드 파일을 삭제합니다.
예제 3: 파이프라인을 사용하여 파일 제거
Get-AzBatchNodeFile -JobId "Job-000001" -TaskId "Task26" -Path "wd\testFile2.txt" -BatchContext $Context | Remove-AzBatchNodeFile -Force -BatchContext $Context
이 명령은 Get-AzBatchNodeFile을 사용하여 노드 파일을 가져옵니다. 이 파일은 작업 작업-000001 아래에 ID Task26이 있는 작업과 연결됩니다. 이 명령은 파이프라인을 사용하여 해당 파일을 현재 cmdlet에 전달합니다. 현재 cmdlet은 노드 파일을 제거합니다. 이 명령은 Force 매개 변수를 지정합니다. 따라서 이 명령은 확인 메시지를 표시하지 않습니다.
매개 변수
-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 |
-ComputeNodeId
이 cmdlet이 삭제하는 Batch 노드 파일이 포함된 컴퓨팅 노드의 ID를 지정합니다.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
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 |
-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 |
-InputObject
이 cmdlet이 삭제하는 노드 파일을 나타내는 PSNodeFile 개체를 지정합니다. PSNodeFile을 가져오려면 Get-AzBatchNodeFile cmdlet을 사용합니다.
Type: | PSNodeFile |
Position: | 0 |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-JobId
작업이 포함된 작업의 ID를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Path
삭제할 노드 파일의 파일 경로입니다.
Type: | String |
Aliases: | Name |
Position: | Named |
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: | True |
Accept wildcard characters: | False |
-Recursive
이 cmdlet은 지정된 경로 아래의 폴더와 모든 하위 폴더 및 파일을 삭제한다는 것을 나타냅니다. 이 cmdlet은 경로가 폴더인 경우에만 관련이 있습니다.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-TaskId
작업의 ID를 지정합니다.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
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 |