Get-AzEdgeActionVersionCode
Get Edge Action version code and optionally save to file.
Syntax
GetCustom (Default)
Get-AzEdgeActionVersionCode
-EdgeActionName <String>
-ResourceGroupName <String>
-Version <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
GetAndSaveCustom
Get-AzEdgeActionVersionCode
-EdgeActionName <String>
-ResourceGroupName <String>
-Version <String>
-OutputPath <String>
[-SubscriptionId <String[]>]
[-DefaultProfile <PSObject>]
[-AsJob]
[-NoWait]
[<CommonParameters>]
Description
A long-running resource action that retrieves the version code for an Edge Action version.
When the -OutputPath parameter is specified, the base64-encoded content is decoded and saved
as a zip file to the specified directory.
Otherwise, returns the raw response with base64 content.
Examples
Example 1: Get version code as base64-encoded content
Get-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1"
Content Name
------- ----
UEsDBBQAAAAIAI... (base64 encoded ZIP content) v1
This command retrieves the deployed version code as a base64-encoded ZIP file.
The content can be decoded and extracted to view the original source files.
Example 2: Get version code and save to file
Get-AzEdgeActionVersionCode -ResourceGroupName "myResourceGroup" -EdgeActionName "myEdgeAction" -Version "v1" -OutputPath "C:\Downloads"
Message FilePath Name
------- -------- ----
Version code saved... C:\Downloads\v1.zip v1
This command retrieves the deployed version code and saves it directly to a ZIP file in the specified output directory.
The file is automatically named using the version name.
Parameters
-AsJob
Run the command as a job
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
GetCustom
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetAndSaveCustom
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-DefaultProfile
The DefaultProfile parameter is not functional.
Use the SubscriptionId parameter when available if executing the cmdlet against a different subscription.
Parameter properties
Type: PSObject
Default value: None
Supports wildcards: False
DontShow: False
Aliases: AzureRMContext, AzureCredential
Parameter sets
GetCustom
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetAndSaveCustom
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-EdgeActionName
The name of the Edge Action
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
GetCustom
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetAndSaveCustom
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-NoWait
Run the command asynchronously
Parameter properties
Type: SwitchParameter
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
GetCustom
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetAndSaveCustom
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-OutputPath
Output directory to save the decoded version code as a zip file.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
GetAndSaveCustom
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-ResourceGroupName
The name of the resource group.
The name is case insensitive.
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
GetCustom
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetAndSaveCustom
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-SubscriptionId
The ID of the target subscription.
The value must be an UUID.
Parameter properties
Type: String [ ]
Default value: (Get-AzContext).Subscription.Id
Supports wildcards: False
DontShow: False
Parameter sets
GetCustom
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetAndSaveCustom
Position: Named
Mandatory: False
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
-Version
The name of the Edge Action version
Parameter properties
Type: String
Default value: None
Supports wildcards: False
DontShow: False
Parameter sets
GetCustom
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
GetAndSaveCustom
Position: Named
Mandatory: True
Value from pipeline: False
Value from pipeline by property name: False
Value from remaining arguments: False
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 .
Outputs