From bf3824a29e0a52128c78825489e6009079299e84 Mon Sep 17 00:00:00 2001 From: uday31in <14359777+uday31in@users.noreply.github.com> Date: Wed, 5 Aug 2020 03:28:18 +0100 Subject: [PATCH] adding logging to ensure filenames are logged --- src/public/Invoke-AzOpsGitPush.ps1 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/public/Invoke-AzOpsGitPush.ps1 b/src/public/Invoke-AzOpsGitPush.ps1 index 6ebd0e04..dde18a6a 100644 --- a/src/public/Invoke-AzOpsGitPush.ps1 +++ b/src/public/Invoke-AzOpsGitPush.ps1 @@ -156,7 +156,7 @@ function Invoke-AzOpsGitPush { | Where-Object -FilterScript { $_ -match '/*.subscription.json$' } ` | Sort-Object -Property $_ ` | ForEach-Object { - Write-AzOpsLog -Level Information -Topic "Invoke-AzOpsGitPush" -Message "Invoking new state deployment - *.subscription.json" + Write-AzOpsLog -Level Information -Topic "Invoke-AzOpsGitPush" -Message "Invoking new state deployment - *.subscription.json for a file $_" New-AzOpsStateDeployment -filename $_ } @@ -164,16 +164,15 @@ function Invoke-AzOpsGitPush { | Where-Object -FilterScript { $_ -match '/*.providerfeatures.json$' } ` | Sort-Object -Property $_ ` | ForEach-Object { - Write-AzOpsLog -Level Information -Topic "Invoke-AzOpsGitPush" -Message "Invoking new state deployment - *.providerfeatures.json" + Write-AzOpsLog -Level Information -Topic "Invoke-AzOpsGitPush" -Message "Invoking new state deployment - *.providerfeatures.json for a file $_" New-AzOpsStateDeployment -filename $_ } - $addModifySet ` | Where-Object -FilterScript { $_ -match '/*.resourceproviders.json$' } ` | Sort-Object -Property $_ ` | ForEach-Object { - Write-AzOpsLog -Level Information -Topic "Invoke-AzOpsGitPush" -Message "Invoking new state deployment - *.resourceproviders.json" + Write-AzOpsLog -Level Information -Topic "Invoke-AzOpsGitPush" -Message "Invoking new state deployment - *.resourceproviders.json for a file $_" New-AzOpsStateDeployment -filename $_ } @@ -181,7 +180,7 @@ function Invoke-AzOpsGitPush { | Where-Object -FilterScript { $_ -match '/*.parameters.json$' } ` | Sort-Object -Property $_ ` | Foreach-Object { - Write-AzOpsLog -Level Information -Topic "Invoke-AzOpsGitPush" -Message "Invoking new state deployment - *.parameters.json" + Write-AzOpsLog -Level Information -Topic "Invoke-AzOpsGitPush" -Message "Invoking new state deployment - *.parameters.json for a file $_" New-AzOpsStateDeployment -filename $_ } }