@@ -52,7 +52,7 @@ function Retry-AzCommand {
52
52
$loopLimit = 0
53
53
do {
54
54
try {
55
- $script = " `$ ErrorActionPreference='Stop ' `n "
55
+ $script = " `$ ErrorActionPreference='Continue ' `n "
56
56
$script += $Command.ToString ()
57
57
& ([ScriptBlock ]::Create($script ))
58
58
break
@@ -80,7 +80,7 @@ $resourceSetUpCommands=@(
80
80
)
81
81
82
82
$resourceCleanUpCommands = @ (
83
- @ {Name = " Az.Storage [Cleanup]" ; Command = {Remove-AzStorageAccount - Name $storageAccountName - ResourceGroupName $resourceGroupName - Force}; Retry = 30 ; Sleep = 30 },
83
+ @ {Name = " Az.Storage [Cleanup]" ; Command = {Remove-AzStorageAccount - Name $storageAccountName - ResourceGroupName $resourceGroupName - Force}},
84
84
@ {Name = " Az.Resources [Cleanup]" ; Command = {Remove-AzResourceGroup - Name $resourceGroupName - Force}}
85
85
)
86
86
@@ -131,7 +131,7 @@ $resourceTestCommands = @(
131
131
@ {Name = " Az.Kusto" ; Command = {Get-AzKustoCluster }},
132
132
@ {Name = " Az.LogicApp" ; Command = {Get-AzIntegrationAccount }},
133
133
@ {Name = " Az.MachineLearning" ; Command = {Get-AzMlWebService }},
134
- @ {Name = " Az.Maintenance" ; Command = {Get-AzMaintenanceConfiguration }; Retry = 30 ; Sleep = 30 },
134
+ @ {Name = " Az.Maintenance" ; Command = {Get-AzMaintenanceConfiguration }},
135
135
@ {Name = " Az.ManagedServices" ; Command = {Get-AzManagedServicesAssignment }},
136
136
@ {Name = " Az.Media" ; Command = {Get-AzMediaService - ResourceGroupName $resourceGroupName }},
137
137
@ {Name = " Az.Monitor" ; Command = {Get-AzLogProfile }},
@@ -172,8 +172,8 @@ $startTime = Get-Date
172
172
$resourceCommands | ForEach-Object {
173
173
$testName = $_.Name
174
174
$script = $_.Command
175
- $retry = if ($null -eq $_.retry ) {0 } Else {$_.retry }
176
- $sleep = if ($null -eq $_.sleep ) {30 } Else {$_.sleep }
175
+ $retry = if ($null -eq $_.Retry ) {3 } Else {$_.Retry }
176
+ $sleep = if ($null -eq $_.Sleep ) {30 } Else {$_.Sleep }
177
177
if ($null -ne $_.Since -and " Core" -eq $PSVersionTable.PSEdition -and $PSVersionTable.PSVersion -lt [System.Version ]$_.Since ) {
178
178
Write-Output " Skip test $testName "
179
179
$testInfo.SkippedCount += 1
0 commit comments