Skip to content

Commit 28f4f8d

Browse files
committed
Made use of find-mggraph command to get all the related uri paths for cmdlets. Modified pipeline
1 parent 9f7e1d7 commit 28f4f8d

File tree

3 files changed

+165
-127
lines changed

3 files changed

+165
-127
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
steps:
2+
- task: PowerShell@2
3+
displayName: Install PowerShell SDK
4+
inputs:
5+
targetType: 'inline'
6+
pwsh: true
7+
script: |
8+
try{
9+
# Installing Beta module.
10+
Install-Module Microsoft.Graph.Beta -Repository PSGallery -Scope AllUsers -AcceptLicense -SkipPublisherCheck -Force -AllowClobber
11+
}catch{
12+
echo "Error when installing Beta"
13+
}
14+
try{
15+
# Installing V1 module.
16+
Install-Module Microsoft.Graph -Repository PSGallery -Scope AllUsers -AcceptLicense -SkipPublisherCheck -Force -AllowClobber
17+
}catch{
18+
echo "Error when installing V1"
19+
}

.azure-pipelines/weekly-examples-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
name: ${{ parameters.BuildAgent }}
3434
timeoutInMinutes: ${{ parameters.PipelineTimeout }}
3535
steps:
36-
36+
- template: ./common-templates/install-sdk.yml
3737
- task: PowerShell@2
3838
name: "ComputeBranch"
3939
displayName: "Compute weekly examples update branch name"

0 commit comments

Comments
 (0)