Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Jefajers authored Feb 23, 2024
1 parent bc1e7ab commit f33a738
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion src/internal/functions/New-AzOpsScope.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
[AzOpsScope]
#>

#[OutputType([AzOpsScope])]
[CmdletBinding(SupportsShouldProcess = $true)]
param (
[Parameter(ParameterSetName = "scope")]
Expand Down
4 changes: 2 additions & 2 deletions src/internal/functions/Remove-AzOpsDeployment.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -332,8 +332,8 @@
if ($removalJob.results.Changes.Count -gt 0) {
# Initialize array to store items that need retry
$retry = @()
$removalJob = Set-AzOpsRemoveOrder -DeletionList $removalJob -Index { (New-AzOpsScope -Scope $_.results.Changes.FullyQualifiedResourceId).Resource }
foreach ($change in $removalJob.results.Changes) {
$removalJobChanges = Set-AzOpsRemoveOrder -DeletionList $removalJob.results.Changes -Index { (New-AzOpsScope -Scope $_.FullyQualifiedResourceId -WhatIf:$false).Resource }
foreach ($change in $removalJobChanges) {
$resource = $null
# Check if the resource exists
if ($change.RelativeResourceId.StartsWith('Microsoft.Authorization/locks/')) {
Expand Down

0 comments on commit f33a738

Please sign in to comment.