File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ function New-LiveTestResourceGroup {
143143 [string ] $Location = " westus"
144144 )
145145
146- $rg = Invoke-LiveTestCommand - Command " New-AzResourceGroup -Name $Name -Location $Location "
146+ $rg = Invoke-LiveTestCommand - Command " New-AzResourceGroup -Name $Name -Location $Location -Force "
147147 $rg
148148}
149149
@@ -188,12 +188,7 @@ function Invoke-LiveTestCommand {
188188
189189 $cmdResult = Invoke-Expression - Command $Command - ErrorAction Stop
190190
191- if ($LASTEXITCODE -eq 0 ) {
192- Write-Host " ##[section]Successfully executed the command `" $Command `" " - ForegroundColor Green
193- }
194- else {
195- throw " Error occurred when executing the command `" $Command `" ."
196- }
191+ Write-Host " ##[section]Successfully executed the command `" $Command `" " - ForegroundColor Green
197192
198193 $cmdResult
199194 break
You can’t perform that action at this time.
0 commit comments