Skip to content

Commit 2c0ca49

Browse files
authored
Merge pull request #2106 from microsoftgraph/WeeklyExamplesUpdate/202306230302
[v1] Examples Update
2 parents 8d1fae9 + 2bd3ab4 commit 2c0ca49

File tree

2 files changed

+20
-28
lines changed

2 files changed

+20
-28
lines changed

src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0-beta/New-MgDomain.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Identity.DirectoryManagement
74

8-
{{ Add description here }}
5+
$params = @{
6+
id = "contoso.com"
7+
}
98

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 }}
9+
New-MgDomain -BodyParameter $params
10+
```
11+
This example shows how to use the New-MgDomain Cmdlet.
12+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13+

src/Identity.DirectoryManagement/Identity.DirectoryManagement/examples/v1.0/New-MgDomain.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,13 @@
1-
### Example 1: {{ Add title here }}
2-
```powershell
3-
PS C:\> {{ Add code here }}
1+
### Example 1: Code snippet
42

5-
{{ Add output here }}
6-
```
3+
```powershellImport-Module Microsoft.Graph.Identity.DirectoryManagement
74

8-
{{ Add description here }}
5+
$params = @{
6+
id = "contoso.com"
7+
}
98

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 }}
9+
New-MgDomain -BodyParameter $params
10+
```
11+
This example shows how to use the New-MgDomain Cmdlet.
12+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13+

0 commit comments

Comments
 (0)