Get-CloudFunction¶
SYNOPSIS¶
Gets serverless functions from a selected cloud provider.
SYNTAX¶
Azure (Default)¶
Get-CloudFunction -ResourceGroup <string> [-Provider <string>] [-Name <string>]
[-Status <CloudFunctionStatus>] [-Tag <hashtable>] [-Detailed] [<CommonParameters>]
GCP¶
Get-CloudFunction -Project <string> [-Provider <string>] [-Name <string>]
[-Status <CloudFunctionStatus>] [-Tag <hashtable>] [-Detailed] [<CommonParameters>]
AWS¶
Get-CloudFunction -Region <string> [-Provider <string>] [-Name <string>]
[-Status <CloudFunctionStatus>] [-Tag <hashtable>] [-Detailed] [<CommonParameters>]
All¶
Get-CloudFunction -All [-Name <string>] [-Status <CloudFunctionStatus>] [-Tag <hashtable>]
[-Detailed] [<CommonParameters>]
ALIASES¶
This cmdlet has the following aliases, None
DESCRIPTION¶
Routes function inventory requests to the matching provider backend and returns normalized cloud record objects for the serverless compute surface.
Use -All to query every provider that has an established session context, returning functions from all connected clouds in one pipeline.
EXAMPLES¶
EXAMPLE 1¶
Get-CloudFunction -Provider Azure -ResourceGroup 'prod-rg'
Gets Azure Function Apps in a resource group.
EXAMPLE 2¶
Get-CloudFunction -Provider AWS -Region 'us-east-1'
Gets AWS Lambda functions in a region.
EXAMPLE 3¶
Get-CloudFunction -Provider GCP -Project 'my-project'
Gets GCP Cloud Functions for a project.
EXAMPLE 4¶
Get-CloudFunction -All
Gets functions from all providers with an established session context. Use after Connect-Cloud -Provider AWS, Azure, GCP.
EXAMPLE 5¶
Get-CloudFunction -All -Status Active -Tag @{ environment = 'production' }
Gets all active functions with the production environment tag across all connected clouds.
EXAMPLE 6¶
Get-CloudFunction -Provider Azure -ResourceGroup 'prod-rg' -Name 'func-process-order'
Gets Azure Function Apps matching the specified name.
EXAMPLE 7¶
Get-CloudFunction -Provider AWS -Region 'us-east-1' -Detailed
Gets AWS Lambda functions with detailed view enabled.
PARAMETERS¶
-All¶
Query all providers with an established session context.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Detailed¶
Emit detailed view records.
Type: System.Management.Automation.SwitchParameter
DefaultValue: False
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Name¶
Filter results by name.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Project¶
The GCP project to query for Cloud Functions.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: GCP
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Provider¶
The cloud provider to query.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Region¶
The AWS region to query for Lambda functions.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: AWS
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-ResourceGroup¶
The Azure resource group containing the target Function Apps.
Type: System.String
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: Azure
Position: Named
IsRequired: true
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Status¶
Filter results by function status.
Type: CloudFunctionStatus
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
-Tag¶
Filter results by tag key-value pairs. All specified tags must match.
Type: System.Collections.Hashtable
DefaultValue: ''
SupportsWildcards: false
Aliases: []
ParameterSets:
- Name: All
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: GCP
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: AWS
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
- Name: Azure
Position: Named
IsRequired: false
ValueFromPipeline: false
ValueFromPipelineByPropertyName: false
ValueFromRemainingArguments: false
DontShow: false
AcceptedValues: []
HelpMessage: ''
CommonParameters¶
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS¶
OUTPUTS¶
System.Management.Automation.PSObject¶
See the command description and examples above.
NOTES¶
RELATED LINKS¶
None.