From 8a218b569b705f0af846cbb4adf6b5d12bba741f Mon Sep 17 00:00:00 2001 From: v-amolpatil Date: Mon, 28 Aug 2023 20:45:53 +0530 Subject: [PATCH] Compress only files instead of complete folder in package --- .../common/commonFunctions.ps1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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()