Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[v2] Examples Update #2828

Closed
wants to merge 1 commit into from
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
  •  
  •  
  •  
11 changes: 11 additions & 0 deletions src/Applications/beta/examples/Get-MgBetaApplicationDelta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaApplicationDelta

```
This example will### example

11 changes: 0 additions & 11 deletions src/Applications/beta/examples/Get-MgBetaApplicationOwner.md
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaApplicationOwner -ApplicationId $applicationId

```
This example shows how to use the Get-MgBetaApplicationOwner Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaApplicationTokenIssuancePolicy -ApplicationId $applicationId

```
This example shows how to use the Get-MgBetaApplicationTokenIssuancePolicy Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Beta.Applications

Get-MgBetaApplicationTokenLifetimePolicy -ApplicationId $applicationId

```
This example shows how to use the Get-MgBetaApplicationTokenLifetimePolicy Cmdlet.

11 changes: 11 additions & 0 deletions src/Applications/v1.0/examples/Get-MgApplicationDelta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgApplicationDelta

```
This example shows how to use the Get-MgApplicationDelta Cmdlet.

11 changes: 0 additions & 11 deletions src/Applications/v1.0/examples/Get-MgApplicationOwner.md
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgApplicationOwner -ApplicationId $applicationId

```
This example shows how to use the Get-MgApplicationOwner Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgApplicationTokenIssuancePolicy -ApplicationId $applicationId

```
This example shows how to use the Get-MgApplicationTokenIssuancePolicy Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgApplicationTokenLifetimePolicy -ApplicationId $applicationId

```
This example shows how to use the Get-MgApplicationTokenLifetimePolicy Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalClaimMappingPolicy -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgServicePrincipalClaimMappingPolicy Cmdlet.

11 changes: 11 additions & 0 deletions src/Applications/v1.0/examples/Get-MgServicePrincipalDelta.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalDelta

```
This example shows how to use the Get-MgServicePrincipalDelta Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

Get-MgServicePrincipalHomeRealmDiscoveryPolicy -ServicePrincipalId $servicePrincipalId

```
This example shows how to use the Get-MgServicePrincipalHomeRealmDiscoveryPolicy Cmdlet.

11 changes: 0 additions & 11 deletions src/Applications/v1.0/examples/Get-MgServicePrincipalOwner.md
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: List the owners of a service principal

```powershell
Get-MgServicePrincipalOwner -ServicePrincipalId '1c48f923-4fbb-4d37-b772-4d577eefec9e'

Id DeletedDateTime
-- ---------------
8a7c50d3-fcbd-4727-a889-8ab232dfea01
```

This command lists the owners of the specified service principal.
Original file line number Diff line number Diff line change
@@ -1,20 +0,0 @@
### Example 1: Code snippet

```powershell

Import-Module Microsoft.Graph.Applications

$params = @{
name = "jobGroup"
dataType = "String"
isMultiValued = $true
targetObjects = @(
"User"
)
}

New-MgApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params

```
This example shows how to use the New-MgApplicationExtensionProperty Cmdlet.

Original file line number Diff line number Diff line change
@@ -1,20 +0,0 @@
### Example 1: Code snippet

```powershell

Import-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"
audiences = @(
"api://AzureADTokenExchange"
)
}

New-MgApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params

```
This example shows how to use the New-MgApplicationFederatedIdentityCredential Cmdlet.

11 changes: 0 additions & 11 deletions src/Applications/v1.0/examples/New-MgApplicationOwnerByRef.md
Original file line number Diff line number Diff line change
@@ -1,11 +0,0 @@
### Example 1: Add an owner to an application

```powershell
$NewOwner = @{
"@odata.id"= "https://graph.microsoft.com/v1.0/directoryObjects/{075b32dd-edb7-47cf-89ef-f3f733683a3f}"
}

New-MgApplicationOwnerByRef -ApplicationId 'f6b30057-7095-4e2c-89f8-224149f591b7' -BodyParameter $NewOwner
```

In this example, the first command defines the value for the $NewOwner variable. The second command adds the new owner to the specified application.
151 changes: 0 additions & 151 deletions src/Bookings/beta/examples/New-MgBetaBookingBusinessAppointment.md
Original file line number Diff line number Diff line change
@@ -1,151 +0,0 @@
### Example 1: Using the New-MgBetaBookingBusinessAppointment Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Bookings
$params = @{
"@odata.type" = "#microsoft.graph.bookingAppointment"
CustomerEmailAddress = "jordanm@contoso.com"
CustomerLocation = @{
"@odata.type" = "#microsoft.graph.location"
Address = @{
"@odata.type" = "#microsoft.graph.physicalAddress"
City = "Buffalo"
CountryOrRegion = "USA"
PostalCode = "98052"
PostOfficeBox = $null
State = "NY"
Street = "123 First Avenue"
"Type@odata.type" = "#microsoft.graph.physicalAddressType"
Type = $null
}
Coordinates = $null
DisplayName = "Customer"
LocationEmailAddress = $null
"LocationType@odata.type" = "#microsoft.graph.locationType"
LocationType = $null
LocationUri = $null
UniqueId = $null
"UniqueIdType@odata.type" = "#microsoft.graph.locationUniqueIdType"
UniqueIdType = $null
}
CustomerName = "Jordan Miller"
CustomerNotes = "Please be on time."
CustomerPhone = "213-555-0199"
CustomerTimeZone = "America/Chicago"
SmsNotificationsEnabled = $true
End = @{
"@odata.type" = "#microsoft.graph.dateTimeTimeZone"
DateTime = "2018-05-01T12:30:00.0000000+00:00"
TimeZone = "UTC"
}
InvoiceAmount = 10
InvoiceDate = @{
"@odata.type" = "#microsoft.graph.dateTimeTimeZone"
DateTime = "2018-05-01T12:30:00.0000000+00:00"
TimeZone = "UTC"
}
InvoiceId = "1001"
"InvoiceStatus@odata.type" = "#microsoft.graph.bookingInvoiceStatus"
InvoiceStatus = "open"
InvoiceUrl = "theInvoiceUrl"
IsLocationOnline = $true
OptOutOfCustomerEmail = $false
AnonymousJoinWebUrl = $null
PostBuffer = "PT10M"
PreBuffer = "PT5M"
Price = 10
"PriceType@odata.type" = "#microsoft.graph.bookingPriceType"
PriceType = "fixedPrice"
"Reminders@odata.type" = "#Collection(microsoft.graph.bookingReminder)"
Reminders = @(
@{
"@odata.type" = "#microsoft.graph.bookingReminder"
Message = "This service is tomorrow"
Offset = "P1D"
"Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients"
Recipients = "allAttendees"
}
@{
"@odata.type" = "#microsoft.graph.bookingReminder"
Message = "Please be available to enjoy your lunch service."
Offset = "PT1H"
"Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients"
Recipients = "customer"
}
@{
"@odata.type" = "#microsoft.graph.bookingReminder"
Message = "Please check traffic for next cater."
Offset = "PT2H"
"Recipients@odata.type" = "#microsoft.graph.bookingReminderRecipients"
Recipients = "staff"
}
)
ServiceId = "57da6774-a087-4d69-b0e6-6fb82c339976"
ServiceLocation = @{
"@odata.type" = "#microsoft.graph.location"
Address = @{
"@odata.type" = "#microsoft.graph.physicalAddress"
City = "Buffalo"
CountryOrRegion = "USA"
PostalCode = "98052"
PostOfficeBox = $null
State = "NY"
Street = "123 First Avenue"
"Type@odata.type" = "#microsoft.graph.physicalAddressType"
Type = $null
}
Coordinates = $null
DisplayName = "Customer location"
LocationEmailAddress = $null
"LocationType@odata.type" = "#microsoft.graph.locationType"
LocationType = $null
LocationUri = $null
UniqueId = $null
"UniqueIdType@odata.type" = "#microsoft.graph.locationUniqueIdType"
UniqueIdType = $null
}
ServiceName = "Catered bento"
ServiceNotes = "Customer requires punctual service."
Start = @{
"@odata.type" = "#microsoft.graph.dateTimeTimeZone"
DateTime = "2018-05-01T12:00:00.0000000+00:00"
TimeZone = "UTC"
}
MaximumAttendeesCount = 5
FilledAttendeesCount = 1
Customers = @(
@{
"@odata.type" = "#microsoft.graph.bookingCustomerInformation"
CustomerId = "7ed53fa5-9ef2-4f2f-975b-27447440bc09"
Name = "Jordan Miller"
EmailAddress = "jordanm@contoso.com"
Phone = "213-555-0199"
Notes = $null
Location = @{
"@odata.type" = "#microsoft.graph.location"
DisplayName = "Customer"
LocationEmailAddress = $null
LocationUri = ""
LocationType = $null
UniqueId = $null
UniqueIdType = $null
Address = @{
"@odata.type" = "#microsoft.graph.physicalAddress"
Type = "home"
PostOfficeBox = ""
Street = ""
City = ""
State = ""
CountryOrRegion = ""
PostalCode = ""
}
}
TimeZone = "America/Chicago"
CustomQuestionAnswers = @(
)
}
)
}
New-MgBetaBookingBusinessAppointment -BookingBusinessId $bookingBusinessId -BodyParameter $params
```
This example shows how to use the New-MgBetaBookingBusinessAppointment Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
Original file line number Diff line number Diff line change
@@ -1,18 +0,0 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

### Example 2: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}

{{ Add output here }}
```

{{ Add description here }}

Loading
Loading