Skip to content

Commit

Permalink
Updating examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Microsoft Graph DevX Tooling authored and Microsoft Graph DevX Tooling committed Oct 6, 2023
1 parent b422ca0 commit 6b2562a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
12 changes: 6 additions & 6 deletions src/CloudCommunications/v1.0/examples/New-MgUserOnlineMeeting.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
### Example 1: Code snippet
### Example 1: Create an online meeting with user token

```powershell
Expand All @@ -14,9 +14,9 @@ $params = @{
New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params
```
This example shows how to use the New-MgUserOnlineMeeting Cmdlet.
This example will create an online meeting with user token

### Example 2: Code snippet
### Example 2: Create an online meeting that requires a passcode

```powershell
Expand All @@ -35,9 +35,9 @@ $params = @{
New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params
```
This example shows how to use the New-MgUserOnlineMeeting Cmdlet.
This example will create an online meeting that requires a passcode

### Example 3: Code snippet
### Example 3: Create an online meeting that doesn't require a passcode

```powershell
Expand All @@ -56,5 +56,5 @@ $params = @{
New-MgUserOnlineMeeting -UserId $userId -BodyParameter $params
```
This example shows how to use the New-MgUserOnlineMeeting Cmdlet.
This example will create an online meeting that doesn't require a passcode

Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Import-Module Microsoft.Graph.Beta.Identity.DirectoryManagement
Get-MgBetaOrganization
Get-MgBetaOrganization -OrganizationId $organizationId
```
This example shows how to use the Get-MgBetaOrganization Cmdlet.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,22 @@
### Example 1: Using the Get-MgBetaPolicyAppManagementPolicyApplyTo Cmdlet
### Example 1: Get applications and service principal objects applied to an app management policy

```powershell
Import-Module Microsoft.Graph.Beta.Identity.SignIns
Get-MgBetaPolicyAppManagementPolicyApplyTo -AppManagementPolicyId $appManagementPolicyId
```
This example shows how to use the Get-MgBetaPolicyAppManagementPolicyApplyTo Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 2: Using the Get-MgBetaPolicyAppManagementPolicyApplyTo Cmdlet
This example will get applications and service principal objects applied to an app management policy

### Example 2: Get specific properties of applications and service principal objects applied to an app management policy using $select query option

```powershell
Import-Module Microsoft.Graph.Beta.Identity.SignIns
Get-MgBetaPolicyAppManagementPolicyApplyTo -AppManagementPolicyId $appManagementPolicyId -Property "id,appId,displayName,createdDateTime"
```
This example shows how to use the Get-MgBetaPolicyAppManagementPolicyApplyTo Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
This example will get specific properties of applications and service principal objects applied to an app management policy using $select query option

0 comments on commit 6b2562a

Please sign in to comment.