Remove-WAPackStaticIPAddressPool
静的 IP アドレス プール オブジェクトを削除します。
注意
このドキュメントで参照されているコマンドレットは、Service Management API を使用するレガシ Azure リソースを管理するためのものです。 Azure Resource Manager リソースを管理するためのコマンドレットについては、Az 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
ユーザーに確認せずに、直ちにコマンドを実行します。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-PassThru
作業中の項目を表すオブジェクトを返します。 既定では、このコマンドレットによる出力はありません。
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Profile
このコマンドレットが読み取る Azure プロファイルを指定します。 プロファイルを指定しない場合、このコマンドレットはローカルの既定のプロファイルから読み取ります。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StaticIPAddressPool
StaticIPAddressPool を指定します。 静的 IP アドレス プールを取得するには、Get-WAPackStaticIPAddressPool コマンドレットを使用します。
Type: | StaticIPAddressPool |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |