Skip to content

[v2] Examples Update #2705

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Apr 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 0 additions & 51 deletions .azure-pipelines/weekly-generation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@ parameters:
- name: BaseBranch
displayName: Base Branch
default: dev
- name: GenerationBranch
displayName: Generation branch
default: v2/generation
- name: SkipForceRefresh
displayName: Skip Force Refresh
default: false
Expand All @@ -40,7 +37,6 @@ parameters:
variables:
Branch: "WeeklyApiRefresh"
BaseBranch: ${{ parameters.BaseBranch }}
GenerationBranch: ${{ parameters.GenerationBranch }}
BuildAgent: ${{ parameters.BuildAgent }}
SkipForceRefresh: ${{ parameters.SkipForceRefresh }}
trigger: none
Expand Down Expand Up @@ -142,51 +138,4 @@ extends:
BaseBranch: $(BaseBranch)
TargetBranch: $(WeeklyBranch)
Title: "[v2] Weekly OpenApiDocs Refresh"
Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
- task: PowerShell@2
name: "ComputeGenerationBranch"
displayName: "Compute weekly generation branch name"
inputs:
targetType: inline
script: |
$branch = "{0}/{1}" -f "WeeklyGeneration", (Get-Date -Format yyyyMMddHHmm)
Write-Host "##vso[task.setvariable variable=WeeklyGenerationBranch;isOutput=true]$branch"
- task: Bash@3
displayName: "Create weekly generation branch"
inputs:
targetType: inline
script: |
git status
git branch $(ComputeGenerationBranch.WeeklyGenerationBranch)
git checkout $(ComputeGenerationBranch.WeeklyGenerationBranch)
git status
- task: Bash@3
displayName: Commit Generated SDK artifacts
enabled: true
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
inputs:
targetType: inline
script: |
git add .
git commit -m 'Adds generated module artifacts'
git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
git status
- task: Bash@3
displayName: Sync with generation branch
enabled: true
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
inputs:
targetType: inline
script: |
git merge $(GenerationBranch) -s ours
git push "https://$(GITHUB_TOKEN)@github.com/microsoftgraph/msgraph-sdk-powershell.git"
git status
- ${{ if eq(parameters.CreatePullRequest, true) }}:
- template: .azure-pipelines/common-templates/create-pr.yml@self
parameters:
BaseBranch: $(GenerationBranch)
TargetBranch: $(ComputeGenerationBranch.WeeklyGenerationBranch)
Title: "[v2] Weekly Generated Module Artifacts"
Body: "This pull request was automatically created by Azure Pipelines. **Important** Check for unexpected deletions or changes in this PR."
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,7 +0,0 @@
### Example 1: Using the Get-MgBetaApplicationDelta Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaApplicationDelta
```
This example shows how to use the Get-MgBetaApplicationDelta Cmdlet.
To learn about permissions for this resource, see the [Application permissions reference](/graph/permissions-reference#applicationreadall).
18 changes: 0 additions & 18 deletions src/Applications/beta/examples/Get-MgBetaApplicationLogo.md
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
### Example 1: Using the Get-MgBetaOnPremisePublishingProfileAgent Cmdlet
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaOnPremisePublishingProfileAgent -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ExpandProperty "agentGroups"

```
This example shows how to use the Get-MgBetaOnPremisePublishingProfileAgent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 2: Using the Get-MgBetaOnPremisePublishingProfileAgent Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaOnPremisePublishingProfileAgent -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -OnPremisesAgentId $onPremisesAgentId -ExpandProperty "agentGroups"
```
This example shows how to use the Get-MgBetaOnPremisePublishingProfileAgent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
### Example 1: Using the Get-MgBetaOnPremisePublishingProfileAgentGroup Cmdlet
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaOnPremisePublishingProfileAgentGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ExpandProperty "agents,publishedResources"

```
This example shows how to use the Get-MgBetaOnPremisePublishingProfileAgentGroup Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 2: Using the Get-MgBetaOnPremisePublishingProfileAgentGroup Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaOnPremisePublishingProfileAgentGroup -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -OnPremisesAgentGroupId $onPremisesAgentGroupId -ExpandProperty "publishedResources,agents"
```
This example shows how to use the Get-MgBetaOnPremisePublishingProfileAgentGroup Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@
### Example 1: Using the Get-MgBetaOnPremisePublishingProfileConnector Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaOnPremisePublishingProfileConnector -OnPremisesPublishingProfileId $onPremisesPublishingProfileId -ConnectorId $connectorId
```
This example shows how to use the Get-MgBetaOnPremisePublishingProfileConnector Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 2: Using the Get-MgBetaOnPremisePublishingProfileConnector Cmdlet
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaOnPremisePublishingProfileConnector -OnPremisesPublishingProfileId $onPremisesPublishingProfileId

```
This example shows how to use the Get-MgBetaOnPremisePublishingProfileConnector Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Loading