xrm-ci-framework
xrm-ci-framework copied to clipboard
Service Endpoint Registration - Deleting endpoints?
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 if your json contains only what you need, you should be use either reset or delsert mode to achieve this.
@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? ;-)
I cannot use "Reset" mode until #235 is fixed, since I cannot guarantee that the endpoints already exist (for any number of reasons).
Is there some information about how the mapping.json has to look like? Couldn't find any source of wisdom until now 😅
@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 ;-)