Fix/init datafactory provisioning retry#2001
Merged
Merged
Conversation
…aFactory In Set-BlobTriggerSubscription, the Add/Remove subscription call and the status check were in the same Invoke-WithRetry block. This meant the status was checked immediately after subscribing, always finding "Provisioning". The retry would then call Add-AzDataFactoryV2TriggerSubscription again, which fails with "Resource cannot be updated during provisioning", exhausting all retries and failing the deployment. Split into two steps: the subscription operation (with a try/catch that tolerates an already-transitioning subscription) and a separate status-polling loop that waits for provisioning to complete. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Check subscription status before attempting subscribe/unsubscribe - Skip call if already in transitional state (Provisioning/Deprovisioning) - Early return if already at target status - Poll separately for completion with retry loop - Add changelog entry for v14 Fixes #1996
Collaborator
Author
|
@slapointe As I didn't could/wanted to push to your fork, I've created a new PR here. |
flanakin
approved these changes
Feb 13, 2026
flanakin
pushed a commit
that referenced
this pull request
Mar 10, 2026
Co-authored-by: Stephane Lapointe <stephane.lapointe@workleap.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Roland Krummenacher <roland.krummenacher@alescent.com>
|
@RolandKrummenacher When is this due to be fixed? We have upgraded to V13 today and hit this issue. Is there a work around / release date of the fix? |
Collaborator
Author
|
@Elgeario This is part of release 14 which is planned to be released this or next week. |
|
@RolandKrummenacher , Thank you for the prompt response! |
Collaborator
Author
|
@Elgeario V14 is now fully released. We had some issues that delayed the release. Sorry about that. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🛠️ Description
Improves the fix from #1997 for Event Grid subscription handling in
Init-DataFactory.ps1.The original PR (#1997) correctly identified the problem (subscribe + status poll in the same retry loop), but wrapped the subscribe call in
Invoke-WithRetrywith an outertry/catch— meaning up to ~17 minutes of wasted retries before the "already provisioning" fallback kicks in.This PR takes a check-first approach instead:
Enabled/Disabled)Provisioning/Deprovisioning) and go straight to pollingInvoke-WithRetryAlso adds the missing changelog entry under v14.
Fixes #1996
Supersedes #1997
📋 Checklist
🔬 How did you test this change?
🙋♀️ Do any of the following that apply?
📑 Did you update
docs/changelog.md?📖 Did you update documentation?