Open vcb-xrmvision opened 4 years ago
@vcb-xrmvision are you trying to do this with Powershell or the tasks?
The end goal is with tasks but I tried both with the same result.
@vcb-xrmvision have you tried the Service Endpoint Registration task with a json of this format? https://github.com/WaelHamze/dyn365-ce-devops-sample/blob/master/Sample/Xrm.CI.Framework.Sample/Xrm.CI.Framework.Sample.Plugins/ServiceEndpoints.json
You can generate the file using this script from your source environment and then replace any env specific values at runtime in the pipeline before the task.
@WaelHamze thanks so much for your time yes I tried and it is working like a charm for service bus connection. The issue is for webhook service where I need to provide query string parameter or header
ex. https://myappservice.azurewebsites.net/api/myfunction?code=xxx
the portion "?code=xxx" can't be provided in the URL and I'm not able to find any documentation on the format to use for "AuthValue"
I saw in the sample your provided
...
"AuthValue": "EchoCode",
...
I simply need to understand the format of the value EchoCode
Thanks again
@vcb-xrmvision I think if you are using WebhookKey as auth then the AuthValue would be the key.
If you are using querystring or header, it gets a little bit more complicated.
I did some network tracing the other day.
Can you try to populate the AuthValue with a string in the below format and let me know if it works for you?
<settings><setting name="key1" value="v1" /><setting name="key2" value="v2" /></settings>
@vcb-xrmvision any luck with this?
@WaelHamze I am a bit late to this but just to let you know this really helped us. The Auth Value set with the XML works a treat. Thank You.
Did you know how to add the query string parameters to a webhook registration?
I presume it's the parameter "AuthValue" but I'm unable to specify to correct format or find documentation. I tried standard query string format or json key value array without success.
I'm trying to update a web hook registration pointing to a Azure Function using function key . Format : [appservicename].azurewebsites.net/api/[functionnname]?code=[functionKey that varies on each envir]