Skip to content

Commit

Permalink
single run template failure
Browse files Browse the repository at this point in the history
  • Loading branch information
KelvinTegelaar committed Feb 3, 2025
1 parent 7ec4e3f commit 8fa5f37
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ Function Invoke-ExecStandardsRun {
$TemplateId = if ($Request.Query.TemplateId) { $Request.Query.TemplateId } else { '*' }
$Table = Get-CippTable -tablename 'templates'
$Filter = "PartitionKey eq 'StandardsTemplateV2'"
$Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter | Sort-Object TimeStamp).JSON | ConvertFrom-Json | Where-Object {
$Templates = (Get-CIPPAzDataTableEntity @Table -Filter $Filter | Sort-Object TimeStamp).JSON | ForEach-Object {
try {
ConvertFrom-Json $_ -ErrorAction SilentlyContinue
} catch {

}
} | Where-Object {
$_.guid -like $TemplateId
}

Expand Down

0 comments on commit 8fa5f37

Please sign in to comment.