Skip to content

Commit 027051f

Browse files
microsoft-graph-devx-bot[bot]Microsoft Graph DevX ToolingCopilotramsessanchez
authored
[v2] Examples Update (#3660)
* fix: use x-access-token form for GitHub App token git push GitHub App installation tokens must authenticate as the password with username "x-access-token" (https://x-access-token:<token>@github.com/...). The bare https://<token>@github.com/... form only works for PATs, so once the PAT was removed from ADO the weekly pushes failed with "could not read Password ... terminal prompts disabled". Updates all five pipeline push URLs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: b1e4dbfd-ffcd-4a3e-bd35-1632b2912252 * Updating examples --------- Co-authored-by: Microsoft Graph DevX Tooling <GraphTooling@service.microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Ramses Sanchez-Hernandez <63934382+ramsessanchez@users.noreply.github.com>
1 parent 4810c5d commit 027051f

9 files changed

Lines changed: 68 additions & 30 deletions
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Applications
6+
7+
Get-MgBetaServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8+
9+
```
10+
This example shows how to use the Get-MgBetaServicePrincipalSynchronizationTemplate Cmdlet.
11+
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +0,0 @@
1-
### Example
2-
3-
```powershell
4-
5-
Import-Module Microsoft.Graph.Applications
6-
7-
Get-MgServicePrincipalSynchronizationTemplate -ServicePrincipalId $servicePrincipalId
8-
9-
```
10-
This example shows how to use the Get-MgServicePrincipalSynchronizationTemplate Cmdlet.
11-
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Bookings
6+
7+
Get-MgBetaVirtualEventTownhallRegistrationConfiguration -VirtualEventTownhallId $virtualEventTownhallId
8+
9+
```
10+
This example shows how to use the Get-MgBetaVirtualEventTownhallRegistrationConfiguration Cmdlet.
11+

src/Identity.Governance/beta/examples/Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,3 @@ Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement -AccessP
99
```
1010
This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet.
1111

12-
### Example 2: Code snippet
13-
14-
```powershell
15-
16-
Import-Module Microsoft.Graph.Beta.Identity.Governance
17-
18-
$params = @{
19-
subject = @{
20-
objectId = "5acd375c-8acb-45de-a958-fa0dd89259ad"
21-
}
22-
}
23-
24-
Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement -AccessPackageId $accessPackageId -BodyParameter $params
25-
26-
```
27-
This example shows how to use the Get-MgBetaEntitlementManagementAccessPackageApplicablePolicyRequirement Cmdlet.
28-
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Identity.SignIns
6+
7+
Get-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability
8+
9+
```
10+
This example shows how to use the Get-MgBetaPolicyCrossTenantAccessPolicyDefaultM365Capability Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Beta.Identity.SignIns
6+
7+
Get-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability -CrossTenantAccessPolicyConfigurationPartnerTenantId $crossTenantAccessPolicyConfigurationPartnerTenantId
8+
9+
```
10+
This example shows how to use the Get-MgBetaPolicyCrossTenantAccessPolicyPartnerM365Capability Cmdlet.
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
### Example 1: Code snippet
2+
3+
```powershell
4+
5+
Import-Module Microsoft.Graph.Identity.SignIns
6+
7+
Get-MgPolicyOwnerlessGroupPolicy
8+
9+
```
10+
This example shows how to use the Get-MgPolicyOwnerlessGroupPolicy Cmdlet.
11+
Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
### Example 1: Code snippet
1+
### Example 1: Get all alerts
22

33
```powershell
44
@@ -7,5 +7,16 @@ Import-Module Microsoft.Graph.Security
77
Get-MgSecurityAlertV2
88
99
```
10-
This example shows how to use the Get-MgSecurityAlertV2 Cmdlet.
10+
This example will get all alerts
11+
12+
### Example 2: Get all alerts from Microsoft Sentinel
13+
14+
```powershell
15+
16+
Import-Module Microsoft.Graph.Security
17+
18+
Get-MgSecurityAlertV2 -Filter "serviceSource eq 'microsoftSentinel'"
19+
20+
```
21+
This example will get all alerts from microsoft sentinel
1122

src/Teams/v1.0/examples/Get-MgChatTargetedMessageReplyDelta.md

Whitespace-only changes.

0 commit comments

Comments
 (0)