Skip to content

Commit

Permalink
Update AzDO Installscript
Browse files Browse the repository at this point in the history
  • Loading branch information
bjompen committed Sep 22, 2023
1 parent 34aa6a8 commit 7e6899a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions docs/wiki/Azure-Pipelines.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
Expand Down

0 comments on commit 7e6899a

Please sign in to comment.