Skip to content
Merged
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
@@ -1,14 +1,9 @@
### Example 1: Using the Get-MgBetaApplicationExtensionProperty Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId
```
This example shows how to use the Get-MgBetaApplicationExtensionProperty Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 2: Using the Get-MgBetaApplicationExtensionProperty Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId
```
This example shows how to use the Get-MgBetaApplicationExtensionProperty Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 1: Code snippet

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

Get-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -ExtensionPropertyId $extensionPropertyId
```
This example shows how to use the Get-MgBetaBetaApplicationExtensionProperty 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
@@ -1,14 +1,19 @@
### Example 1: Using the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -FederatedIdentityCredentialId $federatedIdentityCredentialId
```
This example shows how to use the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 2: Using the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId
```
This example shows how to use the Get-MgBetaApplicationFederatedIdentityCredential Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 1: Code snippet

```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
```
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
23 changes: 9 additions & 14 deletions src/Applications/beta/examples/Get-MgBetaApplicationTemplate.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
### Example 1: Using the Get-MgBetaApplicationTemplate Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaApplicationTemplate -ApplicationTemplateId $applicationTemplateId
```
This example shows how to use the Get-MgBetaApplicationTemplate Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 2: Using the Get-MgBetaApplicationTemplate Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaApplicationTemplate
```
This example shows how to use the Get-MgBetaApplicationTemplate Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 1: Code snippet

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

Get-MgBetaApplicationTemplate -ApplicationTemplateId $applicationTemplateId
```
This example shows how to use the Get-MgBetaBetaApplicationTemplate 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
@@ -1,6 +1,6 @@
### Example 1: {{ Add title here }}
```powershell
PS C:\> {{ Add code here }}
PS C:\> {{ Add code here }}

{{ Add output here }}
```
Expand All @@ -9,10 +9,9 @@ PS C:\> {{ Add code here }}

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

{{ Add output here }}
```

{{ Add description here }}

Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
### Example 1: Using the Get-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId
```
This example shows how to use the Get-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 1: Code snippet

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

Remove-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -AppRoleAssignmentId $appRoleAssignmentId
```
This example shows how to use the Get-MgBetaBetaServicePrincipalAppRoleAssignedTo 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
@@ -1,7 +1,9 @@
### Example 1: Using the Get-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
Get-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId
```
This example shows how to use the Get-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
### Example 1: Code snippet

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

Remove-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -DelegatedPermissionClassificationId $delegatedPermissionClassificationId
```
This example shows how to use the Get-MgBetaBetaServicePrincipalDelegatedPermissionClassification 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
@@ -1,10 +1,13 @@
### Example 1: Using the New-MgBetaApplicationAppManagementPolicyByRef Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
### Example 1: Code snippet

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

$params = @{
"@odata.id" = "https://graph.microsoft.com/beta/policies/appManagementPolicies/{id}"
"@odata.id" = "https://graph.microsoft.com/v1.0/policies/appManagementPolicies/{id}"
}
New-MgBetaApplicationAppManagementPolicyByRef -ApplicationId $applicationId -BodyParameter $params
```
This example shows how to use the New-MgBetaApplicationAppManagementPolicyByRef Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgBetaApplicationAppManagementPolicyByRef -ApplicationId $applicationId -BodyParameter $params
```
This example shows how to use the New-MgBetaBetaApplicationAppManagementPolicyByRef 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
@@ -1,14 +1,17 @@
### Example 1: Using the New-MgBetaApplicationExtensionProperty Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
### Example 1: Code snippet

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

$params = @{
Name = "jobGroup"
DataType = "String"
TargetObjects = @(
name = "jobGroup"
dataType = "String"
targetObjects = @(
"User"
)
}
New-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params
```
This example shows how to use the New-MgBetaApplicationExtensionProperty Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgBetaApplicationExtensionProperty -ApplicationId $applicationId -BodyParameter $params
```
This example shows how to use the New-MgBetaBetaApplicationExtensionProperty 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
@@ -1,15 +1,18 @@
### Example 1: Using the New-MgBetaApplicationFederatedIdentityCredential Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
### Example 1: Code snippet

```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"
Audiences = @(
name = "testing02"
issuer = "https://login.microsoftonline.com/3d1e2be9-a10a-4a0c-8380-7ce190f98ed9/v2.0"
subject = "a7d388c3-5e3f-4959-ac7d-786b3383006a"
audiences = @(
"api://AzureADTokenExchange"
)
}
New-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params
```
This example shows how to use the New-MgBetaApplicationFederatedIdentityCredential Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgBetaApplicationFederatedIdentityCredential -ApplicationId $applicationId -BodyParameter $params
```
This example shows how to use the New-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
@@ -1,10 +1,13 @@
### Example 1: Using the New-MgBetaApplicationTokenIssuancePolicyByRef Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
### Example 1: Code snippet

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

$params = @{
"@odata.id" = "https://graph.microsoft.com/beta/policies/tokenIssuancePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9"
"@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenIssuancePolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9"
}
New-MgBetaApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params
```
This example shows how to use the New-MgBetaApplicationTokenIssuancePolicyByRef Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgBetaApplicationTokenIssuancePolicyByRef -ApplicationId $applicationId -BodyParameter $params
```
This example shows how to use the New-MgBetaBetaApplicationTokenIssuancePolicyByRef 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
@@ -1,11 +1,13 @@
### Example 1: Code snippet
### Example 1: Code snippet

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

Get-MgBetaApplicationTokenLifetimePolicy -ApplicationId $applicationId
```
This example shows how to use the New-MgBetaApplicationTokenLifetimePolicyByRef Cmdlet.

To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).
$params = @{
"@odata.id" = "https://graph.microsoft.com/v1.0/policies/tokenLifetimePolicies/4d2f137b-e8a9-46da-a5c3-cc85b2b840a4"
}

New-MgBetaApplicationTokenLifetimePolicyByRef -ApplicationId $applicationId -BodyParameter $params
```
This example shows how to use the New-MgBetaBetaApplicationTokenLifetimePolicyByRef 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
@@ -1,12 +1,15 @@
### Example 1: Using the New-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
### Example 1: Code snippet

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

$params = @{
PrincipalId = "33ad69f9-da99-4bed-acd0-3f24235cb296"
ResourceId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e"
AppRoleId = "ef7437e6-4f94-4a0a-a110-a439eb2aa8f7"
principalId = "33ad69f9-da99-4bed-acd0-3f24235cb296"
resourceId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e"
appRoleId = "ef7437e6-4f94-4a0a-a110-a439eb2aa8f7"
}
New-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaServicePrincipalAppRoleAssignedTo Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgBetaServicePrincipalAppRoleAssignedTo -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaBetaServicePrincipalAppRoleAssignedTo 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
@@ -1,12 +1,15 @@
### Example 1: Using the New-MgBetaServicePrincipalAppRoleAssignment Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
### Example 1: Code snippet

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

$params = @{
PrincipalId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e"
ResourceId = "8fce32da-1246-437b-99cd-76d1d4677bd5"
AppRoleId = "498476ce-e0fe-48b0-b801-37ba7e2685c6"
principalId = "9028d19c-26a9-4809-8e3f-20ff73e2d75e"
resourceId = "8fce32da-1246-437b-99cd-76d1d4677bd5"
appRoleId = "498476ce-e0fe-48b0-b801-37ba7e2685c6"
}
New-MgBetaServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaServicePrincipalAppRoleAssignment Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgBetaServicePrincipalAppRoleAssignment -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaBetaServicePrincipalAppRoleAssignment 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
@@ -1,10 +1,13 @@
### Example 1: Using the New-MgBetaServicePrincipalClaimMappingPolicyByRef Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
### Example 1: Code snippet

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

$params = @{
"@odata.id" = "https://graph.microsoft.com/beta/policies/claimsMappingPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9"
"@odata.id" = "https://graph.microsoft.com/v1.0/policies/claimsMappingPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9"
}
New-MgBetaServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaServicePrincipalClaimMappingPolicyByRef Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgBetaServicePrincipalClaimMappingPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaBetaServicePrincipalClaimMappingPolicyByRef 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
@@ -1,12 +1,15 @@
### Example 1: Using the New-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
### Example 1: Code snippet

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

$params = @{
PermissionId = "e1fe6dd8-ba31-4d61-89e7-88639da4683d"
PermissionName = "User.Read"
Classification = "low"
permissionId = "e1fe6dd8-ba31-4d61-89e7-88639da4683d"
permissionName = "User.Read"
classification = "low"
}
New-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaServicePrincipalDelegatedPermissionClassification Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgBetaServicePrincipalDelegatedPermissionClassification -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaBetaServicePrincipalDelegatedPermissionClassification 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
@@ -1,10 +1,13 @@
### Example 1: Using the New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet
```powershell
Import-Module Microsoft.Graph.Beta.Applications
### Example 1: Code snippet

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

$params = @{
"@odata.id" = "https://graph.microsoft.com/beta/policies/homeRealmDiscoveryPolicies/6c6f154f-cb39-4ff9-bf5b-62d5ad585cde"
"@odata.id" = "https://graph.microsoft.com/v1.0/policies/homeRealmDiscoveryPolicies/cd3d9b57-0aee-4f25-8ee3-ac74ef5986a9"
}
New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

New-MgBetaServicePrincipalHomeRealmDiscoveryPolicyByRef -ServicePrincipalId $servicePrincipalId -BodyParameter $params
```
This example shows how to use the New-MgBetaBetaServicePrincipalHomeRealmDiscoveryPolicyByRef Cmdlet.
To learn about permissions for this resource, see the [permissions reference](/graph/permissions-reference).

Expand Down
Loading