Skip to content

Adding Pull Retry Logic with Exclusion of Subscription Resources and SkipSubscription setting. - #938

Merged
Jesper Fajers (Jefajers) merged 13 commits into
Azure:mainfrom
Jefajers:what
Dec 4, 2025
Merged

Adding Pull Retry Logic with Exclusion of Subscription Resources and SkipSubscription setting.#938
Jesper Fajers (Jefajers) merged 13 commits into
Azure:mainfrom
Jefajers:what

Conversation

@Jefajers

@Jefajers Jesper Fajers (Jefajers) commented Oct 17, 2025

Copy link
Copy Markdown
Member

Overview/Summary

  • This PR updates Search-AzOpsAzGraph to retry failed resource graph queries individually. This helps isolate errors, identify problematic resources, and exclude them from processing in real time allowing AzOps to continue with remaining resources.

    • [Search-AzOpsAzGraph] Failed AzGraph processing query: [resources] at subscription: [subscriptionName(6da30d2c-cd7c-4b7b-bcta-1ddfa4e02f60)] with: Cannot process argument because the value of argument "name" is not valid. Change the value of the "name" argument and run the operation again.
    • [Search-AzOpsAzGraph] Failed AzGraph processing of resource: [/subscriptions/6da30d2c-cd7c-4b7b-bcta-1ddfa4e02f60/resourceGroups/logicapp/providers/Microsoft.Logic/workflows/my-logic-app] with missing key name, excluding resource from processing
  • Introduces a new setting Core.SkipSubscription (default: ["*"]) to exclude specific subscriptions from AzOps - Pull.
    Use this when troubleshooting or skipping problematic subscriptions: ["66d96157-55b3-47f3-b9a1-171778f99f0e","8b03299b-5880-4b2e-b026-e24484110151"] .

  • Bumping module dependencies

    • PSFramework 1.13.419
    • Az.Accounts 5.3.1
    • Az.Resources 9.0.0

This PR fixes/adds/changes/removes

  1. Changes Settings.md
  2. Changes AzOps.psd1
  3. Changes Core.ps1
  4. Changes Get-AzOpsNestedSubscription.ps1
  5. Changes Get-AzOpsPolicyExemption.ps1
  6. Changes Get-AzOpsResourceDefinition.ps1
  7. Changes Search-AzOpsAzGraph.ps1
  8. Changes Strings.psd1
  9. Changes Repository.Tests.ps1
  10. Changes azuredeploy.jsonc

Breaking Changes

N/A

Testing Evidence

Automated test cases have been added for both the new logic and setting Core.SkipSubscription.

As part of this Pull Request I have

  • Checked for duplicate Pull Requests
  • Associated it with relevant issues, for tracking and closure.
  • Ensured my code/branch is up-to-date with the latest changes in the main branch
  • Performed testing and provided evidence.
  • Updated relevant and associated documentation.

@Jefajers Jesper Fajers (Jefajers) moved this from Needs review to Pending release in AzOps Dec 4, 2025
@Jefajers
Jesper Fajers (Jefajers) merged commit 265d41a into Azure:main Dec 4, 2025
6 of 10 checks passed
@Jefajers Jesper Fajers (Jefajers) moved this from Pending release to Done in AzOps Dec 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/accelerator area/powershell dependencies enhancement New feature or request wiki-doc Improvements or additions to documentation

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants