Get-AzFunctionApp
Gets function apps in a subscription.
Syntax
Get-AzFunctionApp
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzFunctionApp
[-SubscriptionId <String[]>]
-Location <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzFunctionApp
[-SubscriptionId <String[]>]
-ResourceGroupName <String>
-Name <String>
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Get-AzFunctionApp
[-SubscriptionId <String[]>]
-ResourceGroupName <String>
[-IncludeSlot]
[-DefaultProfile <PSObject>]
[<CommonParameters>]
Description
Gets function apps in a subscription.
Examples
Example 1: Get all function apps.
Get-AzFunctionApp
Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId
---- ------ ------ ------- -------- -------------- ----------------- --------------
Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Functions1-Windows-Java Running Windows Java West Europe Premium1-WE Functions-West-Europe1 aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Example 2: Get function apps by name.
Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win -Name Functions1-Windows-DoNet
Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId
---- ------ ------ ------- -------- -------------- ----------------- --------------
Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Example 3: Get function apps by resource group name.
Get-AzFunctionApp -ResourceGroupName Functions-West-Europe-Win
Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId
---- ------ ------ ------- -------- -------------- ----------------- --------------
Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Example 4: Get function apps for the given subscriptions.
Get-AzFunctionApp -SubscriptionId aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId
---- ------ ------ ------- -------- -------------- ----------------- --------------
Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Example 5: Get function apps by location.
Get-AzFunctionApp -Location "Central US"
Name Status OSType Runtime Location AppServicePlan ResourceGroupName SubscriptionId
---- ------ ------ ------- -------- -------------- ----------------- --------------
Functions1-Windows-DoNet Running Windows DotNet Central US CentralUSPlan Functions-West-Europe-Win aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with Azure.
Type: | PSObject |
Aliases: | AzureRMContext, AzureCredential |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-IncludeSlot
Use to specify whether to include deployment slots in results.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Location
The location of the function app.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
The name of the function app.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-ResourceGroupName
The name of the resource group.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-SubscriptionId
The Azure subscription ID.
Type: | String[] |
Position: | Named |
Default value: | (Get-AzContext).Subscription.Id |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
Azure PowerShell