Skip to content

Commit 840206a

Browse files
authored
Merge pull request #2705 from microsoftgraph/WeeklyExamplesUpdate/202404260540
[v2] Examples Update
2 parents b15ddc3 + 68f84a0 commit 840206a

File tree

1,266 files changed

+2610
-18879
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,266 files changed

+2610
-18879
lines changed

.azure-pipelines/weekly-generation.yml

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ parameters:
1414
- name: BaseBranch
1515
displayName: Base Branch
1616
default: dev
17-
- name: GenerationBranch
18-
displayName: Generation branch
19-
default: v2/generation
2017
- name: SkipForceRefresh
2118
displayName: Skip Force Refresh
2219
default: false
@@ -40,7 +37,6 @@ parameters:
4037
variables:
4138
Branch: "WeeklyApiRefresh"
4239
BaseBranch: ${{ parameters.BaseBranch }}
43-
GenerationBranch: ${{ parameters.GenerationBranch }}
4440
BuildAgent: ${{ parameters.BuildAgent }}
4541
SkipForceRefresh: ${{ parameters.SkipForceRefresh }}
4642
trigger: none
@@ -142,51 +138,4 @@ extends:
142138
BaseBranch: $(BaseBranch)
143139
TargetBranch: $(WeeklyBranch)
144140
Title: "[v2] Weekly OpenApiDocs Refresh"
145-
Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
146-
- task: PowerShell@2
147-
name: "ComputeGenerationBranch"
148-
displayName: "Compute weekly generation branch name"
149-
inputs:
150-
targetType: inline
151-
script: |
152-
$branch = "{0}/{1}" -f "WeeklyGeneration", (Get-Date -Format yyyyMMddHHmm)
153-
Write-Host "##vso[task.setvariable variable=WeeklyGenerationBranch;isOutput=true]$branch"
154-
- task: Bash@3
155-
displayName: "Create weekly generation branch"
156-
inputs:
157-
targetType: inline
158-
script: |
159-
git status
160-
git branch $(ComputeGenerationBranch.WeeklyGenerationBranch)
161-
git checkout $(ComputeGenerationBranch.WeeklyGenerationBranch)
162-
git status
163-
- task: Bash@3
164-
displayName: Commit Generated SDK artifacts
165-
enabled: true
166-
env:
167-
GITHUB_TOKEN: $(GITHUB_TOKEN)
168-
inputs:
169-
targetType: inline
170-
script: |
171-
git add .
172-
git commit -m 'Adds generated module artifacts'
173-
git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
174-
git status
175-
- task: Bash@3
176-
displayName: Sync with generation branch
177-
enabled: true
178-
env:
179-
GITHUB_TOKEN: $(GITHUB_TOKEN)
180-
inputs:
181-
targetType: inline
182-
script: |
183-
git merge $(GenerationBranch) -s ours
184-
git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
185-
git status
186-
- ${{ if eq(parameters.CreatePullRequest, true) }}:
187-
- template: .azure-pipelines/common-templates/create-pr.yml@self
188-
parameters:
189-
BaseBranch: $(GenerationBranch)
190-
TargetBranch: $(ComputeGenerationBranch.WeeklyGenerationBranch)
191-
Title: "[v2] Weekly Generated Module Artifacts"
192141
Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +0,0 @@
1-
### Example 1: Using the Get-MgBetaApplicationDelta Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
4-
Get-MgBetaApplicationDelta
5-
```
6-
This example shows how to use the Get-MgBetaApplicationDelta Cmdlet.
7-
To learn about permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
### Example 1: Using the Get-MgBetaOnPremisePublishingProfileAgent Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Applications
6+
47
Get-MgBetaOnPremisePublishingProfileAgent -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ExpandProperty "agentGroups"
8+
59
```
610
This example shows how to use the Get-MgBetaOnPremisePublishingProfileAgent Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8-
### Example 2: Using the Get-MgBetaOnPremisePublishingProfileAgent Cmdlet
9-
```powershell
10-
Import-Module Microsoft.Graph.Beta.Applications
11-
Get-MgBetaOnPremisePublishingProfileAgent -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -OnPremisesAgentId $onPremisesAgentId -ExpandProperty "agentGroups"
12-
```
13-
This example shows how to use the Get-MgBetaOnPremisePublishingProfileAgent Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
### Example 1: Using the Get-MgBetaOnPremisePublishingProfileAgentGroup Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Applications
6+
47
Get-MgBetaOnPremisePublishingProfileAgentGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ExpandProperty "agents,publishedResources"
8+
59
```
610
This example shows how to use the Get-MgBetaOnPremisePublishingProfileAgentGroup Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8-
### Example 2: Using the Get-MgBetaOnPremisePublishingProfileAgentGroup Cmdlet
9-
```powershell
10-
Import-Module Microsoft.Graph.Beta.Applications
11-
Get-MgBetaOnPremisePublishingProfileAgentGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -OnPremisesAgentGroupId $onPremisesAgentGroupId -ExpandProperty "publishedResources,agents"
12-
```
13-
This example shows how to use the Get-MgBetaOnPremisePublishingProfileAgentGroup Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Original file line numberDiff line numberDiff line change
@@ -1,18 +0,0 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
4-
5-
{{ Add output here }}
6-
```
7-
8-
{{ Add description here }}
9-
10-
### Example 2: {{ Add title here }}
11-
```powershell
12-
PS C:\> {{ Add code here }}
13-
14-
{{ Add output here }}
15-
```
16-
17-
{{ Add description here }}
18-
Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1-
### Example 1: Using the Get-MgBetaOnPremisePublishingProfileConnector Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Applications
4-
Get-MgBetaOnPremisePublishingProfileConnector -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorId $connectorId
5-
```
6-
This example shows how to use the Get-MgBetaOnPremisePublishingProfileConnector Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8-
### Example 2: Using the Get-MgBetaOnPremisePublishingProfileConnector Cmdlet
1+
### Example 1: Code snippet
2+
93
```powershell
4+
105
Import-Module Microsoft.Graph.Beta.Applications
6+
117
Get-MgBetaOnPremisePublishingProfileConnector -OnPremisesPublishingProfileId $onPremisesPublishingProfileId
8+
129
```
1310
This example shows how to use the Get-MgBetaOnPremisePublishingProfileConnector Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+

0 commit comments

Comments
 (0)