diff --git a/src/ResourceManager/LogicApp/Commands.LogicApp.Test/Commands.LogicApp.Test.csproj b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/Commands.LogicApp.Test.csproj index c2f75fc5480d..a61865bcdd25 100644 --- a/src/ResourceManager/LogicApp/Commands.LogicApp.Test/Commands.LogicApp.Test.csproj +++ b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/Commands.LogicApp.Test.csproj @@ -160,6 +160,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest @@ -190,6 +193,9 @@ PreserveNewest + + PreserveNewest + PreserveNewest diff --git a/src/ResourceManager/LogicApp/Commands.LogicApp.Test/Resources/TestSimpleWorkflowTriggerDefinitionWithDelayAction.json b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/Resources/TestSimpleWorkflowTriggerDefinitionWithDelayAction.json new file mode 100644 index 000000000000..3358ce8816ae --- /dev/null +++ b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/Resources/TestSimpleWorkflowTriggerDefinitionWithDelayAction.json @@ -0,0 +1,58 @@ +{ + "$schema": "http://schema.management.azure.com/providers/Microsoft.Logic/schemas/2014-12-01-preview/workflowdefinition.json#", + "contentVersion": "1.0.0.0", + "parameters": { + "runworkflowmanually": { + "defaultValue": false, + "type": "bool" + } + }, + "triggers": { + "httpTrigger": { + "type": "Http", + "inputs": { + "method": "GET", + "uri": "http://www.bing.com" + }, + "recurrence": { + "frequency": "Hour", + "interval": 1 + }, + "conditions": [ + { + "expression": "@bool('true')" + } + ] + } + }, + "actions": { + "http": { + "until": { + "limit": { + "timeout": "PT1H" + }, + "conditions": [ + { + "expression": "@bool('false')" + } + ] + }, + "type": "Http", + "inputs": { + "method": "GET", + "uri": "http://www.bing.com", + }, + "conditions": [ + { + "expression": "@bool('true')" + } + ] + } + }, + "outputs": { + "output1": { + "type": "string", + "value": "true" + } + } +} \ No newline at end of file diff --git a/src/ResourceManager/LogicApp/Commands.LogicApp.Test/ScenarioTests/WorkflowRunTests.cs b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/ScenarioTests/WorkflowRunTests.cs index 5383167a09c0..74d39290e9c3 100644 --- a/src/ResourceManager/LogicApp/Commands.LogicApp.Test/ScenarioTests/WorkflowRunTests.cs +++ b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/ScenarioTests/WorkflowRunTests.cs @@ -52,5 +52,15 @@ public void TestGetAzureLogicAppRunAction() { WorkflowController.NewInstance.RunPowerShellTest("Test-GetAzureLogicAppRunAction"); } + + /// + /// Test Stop-AzureRmLogicAppRun command to cancel logic app run + /// + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestStopAzureRmLogicAppRun() + { + WorkflowController.NewInstance.RunPowerShellTest("Test-StopAzureRmLogicAppRun"); + } } } \ No newline at end of file diff --git a/src/ResourceManager/LogicApp/Commands.LogicApp.Test/ScenarioTests/WorkflowRunTests.ps1 b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/ScenarioTests/WorkflowRunTests.ps1 index 720bdfa998f7..83f1c847cbaa 100644 --- a/src/ResourceManager/LogicApp/Commands.LogicApp.Test/ScenarioTests/WorkflowRunTests.ps1 +++ b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/ScenarioTests/WorkflowRunTests.ps1 @@ -101,5 +101,34 @@ function Test-GetAzureLogicAppRunAction $action = Get-AzureRmLogicAppRunAction -ResourceGroupName $resourceGroupName -Name $workflowName -RunName $runHistory[0].Name -ActionName "http" Assert-NotNull $action +} + +<# +.SYNOPSIS +Test Start and Stop AzureLogicApp command for logic app workflow. +#> +function Test-StopAzureRmLogicAppRun +{ + $resourceGroup = TestSetup-CreateResourceGroup + $resourceGroupName = $resourceGroup.ResourceGroupName + $planName = "StandardServicePlan" + $Plan = TestSetup-CreateAppServicePlan $resourceGroup.ResourceGroupName $planName + + $workflowName = getAssetname + $definitionFilePath = "Resources\TestSimpleWorkflowTriggerDefinitionWithDelayAction.json" + + $workflow = New-AzureRmLogicApp -ResourceGroupName $resourceGroupName -Name $workflowName -DefinitionFilePath $definitionFilePath -AppServicePlan $planName + + [int]$counter = 0 + do { + Sleep -seconds 2 + $workflow = Get-AzureRmLogicApp -ResourceGroupName $resourceGroupName -Name $workflowName + } while ($workflow.State -ne "Enabled" -and $counter++ -lt 5) + + Start-AzureRmLogicApp -ResourceGroupName $resourceGroupName -Name $workflowName -TriggerName "httpTrigger" + + $runHistory = Get-AzureRmLogicAppRunHistory -ResourceGroupName $resourceGroupName -Name $workflowName + + Stop-AzureRmLogicAppRun -ResourceGroupName $resourceGroupName -Name $workflowName -RunName $runHistory[0].Name } \ No newline at end of file diff --git a/src/ResourceManager/LogicApp/Commands.LogicApp.Test/SessionRecords/Microsoft.Azure.Commands.LogicApp.Test.ScenarioTests.WorkflowRunTests/TestStopAzureRmLogicAppRun.json b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/SessionRecords/Microsoft.Azure.Commands.LogicApp.Test.ScenarioTests.WorkflowRunTests/TestStopAzureRmLogicAppRun.json new file mode 100644 index 000000000000..6a579c81e43c --- /dev/null +++ b/src/ResourceManager/LogicApp/Commands.LogicApp.Test/SessionRecords/Microsoft.Azure.Commands.LogicApp.Test.ScenarioTests.WorkflowRunTests/TestStopAzureRmLogicAppRun.json @@ -0,0 +1,562 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourcegroups/onesdk6722?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlZ3JvdXBzL29uZXNkazY3MjI/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3", + "RequestMethod": "HEAD", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "102" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14987" + ], + "x-ms-request-id": [ + "2746ed6a-0c6b-416b-829c-1d55c3400f90" + ], + "x-ms-correlation-request-id": [ + "2746ed6a-0c6b-416b-829c-1d55c3400f90" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215007Z:2746ed6a-0c6b-416b-829c-1d55c3400f90" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:07 GMT" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourcegroups/onesdk6722?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlZ3JvdXBzL29uZXNkazY3MjI/YXBpLXZlcnNpb249MjAxNC0wNC0wMS1wcmV2aWV3", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\"\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "29" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722\",\r\n \"name\": \"onesdk6722\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "173" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "a6a6eb4c-b801-4127-90fd-110e73a26c4a" + ], + "x-ms-correlation-request-id": [ + "a6a6eb4c-b801-4127-90fd-110e73a26c4a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215008Z:a6a6eb4c-b801-4127-90fd-110e73a26c4a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:08 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/resources?api-version=2014-04-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlR3JvdXBzL29uZXNkazY3MjIvcmVzb3VyY2VzP2FwaS12ZXJzaW9uPTIwMTQtMDQtMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "Microsoft.Azure.Management.Resources.ResourceManagementClient/2.0.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": []\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "12" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14986" + ], + "x-ms-request-id": [ + "d9982f68-7e63-403a-8e39-e192d160fe1e" + ], + "x-ms-correlation-request-id": [ + "d9982f68-7e63-403a-8e39-e192d160fe1e" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215009Z:d9982f68-7e63-403a-8e39-e192d160fe1e" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:09 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Web/serverfarms/StandardServicePlan?api-version=2015-08-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlR3JvdXBzL29uZXNkazY3MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5XZWIvc2VydmVyZmFybXMvU3RhbmRhcmRTZXJ2aWNlUGxhbj9hcGktdmVyc2lvbj0yMDE1LTA4LTAx", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "1f0fe11f-e568-4a63-9b73-8b68bb0806df" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "Microsoft.Azure.Management.WebSites.WebSiteManagementClient/0.9.0.0" + ], + "Accept": [ + "application/json" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Web/serverfarms/StandardServicePlan\",\r\n \"name\": \"StandardServicePlan\",\r\n \"type\": \"Microsoft.Web/serverfarms\",\r\n \"location\": \"West US\",\r\n \"tags\": null,\r\n \"properties\": {\r\n \"serverFarmId\": 0,\r\n \"name\": \"StandardServicePlan\",\r\n \"workerSize\": 0,\r\n \"workerSizeId\": 0,\r\n \"workerTierName\": null,\r\n \"numberOfWorkers\": 1,\r\n \"currentWorkerSize\": 0,\r\n \"currentWorkerSizeId\": 0,\r\n \"currentNumberOfWorkers\": 1,\r\n \"status\": 0,\r\n \"webSpace\": \"onesdk6722-WestUSwebspace\",\r\n \"subscription\": \"57b7034d-72d4-433d-ace2-a7460aed6a99\",\r\n \"adminSiteName\": null,\r\n \"hostingEnvironment\": null,\r\n \"hostingEnvironmentProfile\": null,\r\n \"maximumNumberOfWorkers\": 10,\r\n \"planName\": \"VirtualDedicatedPlan\",\r\n \"adminRuntimeSiteName\": null,\r\n \"computeMode\": 0,\r\n \"siteMode\": null,\r\n \"geoRegion\": \"West US\",\r\n \"perSiteScaling\": false,\r\n \"numberOfSites\": 0,\r\n \"hostingEnvironmentId\": null,\r\n \"tags\": null,\r\n \"kind\": null,\r\n \"resourceGroup\": \"onesdk6722\"\r\n },\r\n \"sku\": {\r\n \"name\": \"S1\",\r\n \"tier\": \"Standard\",\r\n \"size\": \"S1\",\r\n \"family\": \"S\",\r\n \"capacity\": 1\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "973" + ], + "Content-Type": [ + "application/json" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "x-ms-request-id": [ + "f9a9cc58-89b2-4abf-8f43-c3c2359af938" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14979" + ], + "x-ms-correlation-request-id": [ + "8e1ed87f-786b-480e-a765-6a7635df39b1" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215019Z:8e1ed87f-786b-480e-a765-6a7635df39b1" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:19 GMT" + ], + "Server": [ + "Microsoft-IIS/8.0" + ], + "X-AspNet-Version": [ + "4.0.30319" + ], + "X-Powered-By": [ + "ASP.NET" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226?api-version=2015-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlR3JvdXBzL29uZXNkazY3MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Mb2dpYy93b3JrZmxvd3Mvb25lc2RrMTIyNj9hcGktdmVyc2lvbj0yMDE1LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "a9d74c48-c369-4c87-a2b2-e23eb279e7dd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Logic.LogicManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"ResourceNotFound\",\r\n \"message\": \"The Resource 'Microsoft.Logic/workflows/onesdk1226' under resource group 'onesdk6722' was not found.\"\r\n }\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "150" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-failure-cause": [ + "gateway" + ], + "x-ms-request-id": [ + "9b71701a-a627-4e05-b80e-5966a059ce1f" + ], + "x-ms-correlation-request-id": [ + "9b71701a-a627-4e05-b80e-5966a059ce1f" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215021Z:9b71701a-a627-4e05-b80e-5966a059ce1f" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:20 GMT" + ] + }, + "StatusCode": 404 + }, + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226?api-version=2015-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlR3JvdXBzL29uZXNkazY3MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Mb2dpYy93b3JrZmxvd3Mvb25lc2RrMTIyNj9hcGktdmVyc2lvbj0yMDE1LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f3daefbb-06f6-47ae-813d-99269e5efa23" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Logic.LogicManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdTime\": \"2016-02-08T21:50:23.1467413Z\",\r\n \"changedTime\": \"2016-02-08T21:50:23.1471049Z\",\r\n \"state\": \"Enabled\",\r\n \"version\": \"08587466386624886909\",\r\n \"accessEndpoint\": \"https://westus.logic.azure.com:443/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourcegroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"plan\": {\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Web/serverfarms/StandardServicePlan\",\r\n \"type\": \"Microsoft.Web/ServerFarms\",\r\n \"name\": \"StandardServicePlan\"\r\n }\r\n },\r\n \"definition\": {\r\n \"$schema\": \"http://schema.management.azure.com/providers/Microsoft.Logic/schemas/2014-12-01-preview/workflowdefinition.json#\",\r\n \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n \"runworkflowmanually\": {\r\n \"defaultValue\": false,\r\n \"type\": \"Bool\"\r\n }\r\n },\r\n \"triggers\": {\r\n \"httpTrigger\": {\r\n \"recurrence\": {\r\n \"frequency\": \"Hour\",\r\n \"interval\": 1\r\n },\r\n \"type\": \"Http\",\r\n \"inputs\": {\r\n \"method\": \"GET\",\r\n \"uri\": \"http://www.bing.com\"\r\n },\r\n \"conditions\": [\r\n {\r\n \"expression\": \"@bool('true')\"\r\n }\r\n ]\r\n }\r\n },\r\n \"actions\": {\r\n \"http\": {\r\n \"until\": {\r\n \"limit\": {\r\n \"timeout\": \"PT1H\"\r\n },\r\n \"conditions\": [\r\n {\r\n \"expression\": \"@bool('false')\"\r\n }\r\n ]\r\n },\r\n \"type\": \"Http\",\r\n \"inputs\": {\r\n \"method\": \"GET\",\r\n \"uri\": \"http://www.bing.com\"\r\n },\r\n \"conditions\": [\r\n {\r\n \"expression\": \"@bool('true')\"\r\n }\r\n ]\r\n }\r\n },\r\n \"outputs\": {\r\n \"output1\": {\r\n \"type\": \"String\",\r\n \"value\": \"true\"\r\n }\r\n }\r\n },\r\n \"parameters\": {}\r\n },\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226\",\r\n \"name\": \"onesdk1226\",\r\n \"type\": \"Microsoft.Logic/workflows\",\r\n \"location\": \"West US\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1536" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:ca7603db-b32f-4c0b-b0ef-77139089b8ab" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14990" + ], + "x-ms-correlation-request-id": [ + "d6275d23-e2d3-4a6c-bbe3-2cc1d343c630" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215026Z:d6275d23-e2d3-4a6c-bbe3-2cc1d343c630" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:25 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226?api-version=2015-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlR3JvdXBzL29uZXNkazY3MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Mb2dpYy93b3JrZmxvd3Mvb25lc2RrMTIyNj9hcGktdmVyc2lvbj0yMDE1LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West US\",\r\n \"properties\": {\r\n \"state\": \"Enabled\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"plan\": {\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Web/serverfarms/StandardServicePlan\"\r\n }\r\n },\r\n \"definition\": {\r\n \"$schema\": \"http://schema.management.azure.com/providers/Microsoft.Logic/schemas/2014-12-01-preview/workflowdefinition.json#\",\r\n \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n \"runworkflowmanually\": {\r\n \"defaultValue\": false,\r\n \"type\": \"bool\"\r\n }\r\n },\r\n \"triggers\": {\r\n \"httpTrigger\": {\r\n \"type\": \"Http\",\r\n \"inputs\": {\r\n \"method\": \"GET\",\r\n \"uri\": \"http://www.bing.com\"\r\n },\r\n \"recurrence\": {\r\n \"frequency\": \"Hour\",\r\n \"interval\": 1\r\n },\r\n \"conditions\": [\r\n {\r\n \"expression\": \"@bool('true')\"\r\n }\r\n ]\r\n }\r\n },\r\n \"actions\": {\r\n \"http\": {\r\n \"until\": {\r\n \"limit\": {\r\n \"timeout\": \"PT1H\"\r\n },\r\n \"conditions\": [\r\n {\r\n \"expression\": \"@bool('false')\"\r\n }\r\n ]\r\n },\r\n \"type\": \"Http\",\r\n \"inputs\": {\r\n \"method\": \"GET\",\r\n \"uri\": \"http://www.bing.com\"\r\n },\r\n \"conditions\": [\r\n {\r\n \"expression\": \"@bool('true')\"\r\n }\r\n ]\r\n }\r\n },\r\n \"outputs\": {\r\n \"output1\": {\r\n \"type\": \"string\",\r\n \"value\": \"true\"\r\n }\r\n }\r\n }\r\n }\r\n}", + "RequestHeaders": { + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "1726" + ], + "x-ms-client-request-id": [ + "06b561e8-1554-45cb-9ee3-ada05183bffd" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Logic.LogicManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"createdTime\": \"2016-02-08T21:50:23.1467413Z\",\r\n \"changedTime\": \"2016-02-08T21:50:23.1467413Z\",\r\n \"state\": \"Enabled\",\r\n \"version\": \"08587466386624886909\",\r\n \"accessEndpoint\": \"https://westus.logic.azure.com:443/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourcegroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226\",\r\n \"sku\": {\r\n \"name\": \"Standard\",\r\n \"plan\": {\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Web/serverfarms/StandardServicePlan\",\r\n \"type\": \"Microsoft.Web/ServerFarms\",\r\n \"name\": \"StandardServicePlan\"\r\n }\r\n },\r\n \"definition\": {\r\n \"$schema\": \"http://schema.management.azure.com/providers/Microsoft.Logic/schemas/2014-12-01-preview/workflowdefinition.json#\",\r\n \"contentVersion\": \"1.0.0.0\",\r\n \"parameters\": {\r\n \"runworkflowmanually\": {\r\n \"defaultValue\": false,\r\n \"type\": \"Bool\"\r\n }\r\n },\r\n \"triggers\": {\r\n \"httpTrigger\": {\r\n \"recurrence\": {\r\n \"frequency\": \"Hour\",\r\n \"interval\": 1\r\n },\r\n \"type\": \"Http\",\r\n \"inputs\": {\r\n \"method\": \"GET\",\r\n \"uri\": \"http://www.bing.com\"\r\n },\r\n \"conditions\": [\r\n {\r\n \"expression\": \"@bool('true')\"\r\n }\r\n ]\r\n }\r\n },\r\n \"actions\": {\r\n \"http\": {\r\n \"until\": {\r\n \"limit\": {\r\n \"timeout\": \"PT1H\"\r\n },\r\n \"conditions\": [\r\n {\r\n \"expression\": \"@bool('false')\"\r\n }\r\n ]\r\n },\r\n \"type\": \"Http\",\r\n \"inputs\": {\r\n \"method\": \"GET\",\r\n \"uri\": \"http://www.bing.com\"\r\n },\r\n \"conditions\": [\r\n {\r\n \"expression\": \"@bool('true')\"\r\n }\r\n ]\r\n }\r\n },\r\n \"outputs\": {\r\n \"output1\": {\r\n \"type\": \"String\",\r\n \"value\": \"true\"\r\n }\r\n }\r\n },\r\n \"parameters\": {}\r\n },\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226\",\r\n \"name\": \"onesdk1226\",\r\n \"type\": \"Microsoft.Logic/workflows\",\r\n \"location\": \"West US\"\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "1536" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "westus:0ddd4173-bcd9-4aeb-ae4b-3014866ed7f1" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-correlation-request-id": [ + "af8eca2a-f883-4146-9142-750e5706a631" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215023Z:af8eca2a-f883-4146-9142-750e5706a631" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:23 GMT" + ] + }, + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226/triggers/httpTrigger/run?api-version=2015-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlR3JvdXBzL29uZXNkazY3MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Mb2dpYy93b3JrZmxvd3Mvb25lc2RrMTIyNi90cmlnZ2Vycy9odHRwVHJpZ2dlci9ydW4/YXBpLXZlcnNpb249MjAxNS0wMi0wMS1wcmV2aWV3", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d0eb70e1-7272-4bf1-a287-0d970a3b892b" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Logic.LogicManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "westus:9f844cc4-60d8-4547-8b0c-3535095e87c8" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-correlation-request-id": [ + "33cf5b38-02d4-4b73-b9bd-00af66f91837" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215026Z:33cf5b38-02d4-4b73-b9bd-00af66f91837" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:25 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226/runs?api-version=2015-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlR3JvdXBzL29uZXNkazY3MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Mb2dpYy93b3JrZmxvd3Mvb25lc2RrMTIyNi9ydW5zP2FwaS12ZXJzaW9uPTIwMTUtMDItMDEtcHJldmlldw==", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "ce8cd10c-9826-4bd6-aa8e-f077d8bf762d" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Logic.LogicManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"startTime\": \"2016-02-08T21:50:26.5773261Z\",\r\n \"status\": \"Running\",\r\n \"correlationId\": \"1442cb92-f4d0-4a26-abbc-1134c205d2ae\",\r\n \"workflow\": {\r\n \"name\": \"onesdk1226/08587466386624886909\",\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226/versions/08587466386624886909\",\r\n \"type\": \"Microsoft.Logic/workflows/versions\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"httpTrigger\",\r\n \"inputsLink\": {\r\n \"uri\": \"https://flowprodcu06by01.blob.core.windows.net/flow6479fc66fcbd424b8a9a1ac8a1e07b0b20160208t000000zcontent/D399E_cad5fef8413c48aab80c00e4c771e080_httpTrigger:5Finputs:2Ejson?sv=2014-02-14&sr=b&sig=rBUdTE8fgltdPniuT1vB4z9WPxzoiZYK1KO3vWvbvbA%3D&se=2016-02-09T01%3A50%3A28Z&sp=r\",\r\n \"contentVersion\": \"\\\"0x8D330D1DAEB0C6B\\\"\",\r\n \"contentSize\": 45,\r\n \"contentHash\": {\r\n \"algorithm\": \"md5\",\r\n \"value\": \"Q+Xqe9OStPsuFRv/FtPA3Q==\"\r\n }\r\n },\r\n \"outputsLink\": {\r\n \"uri\": \"https://flowprodcu06by01.blob.core.windows.net/flow6479fc66fcbd424b8a9a1ac8a1e07b0b20160208t000000zcontent/834F9_4eabe786197f408fa945589bbe205f9e_httpTrigger:5Foutputs:2Ejson?sv=2014-02-14&sr=b&sig=0puZoWQK3RfR70xWU4u0PKXDKCHkc7b1FCHhbH4Y2bU%3D&se=2016-02-09T01%3A50%3A28Z&sp=r\",\r\n \"contentVersion\": \"\\\"0x8D330D1DAEBCFE8\\\"\",\r\n \"contentSize\": 83093,\r\n \"contentHash\": {\r\n \"algorithm\": \"md5\",\r\n \"value\": \"XY2MZKytPMzBvRDSqrptug==\"\r\n }\r\n },\r\n \"startTime\": \"2016-02-08T21:50:26.4680187Z\",\r\n \"endTime\": \"2016-02-08T21:50:26.5461423Z\",\r\n \"trackingId\": \"1442cb92-f4d0-4a26-abbc-1134c205d2ae\",\r\n \"code\": \"OK\",\r\n \"status\": \"Succeeded\"\r\n },\r\n \"outputs\": {\r\n \"output1\": {\r\n \"type\": \"String\"\r\n }\r\n }\r\n },\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226/runs/08587466386590032282\",\r\n \"name\": \"08587466386590032282\",\r\n \"type\": \"Microsoft.Logic/workflows/runs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"startTime\": \"2016-02-08T21:50:25.3967399Z\",\r\n \"status\": \"Running\",\r\n \"correlationId\": \"4e237c0e-b39f-4be1-b129-c68ee7138be4\",\r\n \"workflow\": {\r\n \"name\": \"onesdk1226/08587466386624886909\",\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226/versions/08587466386624886909\",\r\n \"type\": \"Microsoft.Logic/workflows/versions\"\r\n },\r\n \"trigger\": {\r\n \"name\": \"httpTrigger\",\r\n \"inputsLink\": {\r\n \"uri\": \"https://flowprodcu06by01.blob.core.windows.net/flow6479fc66fcbd424b8a9a1ac8a1e07b0b20160208t000000zcontent/005A8_7f6fca8ce7794a99b1f06c7286970f5a_httpTrigger:5Finputs:2Ejson?sv=2014-02-14&sr=b&sig=LvSPRH6o%2FmHa%2BssT4yKRYt3ymWgZBv0rwdQ1Kw6xHz4%3D&se=2016-02-09T01%3A50%3A28Z&sp=r\",\r\n \"contentVersion\": \"\\\"0x8D330D1DA354C09\\\"\",\r\n \"contentSize\": 45,\r\n \"contentHash\": {\r\n \"algorithm\": \"md5\",\r\n \"value\": \"Q+Xqe9OStPsuFRv/FtPA3Q==\"\r\n }\r\n },\r\n \"outputsLink\": {\r\n \"uri\": \"https://flowprodcu06by01.blob.core.windows.net/flow6479fc66fcbd424b8a9a1ac8a1e07b0b20160208t000000zcontent/8C78B_8fc8f1d97c9e43398e6b235b57ef6acf_httpTrigger:5Foutputs:2Ejson?sv=2014-02-14&sr=b&sig=qKYoZgTDa7s1b7GhMC8ftCBfb%2BzqbGoMQBxZDf1PSNw%3D&se=2016-02-09T01%3A50%3A28Z&sp=r\",\r\n \"contentVersion\": \"\\\"0x8D330D1DA385A0B\\\"\",\r\n \"contentSize\": 83093,\r\n \"contentHash\": {\r\n \"algorithm\": \"md5\",\r\n \"value\": \"P70eWRkyvZeMHGxGHBP1zQ==\"\r\n }\r\n },\r\n \"startTime\": \"2016-02-08T21:50:25.2469038Z\",\r\n \"endTime\": \"2016-02-08T21:50:25.3244592Z\",\r\n \"trackingId\": \"4e237c0e-b39f-4be1-b129-c68ee7138be4\",\r\n \"code\": \"OK\",\r\n \"status\": \"Succeeded\"\r\n },\r\n \"outputs\": {\r\n \"output1\": {\r\n \"type\": \"String\"\r\n }\r\n }\r\n },\r\n \"id\": \"/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226/runs/08587466386602299967\",\r\n \"name\": \"08587466386602299967\",\r\n \"type\": \"Microsoft.Logic/workflows/runs\"\r\n }\r\n ]\r\n}", + "ResponseHeaders": { + "Content-Length": [ + "3463" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "Vary": [ + "Accept-Encoding" + ], + "x-ms-request-id": [ + "westus:5fba7981-29b5-4b58-994b-fda67de57a05" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "14989" + ], + "x-ms-correlation-request-id": [ + "d8f02d9a-f8f8-450a-b4ff-59bb39cdcbe8" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215028Z:d8f02d9a-f8f8-450a-b4ff-59bb39cdcbe8" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:27 GMT" + ] + }, + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/57b7034d-72d4-433d-ace2-a7460aed6a99/resourceGroups/onesdk6722/providers/Microsoft.Logic/workflows/onesdk1226/runs/08587466386590032282/cancel?api-version=2015-02-01-preview", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvNTdiNzAzNGQtNzJkNC00MzNkLWFjZTItYTc0NjBhZWQ2YTk5L3Jlc291cmNlR3JvdXBzL29uZXNkazY3MjIvcHJvdmlkZXJzL01pY3Jvc29mdC5Mb2dpYy93b3JrZmxvd3Mvb25lc2RrMTIyNi9ydW5zLzA4NTg3NDY2Mzg2NTkwMDMyMjgyL2NhbmNlbD9hcGktdmVyc2lvbj0yMDE1LTAyLTAxLXByZXZpZXc=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b9c74c5f-cecc-4392-a792-08f52612df1c" + ], + "accept-language": [ + "en-US" + ], + "User-Agent": [ + "Microsoft.Azure.Management.Logic.LogicManagementClient/0.1.0.0" + ] + }, + "ResponseBody": "", + "ResponseHeaders": { + "Content-Length": [ + "0" + ], + "Expires": [ + "-1" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-request-id": [ + "westus:83a2ca50-af40-4adf-a8db-9f122570c23f" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1196" + ], + "x-ms-correlation-request-id": [ + "4a2dc7cd-3b5d-4672-86d9-bab17c56403a" + ], + "x-ms-routing-request-id": [ + "CENTRALUS:20160208T215029Z:4a2dc7cd-3b5d-4672-86d9-bab17c56403a" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "Cache-Control": [ + "no-cache" + ], + "Date": [ + "Mon, 08 Feb 2016 21:50:28 GMT" + ] + }, + "StatusCode": 200 + } + ], + "Names": { + "Test-StopAzureRmLogicAppRun": [ + "onesdk6722", + "onesdk1226" + ] + }, + "Variables": { + "SubscriptionId": "57b7034d-72d4-433d-ace2-a7460aed6a99" + } +} \ No newline at end of file