From 7e6899ad6a6f6b722fee0239c07de915c8ea42b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Sundling?= Date: Fri, 22 Sep 2023 13:24:26 +0200 Subject: [PATCH] Update AzDO Installscript --- docs/wiki/Azure-Pipelines.md | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/docs/wiki/Azure-Pipelines.md b/docs/wiki/Azure-Pipelines.md index b5ca72e4..fe57d8e6 100644 --- a/docs/wiki/Azure-Pipelines.md +++ b/docs/wiki/Azure-Pipelines.md @@ -73,7 +73,7 @@ $OrgParams = @{ } # Install the ADOPS PowerShell module -Install-Module -Name ADOPS -Scope CurrentUser -RequiredVersion '2.0.1' -Force +Install-Module -Name ADOPS -Scope CurrentUser -RequiredVersion '2.0.2' -Force # Connect to Azure DevOps (This will open a browser window for you to login) Connect-ADOPS -Organization $Organization @@ -85,10 +85,8 @@ if ($null -eq $Project) { } # Create a new repository from the AzOps Accelerator template repository -try { - $Repo = Get-ADOPSRepository @OrgParams -Repository $RepoName -} -catch { +$Repo = Get-ADOPSRepository @OrgParams -Repository $RepoName +if ($null -eq $repo) { $Repo = New-ADOPSRepository @OrgParams -Name $RepoName }