Get-AzureWebHostingPlan
現在のサブスクリプションの Azure Web ホスティング プランを取得します。
注意
このドキュメントで参照されているコマンドレットは、Service Management API を使用するレガシ Azure リソースを管理するためのものです。 Azure Resource Manager リソースを管理するためのコマンドレットについては、Az PowerShell モジュールを参照してください。
構文
Get-AzureWebHostingPlan
[-WebSpaceName <String>]
[-Name <String>]
[-Profile <AzureSMProfile>]
[<CommonParameters>]
説明
このトピックでは、Microsoft Azure PowerShell モジュールの 0.8.10 バージョンのコマンドレットについて説明します。
使用しているモジュールのバージョンを取得するには、Azure PowerShell コンソールで「.」と入力します (Get-Module -Name Azure).Version
。
Get-AzureWebHostingPlan コマンドレットは、現在のサブスクリプションの Azure Web ホスティング プランを取得します。
既定では、 Get-AzureWebHostingPlan は現在のサブスクリプション内のすべての Azure ホスティング プランを取得し、プランに関する基本情報を提供するオブジェクトを返します。 WebSpace パラメーターと Name パラメーターを使用すると、Get-AzureWebHostingPlan は特定のホスティング プラン オブジェクトを返します。
現在のサブスクリプションを検索するには、Get-AzureSubscription コマンドレットの Current パラメーターを使用します。 現在のサブスクリプションを変更するには、Select-AzureSubscription コマンドレットを使用します。
例
例 1: サブスクリプション内のすべての Web ホスティング プランを取得する
PS C:\> Get-AzureWebHostingPlan
Name : Default1
SKU : Basic
WorkerSize : Small
NumberOfWorkers : 1
CurrentWorkerSize : Small
CurrentNumberOfWorkers : 1
Status : Ready
WebSpace : eastuswebspace
Name : Default0
SKU : Free
WorkerSize : Small
NumberOfWorkers : 0
CurrentWorkerSize : Small
CurrentNumberOfWorkers : 0
Status : Ready
このコマンドは、現在のサブスクリプション内のすべての Azure Web ホスティング プランを取得します。
例 2: サブスクリプション内の特定の Web ホスティング プランを取得する
PS C:\> Get-AzureWebHostingPlan -WebSpaceName "westeuropewebspace" -Name "Default0"
Name : Default0
SKU : Free
WorkerSize : Small
NumberOfWorkers : 0
CurrentWorkerSize : Small
CurrentNumberOfWorkers : 0
Status : Ready
WebSpace : westeuropewebspace
このコマンドは、現在のサブスクリプションの westeuropewebspace という名前の Web 空間で Default0 という名前の Web ホスティング プランを取得します。
パラメーター
-Name
サブスクリプション内のプランの名前を指定します。 既定では、このコマンドレットは現在のサブスクリプション内のすべてのプランを取得します。 このパラメーターはワイルドカード文字をサポートしていません。
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
-Profile
このコマンドレットが読み取る Azure プロファイルを指定します。 プロファイルを指定しない場合、このコマンドレットはローカルの既定のプロファイルから読み取ります。
Type: | AzureSMProfile |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-WebSpaceName
サブスクリプション内の Web スペースの名前を指定します。 既定では、このコマンドレットは、指定された Web 空間内のすべての Web サイトを取得します。 このパラメーターはワイルドカード文字をサポートしていません。
Type: | String |
Aliases: | WebSpace |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | True |
Accept wildcard characters: | False |
入力
このコマンドレットにはプロパティ名で入力を渡すことができますが、値による渡しはできません。
出力
Microsoft.WindowsAzure.Commands.Utilities.Websites.Services.WebEntities.WebHostingPlan
既定では、Get-AzureWebHostingPlan は WebHostingPlan オブジェクトの配列を返します。