From 62bf3c37b56a8ea3d4b0fee66edb9ec0702b93be Mon Sep 17 00:00:00 2001 From: Arulnithi Date: Tue, 29 Sep 2020 18:20:39 -0700 Subject: [PATCH 1/4] Add 2 New commands --- .../Resources/pipelineWait.json | 15 + .../tumblingTriggerWithPipeline.json | 18 + .../ScenarioTests/TriggerTests.cs | 7 + .../ScenarioTests/TriggerTests.ps1 | 67 + .../TestInvokeAndStopTriggerRun.json | 1225 +++++++++++++++++ .../DataFactoryV2/Az.DataFactory.psd1 | 7 +- src/DataFactory/DataFactoryV2/Changelog.md | 1 + src/DataFactory/DataFactoryV2/Constants.cs | 4 + .../Models/DataFactoryClient.Trigger.cs | 10 + ...InvokeAzureDataFactoryTriggerRunCommand.cs | 68 + .../StopAzureDataFactoryTriggerRunCommand.cs | 69 + .../help/Invoke-AzDataFactoryV2TriggerRun.md | 222 +++ .../help/Stop-AzDataFactoryV2TriggerRun.md | 218 +++ 13 files changed, 1929 insertions(+), 2 deletions(-) create mode 100644 src/DataFactory/DataFactoryV2.Test/Resources/pipelineWait.json create mode 100644 src/DataFactory/DataFactoryV2.Test/Resources/tumblingTriggerWithPipeline.json create mode 100644 src/DataFactory/DataFactoryV2.Test/SessionRecords/Microsoft.Azure.Commands.DataFactoryV2.Test.TriggerTests/TestInvokeAndStopTriggerRun.json create mode 100644 src/DataFactory/DataFactoryV2/Runs/InvokeAzureDataFactoryTriggerRunCommand.cs create mode 100644 src/DataFactory/DataFactoryV2/Runs/StopAzureDataFactoryTriggerRunCommand.cs create mode 100644 src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md create mode 100644 src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md diff --git a/src/DataFactory/DataFactoryV2.Test/Resources/pipelineWait.json b/src/DataFactory/DataFactoryV2.Test/Resources/pipelineWait.json new file mode 100644 index 000000000000..627604cd8bab --- /dev/null +++ b/src/DataFactory/DataFactoryV2.Test/Resources/pipelineWait.json @@ -0,0 +1,15 @@ +{ + "properties": { + "activities": [ + { + "name": "Wait1", + "type": "Wait", + "dependsOn": [], + "userProperties": [], + "typeProperties": { + "waitTimeInSeconds": 10 + } + } + ] + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactoryV2.Test/Resources/tumblingTriggerWithPipeline.json b/src/DataFactory/DataFactoryV2.Test/Resources/tumblingTriggerWithPipeline.json new file mode 100644 index 000000000000..9f4396ebcd2d --- /dev/null +++ b/src/DataFactory/DataFactoryV2.Test/Resources/tumblingTriggerWithPipeline.json @@ -0,0 +1,18 @@ +{ + "properties": { + "type": "TumblingWindowTrigger", + "typeProperties": { + "frequency": "Minute", + "interval": 15, + "startTime": "2019-09-10T13:00:00Z", + "endtime": "2019-09-14T13:00:00Z", + "maxConcurrency": 2 + }, + "pipeline": { + "pipelineReference": { + "referenceName": "samplePipeline", + "type": "PipelineReference" + } + } + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactoryV2.Test/ScenarioTests/TriggerTests.cs b/src/DataFactory/DataFactoryV2.Test/ScenarioTests/TriggerTests.cs index f41154244b81..55e83799bbc3 100644 --- a/src/DataFactory/DataFactoryV2.Test/ScenarioTests/TriggerTests.cs +++ b/src/DataFactory/DataFactoryV2.Test/ScenarioTests/TriggerTests.cs @@ -42,6 +42,13 @@ public void TestStartTriggerThrowsWithoutPipeline() RunPowerShellTest(_logger, "Test-StartTriggerThrowsWithoutPipeline"); } + [Fact] + [Trait(Category.AcceptanceType, Category.CheckIn)] + public void TestInvokeAndStopTriggerRun() + { + RunPowerShellTest(_logger, "Test-TriggerInvokeAndStop"); + } + [Fact] [Trait(Category.AcceptanceType, Category.CheckIn)] public void TestTriggerRun() diff --git a/src/DataFactory/DataFactoryV2.Test/ScenarioTests/TriggerTests.ps1 b/src/DataFactory/DataFactoryV2.Test/ScenarioTests/TriggerTests.ps1 index 351ae9589b35..8fd45dd85980 100644 --- a/src/DataFactory/DataFactoryV2.Test/ScenarioTests/TriggerTests.ps1 +++ b/src/DataFactory/DataFactoryV2.Test/ScenarioTests/TriggerTests.ps1 @@ -338,6 +338,73 @@ function Test-BlobEventTriggerSubscriptionsByResourceId } } +<# +.SYNOPSIS +Creates a TumblingWindow trigger and then does a Get to compare the results. +Starts and checks that there is at least one Trigger Run +Reruns the trigger run +Stops trigger +Deletes the created trigger at the end. +#> +function Test-TriggerInvokeAndStop +{ + $dfname = Get-DataFactoryName + $rgname = Get-ResourceGroupName + $rglocation = Get-ProviderLocation ResourceManagement + $dflocation = Get-ProviderLocation DataFactoryManagement + + New-AzResourceGroup -Name $rgname -Location $rglocation -Force + + try + { + Get-Command -Name '*AzDataFactoryV2Tr*' | Write-Debug + Set-AzDataFactoryV2 -ResourceGroupName $rgname -Name $dfname -Location $dflocation -Force + + $pipelineName = "samplePipeline" + Set-AzDataFactoryV2Pipeline -ResourceGroupName $rgname -Name $pipelineName -DataFactoryName $dfname -File .\Resources\pipelineWait.json -Force + + $triggername = "foo" + $expected = Set-AzDataFactoryV2Trigger -ResourceGroupName $rgname -DataFactoryName $dfname -Name $triggername -File .\Resources\tumblingTriggerWithPipeline.json -Force + $actual = Get-AzDataFactoryV2Trigger -ResourceGroupName $rgname -DataFactoryName $dfname -Name $triggername + + Verify-Trigger $expected $actual $rgname $dfname $triggername + + $startDate = [DateTime]::Parse("09/10/2020") + Start-AzDataFactoryV2Trigger -ResourceGroupName $rgname -DataFactoryName $dfname -Name $triggername -Force + $started = Get-AzDataFactoryV2Trigger -ResourceGroupName $rgname -DataFactoryName $dfname -Name $triggername + + Assert-AreEqual 'Started' $started.RuntimeState + + if ([Microsoft.Azure.Test.HttpRecorder.HttpMockServer]::Mode -ne [Microsoft.Azure.Test.HttpRecorder.HttpRecorderMode]::Playback) { + Start-Sleep -s 150 + } + + $endDate = $startDate.AddYears(1) + $triggerRuns = Get-AzDataFactoryV2TriggerRun -ResourceGroupName $rgname -DataFactoryName $dfname -TriggerName $triggername -TriggerRunStartedAfter $startDate -TriggerRunStartedBefore $endDate + + if($triggerRuns.Count -lt 1) + { + throw "Expected atleast 1 trigger run" + } + + $triggerRunId = $triggerRuns[0].TriggerRunId + Invoke-AzDataFactoryV2TriggerRun -ResourceGroupName $rgname -DataFactoryName $dfname -TriggerName $triggername -TriggerRunId $triggerRunId + + Assert-ThrowsContains { Stop-AzDataFactoryV2TriggerRun -ResourceGroupName $rgname -DataFactoryName $dfname -TriggerName $triggername -TriggerRunId $triggerRunId } "not in WaitingOnDependency state" + + Stop-AzDataFactoryV2Trigger -ResourceGroupName $rgname -DataFactoryName $dfname -Name $triggername -Force + $stopped = Get-AzDataFactoryV2Trigger -ResourceGroupName $rgname -DataFactoryName $dfname -Name $triggername + + Assert-AreEqual 'Stopped' $stopped.RuntimeState + + Remove-AzDataFactoryV2Trigger -ResourceGroupName $rgname -DataFactoryName $dfname -Name $triggername -Force + } + finally + { + CleanUp $rgname $dfname + } +} + <# .SYNOPSIS Creates a trigger and then does a Get with resource id to compare the results. diff --git a/src/DataFactory/DataFactoryV2.Test/SessionRecords/Microsoft.Azure.Commands.DataFactoryV2.Test.TriggerTests/TestInvokeAndStopTriggerRun.json b/src/DataFactory/DataFactoryV2.Test/SessionRecords/Microsoft.Azure.Commands.DataFactoryV2.Test.TriggerTests/TestInvokeAndStopTriggerRun.json new file mode 100644 index 000000000000..1cc5bf86e03f --- /dev/null +++ b/src/DataFactory/DataFactoryV2.Test/SessionRecords/Microsoft.Azure.Commands.DataFactoryV2.Test.TriggerTests/TestInvokeAndStopTriggerRun.json @@ -0,0 +1,1225 @@ +{ + "Entries": [ + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourcegroups/ps6137?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlZ3JvdXBzL3BzNjEzNz9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"location\": \"West Europe\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "35534418-4832-4cb9-a8e0-8bb8bd05589d" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.24" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "33" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "070fafae-3be7-42ae-9f85-4b014279a8cd" + ], + "x-ms-correlation-request-id": [ + "070fafae-3be7-42ae-9f85-4b014279a8cd" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T002828Z:070fafae-3be7-42ae-9f85-4b014279a8cd" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 30 Sep 2020 00:28:28 GMT" + ], + "Content-Length": [ + "169" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137\",\r\n \"name\": \"ps6137\",\r\n \"location\": \"westeurope\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}", + "StatusCode": 201 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQ/YXBpLXZlcnNpb249MjAxOC0wNi0wMQ==", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\"\r\n },\r\n \"location\": \"West Europe\"\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "51588c68-9561-4271-89d1-53f269934a02" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "86" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "98656492-c8eb-490e-9102-a202ba3c221b" + ], + "x-ms-correlation-request-id": [ + "98656492-c8eb-490e-9102-a202ba3c221b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T002842Z:98656492-c8eb-490e-9102-a202ba3c221b" + ], + "Date": [ + "Wed, 30 Sep 2020 00:28:41 GMT" + ], + "Content-Length": [ + "527" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"name\": \"ps7534\",\r\n \"id\": \"/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534\",\r\n \"type\": \"Microsoft.DataFactory/factories\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\",\r\n \"createTime\": \"2020-09-30T00:28:40.2701259Z\",\r\n \"version\": \"2018-06-01\"\r\n },\r\n \"eTag\": \"\\\"2802b6c7-0000-0d00-0000-5f73d1380000\\\"\",\r\n \"location\": \"West Europe\",\r\n \"identity\": {\r\n \"type\": \"SystemAssigned\",\r\n \"principalId\": \"237c1507-d8ed-4f77-accb-d562b2288df8\",\r\n \"tenantId\": \"72f988bf-86f1-41af-91ab-2d7cd011db47\"\r\n },\r\n \"tags\": {}\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/pipelines/samplePipeline?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvcGlwZWxpbmVzL3NhbXBsZVBpcGVsaW5lP2FwaS12ZXJzaW9uPTIwMTgtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"activities\": [\r\n {\r\n \"type\": \"Wait\",\r\n \"typeProperties\": {\r\n \"waitTimeInSeconds\": 10\r\n },\r\n \"name\": \"Wait1\",\r\n \"dependsOn\": [],\r\n \"userProperties\": []\r\n }\r\n ]\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b1add3ac-bf37-45bc-acb2-39d4637b490f" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "257" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1198" + ], + "x-ms-request-id": [ + "9eebc6ed-96be-421e-a13f-c0c446f5a341" + ], + "x-ms-correlation-request-id": [ + "9eebc6ed-96be-421e-a13f-c0c446f5a341" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T002843Z:9eebc6ed-96be-421e-a13f-c0c446f5a341" + ], + "Date": [ + "Wed, 30 Sep 2020 00:28:42 GMT" + ], + "Content-Length": [ + "415" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/pipelines/samplePipeline\",\r\n \"name\": \"samplePipeline\",\r\n \"type\": \"Microsoft.DataFactory/factories/pipelines\",\r\n \"properties\": {\r\n \"activities\": [\r\n {\r\n \"type\": \"Wait\",\r\n \"typeProperties\": {\r\n \"waitTimeInSeconds\": 10\r\n },\r\n \"name\": \"Wait1\",\r\n \"dependsOn\": [],\r\n \"userProperties\": []\r\n }\r\n ]\r\n },\r\n \"etag\": \"cc027342-0000-0d00-0000-5f73d13b0000\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvdHJpZ2dlcnMvZm9vP2FwaS12ZXJzaW9uPTIwMTgtMDYtMDE=", + "RequestMethod": "PUT", + "RequestBody": "{\r\n \"properties\": {\r\n \"type\": \"TumblingWindowTrigger\",\r\n \"pipeline\": {\r\n \"pipelineReference\": {\r\n \"referenceName\": \"samplePipeline\",\r\n \"type\": \"PipelineReference\"\r\n }\r\n },\r\n \"typeProperties\": {\r\n \"frequency\": \"Minute\",\r\n \"interval\": 15,\r\n \"startTime\": \"2019-09-10T13:00:00Z\",\r\n \"endTime\": \"2019-09-14T13:00:00Z\",\r\n \"maxConcurrency\": 2\r\n }\r\n }\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b7fa51c7-06d3-42d5-a587-5f633f123609" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "411" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1197" + ], + "x-ms-request-id": [ + "5eca49fd-90d6-44ac-bdd9-5db644aa993b" + ], + "x-ms-correlation-request-id": [ + "5eca49fd-90d6-44ac-bdd9-5db644aa993b" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T002844Z:5eca49fd-90d6-44ac-bdd9-5db644aa993b" + ], + "Date": [ + "Wed, 30 Sep 2020 00:28:43 GMT" + ], + "Content-Length": [ + "560" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo\",\r\n \"name\": \"foo\",\r\n \"type\": \"Microsoft.DataFactory/factories/triggers\",\r\n \"properties\": {\r\n \"type\": \"TumblingWindowTrigger\",\r\n \"pipeline\": {\r\n \"pipelineReference\": {\r\n \"referenceName\": \"samplePipeline\",\r\n \"type\": \"PipelineReference\"\r\n }\r\n },\r\n \"typeProperties\": {\r\n \"frequency\": \"Minute\",\r\n \"interval\": 15,\r\n \"startTime\": \"2019-09-10T13:00:00Z\",\r\n \"endTime\": \"2019-09-14T13:00:00Z\",\r\n \"maxConcurrency\": 2\r\n },\r\n \"runtimeState\": \"Stopped\"\r\n },\r\n \"etag\": \"cc028142-0000-0d00-0000-5f73d13b0000\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvdHJpZ2dlcnMvZm9vP2FwaS12ZXJzaW9uPTIwMTgtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "b6151296-fe22-4da8-bf2a-f77a7b7e4ec4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "4cc154e0-1b9a-44af-aee2-9a5c70704a06" + ], + "x-ms-correlation-request-id": [ + "4cc154e0-1b9a-44af-aee2-9a5c70704a06" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T002844Z:4cc154e0-1b9a-44af-aee2-9a5c70704a06" + ], + "Date": [ + "Wed, 30 Sep 2020 00:28:43 GMT" + ], + "Content-Length": [ + "560" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo\",\r\n \"name\": \"foo\",\r\n \"type\": \"Microsoft.DataFactory/factories/triggers\",\r\n \"properties\": {\r\n \"type\": \"TumblingWindowTrigger\",\r\n \"pipeline\": {\r\n \"pipelineReference\": {\r\n \"referenceName\": \"samplePipeline\",\r\n \"type\": \"PipelineReference\"\r\n }\r\n },\r\n \"typeProperties\": {\r\n \"frequency\": \"Minute\",\r\n \"interval\": 15,\r\n \"startTime\": \"2019-09-10T13:00:00Z\",\r\n \"endTime\": \"2019-09-14T13:00:00Z\",\r\n \"maxConcurrency\": 2\r\n },\r\n \"runtimeState\": \"Stopped\"\r\n },\r\n \"etag\": \"cc028142-0000-0d00-0000-5f73d13b0000\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvdHJpZ2dlcnMvZm9vP2FwaS12ZXJzaW9uPTIwMTgtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "acb93f40-aefa-4690-b6ae-bc98d95c560c" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "086b1e8a-dba6-4a0d-9ef0-af1a80db1aab" + ], + "x-ms-correlation-request-id": [ + "086b1e8a-dba6-4a0d-9ef0-af1a80db1aab" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T002847Z:086b1e8a-dba6-4a0d-9ef0-af1a80db1aab" + ], + "Date": [ + "Wed, 30 Sep 2020 00:28:46 GMT" + ], + "Content-Length": [ + "560" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo\",\r\n \"name\": \"foo\",\r\n \"type\": \"Microsoft.DataFactory/factories/triggers\",\r\n \"properties\": {\r\n \"type\": \"TumblingWindowTrigger\",\r\n \"pipeline\": {\r\n \"pipelineReference\": {\r\n \"referenceName\": \"samplePipeline\",\r\n \"type\": \"PipelineReference\"\r\n }\r\n },\r\n \"typeProperties\": {\r\n \"frequency\": \"Minute\",\r\n \"interval\": 15,\r\n \"startTime\": \"2019-09-10T13:00:00Z\",\r\n \"endTime\": \"2019-09-14T13:00:00Z\",\r\n \"maxConcurrency\": 2\r\n },\r\n \"runtimeState\": \"Started\"\r\n },\r\n \"etag\": \"cc029342-0000-0d00-0000-5f73d13e0000\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvdHJpZ2dlcnMvZm9vP2FwaS12ZXJzaW9uPTIwMTgtMDYtMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "acc9e62e-b7f6-4681-9c9f-a3c3228f63dc" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11759" + ], + "x-ms-request-id": [ + "99cd5aa0-947a-4d42-89af-1e44ed6d80b2" + ], + "x-ms-correlation-request-id": [ + "99cd5aa0-947a-4d42-89af-1e44ed6d80b2" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003120Z:99cd5aa0-947a-4d42-89af-1e44ed6d80b2" + ], + "Date": [ + "Wed, 30 Sep 2020 00:31:20 GMT" + ], + "Content-Length": [ + "560" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"id\": \"/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo\",\r\n \"name\": \"foo\",\r\n \"type\": \"Microsoft.DataFactory/factories/triggers\",\r\n \"properties\": {\r\n \"type\": \"TumblingWindowTrigger\",\r\n \"pipeline\": {\r\n \"pipelineReference\": {\r\n \"referenceName\": \"samplePipeline\",\r\n \"type\": \"PipelineReference\"\r\n }\r\n },\r\n \"typeProperties\": {\r\n \"frequency\": \"Minute\",\r\n \"interval\": 15,\r\n \"startTime\": \"2019-09-10T13:00:00Z\",\r\n \"endTime\": \"2019-09-14T13:00:00Z\",\r\n \"maxConcurrency\": 2\r\n },\r\n \"runtimeState\": \"Stopped\"\r\n },\r\n \"etag\": \"cc028047-0000-0d00-0000-5f73d1d80000\"\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo/start?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvdHJpZ2dlcnMvZm9vL3N0YXJ0P2FwaS12ZXJzaW9uPTIwMTgtMDYtMDE=", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "50a9e46a-90cd-4add-a11f-3f8093c14146" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1199" + ], + "x-ms-request-id": [ + "ed6732ec-2557-460d-9dfa-c5c815f75777" + ], + "x-ms-correlation-request-id": [ + "ed6732ec-2557-460d-9dfa-c5c815f75777" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T002846Z:ed6732ec-2557-460d-9dfa-c5c815f75777" + ], + "Date": [ + "Wed, 30 Sep 2020 00:28:46 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/queryTriggerRuns?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvcXVlcnlUcmlnZ2VyUnVucz9hcGktdmVyc2lvbj0yMDE4LTA2LTAx", + "RequestMethod": "POST", + "RequestBody": "{\r\n \"lastUpdatedAfter\": \"2020-09-10T00:00:00Z\",\r\n \"lastUpdatedBefore\": \"2021-09-10T00:00:00Z\",\r\n \"filters\": [\r\n {\r\n \"operand\": \"TriggerName\",\r\n \"operator\": \"Equals\",\r\n \"values\": [\r\n \"foo\"\r\n ]\r\n }\r\n ],\r\n \"orderBy\": []\r\n}", + "RequestHeaders": { + "x-ms-client-request-id": [ + "e36f09f1-8949-48f1-acb3-85a987f3a8b5" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Content-Length": [ + "257" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11760" + ], + "x-ms-request-id": [ + "4895954b-760c-451e-95b3-61f2d9c4a164" + ], + "x-ms-correlation-request-id": [ + "4895954b-760c-451e-95b3-61f2d9c4a164" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003118Z:4895954b-760c-451e-95b3-61f2d9c4a164" + ], + "Date": [ + "Wed, 30 Sep 2020 00:31:17 GMT" + ], + "Content-Length": [ + "6677" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001811587302486644506085CU07\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:28:46.7490539Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:28:46 AM\",\r\n \"windowStartTime\": \"9/10/2019 1:00:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 1:15:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"922ded02-4bb0-4229-a05a-de4be17802b7\"\r\n },\r\n \"groupId\": \"08586001811587302486644506085CU07\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001811586261888580073638CU10\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:28:46.8740553Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:28:46 AM\",\r\n \"windowStartTime\": \"9/10/2019 1:15:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 1:30:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"396085db-80c3-45d5-b66c-740dd0d503c6\"\r\n },\r\n \"groupId\": \"08586001811586261888580073638CU10\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001811585575027724706696CU12\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:29:11.2681016Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:29:11 AM\",\r\n \"windowStartTime\": \"9/10/2019 1:30:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 1:45:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"6a8c4326-4b03-4bf7-bc20-7143d81581ff\"\r\n },\r\n \"groupId\": \"08586001811585575027724706696CU12\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001811341099059856489662CU36\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:29:12.6256686Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:29:12 AM\",\r\n \"windowStartTime\": \"9/10/2019 1:45:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 2:00:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"1d6b0197-c63b-482c-9b1b-150f22752bcc\"\r\n },\r\n \"groupId\": \"08586001811341099059856489662CU36\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001811325858423760969682CU14\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:29:34.9245712Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:29:34 AM\",\r\n \"windowStartTime\": \"9/10/2019 2:00:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 2:15:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"aff202c9-e56b-4c64-b3b5-be3b995bcd46\"\r\n },\r\n \"groupId\": \"08586001811325858423760969682CU14\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001811105020381877340948CU151\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:29:36.476886Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:29:36 AM\",\r\n \"windowStartTime\": \"9/10/2019 2:15:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 2:30:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"02c5445b-53f3-4892-accb-52e454de1c25\"\r\n },\r\n \"groupId\": \"08586001811105020381877340948CU151\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001811089573769329465049CU08\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:29:57.9000287Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:29:57 AM\",\r\n \"windowStartTime\": \"9/10/2019 2:30:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 2:45:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"c2ab5d2c-5c2c-43ee-b36d-3c9537a98453\"\r\n },\r\n \"groupId\": \"08586001811089573769329465049CU08\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001810874562555588451155CU147\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:29:59.5793412Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:29:59 AM\",\r\n \"windowStartTime\": \"9/10/2019 2:45:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 3:00:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"2032f174-62c9-40ab-9f8c-e2aee3f4e1df\"\r\n },\r\n \"groupId\": \"08586001810874562555588451155CU147\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001810858361611277216102CU02\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:30:21.1530272Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:30:21 AM\",\r\n \"windowStartTime\": \"9/10/2019 3:00:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 3:15:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"c632ee5a-2544-4d03-9273-dcb9406c4cc1\"\r\n },\r\n \"groupId\": \"08586001810858361611277216102CU02\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001810642418041470405486CU07\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:30:22.6205793Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:30:22 AM\",\r\n \"windowStartTime\": \"9/10/2019 3:15:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 3:30:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"cc472b32-7bf5-4b5e-9dca-3b7106dc4346\"\r\n },\r\n \"groupId\": \"08586001810642418041470405486CU07\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001810626885144060598233CU37\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:30:43.7762695Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:30:43 AM\",\r\n \"windowStartTime\": \"9/10/2019 3:30:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 3:45:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"50fb70b6-1e00-436d-90be-ed058afc0def\"\r\n },\r\n \"groupId\": \"08586001810626885144060598233CU37\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001810416560668068489462CU149\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:30:46.2569409Z\",\r\n \"status\": \"Succeeded\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:30:46 AM\",\r\n \"windowStartTime\": \"9/10/2019 3:45:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 4:00:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"77cd5c27-3d7e-4188-bf76-9254654e3281\"\r\n },\r\n \"groupId\": \"08586001810416560668068489462CU149\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001810391585699602275620CU07\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:31:06.3240784Z\",\r\n \"status\": \"Running\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:31:06 AM\",\r\n \"windowStartTime\": \"9/10/2019 4:00:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 4:15:00 PM\"\r\n },\r\n \"triggeredPipelines\": {\r\n \"samplePipeline\": \"277e7ec4-44a4-49fc-ac18-788ccb98bdb2\"\r\n },\r\n \"groupId\": \"08586001810391585699602275620CU07\",\r\n \"dependencyStatus\": {}\r\n },\r\n {\r\n \"triggerName\": \"foo\",\r\n \"triggerRunId\": \"08586001810190879645608998212CU07\",\r\n \"triggerType\": \"TumblingWindowTrigger\",\r\n \"triggerRunTimestamp\": \"2020-09-30T00:31:14.2609547Z\",\r\n \"status\": \"Waiting\",\r\n \"message\": null,\r\n \"properties\": {\r\n \"TriggerTime\": \"9/30/2020 12:31:14 AM\",\r\n \"windowStartTime\": \"9/10/2019 4:15:00 PM\",\r\n \"windowEndTime\": \"9/10/2019 4:30:00 PM\"\r\n },\r\n \"triggeredPipelines\": {},\r\n \"groupId\": \"08586001810190879645608998212CU07\",\r\n \"dependencyStatus\": {}\r\n }\r\n ]\r\n}", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo/triggerRuns/08586001811587302486644506085CU07/rerun?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvdHJpZ2dlcnMvZm9vL3RyaWdnZXJSdW5zLzA4NTg2MDAxODExNTg3MzAyNDg2NjQ0NTA2MDg1Q1UwNy9yZXJ1bj9hcGktdmVyc2lvbj0yMDE4LTA2LTAx", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d2cfde6a-c116-4583-84a6-8e50ade49569" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1163" + ], + "x-ms-request-id": [ + "8eda0b17-1f72-421c-9d71-342c5781c8b0" + ], + "x-ms-correlation-request-id": [ + "8eda0b17-1f72-421c-9d71-342c5781c8b0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003118Z:8eda0b17-1f72-421c-9d71-342c5781c8b0" + ], + "Date": [ + "Wed, 30 Sep 2020 00:31:18 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo/triggerRuns/08586001811587302486644506085CU07/cancel?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvdHJpZ2dlcnMvZm9vL3RyaWdnZXJSdW5zLzA4NTg2MDAxODExNTg3MzAyNDg2NjQ0NTA2MDg1Q1UwNy9jYW5jZWw/YXBpLXZlcnNpb249MjAxOC0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "f890acac-166b-4681-943f-95ee51e472a2" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1162" + ], + "x-ms-request-id": [ + "4a6a6639-2248-440a-852e-63c2861b2510" + ], + "x-ms-correlation-request-id": [ + "4a6a6639-2248-440a-852e-63c2861b2510" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003119Z:4a6a6639-2248-440a-852e-63c2861b2510" + ], + "Date": [ + "Wed, 30 Sep 2020 00:31:18 GMT" + ], + "Content-Length": [ + "155" + ], + "Content-Type": [ + "application/json; charset=utf-8" + ], + "Expires": [ + "-1" + ] + }, + "ResponseBody": "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\": \"Trigger run 08586001811587302486644506085CU07 is not in WaitingOnDependency state\",\r\n \"target\": \"foo\",\r\n \"details\": null\r\n }\r\n}", + "StatusCode": 400 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo/stop?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvdHJpZ2dlcnMvZm9vL3N0b3A/YXBpLXZlcnNpb249MjAxOC0wNi0wMQ==", + "RequestMethod": "POST", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "c6654624-c049-4b54-b3c5-931fde7ea47e" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-writes": [ + "1161" + ], + "x-ms-request-id": [ + "e2f52f9f-2de1-4bdc-9a62-3d65c3720cd0" + ], + "x-ms-correlation-request-id": [ + "e2f52f9f-2de1-4bdc-9a62-3d65c3720cd0" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003120Z:e2f52f9f-2de1-4bdc-9a62-3d65c3720cd0" + ], + "Date": [ + "Wed, 30 Sep 2020 00:31:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534/triggers/foo?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQvdHJpZ2dlcnMvZm9vP2FwaS12ZXJzaW9uPTIwMTgtMDYtMDE=", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "d9dff1b8-790b-488d-986c-68f4b2eb8066" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14984" + ], + "x-ms-request-id": [ + "2c31ee3b-9ae8-4d34-b3ae-6f607edea02e" + ], + "x-ms-correlation-request-id": [ + "2c31ee3b-9ae8-4d34-b3ae-6f607edea02e" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003123Z:2c31ee3b-9ae8-4d34-b3ae-6f607edea02e" + ], + "Date": [ + "Wed, 30 Sep 2020 00:31:23 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourceGroups/ps6137/providers/Microsoft.DataFactory/factories/ps7534?api-version=2018-06-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlR3JvdXBzL3BzNjEzNy9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFGYWN0b3J5L2ZhY3Rvcmllcy9wczc1MzQ/YXBpLXZlcnNpb249MjAxOC0wNi0wMQ==", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "20b7f335-3de4-460b-9fc2-72d646c41ad6" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.DataFactory.DataFactoryManagementClient/4.11.0.0" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Server": [ + "Microsoft-IIS/10.0" + ], + "X-Powered-By": [ + "ASP.NET" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14983" + ], + "x-ms-request-id": [ + "2381aed6-659c-4858-9d68-aee8e3b57737" + ], + "x-ms-correlation-request-id": [ + "2381aed6-659c-4858-9d68-aee8e3b57737" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003130Z:2381aed6-659c-4858-9d68-aee8e3b57737" + ], + "Date": [ + "Wed, 30 Sep 2020 00:31:30 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/resourcegroups/ps6137?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L3Jlc291cmNlZ3JvdXBzL3BzNjEzNz9hcGktdmVyc2lvbj0yMDE2LTA5LTAx", + "RequestMethod": "DELETE", + "RequestBody": "", + "RequestHeaders": { + "x-ms-client-request-id": [ + "65fcd7f7-42ff-4991-bb56-40a53f7862e4" + ], + "Accept-Language": [ + "en-US" + ], + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.24" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzYxMzctV0VTVEVVUk9QRSIsImpvYkxvY2F0aW9uIjoid2VzdGV1cm9wZSJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-deletes": [ + "14999" + ], + "x-ms-request-id": [ + "d142f85f-801f-41bb-99a3-113687e1c017" + ], + "x-ms-correlation-request-id": [ + "d142f85f-801f-41bb-99a3-113687e1c017" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003134Z:d142f85f-801f-41bb-99a3-113687e1c017" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 30 Sep 2020 00:31:33 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzYxMzctV0VTVEVVUk9QRSIsImpvYkxvY2F0aW9uIjoid2VzdGV1cm9wZSJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpZeE16Y3RWMFZUVkVWVlVrOVFSU0lzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEdWMWNtOXdaU0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.24" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzYxMzctV0VTVEVVUk9QRSIsImpvYkxvY2F0aW9uIjoid2VzdGV1cm9wZSJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11999" + ], + "x-ms-request-id": [ + "893f0782-77fe-404e-a86e-1c91e5e6e6a6" + ], + "x-ms-correlation-request-id": [ + "893f0782-77fe-404e-a86e-1c91e5e6e6a6" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003149Z:893f0782-77fe-404e-a86e-1c91e5e6e6a6" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 30 Sep 2020 00:31:48 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzYxMzctV0VTVEVVUk9QRSIsImpvYkxvY2F0aW9uIjoid2VzdGV1cm9wZSJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpZeE16Y3RWMFZUVkVWVlVrOVFSU0lzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEdWMWNtOXdaU0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.24" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "Location": [ + "https://management.azure.com/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzYxMzctV0VTVEVVUk9QRSIsImpvYkxvY2F0aW9uIjoid2VzdGV1cm9wZSJ9?api-version=2016-09-01" + ], + "Retry-After": [ + "15" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11998" + ], + "x-ms-request-id": [ + "d003cf79-2676-4114-a8a4-7a5eca0012a5" + ], + "x-ms-correlation-request-id": [ + "d003cf79-2676-4114-a8a4-7a5eca0012a5" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003204Z:d003cf79-2676-4114-a8a4-7a5eca0012a5" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 30 Sep 2020 00:32:04 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 202 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzYxMzctV0VTVEVVUk9QRSIsImpvYkxvY2F0aW9uIjoid2VzdGV1cm9wZSJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpZeE16Y3RWMFZUVkVWVlVrOVFSU0lzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEdWMWNtOXdaU0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.24" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11997" + ], + "x-ms-request-id": [ + "bb09c1cb-891e-4a32-b381-1c47c97ce157" + ], + "x-ms-correlation-request-id": [ + "bb09c1cb-891e-4a32-b381-1c47c97ce157" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003220Z:bb09c1cb-891e-4a32-b381-1c47c97ce157" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 30 Sep 2020 00:32:19 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + }, + { + "RequestUri": "/subscriptions/1e42591f-1f0c-4c5a-b7f2-a268f6105ec5/operationresults/eyJqb2JJZCI6IlJFU09VUkNFR1JPVVBERUxFVElPTkpPQi1QUzYxMzctV0VTVEVVUk9QRSIsImpvYkxvY2F0aW9uIjoid2VzdGV1cm9wZSJ9?api-version=2016-09-01", + "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvMWU0MjU5MWYtMWYwYy00YzVhLWI3ZjItYTI2OGY2MTA1ZWM1L29wZXJhdGlvbnJlc3VsdHMvZXlKcWIySkpaQ0k2SWxKRlUwOVZVa05GUjFKUFZWQkVSVXhGVkVsUFRrcFBRaTFRVXpZeE16Y3RWMFZUVkVWVlVrOVFSU0lzSW1wdllreHZZMkYwYVc5dUlqb2lkMlZ6ZEdWMWNtOXdaU0o5P2FwaS12ZXJzaW9uPTIwMTYtMDktMDE=", + "RequestMethod": "GET", + "RequestBody": "", + "RequestHeaders": { + "User-Agent": [ + "FxVersion/4.6.29220.03", + "OSName/Windows", + "OSVersion/Microsoft.Windows.10.0.19041.", + "Microsoft.Azure.Management.Internal.Resources.ResourceManagementClient/1.3.24" + ] + }, + "ResponseHeaders": { + "Cache-Control": [ + "no-cache" + ], + "Pragma": [ + "no-cache" + ], + "x-ms-ratelimit-remaining-subscription-reads": [ + "11996" + ], + "x-ms-request-id": [ + "49323360-9600-4415-900d-09f4ae591217" + ], + "x-ms-correlation-request-id": [ + "49323360-9600-4415-900d-09f4ae591217" + ], + "x-ms-routing-request-id": [ + "WESTUS:20200930T003220Z:49323360-9600-4415-900d-09f4ae591217" + ], + "Strict-Transport-Security": [ + "max-age=31536000; includeSubDomains" + ], + "X-Content-Type-Options": [ + "nosniff" + ], + "Date": [ + "Wed, 30 Sep 2020 00:32:20 GMT" + ], + "Expires": [ + "-1" + ], + "Content-Length": [ + "0" + ] + }, + "ResponseBody": "", + "StatusCode": 200 + } + ], + "Names": { + "Test-TriggerInvokeAndStop": [ + "ps7534", + "ps6137" + ] + }, + "Variables": { + "SubscriptionId": "1e42591f-1f0c-4c5a-b7f2-a268f6105ec5" + } +} \ No newline at end of file diff --git a/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 b/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 index 890a4fad7bd0..ecf540d8308d 100644 --- a/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 +++ b/src/DataFactory/DataFactoryV2/Az.DataFactory.psd1 @@ -114,7 +114,8 @@ CmdletsToExport = 'Set-AzDataFactoryV2', 'Update-AzDataFactoryV2', 'Invoke-AzDataFactoryV2IntegrationRuntimeUpgrade', 'Sync-AzDataFactoryV2IntegrationRuntimeCredential', 'Update-AzDataFactoryV2IntegrationRuntime', - 'Get-AzDataFactoryV2TriggerRun', 'Remove-AzDataFactory', + 'Get-AzDataFactoryV2TriggerRun', + 'Remove-AzDataFactory', 'Get-AzDataFactoryRun', 'Get-AzDataFactorySlice', 'Save-AzDataFactoryLog', 'Set-AzDataFactorySliceStatus', 'New-AzDataFactoryEncryptValue', 'Get-AzDataFactoryGateway', @@ -133,7 +134,9 @@ CmdletsToExport = 'Set-AzDataFactoryV2', 'Update-AzDataFactoryV2', 'New-AzDataFactoryDataset', 'Remove-AzDataFactoryDataset', 'Add-AzDataFactoryV2TriggerSubscription', 'Remove-AzDataFactoryV2TriggerSubscription', - 'Get-AzDataFactoryV2TriggerSubscriptionStatus' + 'Get-AzDataFactoryV2TriggerSubscriptionStatus', + 'Stop-AzDataFactoryV2TriggerRun', + 'Invoke-AzDataFactoryV2TriggerRun' # Variables to export from this module # VariablesToExport = @() diff --git a/src/DataFactory/DataFactoryV2/Changelog.md b/src/DataFactory/DataFactoryV2/Changelog.md index 0f6113fc83d4..2729e8966f26 100644 --- a/src/DataFactory/DataFactoryV2/Changelog.md +++ b/src/DataFactory/DataFactoryV2/Changelog.md @@ -19,6 +19,7 @@ --> ## Upcoming Release * Fixed typo in output messages +* Added `Stop-AzDataFactoryV2TriggerRun` and `Invoke-AzDataFactoryV2TriggerRun` commands ## Version 1.10.1 * Updated ADF .Net SDK version to 4.11.0 diff --git a/src/DataFactory/DataFactoryV2/Constants.cs b/src/DataFactory/DataFactoryV2/Constants.cs index 6d2c05802c3d..a08f47504c2d 100644 --- a/src/DataFactory/DataFactoryV2/Constants.cs +++ b/src/DataFactory/DataFactoryV2/Constants.cs @@ -68,6 +68,10 @@ internal static class Constants public const string HelpTriggerName = "The trigger name."; + public const string HelpTriggerRunId = "The Run ID of the trigger."; + + public const string HelpTriggerRun = "The information about the trigger run."; + public const string HelpTriggerObject = "The trigger object."; public const string HelpPipeline = "The pipeline object."; diff --git a/src/DataFactory/DataFactoryV2/Models/DataFactoryClient.Trigger.cs b/src/DataFactory/DataFactoryV2/Models/DataFactoryClient.Trigger.cs index 4ce0b409053b..874d91bbb374 100644 --- a/src/DataFactory/DataFactoryV2/Models/DataFactoryClient.Trigger.cs +++ b/src/DataFactory/DataFactoryV2/Models/DataFactoryClient.Trigger.cs @@ -121,6 +121,16 @@ public virtual PSTriggerSubscriptionStatus GetTriggerEventSubscriptionStatus(str return new PSTriggerSubscriptionStatus(this.DataFactoryManagementClient.Triggers.GetEventSubscriptionStatus(resourceGroupName, dataFactoryName, triggerName)); } + public virtual void StopTriggerRun(string resourceGroupName, string dataFactoryName, string triggerName, string triggerRunId) + { + this.DataFactoryManagementClient.TriggerRuns.Cancel(resourceGroupName, dataFactoryName, triggerName, triggerRunId); + } + + public virtual void RerunTriggerRun(string resourceGroupName, string dataFactoryName, string triggerName, string triggerRunId) + { + this.DataFactoryManagementClient.TriggerRuns.Rerun(resourceGroupName, dataFactoryName, triggerName, triggerRunId); + } + private TriggerResource CreateOrUpdateTrigger(string resourceGroupName, string dataFactoryName, string triggerName, string rawJsonContent) { diff --git a/src/DataFactory/DataFactoryV2/Runs/InvokeAzureDataFactoryTriggerRunCommand.cs b/src/DataFactory/DataFactoryV2/Runs/InvokeAzureDataFactoryTriggerRunCommand.cs new file mode 100644 index 000000000000..94c331b937f4 --- /dev/null +++ b/src/DataFactory/DataFactoryV2/Runs/InvokeAzureDataFactoryTriggerRunCommand.cs @@ -0,0 +1,68 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using Microsoft.Azure.Commands.DataFactoryV2.Models; + +namespace Microsoft.Azure.Commands.DataFactoryV2 +{ + [Cmdlet("Invoke", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataFactoryV2TriggerRun", DefaultParameterSetName = ParameterSetNames.ByFactoryNameByParameterFile,SupportsShouldProcess = true), OutputType(typeof(PSPipeline))] + public class InvokeAzureDataFactoryTriggerRunCommand : DataFactoryContextBaseCmdlet + { + [Parameter(ParameterSetName = ParameterSetNames.ByInputObject, Position = 0, Mandatory = true, ValueFromPipeline = true, + HelpMessage = Constants.HelpTriggerRun)] + [ValidateNotNullOrEmpty] + public PSTriggerRun InputObject { get; set; } + + [Parameter(ParameterSetName = ParameterSetNames.ByFactoryName, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, + HelpMessage = Constants.HelpTriggerName)] + [Parameter(ParameterSetName = ParameterSetNames.ByFactoryObject, Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, + HelpMessage = Constants.HelpTriggerName)] + [ValidateNotNullOrEmpty] + public string TriggerName { get; set; } + + [Parameter(ParameterSetName = ParameterSetNames.ByFactoryName, Position = 3, Mandatory = true, ValueFromPipelineByPropertyName = true, + HelpMessage = Constants.HelpTriggerRunId)] + [Parameter(ParameterSetName = ParameterSetNames.ByFactoryObject, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, + HelpMessage = Constants.HelpTriggerRunId)] + [ValidateNotNullOrEmpty] + public string TriggerRunId { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter PassThru { get; set; } + + public override void ExecuteCmdlet() + { + ByFactoryObject(); + if (ParameterSetName.Equals(ParameterSetNames.ByInputObject, StringComparison.OrdinalIgnoreCase)) + { + DataFactoryName = InputObject.DataFactoryName; + ResourceGroupName = InputObject.ResourceGroupName; + TriggerName = InputObject.TriggerName; + TriggerRunId = InputObject.TriggerRunId; + } + + if (ShouldProcess(TriggerRunId)) + { + DataFactoryClient.RerunTriggerRun(ResourceGroupName, DataFactoryName, TriggerName, TriggerRunId); + } + + if (PassThru) + { + WriteObject(true); + } + } + } +} diff --git a/src/DataFactory/DataFactoryV2/Runs/StopAzureDataFactoryTriggerRunCommand.cs b/src/DataFactory/DataFactoryV2/Runs/StopAzureDataFactoryTriggerRunCommand.cs new file mode 100644 index 000000000000..27499c7040e7 --- /dev/null +++ b/src/DataFactory/DataFactoryV2/Runs/StopAzureDataFactoryTriggerRunCommand.cs @@ -0,0 +1,69 @@ +// ---------------------------------------------------------------------------------- +// +// Copyright Microsoft Corporation +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// http://www.apache.org/licenses/LICENSE-2.0 +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. +// ---------------------------------------------------------------------------------- + +using System; +using System.Management.Automation; +using System.Security.Permissions; +using Microsoft.Azure.Commands.DataFactoryV2.Models; + +namespace Microsoft.Azure.Commands.DataFactoryV2 +{ + [Cmdlet("Stop", ResourceManager.Common.AzureRMConstants.AzureRMPrefix + "DataFactoryV2TriggerRun", DefaultParameterSetName = ParameterSetNames.ByFactoryName, SupportsShouldProcess = true), OutputType(typeof(bool))] + public class StopAzureDataFactoryTriggerRunCommand : DataFactoryContextBaseCmdlet + { + [Parameter(ParameterSetName = ParameterSetNames.ByInputObject, Position = 0, Mandatory = true, ValueFromPipeline = true, + HelpMessage = Constants.HelpTriggerRun)] + [ValidateNotNullOrEmpty] + public PSTriggerRun InputObject { get; set; } + + [Parameter(ParameterSetName = ParameterSetNames.ByFactoryName, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, + HelpMessage = Constants.HelpTriggerName)] + [Parameter(ParameterSetName = ParameterSetNames.ByFactoryObject, Position = 1, Mandatory = true, ValueFromPipelineByPropertyName = true, + HelpMessage = Constants.HelpTriggerName)] + [ValidateNotNullOrEmpty] + public string TriggerName { get; set; } + + [Parameter(ParameterSetName = ParameterSetNames.ByFactoryName, Position = 3, Mandatory = true, ValueFromPipelineByPropertyName = true, + HelpMessage = Constants.HelpTriggerRunId)] + [Parameter(ParameterSetName = ParameterSetNames.ByFactoryObject, Position = 2, Mandatory = true, ValueFromPipelineByPropertyName = true, + HelpMessage = Constants.HelpTriggerRunId)] + [ValidateNotNullOrEmpty] + public string TriggerRunId { get; set; } + + [Parameter(Mandatory = false)] + public SwitchParameter PassThru { get; set; } + + public override void ExecuteCmdlet() + { + ByFactoryObject(); + if (ParameterSetName.Equals(ParameterSetNames.ByInputObject, StringComparison.OrdinalIgnoreCase)) + { + DataFactoryName = InputObject.DataFactoryName; + ResourceGroupName = InputObject.ResourceGroupName; + TriggerName = InputObject.TriggerName; + TriggerRunId = InputObject.TriggerRunId; + } + + if (ShouldProcess(TriggerRunId)) + { + DataFactoryClient.StopTriggerRun(ResourceGroupName, DataFactoryName, TriggerName, TriggerRunId); + } + + if (PassThru) + { + WriteObject(true); + } + } + } +} diff --git a/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md b/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md new file mode 100644 index 000000000000..85f352e2122b --- /dev/null +++ b/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md @@ -0,0 +1,222 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll-Help.xml +Module Name: Az.DataFactory +online version: +schema: 2.0.0 +--- + +# Invoke-AzDataFactoryV2TriggerRun + +## SYNOPSIS + Invokes another instance of a trigger run. + +## SYNTAX + +### ByFactoryNameByParameterFile (Default) +``` +Invoke-AzDataFactoryV2TriggerRun [-PassThru] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +### ByInputObject +``` +Invoke-AzDataFactoryV2TriggerRun [-InputObject] [-PassThru] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByFactoryName +``` +Invoke-AzDataFactoryV2TriggerRun [-TriggerName] [-TriggerRunId] [-PassThru] + [-ResourceGroupName] [-DataFactoryName] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +### ByFactoryObject +``` +Invoke-AzDataFactoryV2TriggerRun [-TriggerName] [-TriggerRunId] [-PassThru] + [-DataFactory] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## DESCRIPTION +The **Invoke-AzDataFactoryV2TriggerRun** command starts another instance of a trigger run with a new trigger run id. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Invoke-AzDataFactoryV2TriggerRun -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -TriggerName "testTumblingWindowTrigger" -TriggerRunId 08586002468005888497807248799CU16 +``` +Starts another instance of a trigger run with a new trigger run id, keeping the same windowStartTime and windowEndTime as the original trigger run. + +## PARAMETERS + +### -DataFactory +The data factory object. + +```yaml +Type: Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory +Parameter Sets: ByFactoryObject +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -DataFactoryName +The data factory name. + +```yaml +Type: System.String +Parameter Sets: ByFactoryName +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The information about the trigger run. + +```yaml +Type: Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun +Parameter Sets: ByInputObject +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PassThru +If specified the cmdlet write true in case operation succeeds. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The resource group name. + +```yaml +Type: System.String +Parameter Sets: ByFactoryName +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -TriggerName +The trigger name. + +```yaml +Type: System.String +Parameter Sets: ByFactoryName, ByFactoryObject +Aliases: + +Required: True +Position: 2 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -TriggerRunId +The Run ID of the trigger. + +```yaml +Type: System.String +Parameter Sets: ByFactoryName, ByFactoryObject +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun + +### System.String + +### Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory + +## OUTPUTS + +### Microsoft.Azure.Commands.DataFactoryV2.Models.PSPipeline + +## NOTES + +## RELATED LINKS diff --git a/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md b/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md new file mode 100644 index 000000000000..ebf39822a3e7 --- /dev/null +++ b/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md @@ -0,0 +1,218 @@ +--- +external help file: Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll-Help.xml +Module Name: Az.DataFactory +online version: +schema: 2.0.0 +--- + +# Stop-AzDataFactoryV2TriggerRun + +## SYNOPSIS +Stops a trigger run in a data factory. + +## SYNTAX + +### ByFactoryName (Default) +``` +Stop-AzDataFactoryV2TriggerRun [-TriggerName] [-TriggerRunId] [-PassThru] + [-ResourceGroupName] [-DataFactoryName] [-DefaultProfile ] [-WhatIf] + [-Confirm] [] +``` + +### ByInputObject +``` +Stop-AzDataFactoryV2TriggerRun [-InputObject] [-PassThru] + [-DefaultProfile ] [-WhatIf] [-Confirm] [] +``` + +### ByFactoryObject +``` +Stop-AzDataFactoryV2TriggerRun [-TriggerName] [-TriggerRunId] [-PassThru] + [-DataFactory] [-DefaultProfile ] [-WhatIf] [-Confirm] + [] +``` + +## DESCRIPTION +The **Stop-AzDataFactoryV2TriggerRun** cmdlet stops a trigger run in a data factory specified with the trigger name and trigger run ID. +Currently only supported for TumblingWindowTriggers in WaitingOnDependency State. + +## EXAMPLES + +### Example 1 +```powershell +PS C:\> Stop-AzDataFactoryV2TriggerRun -ResourceGroupName "ADF" -DataFactoryName "WikiADF" -TriggerName "testTumblingWindowTrigger" -TriggerRunId 08586002468005888497807248799CU16 +``` + +This command stops the trigger run with id '08586002468005888497807248799CU16' in the factory WikiADF. + +## PARAMETERS + +### -DataFactory +The data factory object. + +```yaml +Type: Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory +Parameter Sets: ByFactoryObject +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -DataFactoryName +The data factory name. + +```yaml +Type: System.String +Parameter Sets: ByFactoryName +Aliases: + +Required: True +Position: 1 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -DefaultProfile +The credentials, account, tenant, and subscription used for communication with Azure. + +```yaml +Type: Microsoft.Azure.Commands.Common.Authentication.Abstractions.Core.IAzureContextContainer +Parameter Sets: (All) +Aliases: AzContext, AzureRmContext, AzureCredential + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -InputObject +The information about the trigger run. + +```yaml +Type: Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun +Parameter Sets: ByInputObject +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByValue) +Accept wildcard characters: False +``` + +### -PassThru +If specified the cmdlet write true in case operation succeeds. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -ResourceGroupName +The resource group name. + +```yaml +Type: System.String +Parameter Sets: ByFactoryName +Aliases: + +Required: True +Position: 0 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -TriggerName +The trigger name. + +```yaml +Type: System.String +Parameter Sets: ByFactoryName, ByFactoryObject +Aliases: + +Required: True +Position: 2 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -TriggerRunId +The Run ID of the trigger. + +```yaml +Type: System.String +Parameter Sets: ByFactoryName, ByFactoryObject +Aliases: + +Required: True +Position: 3 +Default value: None +Accept pipeline input: True (ByPropertyName) +Accept wildcard characters: False +``` + +### -Confirm +Prompts you for confirmation before running the cmdlet. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: cf + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### -WhatIf +Shows what would happen if the cmdlet runs. +The cmdlet is not run. + +```yaml +Type: System.Management.Automation.SwitchParameter +Parameter Sets: (All) +Aliases: wi + +Required: False +Position: Named +Default value: None +Accept pipeline input: False +Accept wildcard characters: False +``` + +### CommonParameters +This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](http://go.microsoft.com/fwlink/?LinkID=113216). + +## INPUTS + +### Microsoft.Azure.Commands.DataFactoryV2.Models.PSTriggerRun + +### System.String + +### Microsoft.Azure.Commands.DataFactoryV2.Models.PSDataFactory + +## OUTPUTS + +### System.Boolean + +## NOTES + +## RELATED LINKS From aeeb54aeb1caeaf171e4589a5c18e1b8a64e8c4f Mon Sep 17 00:00:00 2001 From: Arulnithi Date: Tue, 20 Oct 2020 00:37:49 -0700 Subject: [PATCH 2/4] Fix static analysis --- .../DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md | 2 +- .../DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md b/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md index 85f352e2122b..2a85b6c6e752 100644 --- a/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md +++ b/src/DataFactory/DataFactoryV2/help/Invoke-AzDataFactoryV2TriggerRun.md @@ -1,7 +1,7 @@ --- external help file: Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll-Help.xml Module Name: Az.DataFactory -online version: +online version: https://docs.microsoft.com/en-us/powershell/module/az.datafactory/invoke-azdatafactoryv2triggerrun schema: 2.0.0 --- diff --git a/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md b/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md index ebf39822a3e7..09ee96111c33 100644 --- a/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md +++ b/src/DataFactory/DataFactoryV2/help/Stop-AzDataFactoryV2TriggerRun.md @@ -1,7 +1,7 @@ --- external help file: Microsoft.Azure.PowerShell.Cmdlets.DataFactoryV2.dll-Help.xml Module Name: Az.DataFactory -online version: +online version: https://docs.microsoft.com/en-us/powershell/module/az.datafactory/stop-azdatafactoryv2triggerrun schema: 2.0.0 --- From e5d29d0ff73ce1765c950c277e9b961d0fe10aaa Mon Sep 17 00:00:00 2001 From: Yabo Hu Date: Wed, 21 Oct 2020 11:29:59 +0800 Subject: [PATCH 3/4] Update Changelog.md --- src/DataFactory/DataFactoryV2/Changelog.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/DataFactory/DataFactoryV2/Changelog.md b/src/DataFactory/DataFactoryV2/Changelog.md index 7d6315abbc1b..fa7bd83b7ffd 100644 --- a/src/DataFactory/DataFactoryV2/Changelog.md +++ b/src/DataFactory/DataFactoryV2/Changelog.md @@ -20,8 +20,6 @@ ## Upcoming Release * Updated ADF .Net SDK version to 4.12.0 * Updated ADF encryption client SDK version to 4.14.7587.7 - -## Version 1.10.2 * Fixed typo in output messages * Added `Stop-AzDataFactoryV2TriggerRun` and `Invoke-AzDataFactoryV2TriggerRun` commands From c3cca2aa6d02d957a4069213eac88bee14360e41 Mon Sep 17 00:00:00 2001 From: Yabo Hu Date: Wed, 21 Oct 2020 12:09:40 +0800 Subject: [PATCH 4/4] Update Changelog.md --- src/DataFactory/DataFactoryV2/Changelog.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/DataFactory/DataFactoryV2/Changelog.md b/src/DataFactory/DataFactoryV2/Changelog.md index fa7bd83b7ffd..fb03e35dbb21 100644 --- a/src/DataFactory/DataFactoryV2/Changelog.md +++ b/src/DataFactory/DataFactoryV2/Changelog.md @@ -20,9 +20,11 @@ ## Upcoming Release * Updated ADF .Net SDK version to 4.12.0 * Updated ADF encryption client SDK version to 4.14.7587.7 -* Fixed typo in output messages * Added `Stop-AzDataFactoryV2TriggerRun` and `Invoke-AzDataFactoryV2TriggerRun` commands +## Version 1.10.2 +* Fixed typo in output messages + ## Version 1.10.1 * Updated ADF .Net SDK version to 4.11.0