Skip to content

Commit 4eedc9a

Browse files
committed
Corrected examples under sites module
1 parent 294fa05 commit 4eedc9a

File tree

234 files changed

+859
-2886
lines changed

Some content is hidden

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

234 files changed

+859
-2886
lines changed
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 & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
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 & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +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 }}
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-

src/Sites/beta/examples/Get-MgBetaSite.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,22 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Sites
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Sites
6+
7+
Get-MgBetaSite -Property "siteCollection,webUrl" -Filter "siteCollection/root ne null"
8+
9+
```
10+
This example shows how to use the Get-MgBetaSite Cmdlet.
11+
12+
### Example 2: Code snippet
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Beta.Sites
17+
18+
Get-MgBetaSite
19+
20+
```
21+
This example shows how to use the Get-MgBetaSite Cmdlet.
422

5-
Get-MgBetaSite -SiteId $siteId
6-
```
7-
This example shows how to use the Get-MgBetaSite Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Get-MgBetaSiteColumn Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Sites
6+
47
Get-MgBetaSiteColumn -SiteId $siteId
8+
59
```
610
This example shows how to use the Get-MgBetaSiteColumn Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+

src/Sites/beta/examples/Get-MgBetaSiteContentType.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Sites
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Sites
6+
7+
Get-MgBetaSiteContentType -SiteId $siteId
8+
9+
```
10+
This example shows how to use the Get-MgBetaSiteContentType Cmdlet.
411

5-
Get-MgBetaSiteContentType -SiteId $siteId -ContentTypeId $contentTypeId
6-
```
7-
This example shows how to use the Get-MgBetaSiteContentType Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-

src/Sites/beta/examples/Get-MgBetaSiteContentTypeColumn.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Sites
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Sites
6+
7+
Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId
8+
9+
```
10+
This example shows how to use the Get-MgBetaSiteContentTypeColumn Cmdlet.
411

5-
Get-MgBetaSiteContentTypeColumn -SiteId $siteId -ContentTypeId $contentTypeId -ColumnDefinitionId $columnDefinitionId
6-
```
7-
This example shows how to use the Get-MgBetaSiteContentTypeColumn Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Sites
3+
```powershell
44
5-
Get-MgBetaSiteList -SiteId $siteId -ListId $listId
6-
```
7-
This example shows how to use the Get-MgBetaSiteList Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
10-
### Example 2: Code snippet
5+
Import-Module Microsoft.Graph.Beta.Sites
116
12-
```powershellImport-Module Microsoft.Graph.Beta.Sites
7+
Get-MgBetaSiteList -SiteId $siteId
138
14-
Get-MgBetaSiteList -SiteId $siteId -ListId $listId
15-
```
16-
This example shows how to use the Get-MgBetaSiteList Cmdlet.
17-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
18-
19-
### Example 3: Code snippet
9+
```
10+
This example shows how to use the Get-MgBetaSiteList Cmdlet.
2011

21-
```powershellImport-Module Microsoft.Graph.Beta.Sites
22-
23-
Get-MgBetaSiteList -SiteId $siteId -ListId $listId -Property "name,lastModifiedDateTime" -ExpandProperty "columns(select=name,description),items)"
24-
```
25-
This example shows how to use the Get-MgBetaSiteList Cmdlet.
26-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
27-
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Get-MgBetaSiteListColumn Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Sites
6+
47
Get-MgBetaSiteListColumn -SiteId $siteId -ListId $listId
8+
59
```
610
This example shows how to use the Get-MgBetaSiteListColumn Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Get-MgBetaSiteListContentType Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Sites
6+
47
Get-MgBetaSiteListContentType -SiteId $siteId -ListId $listId
8+
59
```
610
This example shows how to use the Get-MgBetaSiteListContentType Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+

0 commit comments

Comments
 (0)