Skip to content

Add retry logic for GetTargetResource() #5580

@vhvb1989

Description

@vhvb1989

When looking for a service-host, azd searches a resource with the name of the service as a tag within the resource group.
If the Azure Resource Graph takes more time to update the index than the time it takes for azd to move from provision to deploy, azd would fail the deployment.

Azd should have a retry logic of at least 3 intents and an increasing delay time from 1, 3 and 5 seconds. Azd should then ask user if they want to keep trying to find the resource or give up, making the default option to give-up (so CI/CD is never blocked)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions