File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -57,9 +57,14 @@ function Invoke-CIPPStandardIntuneTemplate {
5757 if ($ExistingPolicy ) {
5858 Write-Host " IntuneTemplate: $ ( $Template.TemplateList.value ) - Found existing policy."
5959 $RawJSON = Get-CIPPTextReplacement - Text $RawJSON - TenantFilter $Tenant
60+ Write-Host " IntuneTemplate: $ ( $Template.TemplateList.value ) - Grabbing JSON existing."
6061 $JSONExistingPolicy = $ExistingPolicy.cippconfiguration | ConvertFrom-Json - ErrorAction SilentlyContinue
62+ Write-Host " IntuneTemplate: $ ( $Template.TemplateList.value ) - Got existing JSON. Converting RawJSON to Template"
6163 $JSONTemplate = $RawJSON | ConvertFrom-Json
64+ Write-Host " IntuneTemplate: $ ( $Template.TemplateList.value ) - Converted RawJSON to Template."
65+ Write-Host " IntuneTemplate: $ ( $Template.TemplateList.value ) - Comparing JSON."
6266 $Compare = Compare-CIPPIntuneObject - ReferenceObject $JSONTemplate - DifferenceObject $JSONExistingPolicy - compareType $Request.body.Type - ErrorAction SilentlyContinue
67+ Write-Host " IntuneTemplate: $ ( $Template.TemplateList.value ) - Compared JSON: $ ( $Compare | ConvertTo-Json - Compress) "
6368 } else {
6469 Write-Host " IntuneTemplate: $ ( $Template.TemplateList.value ) - No existing policy found."
6570 }
You can’t perform that action at this time.
0 commit comments