Skip to content

Starting blob event trigger fails with 'Resource cannot be updated during provisioning' - now waits for provisioning to complete before retrying #484#485

Merged
NowinskiK merged 3 commits into
developfrom
issue-484
May 26, 2026
Merged

Starting blob event trigger fails with 'Resource cannot be updated during provisioning' - now waits for provisioning to complete before retrying #484#485
NowinskiK merged 3 commits into
developfrom
issue-484

Conversation

@NowinskiK
Copy link
Copy Markdown
Member

@NowinskiK NowinskiK commented May 26, 2026

private/Start-Trigger.ps1

  • Added break after a successful Start-AzDataFactoryV2Trigger call (avoids 4 redundant calls that previously always ran)
  • On failure, checks if the error is "cannot be updated during provisioning" — the Azure error returned when a BlobEventsTrigger is still setting up its Event Grid subscription
  • If it is, polls Get-AzDataFactoryV2Trigger every 10 seconds (up to 5 minutes) until Properties.ProvisioningState is no longer 'Provisioning', then retries the start
  • All other errors keep the existing 2-second retry behaviour

test/Start-Trigger.Tests.ps1

  • Updated existing mocks from Write-Error (non-terminating, not caught by catch) to throw (terminating, matches real Azure cmdlet behaviour)
  • Added a new test that verifies: provisioning error → polls twice (Provisioning → Succeeded) → retries start successfully

…ring provisioning' - now waits for provisioning to complete before retrying #484
@NowinskiK NowinskiK merged commit 47a5b5f into develop May 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Starting blob event trigger fails with error "Resource cannot be updated during provisioning"

1 participant