Hi,
We would like to provision some new services based on a service template with Automation.
When provisioning a new service (TryCreateServiceMessage), we provide the DataMinerID and HostingDataMinerID but the service is created on another agent in the cluster.
Would there be a way to specify on which DMA the service needs to be created?
How is it deciding on which DMA the service needs to be hosted?
Thanks in advance.
By default, services are created on the agent hosting the majority of child elements. When no child elements are in the service, the agent on which the service template is being executed is chosen.
The DMA can also be force-selected either by specifying a “:forceDMA” fixed input data field in the service template definition and setting the value to the DMA ID of the agent, or by adding a column named “forceDMA” in a CSV import file. When using the TryCreateServiceMessage, you should be able to add this value as part of the ExtraData array (TCSExtraData object in there with Name=”forceDMA”).
Do be aware of the correct naming:
- "forceDMA" (no colon) when defining a column in a CSV import file or as an ExtraData entry in the TryCreateServiceMessage
- ":forceDMA" (with colon) when defining an input data entry in the service template definition