Hi Alfi Khair
After decompressing the file, if you want to extract specific files, you can use the combination of get metadata activity, foreach loop and an if condition plus a copy activity.
- use an array variable (called filenames) to hold the list of files that need to be copied to UserContainer. for instance like below. ["File1.txt","File2.txt","File5.txt"]. You can alternatively have this in a lookup file or table. choice is yours. Here let's consider using an array in the pipeline.
- use Get Metadata activity to get list of decompressed files
- use a foreach loop to loop over decompressed files
- inside foreach use if condition to check if item().name is in the array variable using the below expression: @contains(variables('filenames'),item().name)
- Hope it helps. Please feel free to write back if you have any further questions on it.