Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@

```powershellImport-Module Microsoft.Graph.Beta.Applications

$params = @{
name = "testing02"
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
description = "Updated description"
audiences = @(
"api://AzureADTokenExchange"
)
}

Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params
Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
```
This example shows how to use the Get-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@

```powershellImport-Module Microsoft.Graph.Beta.Applications

$params = @{
name = "testing02"
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
description = "Updated description"
audiences = @(
"api://AzureADTokenExchange"
)
}

Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params
Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cmdlet mismatch - Remove-MgBetaApplicationFederatedIdentityCredential.md vs Get-MgBetaApplicationFederatedIdentityCredential

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for noticing this issue. I am currently reviewing the logic

```
This example shows how to use the Remove-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@

```powershellImport-Module Microsoft.Graph.Beta.Applications

$params = @{
name = "testing02"
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
description = "Updated description"
audiences = @(
"api://AzureADTokenExchange"
)
}

Update-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params
Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
```
This example shows how to use the Update-MgBetaBetaApplicationFederatedIdentityCredential Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@

```powershellImport-Module Microsoft.Graph.Applications

$params = @{
name = "testing02"
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
description = "Updated description"
audiences = @(
"api://AzureADTokenExchange"
)
}

Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params
Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
```
This example shows how to use the Get-MgApplicationFederatedIdentityCredential Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@

```powershellImport-Module Microsoft.Graph.Applications

$params = @{
name = "testing02"
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
description = "Updated description"
audiences = @(
"api://AzureADTokenExchange"
)
}

Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params
Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
```
This example shows how to use the Remove-MgApplicationFederatedIdentityCredential Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@

```powershellImport-Module Microsoft.Graph.Applications

$params = @{
name = "testing02"
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
description = "Updated description"
audiences = @(
"api://AzureADTokenExchange"
)
}

Update-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId -BodyParameter $params
Get-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
```
This example shows how to use the Update-MgApplicationFederatedIdentityCredential Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
6 changes: 1 addition & 5 deletions src/Calendar/beta/examples/Get-MgBetaUserCalendarGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

```powershellImport-Module Microsoft.Graph.Beta.Calendar

$params = @{
name = "name-value"
}

# A UPN can also be used as -UserId.
Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params
Get-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId
```
This example shows how to use the Get-MgBetaBetaUserCalendarGroup Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

```powershellImport-Module Microsoft.Graph.Beta.Calendar

$params = @{
role = "write"
}

Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params
Get-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId
```
This example shows how to use the Get-MgBetaBetaUserCalendarPermission Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
28 changes: 10 additions & 18 deletions src/Calendar/beta/examples/Get-MgBetaUserEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@

```powershellImport-Module Microsoft.Graph.Beta.Calendar

$params = @{
originalStartTimeZone = "originalStartTimeZone-value"
originalEndTimeZone = "originalEndTimeZone-value"
responseStatus = @{
response = ""
time = [System.DateTime]::Parse("datetime-value")
}
recurrence = $null
reminderMinutesBeforeStart = 99
isOnlineMeeting = $true
onlineMeetingProvider = "teamsForBusiness"
isReminderOn = $true
hideAttendees = $false
categories = @(
"Red category"
)
}
# A UPN can also be used as -UserId.
Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees"
```
This example shows how to use the Get-MgBetaBetaUserEvent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

### Example 2: Code snippet

```powershellImport-Module Microsoft.Graph.Beta.Calendar

# A UPN can also be used as -UserId.
Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params
Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations"
```
This example shows how to use the Get-MgBetaBetaUserEvent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

```powershellImport-Module Microsoft.Graph.Beta.Calendar

$params = @{
name = "name-value"
}

# A UPN can also be used as -UserId.
Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params
Get-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId
```
This example shows how to use the Remove-MgBetaBetaUserCalendarGroup Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

```powershellImport-Module Microsoft.Graph.Beta.Calendar

$params = @{
role = "write"
}

Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params
Get-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId
```
This example shows how to use the Remove-MgBetaBetaUserCalendarPermission Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
28 changes: 10 additions & 18 deletions src/Calendar/beta/examples/Remove-MgBetaUserEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@

```powershellImport-Module Microsoft.Graph.Beta.Calendar

$params = @{
originalStartTimeZone = "originalStartTimeZone-value"
originalEndTimeZone = "originalEndTimeZone-value"
responseStatus = @{
response = ""
time = [System.DateTime]::Parse("datetime-value")
}
recurrence = $null
reminderMinutesBeforeStart = 99
isOnlineMeeting = $true
onlineMeetingProvider = "teamsForBusiness"
isReminderOn = $true
hideAttendees = $false
categories = @(
"Red category"
)
}
# A UPN can also be used as -UserId.
Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees"
```
This example shows how to use the Remove-MgBetaBetaUserEvent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

### Example 2: Code snippet

```powershellImport-Module Microsoft.Graph.Beta.Calendar

# A UPN can also be used as -UserId.
Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params
Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations"
```
This example shows how to use the Remove-MgBetaBetaUserEvent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

```powershellImport-Module Microsoft.Graph.Beta.Calendar

$params = @{
name = "name-value"
}

# A UPN can also be used as -UserId.
Update-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params
Get-MgBetaUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId
```
This example shows how to use the Update-MgBetaBetaUserCalendarGroup Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

```powershellImport-Module Microsoft.Graph.Beta.Calendar

$params = @{
role = "write"
}

Update-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params
Get-MgBetaUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId
```
This example shows how to use the Update-MgBetaBetaUserCalendarPermission Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
28 changes: 10 additions & 18 deletions src/Calendar/beta/examples/Update-MgBetaUserEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@

```powershellImport-Module Microsoft.Graph.Beta.Calendar

$params = @{
originalStartTimeZone = "originalStartTimeZone-value"
originalEndTimeZone = "originalEndTimeZone-value"
responseStatus = @{
response = ""
time = [System.DateTime]::Parse("datetime-value")
}
recurrence = $null
reminderMinutesBeforeStart = 99
isOnlineMeeting = $true
onlineMeetingProvider = "teamsForBusiness"
isReminderOn = $true
hideAttendees = $false
categories = @(
"Red category"
)
}
# A UPN can also be used as -UserId.
Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees"
```
This example shows how to use the Update-MgBetaBetaUserEvent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

### Example 2: Code snippet

```powershellImport-Module Microsoft.Graph.Beta.Calendar

# A UPN can also be used as -UserId.
Update-MgBetaUserEvent -UserId $userId -EventId $eventId -BodyParameter $params
Get-MgBetaUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations"
```
This example shows how to use the Update-MgBetaBetaUserEvent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
6 changes: 1 addition & 5 deletions src/Calendar/v1.0/examples/Get-MgUserCalendarGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

```powershellImport-Module Microsoft.Graph.Calendar

$params = @{
name = "name-value"
}

# A UPN can also be used as -UserId.
Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params
Get-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId
```
This example shows how to use the Get-MgUserCalendarGroup Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

```powershellImport-Module Microsoft.Graph.Calendar

$params = @{
role = "write"
}

Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params
Get-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId
```
This example shows how to use the Get-MgUserCalendarPermission Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
28 changes: 10 additions & 18 deletions src/Calendar/v1.0/examples/Get-MgUserEvent.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,18 @@

```powershellImport-Module Microsoft.Graph.Calendar

$params = @{
originalStartTimeZone = "originalStartTimeZone-value"
originalEndTimeZone = "originalEndTimeZone-value"
responseStatus = @{
response = ""
time = [System.DateTime]::Parse("datetime-value")
}
recurrence = $null
reminderMinutesBeforeStart = 99
isOnlineMeeting = $true
onlineMeetingProvider = "teamsForBusiness"
isReminderOn = $true
hideAttendees = $false
categories = @(
"Red category"
)
}
# A UPN can also be used as -UserId.
Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,hideAttendees"
```
This example shows how to use the Get-MgUserEvent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

### Example 2: Code snippet

```powershellImport-Module Microsoft.Graph.Calendar

# A UPN can also be used as -UserId.
Update-MgUserEvent -UserId $userId -EventId $eventId -BodyParameter $params
Get-MgUserEvent -UserId $userId -EventId $eventId -Property "subject,body,bodyPreview,organizer,attendees,start,end,location,locations"
```
This example shows how to use the Get-MgUserEvent Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
6 changes: 1 addition & 5 deletions src/Calendar/v1.0/examples/Remove-MgUserCalendarGroup.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,8 @@

```powershellImport-Module Microsoft.Graph.Calendar

$params = @{
name = "name-value"
}

# A UPN can also be used as -UserId.
Update-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId -BodyParameter $params
Get-MgUserCalendarGroup -UserId $userId -CalendarGroupId $calendarGroupId
```
This example shows how to use the Remove-MgUserCalendarGroup Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,7 @@

```powershellImport-Module Microsoft.Graph.Calendar

$params = @{
role = "write"
}

Update-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId -BodyParameter $params
Get-MgUserCalendarPermission -UserId $userId -CalendarPermissionId $calendarPermissionId
```
This example shows how to use the Remove-MgUserCalendarPermission Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Expand Down
Loading