@@ -26,20 +26,20 @@ function Test-StartLogicApp
26
26
$workflowName = getAssetname
27
27
$definitionFilePath = " Resources\TestSimpleWorkflowTriggerDefinition.json"
28
28
29
- $workflow = New-AzureLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - DefinitionFilePath $definitionFilePath - AppServicePlan $planName
29
+ $workflow = New-AzureRmLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - DefinitionFilePath $definitionFilePath - AppServicePlan $planName
30
30
31
31
[int ]$counter = 0
32
32
do {
33
33
Sleep - seconds 2
34
- $workflow = Get-AzureLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName
34
+ $workflow = Get-AzureRmLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName
35
35
} while ($workflow.State -ne " Enabled" -and $counter ++ -lt 5 )
36
36
37
- Start-AzureLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - TriggerName " httpTrigger"
37
+ Start-AzureRmLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - TriggerName " httpTrigger"
38
38
}
39
39
40
40
<#
41
41
. SYNOPSIS
42
- Test Get-AzureLogicAppRunHistory and Get-AzureLogicAppRun command to get the logic app history
42
+ Test Get-AzureRmLogicAppRunHistory and Get-AzureRmLogicAppRun command to get the logic app history
43
43
#>
44
44
function Test-GetAzureLogicAppRunHistory
45
45
{
@@ -51,26 +51,26 @@ function Test-GetAzureLogicAppRunHistory
51
51
$workflowName = getAssetname
52
52
$definitionFilePath = " Resources\TestSimpleWorkflowTriggerDefinition.json"
53
53
54
- $workflow = New-AzureLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - DefinitionFilePath $definitionFilePath - AppServicePlan $planName
54
+ $workflow = New-AzureRmLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - DefinitionFilePath $definitionFilePath - AppServicePlan $planName
55
55
56
56
[int ]$counter = 0
57
57
do {
58
58
Sleep - seconds 2
59
- $workflow = Get-AzureLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName
59
+ $workflow = Get-AzureRmLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName
60
60
} while ($workflow.State -ne " Enabled" -and $counter ++ -lt 5 )
61
61
62
- Start-AzureLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - TriggerName " httpTrigger"
62
+ Start-AzureRmLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - TriggerName " httpTrigger"
63
63
64
- $runHistory = Get-AzureLogicAppRunHistory - ResourceGroupName $resourceGroupName - Name $workflowName
64
+ $runHistory = Get-AzureRmLogicAppRunHistory - ResourceGroupName $resourceGroupName - Name $workflowName
65
65
Assert-NotNull $runHistory
66
- $run = Get-AzureLogicAppRunHistory - ResourceGroupName $resourceGroupName - Name $workflowName - RunName $runHistory [0 ].Name
66
+ $run = Get-AzureRmLogicAppRunHistory - ResourceGroupName $resourceGroupName - Name $workflowName - RunName $runHistory [0 ].Name
67
67
Assert-NotNull $run
68
68
Assert-AreEqual $runHistory [0 ].Name $run.Name
69
69
}
70
70
71
71
<#
72
72
. SYNOPSIS
73
- Test Get-AzureLogicAppRunAction command to get the logic app run action
73
+ Test Get-AzureRmLogicAppRunAction command to get the logic app run action
74
74
#>
75
75
function Test-GetAzureLogicAppRunAction
76
76
{
@@ -82,24 +82,24 @@ function Test-GetAzureLogicAppRunAction
82
82
$workflowName = getAssetname
83
83
$definitionFilePath = " Resources\TestSimpleWorkflowTriggerDefinition.json"
84
84
85
- $workflow = New-AzureLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - DefinitionFilePath $definitionFilePath - AppServicePlan $planName
85
+ $workflow = New-AzureRmLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - DefinitionFilePath $definitionFilePath - AppServicePlan $planName
86
86
87
87
[int ]$counter = 0
88
88
do {
89
89
Sleep - seconds 2
90
- $workflow = Get-AzureLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName
90
+ $workflow = Get-AzureRmLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName
91
91
} while ($workflow.State -ne " Enabled" -and $counter ++ -lt 5 )
92
92
93
- Start-AzureLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - TriggerName " httpTrigger"
93
+ Start-AzureRmLogicApp - ResourceGroupName $resourceGroupName - Name $workflowName - TriggerName " httpTrigger"
94
94
95
- $runHistory = Get-AzureLogicAppRunHistory - ResourceGroupName $resourceGroupName - Name $workflowName
95
+ $runHistory = Get-AzureRmLogicAppRunHistory - ResourceGroupName $resourceGroupName - Name $workflowName
96
96
Assert-NotNull $runHistory
97
97
98
- $actions = Get-AzureLogicAppRunAction - ResourceGroupName $resourceGroupName - Name $workflowName - RunName $runHistory [0 ].Name
98
+ $actions = Get-AzureRmLogicAppRunAction - ResourceGroupName $resourceGroupName - Name $workflowName - RunName $runHistory [0 ].Name
99
99
Assert-NotNull $actions
100
100
Assert-AreEqual 2 $actions.Count
101
101
102
- $action = Get-AzureLogicAppRunAction - ResourceGroupName $resourceGroupName - Name $workflowName - RunName $runHistory [0 ].Name - ActionName " http"
102
+ $action = Get-AzureRmLogicAppRunAction - ResourceGroupName $resourceGroupName - Name $workflowName - RunName $runHistory [0 ].Name - ActionName " http"
103
103
Assert-NotNull $action
104
104
105
105
}
0 commit comments