WaelHamze / xrm-ci-framework

xRM CI Framework provides you with the tools automate the build and deployment of your CRM Solution. Using the framework to implement a fully automated DevOps pipeline will allow you to deploy more frequently with added consistency and quality.
MIT License
186 stars 117 forks source link

Provision is not updating the status #209

Closed aboodh95 closed 5 years ago

aboodh95 commented 5 years ago

Hi,

I'm trying to use the Provision task, it's returning as Succeeded and the instance is being created, but it's not existing the task, it will be stuck in it and it will not go to the next one image

WaelHamze commented 5 years ago

@aboodh95 once the operation returns, the task queries the API to try to retrieve the instance and check the state again. Was your instance created with the same name as requested? Sometimes if name is already take an instance is created with '0' in the end. Also did you check in portal if instance was ready?

aboodh95 commented 5 years ago

@WaelHamze, yes, the instance was created with the same name i tried and it was ready

aboodh95 commented 5 years ago

I make a quick fix by unchecking the Wait For Completion and then added a wait task for 10 min, the operation for sure will be completed as I'm creating an empty instance and then I will restore a backup to it

WaelHamze commented 5 years ago

@aboodh95 I will add some additional logging in the next release so you can see what is going on while it hangs, once you check we can make any adjustments if neeeded

aboodh95 commented 5 years ago

Okay, Thank you so much

WaelHamze commented 5 years ago

This should be working now, please re-open if any issues