Get-AzLogicAppUpgradedDefinition
Gets the upgraded definition for a logic app.
Syntax
Default (Default)
Get-AzLogicAppUpgradedDefinition
-ResourceGroupName <String>
-Name <String>
-TargetSchemaVersion <String>
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Description
The Get-AzLogicAppUpgradedDefinition cmdlet gets the upgraded definition for the schema version and logic app from a resource group. This cmdlet returns an object that represents the definition of the upgraded logic app. Specify the resource group name, logic app name, and target schema version. This module supports dynamic parameters. To use a dynamic parameter, type it in the command. To discover the names of dynamic parameters, type a hyphen (-) after the cmdlet name, and then press the Tab key repeatedly to cycle through the available parameters. If you omit a required template parameter, the cmdlet prompts you for the value.
Examples
Example 1: Get a logic app upgraded definition
$UpgradedDefinition = Get-AzLogicAppUpgradedDefinition -ResourceGroupName "ResourceGroup11" -Name "LogicApp01" -TargetSchemaVersion "2016-06-01"
$UpgradedDefinition.ToString()
{
"$schema": "http://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"contentVersion": "1.0.0.0",
"parameters": {},
"triggers": {
"httpTrigger": {
"recurrence": {
"frequency": "Hour",
"interval": 1
},
"type": "Http",
"inputs": {
"method": "GET",
"uri": "http://www.bing.com"
},
"conditions": [
{
"expression": "@bool('true')"
}
]
},
"manualTrigger": {
"type": "Request",
"kind": "Http"
}
},
"actions": {
"httpScope": {
"actions": {
"http": {
"runAfter": {},
"type": "Http",
"inputs": {
"method": "GET",
"uri": "http://www.bing.com"
}
}
},
"runAfter": {},
"else": {
"actions": {}
},
"expression": "@bool('true')",
"type": "If"
},
"http1Scope": {
"actions": {
"http1": {
"runAfter": {},
"type": "Http",
"inputs": {
"method": "GET",
"uri": "http://www.bing.com"
}
}
},
"runAfter": {},
"else": {
"actions": {}
},
"expression": "@bool('true')",
"type": "If"
}
},
"outputs": {
"output1": {
"type": "String",
"value": "true"
}
}
}
The first command gets the definition for the logic app upgraded to the specified target schema version. The command stores the definition in the $UpgradedDefinition variable. The second command displays the contents of $UpgradedDefinition as a string.
Parameters
-DefaultProfile
The credentials, account, tenant, and subscription used for communication with azure
Parameter properties
Type: | IAzureContextContainer |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | AzContext, AzureRmContext, AzureCredential |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Name
Specifies the name of a logic app.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Aliases: | ResourceName |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-ResourceGroupName
Specifies the name of a resource group.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | True |
Value from pipeline: | False |
Value from pipeline by property name: | True |
Value from remaining arguments: | False |
-TargetSchemaVersion
Specifies the target schema version of the definition.
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
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.