File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
Tasks/Manage-AutomationAccount Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -385,11 +385,15 @@ if (Check-Scope -Scope $scope -RequiredScope 'Modules') {
385
385
}
386
386
catch {
387
387
Write-Warning $_
388
- if ( $_ .Exception.Message -like ' *NotFound* ' ) {
389
- # if module not found, do nothing -> will be installed
390
- # {"code":" NotFound","message":"The package does not exist in runtime environment PowerShell-74. "}
388
+ # ##[warning]{"code":"NotFound","message":"The package does not exist in runtime environment PowerShell-74. "}
389
+
390
+ if ( $_ -like ' * NotFound* ' ) {
391
391
Write-Warning " Error NotFound"
392
- } else {
392
+ }
393
+ elseif ($_.Exception.Message -like ' *NotFound*' ) {
394
+ Write-Warning " Error NotFound"
395
+ }
396
+ else {
393
397
Write-Warning " Uknown error"
394
398
throw
395
399
}
Original file line number Diff line number Diff line change 2
2
"manifestVersion" : 1 ,
3
3
"id" : " Manage-AutomationAccount" ,
4
4
"name" : " Manage-AutomationAccount" ,
5
- "version" : " 2.0.2 " ,
5
+ "version" : " 2.0.3 " ,
6
6
"publisher" : " GreyCorbelSolutions" ,
7
7
"targets" : [
8
8
{
You can’t perform that action at this time.
0 commit comments