You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If IncludeFileExtensions is doesn't match what's in the tenant then it applies the new values, correctly, nevertheless there's a missing chunck of code right below for ExcludeRestrictedSiteClassifications that if it also needs to be changed it will actually apply the values of IncludeFileExtensions instead of the correct ones.
Please note that due to this issue above then I had another problem which was getting the original value of the tenant back which was an empty value for ExcludeRestrictedSiteClassifications, I tried to deploy it but the value never changed and I didn't receive any error messages back. After some troubleshooting I found out that cmdlet Set-PnPTenantCdnPolicy doesn't accept a PolicyValue empty or null, the only way to solve my problem was to use the M365 CLI which actually accepted it. I've reported this on the PNP PS repo here pnp/powershell#3935
When exporting these policies the ResourceInstanceName in the blueprint will combine all properties of the resource instead of only using CDNType, this is being caused by a PR I submitted to change the heuristics of simplifying the assignment of ResourceInstanceName but I missed to add this one as primary key and it was there before. This is not a direct problem in the resource but rather in M365DSCUtil module.
e.g. Currently it exports like this "SPOTenantCdnPolicy-PublicCSS EOT GIF ICO JPEG JPG JS MAP PNG SVG TTF WOFF WOFF2 FONTCONFIG OTF$Credscredential" instead of this "SPOTenantCdnPolicy-Public"
I'll raise a PR to solve this.
Microsoft 365 DSC Version
1.24.424.1
Which workloads are affected
SharePoint Online
The DSC configuration
N/A
Verbose logs showing the problem
N/A
Environment Information + PowerShell Version
N/A
The text was updated successfully, but these errors were encountered:
Description of the issue
Please note that due to this issue above then I had another problem which was getting the original value of the tenant back which was an empty value for ExcludeRestrictedSiteClassifications, I tried to deploy it but the value never changed and I didn't receive any error messages back. After some troubleshooting I found out that cmdlet Set-PnPTenantCdnPolicy doesn't accept a PolicyValue empty or null, the only way to solve my problem was to use the M365 CLI which actually accepted it. I've reported this on the PNP PS repo here pnp/powershell#3935
e.g. Currently it exports like this "SPOTenantCdnPolicy-PublicCSS EOT GIF ICO JPEG JPG JS MAP PNG SVG TTF WOFF WOFF2 FONTCONFIG OTF$Credscredential" instead of this "SPOTenantCdnPolicy-Public"
I'll raise a PR to solve this.
Microsoft 365 DSC Version
1.24.424.1
Which workloads are affected
SharePoint Online
The DSC configuration
N/A
Verbose logs showing the problem
N/A
Environment Information + PowerShell Version
N/A
The text was updated successfully, but these errors were encountered: