Skip to content

Commit 3a045cd

Browse files
authored
Merge pull request MicrosoftDocs#126 from MicrosoftDocs/weekly_update_help_files_21-09-2022
Docs Update
2 parents a0f9989 + d4f3292 commit 3a045cd

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

azure-pipelines/update-template.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,11 @@ steps:
77
inputs:
88
targetType: 'inline'
99
script: |
10-
$modules = Get-Module -Name Microsoft.Graph -ListAvailable
11-
if ($modules.Count -gt 0 -and $modules[0].Version -eq "1.11.1") {
12-
echo "Latest version already installed"
13-
}else {
14-
echo "Installing latest version"
15-
Install-Module Microsoft.Graph -Repository PSGallery -Scope AllUsers -Force -AllowClobber
10+
$sdk = Get-InstalledModule Microsoft.Graph
11+
echo "Current version "+$sdk.Version
12+
echo "Updating to the latest sdk version"
13+
Update-Module Microsoft.Graph -Scope CurrentUser
1614
Import-Module Microsoft.Graph -Global -Force
17-
}
18-
1915
2016
- template: checkout.yml
2117
- template: install-tools-template.yml

0 commit comments

Comments
 (0)