Get-AzAppServicePlan

取得指定資源群組中的 Azure App 服務 計劃。

Syntax

Get-AzAppServicePlan
   [[-ResourceGroupName] <String>]
   [[-Name] <String>]
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]
Get-AzAppServicePlan
   [-Location] <String>
   [-DefaultProfile <IAzureContextContainer>]
   [<CommonParameters>]

Description

Get-AzAppServicePlan Cmdlet 會取得指定資源群組中的 Azure App 服務 計劃。

範例

範例 1:從資源群組取得 App Service 方案

Get-AzAppServicePlan -ResourceGroupName "Default-Web-WestUS" -Name "ContosoASP"

此命令會取得名為 ContosoASP 的 App Service 方案,此方案屬於名為 Default-Web-WestUS 的資源群組。

範例 2:取得位置中的所有 App Service 方案

Get-AzAppServicePlan -Location "West US"

此命令會取得位於「美國西部」區域的所有App Service方案。

參數

-DefaultProfile

用於與 azure 通訊的認證、帳戶、租用戶和訂用帳戶。

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

-Location

Location

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

-Name

App Service 方案名稱

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

-ResourceGroupName

資源群組名稱

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

輸入

None

輸出

PSAppServicePlan