Share via


Stop-AzBatchPoolResize

プールのサイズ変更操作を停止します。

構文

Stop-AzBatchPoolResize
    [-Id] <String>
    -BatchContext <BatchAccountContext>
    [-DefaultProfile <IAzureContextContainer>]
    [<CommonParameters>]

説明

Stop-AzBatchPoolResize コマンドレットは、プールでの Azure Batch サイズ変更操作を停止します。

例 1: プールのサイズ変更を停止する

Stop-AzBatchPoolResize -Id "ContosoPool06" -BatchContext $Context

このコマンドは、ID ContosoPool06 を持つプールでのサイズ変更操作を停止します。 Get-AzBatchAccountKey コマンドレットを使用して、$Context変数にコンテキストを割り当てます。

例 2: パイプラインを使用してプールのサイズ変更を停止する

Get-AzBatchPool -Id "ContosoPool06" -BatchContext $Context | Stop-AzBatchPoolResize -BatchContext $Context

このコマンドは、パイプライン 演算子を使用してプールのサイズ変更を停止します。 このコマンドは、Get-AzBatchPool コマンドレットを使用して、ID ContosoPool06 を持つプールを取得します。 このコマンドは、そのプール オブジェクトを現在のコマンドレットに渡します。 このコマンドは、そのプールでのサイズ変更操作を停止します。

パラメーター

-BatchContext

このコマンドレットが Batch サービスとの対話に使用する BatchAccountContext インスタンスを指定します。 Get-AzBatchAccount コマンドレットを使用して BatchAccountContext を取得する場合、Batch サービスと対話するときに Microsoft Entra 認証が使用されます。 代わりに共有キー認証を使用するには、Get-AzBatchAccountKey コマンドレットを使用して、アクセス キーが設定された 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

-Id

このコマンドレットがサイズ変更操作を停止するプールの ID を指定します。

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

入力

String

BatchAccountContext

出力

Void