# Application services template with iworkflow issue

**URL:** <https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624>\
**Category:** Technical Forums\
**Tags:** icontrol, iworkflow, application-delivery\
**Created:** [September 11, 2017, 11:21pm UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624 "2017-09-11T23:21:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jay\_41195](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jay\_41195](https://community.f5.com/u/jay_41195)\
**Post date:** [September 11, 2017, 11:21pm UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/1 "2017-09-11T23:21:21Z")

</div>

Hi

I am trying to deploy configuration via the appsvcs\_integration\_v2.0.004.tmpl and iworkflow (trial) and I am getting some issues getting it working. Can you anyone assist thanks?

ASO create on remote device:/mgmt/shared/resolver/device-groups/cm-cloud-managed-devices/devices/e2519a1a-a753-4270-b18a-6a0e65caddcf failed with error:$HttpException: status:400, body:{“code”:400,“message”:"Failed to POST iApp service ‘test12’: java.lang.IllegalStateException: script did not successfully complete: (\“replace-all-with\” unknown property\n while executing\n\“tmsh::create [string range $args 7 end] \”\n (\“create\” arm line 1)\n invoked from within\n\“switch -exact -- [string range $args 0 5] {\n create { tmsh::create [string range $args 7 end] }\n modify { tmsh::modify [string r…\”\n (procedure \“iapp\_conf\” line 14)\n invoked from within\n\"iapp\_conf create ltm pool ${app}\_pool [iapp\_substa pool\_ramp\_pga\_arr

---

<div class="post-metadata">

**Author:** ![jay\_41195](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jay\_41195](https://community.f5.com/u/jay_41195)\
**Post date:** [September 11, 2017, 11:50pm UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/2 "2017-09-11T23:50:39Z")

</div>

I am using iworkflow 2.2.0 and BIG-IP 12.1.2

---

<div class="post-metadata">

**Author:** ![Angus\_2141](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Angus\_2141](https://community.f5.com/u/Angus_2141)\
**Post date:** [September 12, 2017, 9:22pm UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/3 "2017-09-12T21:22:26Z")

</div>

Are you using one of the JSON template files with the iApp or are you trying to create your own Service Templates from scratch? If not I would start there as a best practice. Download those files here:

[https://github.com/F5Networks/f5-application-services-integration-iApp/releases](https://github.com/F5Networks/f5-application-services-integration-iApp/releases)

These files the cover the most common use cases. If you want to create your own template they also provide additional details about required values that may help you when creating your own service templates.

If you are creating your own service template and using the GUI be sure you don’t have an extra space after your values as that might be what is causing this error. If that is not the case the review any values you provided that include a backslash and remove them.

If neither of these tips help provide a little more detail regarding what you are trying to create and the values you have provided.

---

<div class="post-metadata">

**Author:** ![jay\_41195](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jay\_41195](https://community.f5.com/u/jay_41195)\
**Post date:** [September 12, 2017, 11:25pm UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/4 "2017-09-12T23:25:35Z")

</div>

Hi Angus,

I was actually using the template downloaded from . I had downloaded the appsvcs\_integration\_v2.0.004.tmpl from github previously and had issues with it. appsvcs\_integration\_v2.0.004.tmpl works now via iworkflow after a few tweaks. I was able to deploy VIP/pools to Big-ip via Service template/L4-L7 services. I had two different Devices (2 separate device groups) in the “Clouds” and when I deploy config it only applies to one Big-ip1 and not the other(Big-ip2). When I remove Big-ip1 then it does apply to Big-ip2.

What I am trying to achieve is to have same config to both Big-ips, I cant have them on the same config-sync group/HA as they are on different DCs and no layer 2 extension between them.

---

<div class="post-metadata">

**Author:** ![Angus\_2141](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Angus\_2141](https://community.f5.com/u/Angus_2141)\
**Post date:** [September 12, 2017, 11:33pm UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/5 "2017-09-12T23:33:49Z")

</div>

It sounds like maybe these two BIG-IPs are part of the same cloud? If so when using the GUI it will only push your configs to one of them which one is selected by iWorkflow. When using the REST API you can select which one to target but that would still not solve your problem.

I would recommend one cloud for each DC with the respective BIG-IP maintained within assuming I understand your config correctly.

---

<div class="post-metadata">

**Author:** ![jay\_41195](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jay\_41195](https://community.f5.com/u/jay_41195)\
**Post date:** [September 13, 2017, 12:03am UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/6 "2017-09-13T00:03:29Z")

</div>

yes the two big-ips are part of the same cloud. The 2nd Big-ip is in the redundant DC will have the same IP addresses/subnets as the primary DC when there is failure in primary DC internet. Routing has been setup and working. But I just need to now sync the configuration items for the F5s so that the redundant DC big-ip is ready to take over. So I might try REST API as per your advise but I thought it was achievable via iWorkflow.

---

<div class="post-metadata">

**Author:** ![Angus\_2141](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Angus\_2141](https://community.f5.com/u/Angus_2141)\
**Post date:** [September 13, 2017, 12:34am UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/7 "2017-09-13T00:34:52Z")

</div>

I think I see your issue, if you create two clouds with one device in each you will have to also create two L4-l7 services which if you are completing manually may be prone to error. You can of course provision the same Service Template to both clouds and provision both clouds to the same Tenant.

When I mentioned using the REST API, I was referring to using the REST proxy on iWorkflow to push these services not the REST proxy on BIG-IP. This may allow you to push the same L4-L7 Service template to both devices in the same cluster as you can manually select which one to use. Using the iWorkflow REST proxy allows provides for the RBAC controls and central point of administration just as you have experience using the GUI.

---

<div class="post-metadata">

**Author:** ![jay\_41195](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jay\_41195](https://community.f5.com/u/jay_41195)\
**Post date:** [September 13, 2017, 12:48am UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/8 "2017-09-13T00:48:36Z")

</div>

ok so if I POST JSON payload via postman/python, something like https://{{iWorkflow1\_Mgmt\_IP}}/mgmt/cm/cloud/tenants/myTenant1/services/iapp and payload, is this what you mean REST proxy on iWorkflow?

---

<div class="post-metadata">

**Author:** ![Angus\_2141](https://avatars.discourse-cdn.com/v4/letter/a/dc4da7/32.png) [@Angus\_2141](https://community.f5.com/u/Angus_2141)\
**Post date:** [September 13, 2017, 12:58am UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/9 "2017-09-13T00:58:32Z")

</div>

Yes, that looks about right. These articles may help explain it a bit further:

- [myF5](https://support.f5.com/csp/article/K44541081)
- [DevCentral - An F5 Technical Community](https://devcentral.f5.com/articles/iworkflow-201-episode-01-introducing-the-icontrol-rest-api-20880)
- [DevCentral - An F5 Technical Community](https://devcentral.f5.com/articles/iworkflow-201-episode-02-deploying-a-services-template-via-the-icontrol-rest-api-21378?tag=iWorkflow)

There are also a number of helpful how to articles on devCentral for iWorkflow here:

- [DevCentral - An F5 Technical Community](https://devcentral.f5.com/wiki/iWorkflow.HowToSamples.ashx)

---

<div class="post-metadata">

**Author:** ![jay\_41195](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jay\_41195](https://community.f5.com/u/jay_41195)\
**Post date:** [September 13, 2017, 1:09am UTC](https://community.f5.com/t/application-services-template-with-iworkflow-issue/23624/10 "2017-09-13T01:09:57Z")

</div>

Thanks Angus I will go through the articles provided.
