< Back

Get-AzureRmLogicAppUpgradedDefinition

Tue Jan 29, 2019 9:51 pm

NAME Get-AzureRmLogicAppUpgradedDefinition



SYNOPSIS

Gets the upgraded definition for a logic app.





SYNTAX

Get-AzureRmLogicAppUpgradedDefinition [-DefaultProfile <IAzureContextContainer>] -Name <String> -ResourceGroupName <String> -TargetSchemaVersion

<String> [<CommonParameters>]





DESCRIPTION

The Get-AzureRmLogicAppUpgradedDefinition 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.





PARAMETERS

-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Name <String>

Specifies the name of a logic app.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-ResourceGroupName <String>

Specifies the name of a resource group.



Required? true

Position? named

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-TargetSchemaVersion <String>

Specifies the target schema version of the definition.



Required? true

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

None

This cmdlet does not accept any input.





OUTPUTS

System.Object







NOTES









Example 1: Get a logic app upgraded definition



PS C:\\>$UpgradedDefinition = Get-AzureRmLogicAppUpgradedDefinition -ResourceGroupName "ResourceGroup11" -Name "LogicApp01" -TargetSchemaVersion

"2016-06-01"

$UpgradedDefinition.ToString()

{



"$schema": "http://schema.management.azure.com/prov ... ition.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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... definition

Get-AzureRmLogicApp