We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0f9989 + d4f3292 commit 3a045cdCopy full SHA for 3a045cd
azure-pipelines/update-template.yml
@@ -7,15 +7,11 @@ steps:
7
inputs:
8
targetType: 'inline'
9
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
+ $sdk = Get-InstalledModule Microsoft.Graph
+ echo "Current version "+$sdk.Version
+ echo "Updating to the latest sdk version"
+ Update-Module Microsoft.Graph -Scope CurrentUser
16
Import-Module Microsoft.Graph -Global -Force
17
- }
18
-
19
20
- template: checkout.yml
21
- template: install-tools-template.yml
0 commit comments