# dotnet


06/16/2023, 3:14 PM
Running into an issue and I would like to hear what actions I should take. I'm attempting to standup an Azure API Management Resource. The resource is being created; however, the CLI is hanging and then terminating. The attached picture is the output. Since it is hanging and the resource isn't being accounted in Pulumi even though it gets created, should I reference the resource with the ImportId property in Pulumi.CustomResourceOptions() or is there away to fix this so the CLI runs fully. The API Management takes a bit to finished initializing and it seems to take longer then the time limit for the CLI.


06/16/2023, 3:19 PM
Looks like You should be able to use ImportId, or just run
pulumi import
with the same name used in your program to get the resource into managed state. Worth dropping a comment on that issue as well, especially if you can share some details of the environment you ran this in (workstation/ci, windows/linux, etc)


06/16/2023, 3:20 PM
Will do! Thank you for you timely response Fraser 😄