Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can we return a list of all the created dependency resources? #888

Closed
martinsawicki opened this issue Jun 23, 2016 · 3 comments
Closed
Milestone

Comments

@martinsawicki
Copy link

Creating pretty much any resource can result in the creation of at least one additional associated resource (at minimum a new resource group). It would be useful to return a list of all the implicitly created resources when a given resource is called so that user code can easily identify them and possibly delete them later as part of cleanup, if they do not want to rely on resource groups for that purpose for one reason or another.

Now, because of Azure's createOrUpdate semantics, and the lack of a truly atomic "createIfNotAlreadyExists" operation in Azure, we cannot return a list of resources that were truly created -- Azure does not give us that info. It is possible that some of the resources we think we are creating already exist - we can't reliably tell the difference today.

But perhaps it is enough for such scenarios if the SDK APIs simply return the list of all the resources that were intended to be created (and are now in existence). We could do at least that much rather easily, via perhaps a create(List<Resource> resourcesCreated) -- we could populate the resourcesCreated list provided by the user code with what we already track internally as created resources in the graph impl.

@martinsawicki martinsawicki added this to the 1.0.0 milestone Jun 23, 2016
@jianghaolu jianghaolu changed the title How can we return a list of all the created dpeendency resources? How can we return a list of all the created dependency resources? Jul 5, 2016
@amitarali
Copy link

do we have any way to get list of created resources of a deployment? This will be helpful to delete specific deployments from a resource group or roll back a specific deployment in case of failure.

@martinsawicki
Copy link
Author

martinsawicki commented Dec 3, 2016

PR #1300 should help quite a bit with enabling this need as it gives developers real-time visibility into what gets created under the hood.

@martinsawicki
Copy link
Author

done

@github-actions github-actions bot locked and limited conversation to collaborators Apr 13, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants