-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'Dev' into fix/graph-limited-requests
- Loading branch information
Showing
29 changed files
with
1,862 additions
and
305 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -424,15 +424,15 @@ function Set-TargetResource | |
{ | ||
$value = $presentationValue.clone() | ||
$value = Rename-M365DSCCimInstanceParameter -Properties $value -KeyMapping $keyToRename | ||
$value.add('[email protected]', $Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')/presentations('$($presentationValue.presentationDefinitionId)')") | ||
$value.add('[email protected]', $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')/presentations('$($presentationValue.presentationDefinitionId)')") | ||
$value.remove('PresentationDefinitionId') | ||
$value.remove('PresentationDefinitionLabel') | ||
$value.remove('id') | ||
$complexPresentationValues += $value | ||
} | ||
} | ||
$complexDefinitionValue = @{ | ||
'[email protected]' = $Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')" | ||
'[email protected]' = $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')" | ||
enabled = $definitionValue.Enabled | ||
presentationValues = $complexPresentationValues | ||
} | ||
|
@@ -520,15 +520,15 @@ function Set-TargetResource | |
{ | ||
$value = $presentationValue.clone() | ||
$value = Rename-M365DSCCimInstanceParameter -Properties $value -KeyMapping $keyToRename | ||
$value.add('[email protected]', "$($Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl)beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')/presentations('$($presentationValue.presentationDefinitionId)')") | ||
$value.add('[email protected]', "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')/presentations('$($presentationValue.presentationDefinitionId)')") | ||
$value.remove('PresentationDefinitionId') | ||
$value.remove('PresentationDefinitionLabel') | ||
$value.remove('id') | ||
$complexPresentationValues += $value | ||
} | ||
} | ||
$complexDefinitionValue = @{ | ||
'[email protected]' = $Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')" | ||
'[email protected]' = $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')" | ||
enabled = $definitionValue.Enabled | ||
presentationValues = $complexPresentationValues | ||
} | ||
|
@@ -554,7 +554,7 @@ function Set-TargetResource | |
$currentPresentationValue = $currentDefinitionValue.PresentationValues | Where-Object { $_.PresentationDefinitionId -eq $presentationValue.presentationDefinitionId } | ||
$value = $presentationValue.clone() | ||
$value = Rename-M365DSCCimInstanceParameter -Properties $value -KeyMapping $keyToRename | ||
$value.add('[email protected]', "$($Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl)beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')/presentations('$($presentationValue.presentationDefinitionId)')") | ||
$value.add('[email protected]', "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')/presentations('$($presentationValue.presentationDefinitionId)')") | ||
$value.remove('PresentationDefinitionId') | ||
$value.remove('PresentationDefinitionLabel') | ||
$value.remove('id') | ||
|
@@ -564,7 +564,7 @@ function Set-TargetResource | |
} | ||
$complexDefinitionValue = @{ | ||
id = $currentDefinitionValue.Id | ||
'[email protected]' = $Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')" | ||
'[email protected]' = $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/groupPolicyDefinitions('$($definitionValue.Definition.Id)')" | ||
enabled = $definitionValue.Enabled | ||
presentationValues = $complexPresentationValues | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -522,7 +522,7 @@ function Set-TargetResource | |
} | ||
|
||
#region resource generator code | ||
$CreateParameters.Add("[email protected]", "$($Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$RootCertificateId')") | ||
$CreateParameters.Add("[email protected]", "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$RootCertificateId')") | ||
$CreateParameters.Add("@odata.type", "#microsoft.graph.windows81SCEPCertificateProfile") | ||
$policy = New-MgBetaDeviceManagementDeviceConfiguration -BodyParameter $CreateParameters | ||
$assignmentsHash = ConvertTo-IntunePolicyAssignment -IncludeDeviceFilter:$true -Assignments $Assignments | ||
|
@@ -1034,7 +1034,7 @@ function Update-DeviceConfigurationPolicyRootCertificateId | |
|
||
$Uri = $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/deviceConfigurations('$DeviceConfigurationPolicyId')/microsoft.graph.windows81SCEPCertificateProfile/rootCertificate/`$ref" | ||
$ref = @{ | ||
'@odata.id' = $Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/deviceConfigurations('$RootCertificateId')" | ||
'@odata.id' = $Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl + "beta/deviceManagement/deviceConfigurations('$RootCertificateId')" | ||
} | ||
|
||
Invoke-MgGraphRequest -Method PUT -Uri $Uri -Body ($ref|ConvertTo-Json) -ErrorAction Stop | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -564,7 +564,7 @@ function Set-TargetResource | |
-CertificateId $RootCertificatesForServerValidationIds[$i] ` | ||
-CertificateDisplayName $RootCertificatesForServerValidationDisplayNames[$i] ` | ||
-OdataTypes @('#microsoft.graph.windows81TrustedRootCertificate') | ||
$rootCertificatesForServerValidation += "$($Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
$rootCertificatesForServerValidation += "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
} | ||
$CreateParameters.Add('[email protected]', $rootCertificatesForServerValidation) | ||
} | ||
|
@@ -579,7 +579,7 @@ function Set-TargetResource | |
'#microsoft.graph.windows81TrustedRootCertificate', ` | ||
'#microsoft.graph.windows10PkcsCertificateProfile' ` | ||
) | ||
$ref = "$($Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
$ref = "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
$CreateParameters.Add('[email protected]', $ref) | ||
} | ||
|
||
|
@@ -593,7 +593,7 @@ function Set-TargetResource | |
'#microsoft.graph.windows81TrustedRootCertificate', ` | ||
'#microsoft.graph.windows10PkcsCertificateProfile' ` | ||
) | ||
$ref = "$($Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
$ref = "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
$CreateParameters.Add('[email protected]', $ref) | ||
} | ||
|
||
|
@@ -603,7 +603,7 @@ function Set-TargetResource | |
-CertificateId $RootCertificateForClientValidationId ` | ||
-CertificateDisplayName $RootCertificateForClientValidationDisplayName ` | ||
-OdataTypes @('#microsoft.graph.windows81TrustedRootCertificate') | ||
$ref = "$($Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
$ref = "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
$CreateParameters.Add('[email protected]', $ref) | ||
} | ||
|
||
|
@@ -613,7 +613,7 @@ function Set-TargetResource | |
-CertificateId $SecondaryRootCertificateForClientValidationId ` | ||
-CertificateDisplayName $SecondaryRootCertificateForClientValidationDisplayName ` | ||
-OdataTypes @('#microsoft.graph.windows81TrustedRootCertificate') | ||
$ref = "$($Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
$ref = "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$checkedCertId')" | ||
$CreateParameters.Add('[email protected]', $ref) | ||
} | ||
|
||
|
@@ -1242,7 +1242,7 @@ function Update-DeviceConfigurationPolicyCertificateId | |
foreach ($certificateId in $CertificateIds) | ||
{ | ||
$ref = @{ | ||
'@odata.id' = "$($Global:MSCloudLoginAssistant.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$certificateId')" | ||
'@odata.id' = "$($Global:MSCloudLoginConnectionProfile.MicrosoftGraph.ResourceUrl)beta/deviceManagement/deviceConfigurations('$certificateId')" | ||
} | ||
|
||
Invoke-MgGraphRequest -Method $method -Uri $Uri -Body ($ref | ConvertTo-Json) -ErrorAction Stop 4>$null | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.