Get-AzAppServicePlan
取得指定資源群組中的 Azure App Service 方案。
語法
Get-AzAppServicePlan
[[-ResourceGroupName] <String>]
[[-Name] <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzAppServicePlan
[-Location] <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
Get-AzAppServicePlan Cmdlet 會取得指定資源群組中的 Azure App Service 方案。
範例
範例 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 通訊的認證、帳戶、租用戶和訂用帳戶。
類型: | IAzureContextContainer |
別名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-Location
位置
類型: | String |
Position: | 0 |
預設值: | None |
必要: | True |
接受管線輸入: | False |
接受萬用字元: | False |
-Name
App Service 方案名稱
類型: | String |
Position: | 1 |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
-ResourceGroupName
資源組名
類型: | String |
Position: | 0 |
預設值: | None |
必要: | False |
接受管線輸入: | False |
接受萬用字元: | False |
輸入
None