Skip to content

Commit b972775

Browse files
committed
Rolled back to more stable sdk version
1 parent fbc8bcc commit b972775

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

azure-pipelines/update-template.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ steps:
77
inputs:
88
targetType: 'inline'
99
script: |
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
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
1416
Import-Module Microsoft.Graph -Global -Force
17+
}
1518
1619
- template: checkout.yml
1720
- template: install-tools-template.yml

0 commit comments

Comments
 (0)