xrm-ci-framework icon indicating copy to clipboard operation
xrm-ci-framework copied to clipboard

Service Endpoint Registration - Deleting endpoints?

Open bo-stig-christensen opened this issue 4 years ago • 4 comments

Is there already a way to....

  • remove all service endpoints from given solution?
  • delete one or more service endpoints based on given json mapping file?

bo-stig-christensen avatar Sep 11 '19 16:09 bo-stig-christensen

@bo-stig-christensen if your json contains only what you need, you should be use either reset or delsert mode to achieve this.

WaelHamze avatar Sep 16 '19 04:09 WaelHamze

@WaelHamze Okay, so a "delsert" does an "Upsert, but also Delete if not present in json"? - I overlooked that possibility due to using the Azure DevOps Build Tools, in which only "Upsert" and "Reset" are available, so an issue should be created in that repo maybe? ;-) image

I cannot use "Reset" mode until #235 is fixed, since I cannot guarantee that the endpoints already exist (for any number of reasons).

bo-stig-christensen avatar Sep 24 '19 10:09 bo-stig-christensen

Is there some information about how the mapping.json has to look like? Couldn't find any source of wisdom until now 😅

DJmRek avatar Dec 02 '19 19:12 DJmRek

@DJmRek : I found it deep in samples ;-) https://github.com/WaelHamze/dyn365-ce-devops-sample/blob/master/Sample/Xrm.CI.Framework.Sample/Xrm.CI.Framework.Sample.Plugins/ServiceEndpoints.json

And no, you may not make a "diff json" when updating only a few properties, been there done that, doesn't work. You have to specify the complete service endpoint specification in the json ;-)

I have basically checked in a json per environment in my git repo and then running an automatic upsert/reset in my Azure Pipeline ;-)

bo-stig-christensen avatar Dec 05 '19 12:12 bo-stig-christensen