Skip to content

Commit 294fa05

Browse files
committed
Corrected examples in the Identity.DirectoryManagement module
1 parent f9945f6 commit 294fa05

File tree

169 files changed

+617
-2040
lines changed

Some content is hidden

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

169 files changed

+617
-2040
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 & 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-
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 & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
1-
### Example 1: Code snippet
2-
3-
```powershellImport-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
4-
5-
Remove-MgBetaDirectoryFederationConfiguration -IdentityProviderBaseId $identityProviderBaseId
6-
```
7-
This example shows how to use the Get-MgBetaBetaDirectoryFederationConfiguration Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-

src/Identity.DirectoryManagement/beta/examples/Get-MgBetaOrganization.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
66
7-
Get-MgBetaOrganization -OrganizationId $organizationId
7+
Get-MgBetaOrganization
88
99
```
1010
This example shows how to use the Get-MgBetaOrganization Cmdlet.
Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +0,0 @@
1-
### Example 1: Using the Get-MgBetaOrganizationSettingProfileCardProperty Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
4-
Get-MgBetaOrganizationSettingProfileCardProperty -OrganizationId $organizationId
5-
```
6-
This example shows how to use the Get-MgBetaOrganizationSettingProfileCardProperty Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
8-
### Example 2: Using the Get-MgBetaOrganizationSettingProfileCardProperty Cmdlet
9-
```powershell
10-
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
11-
Get-MgBetaOrganizationSettingProfileCardProperty -OrganizationId $organizationId -ProfileCardPropertyId $profileCardPropertyId
12-
```
13-
This example shows how to use the Get-MgBetaOrganizationSettingProfileCardProperty Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
1-
### Example 1: Using the Initialize-MgBetaOrganizationService Cmdlet
2-
```powershell
3-
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
4-
$params = @{
5-
SkuId = "6fd2c87f-b296-42f0-b197-1e91e994b900"
6-
ServicePlanId = "a23b959c-7ce8-4e57-9140-b90eb88a9e97"
7-
}
8-
Initialize-MgBetaOrganizationService -OrganizationId $organizationId -BodyParameter $params
9-
```
10-
This example shows how to use the Initialize-MgBetaOrganizationService Cmdlet.
11-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
### Example 1: Using the Invoke-MgBetaForceDomainDelete Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
6+
47
$params = @{
5-
DisableUserAccounts = $true
8+
disableUserAccounts = $true
69
}
10+
711
Invoke-MgBetaForceDomainDelete -DomainId $domainId -BodyParameter $params
12+
813
```
914
This example shows how to use the Invoke-MgBetaForceDomainDelete Cmdlet.
10-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
15+
Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
1-
### Example 1: Using the Invoke-MgBetaPromoteDomain Cmdlet
1+
### Example 1: Code snippet
2+
23
```powershell
4+
35
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
6+
47
Invoke-MgBetaPromoteDomain -DomainId $domainId
8+
59
```
610
This example shows how to use the Invoke-MgBetaPromoteDomain Cmdlet.
7-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
11+
Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +0,0 @@
1-
### Example 1: Code snippet
2-
3-
```powershellImport-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
4-
5-
Get-MgBetaContact
6-
```
7-
This example shows how to use the New-MgBetaBetaContact Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-
10-
### Example 2: Code snippet
11-
12-
```powershellImport-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
13-
14-
Get-MgBetaContact -Filter "startswith(displayName,'A')" -CountVariable CountVar -Top 1 -Sort "displayName" -ConsistencyLevel eventual
15-
```
16-
This example shows how to use the New-MgBetaBetaContact Cmdlet.
17-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
18-
19-
### Example 3: Code snippet
20-
21-
```powershellImport-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
22-
23-
Get-MgBetaContact -Search '"displayName:wa"' -CountVariable CountVar -ConsistencyLevel eventual
24-
```
25-
This example shows how to use the New-MgBetaBetaContact Cmdlet.
26-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
27-
Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +0,0 @@
1-
### Example 1: Code snippet
2-
3-
```powershellImport-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
4-
5-
Get-MgBetaContract
6-
```
7-
This example shows how to use the New-MgBetaBetaContract Cmdlet.
8-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
9-

src/Identity.DirectoryManagement/beta/examples/New-MgBetaDevice.md

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

3-
```powershellImport-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
46
57
$params = @{
68
accountEnabled = $true
@@ -17,8 +19,8 @@ $params = @{
1719
deviceVersion = 99
1820
}
1921
20-
New-MgBetaDevice -BodyParameter $params
21-
```
22-
This example shows how to use the New-MgBetaDevice Cmdlet.
23-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
24-
22+
New-MgBetaDevice -BodyParameter $params
23+
24+
```
25+
This example shows how to use the New-MgBetaDevice Cmdlet.
26+
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
46
57
$params = @{
68
"@odata.id" = "https://graph.microsoft.com/beta/directoryObjects/{id}"
79
}
810
9-
New-MgBetaDeviceRegisteredOwnerByRef -DeviceId $deviceId -BodyParameter $params
10-
```
11-
This example shows how to use the New-MgBetaDeviceRegisteredOwnerByRef Cmdlet.
12-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13-
11+
New-MgBetaDeviceRegisteredOwnerByRef -DeviceId $deviceId -BodyParameter $params
12+
13+
```
14+
This example shows how to use the New-MgBetaDeviceRegisteredOwnerByRef Cmdlet.
15+
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
3+
```powershell
4+
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
45
56
$params = @{
67
displayName = "Seattle District Technical Schools"
78
description = "Seattle district technical schools administration"
89
visibility = "HiddenMembership"
910
}
1011
11-
New-MgBetaDirectoryAdministrativeUnit -BodyParameter $params
12-
```
13-
This example shows how to use the New-MgBetaDirectoryAdministrativeUnit Cmdlet.
14-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
15-
12+
New-MgBetaDirectoryAdministrativeUnit -BodyParameter $params
13+
```
14+
This example shows how to use the New-MgBetaDirectoryAdministrativeUnit Cmdlet.
15+
16+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
17+
Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
### Example 1: Code snippet
1+
### Example 1: Code snippet
22

3-
```powershellImport-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
3+
```powershell
4+
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
45
56
$params = @{
67
"@odata.id" = "https://graph.microsoft.com/v1.0/groups/{id}"
78
}
89
9-
New-MgBetaDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -BodyParameter $params
10-
```
11-
This example shows how to use the New-MgBetaDirectoryAdministrativeUnitMemberByRef Cmdlet.
12-
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
13-
10+
New-MgBetaDirectoryAdministrativeUnitMemberByRef -AdministrativeUnitId $administrativeUnitId -BodyParameter $params
11+
```
12+
This example shows how to use the New-MgBetaDirectoryAdministrativeUnitMemberByRef Cmdlet.
13+
14+
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
15+

0 commit comments

Comments
 (0)