Get-AzBatchSupportedImage

Batch 계정에 대해 지원되는 Batch 이미지를 가져옵니다.

Syntax

Get-AzBatchSupportedImage
   [-Filter <String>]
   [-MaxCount <Int32>]
   -BatchContext <BatchAccountContext>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzBatchSupportedImage cmdlet은 Azure Batch 계정에서 사용할 수 있는 지원되는 가상 머신 이미지를 가져옵니다. BatchContext 매개 변수를 사용하여 계정을 지정합니다.

예제

예제 1: 지원되는 모든 이미지 가져오기

$Context = Get-AzBatchAccountKey -AccountName "ContosoBatchAccount"
Get-AzBatchSupportedImage -BatchContext $Context

BatchSupportEndOfLife :
Capabilities          :
ImageReference        : canonical:ubuntuserver:16.04-lts:latest
NodeAgentSkuId        : batch.node.ubuntu 16.04
OSType                : Linux
VerificationType      : Verified

BatchSupportEndOfLife :
Capabilities          :
ImageReference        : canonical:ubuntuserver:18.04-lts:latest
NodeAgentSkuId        : batch.node.ubuntu 18.04
OSType                : Linux
VerificationType      : Verified

BatchSupportEndOfLife :
Capabilities          :
ImageReference        : credativ:debian:8:latest
NodeAgentSkuId        : batch.node.debian 8
OSType                : Linux
VerificationType      : Verified

BatchSupportEndOfLife :
Capabilities          :
ImageReference        : microsoftwindowsserver:windowsserver:2016-datacenter:latest
NodeAgentSkuId        : batch.node.windows amd64
OSType                : Windows
VerificationType      : Verified

...

첫 번째 명령은 Get-AzBatchAccountKey를 사용하여 구독에 대한 액세스 키를 포함하는 Batch 계정 컨텍스트를 가져옵니다. 이 명령은 다음 명령에 사용할 $Context 변수에 컨텍스트를 저장합니다. 두 번째 명령은 해당 Batch 계정에 대해 지원되는 모든 이미지를 가져옵니다.

매개 변수

-BatchContext

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

-DefaultProfile

Azure와의 통신에 사용되는 자격 증명, 계정, 테넌트 및 구독입니다.

Type:IAzureContextContainer
Aliases:AzContext, AzureRmContext, AzureCredential
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-Filter

지원되는 이미지에 대한 OData 필터 절을 지정합니다. 필터를 지정하지 않으면 이 cmdlet은 Batch 계정에서 지원하는 모든 이미지를 반환합니다.

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

-MaxCount

반환할 지원되는 이미지의 최대 수를 지정합니다.

Type:Int32
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

입력

BatchAccountContext

출력

PSImageInformation