Skip to content

Commit 1f7d15e

Browse files
author
TaraMeyer
authored
Merge pull request Azure#40 from Azure/Pwi70064tim
Pwi70064tim
2 parents 23548f6 + a3f4eb4 commit 1f7d15e

File tree

53 files changed

+841
-171
lines changed

Some content is hidden

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

53 files changed

+841
-171
lines changed

Azure AD Cmdlets/AzureAD/v2/Add-AzureADDeviceRegisteredUser.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,21 @@ The **Add-AzureADDeviceRegisteredUser** cmdlet adds a registered user for an Azu
2121

2222
## EXAMPLES
2323

24+
### Example 1: Add a user as a registered user
25+
```
26+
PS C:\> $User = Get-AzureADUser -Top 1
27+
PS C:\> $Device = Get-AzureADDevice -Top 1
28+
PS C:\> Add-AzureADDeviceRegisteredUser -ObjectId $Device.ObjectId -RefObjectId $User.ObjectId
29+
```
30+
31+
The first command gets a user by using the [Get-AzureADUser](./Get-AzureADUser.md) cmdlet, and then stores it in the $User variable.
32+
33+
The second command gets a device by using the [Get-AzureADDevice](./Get-AzureADDevice.md) cmdlet, and then stores it in the $Device variable.
34+
35+
The final command adds the user in $User as the registered user for the device in $Device.
36+
Both parameters use the **ObjectId** property of specified object.
37+
38+
2439
## PARAMETERS
2540

2641
### -ObjectId
@@ -60,6 +75,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
6075
6176
## RELATED LINKS
6277
78+
[Get-AzureADDevice](./Get-AzureADDevice.md)
79+
6380
[Get-AzureADDeviceRegisteredUser](./Get-AzureADDeviceRegisteredUser.md)
6481
82+
[Get-AzureADUser](./Get-AzureADUser.md)
83+
6584
[Remove-AzureADDeviceRegisteredUser](./Remove-AzureADDeviceRegisteredUser.md)

Azure AD Cmdlets/AzureAD/v2/Add-AzureADServicePrincipalOwner.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,19 @@ The **Add-AzureADServicePrincipalOwner** cmdlet adds an owner to a service princ
2222

2323
## EXAMPLES
2424

25+
### Example 1: Add a user as an owner to a service principal
26+
```
27+
PS C:\> $ServicePrincipalId = (Get-AzureADServicePrincipal -Top 1).ObjectId
28+
PS C:\> $OwnerId = (Get-AzureADUser -Top 1).ObjectId
29+
PS C:\> Add-AzureADServicePrincipalOwner -ObjectId $ServicePrincipalId -RefObjectId -$OwnerId
30+
```
31+
32+
The first command gets the object ID of a service principal by using the [Get-AzureADServicePrincipal](./Get-AzureADServicePrincipal.md) cmdlet, and then stores it in the $ServicePrincipalId variable.
33+
34+
The second command gets the object ID a user by using the [Get-AzureADUser](./Get-AzureADUser.md) cmdlet, and then stores it in the $OwnerId variable.
35+
36+
The final command adds the user specified by $OwnerId an owner to a service principal specified by $ServicePrincipalId.
37+
2538
## PARAMETERS
2639

2740
### -InformationAction
@@ -102,7 +115,10 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
102115
103116
## RELATED LINKS
104117
118+
[Get-AzureADServicePrincipal](./Get-AzureADServicePrincipal.md)
119+
105120
[Get-AzureADServicePrincipalOwner](./Get-AzureADServicePrincipalOwner.md)
106121
107-
[Remove-AzureADServicePrincipalOwner](./Remove-AzureADServicePrincipalOwner.md)
122+
[Get-AzureADUser](./Get-AzureADUser.md)
108123
124+
[Remove-AzureADServicePrincipalOwner](./Remove-AzureADServicePrincipalOwner.md)

Azure AD Cmdlets/AzureAD/v2/AzureActiveDirectory.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ A collection that contains the extension properties registered with the director
124124
### [Get-AzureADGroup](Get-AzureADGroup.md)
125125
Get a group by objectId
126126

127+
### [Get-AzureADExtensionProperty](/.Get-AzureADExtensionProperty.md)
128+
Gets extension properties registered with Azure AD.
129+
127130
### [Get-AzureADGroupAppRoleAssignment](Get-AzureADGroupAppRoleAssignment.md)
128131
Get group application role assignments.
129132

@@ -136,6 +139,9 @@ Get owners of a group.
136139
### [Get-AzureADMSGroup](Get-AzureADMSGroup.md)
137140
Retrieves a group from the directory
138141

142+
### [Get-AzureADMSGroup](./Get-AzureADMSGroup.md)
143+
Gets information about groups in Azure AD.
144+
139145
### [Get-AzureADOAuth2PermissionGrant](Get-AzureADOAuth2PermissionGrant.md)
140146
Get a list of all oAuth2PermissionGrants granted by users within the directory.
141147

@@ -261,6 +267,9 @@ Assign a group of users to an application role.
261267

262268
### [New-AzureADMSInvitation](New-AzureADMSInvitation.md)
263269

270+
### [New-AzureADMSGroup](./New-AzureADMSGroup)
271+
Creates an Azure AD group.
272+
264273
### [New-AzureADObjectSetting](New-AzureADObjectSetting.md)
265274
Creates a settings object in Azure Active Directory.
266275

@@ -346,6 +355,9 @@ Removes an owner from a group.
346355
### [Remove-AzureADMSGroup](Remove-AzureADMSGroup.md)
347356
This cmdlet removes a group from the directory
348357

358+
### [Remove-AzureADMSGroup](./Remove-AzureADMSGroup.md)
359+
Removes an Azure AD group.
360+
349361
### [Remove-AzureADOAuth2PermissionGrant](Remove-AzureADOAuth2PermissionGrant.md)
350362
Delete an oAuth2PermissionGrant.
351363

@@ -392,6 +404,12 @@ Invalidates all of the currently signed in user's refresh tokens issued to appli
392404
### [Revoke-AzureADUserAllRefreshToken](Revoke-AzureADUserAllRefreshToken.md)
393405
Invalidates all of the user's refresh tokens issued to applications (as well as session cookies in a user's browser), by resetting the refreshTokensValidFromDateTime user property to the current date-time
394406

407+
### [Revoke-AzureADSignedInUserAllRefreshToken](./Revoke-AzureADSignedInUserAllRefreshToken.md)
408+
Invalidates the refresh tokens issued to applications for the current user.
409+
410+
### [Revoke-AzureADUserAllRefreshToken](./Revoke-AzureADUserAllRefreshToken.md)
411+
Invalidates the refresh tokens issued to applications for a user.
412+
395413
### [Select-AzureADGroupIdsContactIsMemberOf](Select-AzureADGroupIdsContactIsMemberOf.md)
396414
From a list of groups Ids select those that the contact is a member of.
397415

@@ -431,6 +449,9 @@ Updates a specific group in Azure Active Directory
431449
### [Set-AzureADMSGroup](Set-AzureADMSGroup.md)
432450
Set a group's attributes
433451

452+
### [Set-AzureADMSGroup](./Set-AzureADMSGroup.md)
453+
Changes attribute values on an Azure AD group.
454+
434455
### [Set-AzureADObjectSetting](Set-AzureADObjectSetting.md)
435456
Updates settings in Azure Active Directory.
436457

Azure AD Cmdlets/AzureAD/v2/Disconnect-AzureAD.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ The **Disconnect-AzureAD** cmdlet disconnects the current session from an Azure
2222

2323
## EXAMPLES
2424

25+
### Example 1: Disconnect your session from a tenant
26+
```
27+
PS C:\> Disconnect-AzureAD
28+
```
29+
30+
This command disconnects your session from a tenant.
31+
2532
## PARAMETERS
2633

2734
### -InformationAction
@@ -105,4 +112,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
105112
## RELATED LINKS
106113
107114
[Connect-AzureAD](./Connect-AzureAD.md)
108-

Azure AD Cmdlets/AzureAD/v2/Enable-AzureADDirectoryRole.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,35 @@ The **Enable-AzureADDirectoryRole** cmdlet activates an existing directory role
2222

2323
## EXAMPLES
2424

25+
### Example 1: Enable a directory role
26+
```
27+
PS C:\> $InviterRole = Get-AzureADDirectoryRoleTemplate | Where-Object {$_.DisplayName -eq "Guest Inviter"}
28+
PS C:\> $InviterRole
29+
30+
ObjectId DisplayName Description
31+
-------- ----------- -----------
32+
95e79109-95c0-4d8e-aee3-d01accf2d47b Guest Inviter Guest Inviter has access to invite guest users.
33+
34+
PS C:\> $Role = New-Object Microsoft.Open.AzureAD.Model.DirectoryRole
35+
PS C:\> $Role.RoleTemplateId = $InviterRole.ObjectId
36+
PS C:\> Enable-AzureADDirectoryRole -DirectoryRole $Role
37+
38+
ObjectId DisplayName Description
39+
-------- ----------- -----------
40+
03618579-3c16-4765-9539-86d9163ee3d9 Guest Inviter Guest Inviter has access to invite guest users.
41+
```
42+
43+
The first command gets an inviter role that has the display name Guest Inviter by using the [Get-AzureADDirectoryRoleTemplate](./Get-AzureADDirectoryRoleTemplate.md) cmdlet.
44+
The command stores Guest Inviter in the $InviterRole variable.
45+
46+
The second command displays the contents of $InviterRole.
47+
48+
The third command creates a **DirectoryRole** object, and then stores it in the $Role variable.
49+
50+
The forth command modifies the **RoleTemplateId** property of $Role to be the role in $InviterRole.
51+
52+
The final command enables the directory role in $Role.
53+
2554
## PARAMETERS
2655

2756
### -DirectoryRole
@@ -89,4 +118,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
89118
90119
[Get-AzureADDirectoryRole](./Get-AzureADDirectoryRole.md)
91120
92-
121+
[Get-AzureADDirectoryRoleTemplate](./Get-AzureADDirectoryRoleTemplate.md)

Azure AD Cmdlets/AzureAD/v2/Get-AzureADContact.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,17 @@ The **Get-AzureADContact** cmdlet gets a contact from Azure Active Directory.
2929

3030
## EXAMPLES
3131

32+
### Example 1 Retrieve all contact objects in the directory
33+
```
34+
PS C:\> Get-AzureADContact
35+
36+
ObjectId Mail DisplayName
37+
-------- ---- -----------
38+
b052db07-e7ec-4c0e-b481-a5ba550b9ee7 [email protected] Contoso Contact
39+
```
40+
41+
This command retrieves all contact objects in the directory.
42+
3243
## PARAMETERS
3344

3445
### -Filter

Azure AD Cmdlets/AzureAD/v2/Get-AzureADContactDirectReport.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,16 @@ The **Get-AzureADContactDirectReport** cmdlet gets the direct reports for a cont
2222

2323
## EXAMPLES
2424

25+
### Example 1: Get the direct reports of a contact
26+
```
27+
PS C:\> $Contact = Get-AzureADContact -Top 1
28+
PS C:\> Get-AzureADContactDirectReport -ObjectId $Contact.ObjectId
29+
```
30+
31+
The first command gets a contact by using the [Get-AzureADContact](./Get-AzureADContact.md) cmdlet, and then stores it in the $Contact variable.
32+
33+
The second command gets the direct reports for $Contact.
34+
2535
## PARAMETERS
2636

2737
### -InformationAction
@@ -104,3 +114,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
104114
105115
## RELATED LINKS
106116
117+
[Get-AzureADContact](./Get-AzureADContact.md)

Azure AD Cmdlets/AzureAD/v2/Get-AzureADContactManager.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,17 @@ The **Get-AzureADContactManager** cmdlet gets the manager of a contact in Azure
2222

2323
## EXAMPLES
2424

25+
### Example 1: Get the manager of a contact
26+
```
27+
PS C:\> $Contact = Get-AzureADContact -Top 1
28+
PS C:\> Get-AzureADContactManager -ObjectId $Contact.ObjectId
29+
```
30+
31+
The first command gets a contact by using the [Get-AzureADContact](./Get-AzureADContact.md) cmdlet, and then stores it in the $Contact variable.
32+
33+
The second command gets the manager for $Contact.
34+
35+
2536
## PARAMETERS
2637

2738
### -InformationAction
@@ -88,8 +99,8 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
8899
## NOTES
89100
90101
## RELATED LINKS
102+
[Get-AzureADContact](./Get-AzureADContact.md)
91103
92104
[Remove-AzureADContactManager](./Remove-AzureADContactManager.md)
93-
[Set-AzureADContactManager](./Set-AzureADContactManager.md)
94-
95105
106+
[Set-AzureADContactManager](./Set-AzureADContactManager.md)

Azure AD Cmdlets/AzureAD/v2/Get-AzureADContactMembership.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ The **Get-AzureADContactMembership** cmdlet gets a contact membership in Azure A
2222

2323
## EXAMPLES
2424

25+
### Example 1: Get the memberships of a contact
26+
```
27+
PS C:\> $Contact = Get-AzureADContact -Top 1
28+
PS C:\> Get-AzureADContactMembership -ObjectId $Contact.ObjectId
29+
30+
ObjectId ObjectType
31+
-------- ----------
32+
0015df25-808e-4715-9c24-a6929c25c201 Group
33+
```
34+
35+
The first command gets a contact by using the [Get-AzureADContact](./Get-AzureADContact.md) cmdlet, and then stores it in the $Contact variable.
36+
37+
The second command gets the memberships for $Contact.
38+
2539
## PARAMETERS
2640

2741
### -InformationAction
@@ -104,3 +118,4 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
104118
105119
## RELATED LINKS
106120
121+
[Get-AzureADContact](./Get-AzureADContact.md)

Azure AD Cmdlets/AzureAD/v2/Get-AzureADContract.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ The **Get-AzureADContract** cmdlet gets a contract from Azure Active Directory.
2929

3030
## EXAMPLES
3131

32+
### Example 1: Get all contracts in the directory
33+
```
34+
Get-AzureADContract
35+
```
36+
37+
This command gets all contracts in the directory.
38+
3239
## PARAMETERS
3340

3441
### -Filter
@@ -125,4 +132,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
125132
## NOTES
126133
127134
## RELATED LINKS
128-

Azure AD Cmdlets/AzureAD/v2/Get-AzureADDeviceRegisteredOwner.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ The **Get-AzureADDeviceRegisteredOwner** cmdlet gets the registered owner of a d
2121

2222
## EXAMPLES
2323

24+
### Example 1: Retrieve the registered owner of a device
25+
```
26+
PS C:\> $DevId = (Get-AzureADDevice -Top 1).ObjectId
27+
PS C:\> Get-AzureADDeviceRegisteredOwner -ObjectId $DevId
28+
```
29+
30+
The first command gets the object ID of a device by using the [Get-AzureADDevice](./Get-AzureADDevice.md) cmdlet, and then stores it in the $DevId variable.
31+
32+
The second command gets the registered owner of the device in $DevId.
33+
2434
## PARAMETERS
2535

2636
### -ObjectId
@@ -62,5 +72,7 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
6272
## RELATED LINKS
6373
6474
[Add-AzureADDeviceRegisteredOwner](./Add-AzureADDeviceRegisteredOwner.md)
65-
[Remove-AzureADDeviceRegisteredOwner](./Remove-AzureADDeviceRegisteredOwner.md)
6675
76+
[Get-AzureADDevice](./Get-AzureADDevice.md)
77+
78+
[Remove-AzureADDeviceRegisteredOwner](./Remove-AzureADDeviceRegisteredOwner.md)

Azure AD Cmdlets/AzureAD/v2/Get-AzureADDeviceRegisteredUser.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,16 @@ The **Get-AzureADDeviceRegisteredUser** cmdlet gets a registered user for an Azu
2121

2222
## EXAMPLES
2323

24+
### Example 1: Retrieve the registered users of a device
25+
```
26+
PS C:\> $DevId = (Get-AzureADDevice -Top 1).ObjectId
27+
PS C:\> Get-AzureADDeviceRegisteredUser -ObjectId $DevId
28+
```
29+
30+
The first command gets the object ID of a device by using the [Get-AzureADDevice](./Get-AzureADDevice.md) cmdlet, and then stores it in the $DevId variable.
31+
32+
The second command gets the registered users of the device in $DevId.
33+
2434
## PARAMETERS
2535

2636
### -ObjectId

0 commit comments

Comments
 (0)