diff --git a/Tools/Create-Azure-Sentinel-Solution/common/commonFunctions.ps1 b/Tools/Create-Azure-Sentinel-Solution/common/commonFunctions.ps1 index 273bd5dc429..c397c6c4ae3 100644 --- a/Tools/Create-Azure-Sentinel-Solution/common/commonFunctions.ps1 +++ b/Tools/Create-Azure-Sentinel-Solution/common/commonFunctions.ps1 @@ -2788,7 +2788,12 @@ function PrepareSolutionMetadata($solutionMetadataRawContent, $contentResourceDe else { $zipPackageName = "$calculatedBuildPipelinePackageVersion" + ".zip" } - Compress-Archive -Path "$solutionFolder/*" -DestinationPath "$solutionFolder/$zipPackageName" -Force + + $compress = @{ + Path = "$solutionFolder/createUiDefinition.json", "$solutionFolder/mainTemplate.json" + DestinationPath = "$solutionFolder/$zipPackageName" + } + Compress-Archive @compress -Force } function global:GetContentTemplateDefaultValues()