File tree Expand file tree Collapse file tree 1 file changed +1
-11
lines changed
Modules/CIPPCore/Public/Standards Expand file tree Collapse file tree 1 file changed +1
-11
lines changed Original file line number Diff line number Diff line change @@ -49,17 +49,7 @@ function Invoke-CIPPStandardIntuneTemplate {
4949 $RawJSON = $Request.body.RawJSON
5050 $ExistingPolicy = Get-CIPPIntunePolicy - tenantFilter $Tenant - DisplayName $displayname - TemplateType $Request.body.Type
5151 if ($ExistingPolicy ) {
52- $ReplaceTable = Get-CIPPTable - tablename ' CippReplacemap'
53- $ReplaceMap = Get-CIPPAzDataTableEntity @ReplaceTable - Filter " PartitionKey eq '$tenant '"
54- if ($ReplaceMap ) {
55- foreach ($Replace in $ReplaceMap ) {
56- $String = ' %{0}%' -f $Replace.RowKey
57- $RawJSON = $RawJSON -replace $String , $Replace.Value
58- }
59- }
60- $RawJSON = $RawJSON -replace ' %tenantid%' , $TenantList.customerId
61- $RawJSON = $RawJSON -replace ' %tenantfilter%' , $TenantLists.defaultDomainName
62- $RawJSON = $RawJSON -replace ' %tenantname%' , $TenantList.displayName
52+ $RawJSON = Get-CIPPTextReplacement - Text $RawJSON - TenantFilter $Tenant
6353
6454 $JSONExistingPolicy = $ExistingPolicy.cippconfiguration | ConvertFrom-Json
6555 $JSONTemplate = $RawJSON | ConvertFrom-Json
You can’t perform that action at this time.
0 commit comments