Skip to content

Commit 04d223b

Browse files
committed
fix: remove etag and add force for cleaning up orch input
1 parent 0231a68 commit 04d223b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/CIPPCore/Public/Entrypoints/Orchestrator Functions/Start-CIPPOrchestrator.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,8 @@ function Start-CIPPOrchestrator {
6767

6868
# Clean up the stored input object after starting the orchestration
6969
try {
70-
$Entities = Get-AzDataTableEntity @OrchestratorTable -Filter "PartitionKey eq 'Input' and (RowKey eq '$InputObjectGuid' or OriginalEntityId eq '$InputObjectGuid')" -Property 'PartitionKey', 'RowKey', 'ETag'
71-
Remove-AzDataTableEntity @OrchestratorTable -Entity $Entities
70+
$Entities = Get-AzDataTableEntity @OrchestratorTable -Filter "PartitionKey eq 'Input' and (RowKey eq '$InputObjectGuid' or OriginalEntityId eq '$InputObjectGuid')" -Property PartitionKey, RowKey
71+
Remove-AzDataTableEntity @OrchestratorTable -Entity $Entities -Force
7272
Write-Information "Cleaned up stored input object: $InputObjectGuid"
7373
} catch {
7474
Write-Warning "Failed to clean up stored input object $InputObjectGuid : $_"

0 commit comments

Comments
 (0)