Remove-WAPackStaticIPAddressPool

静的 IP アドレス プール オブジェクトを削除します。

Note

このドキュメントで参照されているコマンドレットは、Azure Service Manager (ASM) API を使用する従来の Azure リソースを管理するためのものです。 ASM の提供終了が予定されているため、新しいリソースを作成する場合、このレガシ PowerShell モジュールは推奨されません。 詳細については、Azure Service Manager の提供終了に関するページを参照してください

Az PowerShell モジュールは、PowerShell を使用して Azure Resource Manager (ARM) リソースを管理するために推奨される PowerShell モジュールです。

構文

Remove-WAPackStaticIPAddressPool
      -StaticIPAddressPool <StaticIPAddressPool>
      [-PassThru]
      [-Force]
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]

説明

これらのトピックは非推奨となり、今後削除される予定です。 このトピックでは、Microsoft Azure PowerShell モジュールの 0.8.1 バージョンのコマンドレットについて説明します。 使用しているモジュールのバージョンを確認するには、Azure PowerShell コンソールで「.」と入力します (Get-Module -Name Azure).Version

Remove-WAPackStaticIPAddressPool コマンドレットは、静的 IP アドレス プール オブジェクトを削除します。

例 1: 静的 IP アドレス プールを削除する

PS C:\> $StaticIPAddressPool = Get-WAPackStaticIPAddressPool -Name "ContosoStaticIPAddressPool01"
PS C:\> Remove-WAPackStaticIPAddressPool -StaticIPAddressPool $StaticIPAddressPool

最初のコマンドは、Get-WAPackStaticIPAddressPool コマンドレットを使用して ContosoStaticIPAddressPool01 という名前の静的 IP アドレス プールを取得し、そのオブジェクトを$StaticIPAddressPool変数に格納します。

2 番目のコマンドは、$StaticIPAddressPoolに格納されている静的 IP アドレス プールを削除します。 コマンドを実行すると、確認を求められます。

例 2: 確認なしで静的 IP アドレス プールを削除する

PS C:\> $StaticIPAddressPool = Get-WAPackStaticIPAddressPool -Name "ContosoStaticIPAddressPool02"
PS C:\> Remove-WAPackStaticIPAddressPool -StaticIPAddressPool $StaticIPAddressPool -Force

最初のコマンドは、Get-WAPackStaticIPAddressPool コマンドレットを使用して ContosoStaticIPAddressPool02 という名前の静的 IP アドレス プールを取得し、そのオブジェクトを $ StaticIPAddressPool 変数に格納します。

2 番目のコマンドは、$StaticIPAddressPoolに格納されている静的 IP アドレス プールを削除します。 このコマンドには Force パラメーターが含まれています。 このコマンドは、確認を求めるメッセージを表示しません。

パラメーター

-Force

ユーザーに確認せずに、直ちにコマンドを実行します。

型:SwitchParameter
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-PassThru

作業中の項目を表すオブジェクトを返します。 既定では、このコマンドレットによる出力はありません。

型:SwitchParameter
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-Profile

このコマンドレットが読み取る Azure プロファイルを指定します。 プロファイルを指定しない場合、このコマンドレットはローカルの既定のプロファイルから読み取ります。

型:AzureSMProfile
配置:Named
規定値:None
必須:False
パイプライン入力を受け取る:False
ワイルドカード文字を受け取る:False

-StaticIPAddressPool

StaticIPAddressPool を指定します。 静的 IP アドレス プールを取得するには、Get-WAPackStaticIPAddressPool コマンドレットを使用します。

型:StaticIPAddressPool
配置:Named
規定値:None
必須:True
パイプライン入力を受け取る:True
ワイルドカード文字を受け取る:False