Skip to content

Commit b339b37

Browse files
authored
Merge pull request #3282 from microsoftgraph/WeeklyExamplesUpdate/202504180311
[v2] Examples Update
2 parents eb6bc96 + f3a98eb commit b339b37

File tree

157 files changed

+390
-803
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

157 files changed

+390
-803
lines changed
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+
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+

src/BusinessScenario/beta/examples/Update-MgBetaSolutionBusinessScenarioPlannerTaskConfiguration.md

+31-89
Original file line numberDiff line numberDiff line change
@@ -5,111 +5,53 @@
55
Import-Module Microsoft.Graph.Beta.BusinessScenario
66
77
$params = @{
8-
"@odata.type" = "#microsoft.graph.plannerTaskConfiguration"
98
editPolicy = @{
109
rules = @(
1110
@{
12-
defaultRule = "block"
13-
role = @{
11+
userType = @{
1412
"@odata.type" = "#microsoft.graph.plannerRelationshipBasedUserType"
15-
roleKind = "relationship"
13+
selectionKind = "relationship"
1614
role = "defaultRules"
1715
}
16+
defaultRule = "block"
1817
propertyRule = @{
19-
percentComplete = @(
20-
"allow"
21-
)
22-
ruleKind = "taskRule"
23-
assignments = @{
18+
ruleKind = "taskRule"
19+
references = @{
20+
defaultRules = @(
21+
"allow"
22+
)
23+
overrides = @(
24+
)
25+
}
26+
checkLists = @{
2427
defaultRules = @(
25-
"addSelf"
28+
"allow"
2629
)
2730
overrides = @(
2831
)
2932
}
33+
assignments = @{
34+
defaultRules = @(
35+
"allow"
36+
)
37+
overrides = @(
38+
@{
39+
name = "userCreated"
40+
rules = @(
41+
"allow"
42+
)
43+
}
44+
@{
45+
name = "applicationCreated"
46+
rules = @(
47+
"allow"
48+
)
3049
}
31-
}
32-
@{
33-
defaultRule = "block"
34-
role = @{
35-
"@odata.type" = "#microsoft.graph.plannerRelationshipBasedUserType"
36-
roleKind = "relationship"
37-
role = "taskAssignees"
38-
}
39-
propertyRule = @{
40-
startDate = @(
41-
"allow"
42-
)
43-
dueDate = @(
44-
"allow"
4550
)
46-
percentComplete = @(
47-
"allow"
48-
)
49-
order = @(
50-
"allow"
51-
)
52-
ruleKind = "taskRule"
53-
references = @{
54-
defaultRules = @(
55-
"allow"
56-
)
57-
overrides = @(
58-
@{
59-
name = "userCreated"
60-
rules = @(
61-
"allow"
62-
)
63-
}
64-
@{
65-
name = "applicationCreated"
66-
rules = @(
67-
"block"
68-
)
69-
}
70-
)
71-
}
72-
checkLists = @{
73-
defaultRules = @(
74-
"allow"
75-
)
76-
overrides = @(
77-
@{
78-
name = "userCreated"
79-
rules = @(
80-
"allow"
81-
)
82-
}
83-
@{
84-
name = "applicationCreated"
85-
rules = @(
86-
"check"
87-
)
88-
}
89-
)
90-
}
91-
assignments = @{
92-
defaultRules = @(
93-
"block"
94-
)
95-
overrides = @(
96-
@{
97-
name = "userCreated"
98-
rules = @(
99-
"removeSelf"
100-
)
101-
}
102-
@{
103-
name = "applicationCreated"
104-
rules = @(
105-
"check"
106-
)
107-
}
108-
)
10951
}
11052
appliedCategories = @{
111-
defaultRules = @(
112-
"allow"
53+
defaultRules = @(
54+
"allow"
11355
)
11456
overrides = @(
11557
)

src/DeviceManagement.Administration/v1.0/examples/New-MgDeviceManagementRoleDefinition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Import-Module Microsoft.Graph.DeviceManagement.Administration
66
77
$params = @{
8-
"@odata.type" = "#microsoft.graph.roleDefinition"
8+
"@odata.type" = "#microsoft.graph.deviceAndAppManagementRoleDefinition"
99
displayName = "Display Name value"
1010
description = "Description value"
1111
rolePermissions = @(

src/DeviceManagement.Administration/v1.0/examples/Update-MgDeviceManagementVirtualEndpointProvisioningPolicy.md

+7
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,13 @@ $params = @{
88
"@odata.type" = "#microsoft.graph.cloudPcProvisioningPolicy"
99
displayName = "HR provisioning policy"
1010
description = "Provisioning policy for India HR employees"
11+
microsoftManagedDesktop = @{
12+
managedType = "starterManaged"
13+
profile = $null
14+
}
15+
autopatch = @{
16+
autopatchGroupId = "91197a0b-3a74-408d-ba88-bce3fdc4e5eb"
17+
}
1118
}
1219
1320
Update-MgDeviceManagementVirtualEndpointProvisioningPolicy -CloudPcProvisioningPolicyId $cloudPcProvisioningPolicyId -BodyParameter $params

src/DeviceManagement/beta/examples/Invoke-MgBetaBulkDeviceManagementComanagedDeviceSetCloudPcReviewStatus.md

Whitespace-only changes.

src/DeviceManagement/beta/examples/Invoke-MgBetaBulkDeviceManagementManagedDeviceReprovisionCloudPc.md

Whitespace-only changes.

src/DeviceManagement/beta/examples/Invoke-MgBetaBulkDeviceManagementManagedDeviceRestoreCloudPc.md

Whitespace-only changes.

src/DeviceManagement/beta/examples/Invoke-MgBetaBulkDeviceManagementManagedDeviceSetCloudPcReviewStatus.md

Whitespace-only changes.

src/DeviceManagement/beta/examples/Publish-MgBetaAdminEdgeInternetExplorerModeSiteList.md

Whitespace-only changes.

src/DeviceManagement/beta/examples/Set-MgBetaDeviceManagementComanagedDeviceCloudPcReviewStatus.md

Whitespace-only changes.

src/DeviceManagement/beta/examples/Set-MgBetaDeviceManagementManagedDeviceCloudPcReviewStatus.md

Whitespace-only changes.

src/DeviceManagement/beta/examples/Set-MgBetaDeviceManagementMonitoringAlertRecordPortalNotificationAsSent.md

Whitespace-only changes.

src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceCompliancePolicy.md

+16-6
Original file line numberDiff line numberDiff line change
@@ -5,21 +5,31 @@
55
Import-Module Microsoft.Graph.DeviceManagement
66
77
$params = @{
8-
"@odata.type" = "#microsoft.graph.windowsPhone81CompliancePolicy"
8+
"@odata.type" = "#microsoft.graph.androidCompliancePolicy"
99
description = "Description value"
1010
displayName = "Display Name value"
1111
version = 7
12-
passwordBlockSimple = $true
13-
passwordExpirationDays =
12+
passwordRequired = $true
1413
passwordMinimumLength =
14+
passwordRequiredType = "alphabetic"
1515
passwordMinutesOfInactivityBeforeLock =
16-
passwordMinimumCharacterSetCount =
17-
passwordRequiredType = "alphanumeric"
16+
passwordExpirationDays =
1817
passwordPreviousPasswordBlockCount =
19-
passwordRequired = $true
18+
securityPreventInstallAppsFromUnknownSources = $true
19+
securityDisableUsbDebugging = $true
20+
securityRequireVerifyApps = $true
21+
deviceThreatProtectionEnabled = $true
22+
deviceThreatProtectionRequiredSecurityLevel = "secured"
23+
securityBlockJailbrokenDevices = $true
2024
osMinimumVersion = "Os Minimum Version value"
2125
osMaximumVersion = "Os Maximum Version value"
26+
minAndroidSecurityPatchLevel = "Min Android Security Patch Level value"
2227
storageRequireEncryption = $true
28+
securityRequireSafetyNetAttestationBasicIntegrity = $true
29+
securityRequireSafetyNetAttestationCertifiedDevice = $true
30+
securityRequireGooglePlayServices = $true
31+
securityRequireUpToDateSecurityProviders = $true
32+
securityRequireCompanyPortalAppIntegrity = $true
2333
}
2434
2535
New-MgDeviceManagementDeviceCompliancePolicy -BodyParameter $params

src/DeviceManagement/v1.0/examples/New-MgDeviceManagementDeviceConfiguration.md

+3-90
Original file line numberDiff line numberDiff line change
@@ -5,99 +5,12 @@
55
Import-Module Microsoft.Graph.DeviceManagement
66
77
$params = @{
8-
"@odata.type" = "#microsoft.graph.windows10EndpointProtectionConfiguration"
8+
"@odata.type" = "#microsoft.graph.windowsDefenderAdvancedThreatProtectionConfiguration"
99
description = "Description value"
1010
displayName = "Display Name value"
1111
version = 7
12-
firewallBlockStatefulFTP = $true
13-
firewallIdleTimeoutForSecurityAssociationInSeconds =
14-
firewallPreSharedKeyEncodingMethod = "none"
15-
firewallIPSecExemptionsAllowNeighborDiscovery = $true
16-
firewallIPSecExemptionsAllowICMP = $true
17-
firewallIPSecExemptionsAllowRouterDiscovery = $true
18-
firewallIPSecExemptionsAllowDHCP = $true
19-
firewallCertificateRevocationListCheckMethod = "none"
20-
firewallMergeKeyingModuleSettings = $true
21-
firewallPacketQueueingMethod = "disabled"
22-
firewallProfileDomain = @{
23-
"@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile"
24-
firewallEnabled = "blocked"
25-
stealthModeBlocked = $true
26-
incomingTrafficBlocked = $true
27-
unicastResponsesToMulticastBroadcastsBlocked = $true
28-
inboundNotificationsBlocked = $true
29-
authorizedApplicationRulesFromGroupPolicyMerged = $true
30-
globalPortRulesFromGroupPolicyMerged = $true
31-
connectionSecurityRulesFromGroupPolicyMerged = $true
32-
outboundConnectionsBlocked = $true
33-
inboundConnectionsBlocked = $true
34-
securedPacketExemptionAllowed = $true
35-
policyRulesFromGroupPolicyMerged = $true
36-
}
37-
firewallProfilePublic = @{
38-
"@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile"
39-
firewallEnabled = "blocked"
40-
stealthModeBlocked = $true
41-
incomingTrafficBlocked = $true
42-
unicastResponsesToMulticastBroadcastsBlocked = $true
43-
inboundNotificationsBlocked = $true
44-
authorizedApplicationRulesFromGroupPolicyMerged = $true
45-
globalPortRulesFromGroupPolicyMerged = $true
46-
connectionSecurityRulesFromGroupPolicyMerged = $true
47-
outboundConnectionsBlocked = $true
48-
inboundConnectionsBlocked = $true
49-
securedPacketExemptionAllowed = $true
50-
policyRulesFromGroupPolicyMerged = $true
51-
}
52-
firewallProfilePrivate = @{
53-
"@odata.type" = "microsoft.graph.windowsFirewallNetworkProfile"
54-
firewallEnabled = "blocked"
55-
stealthModeBlocked = $true
56-
incomingTrafficBlocked = $true
57-
unicastResponsesToMulticastBroadcastsBlocked = $true
58-
inboundNotificationsBlocked = $true
59-
authorizedApplicationRulesFromGroupPolicyMerged = $true
60-
globalPortRulesFromGroupPolicyMerged = $true
61-
connectionSecurityRulesFromGroupPolicyMerged = $true
62-
outboundConnectionsBlocked = $true
63-
inboundConnectionsBlocked = $true
64-
securedPacketExemptionAllowed = $true
65-
policyRulesFromGroupPolicyMerged = $true
66-
}
67-
defenderAttackSurfaceReductionExcludedPaths = @(
68-
"Defender Attack Surface Reduction Excluded Paths value"
69-
)
70-
defenderGuardedFoldersAllowedAppPaths = @(
71-
"Defender Guarded Folders Allowed App Paths value"
72-
)
73-
defenderAdditionalGuardedFolders = @(
74-
"Defender Additional Guarded Folders value"
75-
)
76-
defenderExploitProtectionXml = "ZGVmZW5kZXJFeHBsb2l0UHJvdGVjdGlvblhtbA=="
77-
defenderExploitProtectionXmlFileName = "Defender Exploit Protection Xml File Name value"
78-
defenderSecurityCenterBlockExploitProtectionOverride = $true
79-
appLockerApplicationControl = "enforceComponentsAndStoreApps"
80-
smartScreenEnableInShell = $true
81-
smartScreenBlockOverrideForFiles = $true
82-
applicationGuardEnabled = $true
83-
applicationGuardBlockFileTransfer = "blockImageAndTextFile"
84-
applicationGuardBlockNonEnterpriseContent = $true
85-
applicationGuardAllowPersistence = $true
86-
applicationGuardForceAuditing = $true
87-
applicationGuardBlockClipboardSharing = "blockBoth"
88-
applicationGuardAllowPrintToPDF = $true
89-
applicationGuardAllowPrintToXPS = $true
90-
applicationGuardAllowPrintToLocalPrinters = $true
91-
applicationGuardAllowPrintToNetworkPrinters = $true
92-
bitLockerDisableWarningForOtherDiskEncryption = $true
93-
bitLockerEnableStorageCardEncryptionOnMobile = $true
94-
bitLockerEncryptDevice = $true
95-
bitLockerRemovableDrivePolicy = @{
96-
"@odata.type" = "microsoft.graph.bitLockerRemovableDrivePolicy"
97-
encryptionMethod = "aesCbc256"
98-
requireEncryptionForWriteAccess = $true
99-
blockCrossOrganizationWriteAccess = $true
100-
}
12+
allowSampleSharing = $true
13+
enableExpeditedTelemetryReporting = $true
10114
}
10215
10316
New-MgDeviceManagementDeviceConfiguration -BodyParameter $params

src/DeviceManagement/v1.0/examples/Update-MgDeviceManagementDeviceCompliancePolicy.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,25 @@
55
Import-Module Microsoft.Graph.DeviceManagement
66
77
$params = @{
8-
"@odata.type" = "#microsoft.graph.windowsPhone81CompliancePolicy"
8+
"@odata.type" = "#microsoft.graph.windows10MobileCompliancePolicy"
99
description = "Description value"
1010
displayName = "Display Name value"
1111
version = 7
12+
passwordRequired = $true
1213
passwordBlockSimple = $true
13-
passwordExpirationDays =
1414
passwordMinimumLength =
15-
passwordMinutesOfInactivityBeforeLock =
1615
passwordMinimumCharacterSetCount =
1716
passwordRequiredType = "alphanumeric"
1817
passwordPreviousPasswordBlockCount =
19-
passwordRequired = $true
18+
passwordExpirationDays =
19+
passwordMinutesOfInactivityBeforeLock =
20+
passwordRequireToUnlockFromIdle = $true
2021
osMinimumVersion = "Os Minimum Version value"
2122
osMaximumVersion = "Os Maximum Version value"
23+
earlyLaunchAntiMalwareDriverEnabled = $true
24+
bitLockerEnabled = $true
25+
secureBootEnabled = $true
26+
codeIntegrityEnabled = $true
2227
storageRequireEncryption = $true
2328
}
2429

0 commit comments

Comments
 (0)