Skip to content

Commit 8fe6971

Browse files
committed
move file filter to azcopy
1 parent f6ef9b4 commit 8fe6971

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

m365/image/run_container.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,15 +58,15 @@ $Env:AZCOPY_ACTIVE_DIRECTORY_ENDPOINT = if ($Env:IS_GOV -eq "true") {"https://lo
5858
Invoke-SCuBA -Version
5959

6060
Write-Output "Grabbing tenant config files"
61-
.\azcopy copy "$Env:TENANT_INPUT/*" 'input' --output-level essential
61+
.\azcopy copy "$Env:TENANT_INPUT/*" 'input' --include-pattern "*.yaml;*.yml;*.json" --output-level essential
6262
if ($LASTEXITCODE -gt 0) {
6363
throw "Error reading config files"
6464
}
6565

6666
$total_count = 0
6767
$error_count = 0
6868

69-
Foreach ($tenantConfig in $(Get-ChildItem -Path 'input\' -Include "*.yaml", "*.yml", "*.json")) {
69+
Foreach ($tenantConfig in $(Get-ChildItem 'input\')) {
7070
$total_count += 1
7171
try {
7272
$org = $tenantConfig.BaseName.split("_")[0]

0 commit comments

Comments
 (0)